Reply
Small lessons of flash design
Old 12-22-2005, 05:38 AM Small lessons of flash design
Junior Talker

Posts: 12
Hi,
Today we shall talk about inserting .swf file into an HTML document.
It is made like this

Code:

テつ*テつ*<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="550" height="400">
テつ*テつ*<param name="movie" value="movie.swf" />
テつ*テつ*<param name="quality" value="autohigh">
テつ*テつ*<param name="menu" value="false" />
<embed src="movie.swf" quality="autohigh" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="400" menu="false"></embed>
テつ*テつ*</object>

Please share your own experience with us.
I want to ask how do can I put a preloader on my Flash movie?
__________________________________________________ ___
テつ*テつ*テつ*テつ*テつ*テつ* Your faithful Moderator

russian_programmer is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 12-22-2005, 10:32 AM RE: Small lessons of flash design
Junior Talker

Posts: 185
preloader
PureEvil is offline
Reply With Quote
View Public Profile Visit PureEvil's homepage!
 
Old 12-22-2005, 01:30 PM RE: Small lessons of flash design
Junior Talker

Posts: 12
Thanks
russian_programmer is offline
Reply With Quote
View Public Profile
 
Old 12-23-2005, 06:56 AM RE: Small lessons of flash design
Junior Talker

Posts: 12
Here it is

Open the Scene inspector (Window>Design Panels>Scenes or SHIFT+F2)
Create a new scene and call it preloader.
Click and drag the scene to the start of your entire Flash movie.
Within this scene, insert a blank text box, set the type to Dynamic and give it the variable name progress.
Put the following code in the first frame of your movie:

Code:

loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
if(loaded<total) {
percent = Math.round((loaded/total)*100);
progress = percent + '% loaded...';
} else {
progress = 'Loaded!';
}In frame 2, insert another keyframe and add the following code:

Code:

if(loaded<total) {
gotoAndPlay(1);
} That should do it. Basically, this is the first scene of the movie and will loop through those two frames checking whether the whole movie is loaded by calling the getBytesLoaded() and getBytesTotal() properties before playing it.
russian_programmer is offline
Reply With Quote
View Public Profile
 
Old 02-28-2006, 06:16 PM RE: Small lessons of flash design
Junior Talker

Posts: 34
Personally when displaying a movie i like to have it in a pop up window.
jdprgm is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Small lessons of flash design
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12791 seconds with 12 queries