Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

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

Posts: 12
Trades: 0
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
 
 
Register now for full access!
Old 12-22-2005, 09:32 AM RE: Small lessons of flash design
Junior Talker

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

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

Posts: 12
Trades: 0
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, 05:16 PM RE: Small lessons of flash design
Junior Talker

Posts: 34
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

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





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



Page generated in 3.67986 seconds with 12 queries