Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-24-2003, 08:41 PM   PM User | #16
Potato
New Coder

 
Join Date: Aug 2002
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Potato is an unknown quantity at this point
Alright i finally got it thanks. Next step, people keep complaining it runs slow the first time but after it runs fine, how do i make a loading screen or something in the beginging to use to make the movie run faster?
__________________
This is my signature.
Potato is offline   Reply With Quote
Old 01-24-2003, 08:48 PM   PM User | #17
wap3
Regular Coder

 
Join Date: Aug 2002
Location: UK
Posts: 324
Thanks: 0
Thanked 0 Times in 0 Posts
wap3 is an unknown quantity at this point
You have alot of questions today dont you


Go to flashkit.com and look in the tutorial sections or search on the board for posts of this nature. There are vast amounts there.

wap3 is offline   Reply With Quote
Old 01-24-2003, 08:52 PM   PM User | #18
mouse
Regular Coder


 
Join Date: Jun 2002
Location: North East England
Posts: 853
Thanks: 0
Thanked 0 Times in 0 Posts
mouse is an unknown quantity at this point
Don't have aim I'm afraid, neither do I have Flash installed at the mo, jsut going off memory



Now, you'll need to preload the animation.

Here goes:

Insert two new key frames at the beginning of the movie before the animated section (ie move it all along a few frames if need be). Now insert the following actionscript into the first keyframe:
PHP Code:
ifframeloaded(68);      //--- 68 is an example only here, exchange it for the LAST frame in your movie
GoToAndPlay(3);         //--- this needs to be the first frame of the animated section of the movie 
And this in the second keyframe:
PHP Code:
GoToAndPlay(1);     //this loops the movie back IF the final frame as specified in keyframe one has NOT loaded 
You may wish to insert a "loading" graphic in these first two frames too so the user knows what's happening.
__________________
[+] Computer/PC issues [+] Silverpaw3D
------------------------------------------------
Never buy a dwarf with learning disabilities...

...it's not big, and it's not clever.
mouse is offline   Reply With Quote
Old 01-24-2003, 09:08 PM   PM User | #19
Potato
New Coder

 
Join Date: Aug 2002
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Potato is an unknown quantity at this point
K sounds right, awesome, thanks
__________________
This is my signature.
Potato is offline   Reply With Quote
Old 01-24-2003, 09:31 PM   PM User | #20
Potato
New Coder

 
Join Date: Aug 2002
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Potato is an unknown quantity at this point
Damn i thought that would work mouse but it didnt, look:

GyroTek

Maybe the coding is wrong or something
__________________
This is my signature.
Potato is offline   Reply With Quote
Old 01-24-2003, 09:40 PM   PM User | #21
mouse
Regular Coder


 
Join Date: Jun 2002
Location: North East England
Posts: 853
Thanks: 0
Thanked 0 Times in 0 Posts
mouse is an unknown quantity at this point
What version of Flash are you using?

The syntax changes with each version You might want to try:
PHP Code:
If Frame Is Loaded() 
Look here for more details: http://www.flashkit.com/tutorials/In...a-33/index.php
__________________
[+] Computer/PC issues [+] Silverpaw3D
------------------------------------------------
Never buy a dwarf with learning disabilities...

...it's not big, and it's not clever.
mouse is offline   Reply With Quote
Old 01-24-2003, 10:38 PM   PM User | #22
Potato
New Coder

 
Join Date: Aug 2002
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Potato is an unknown quantity at this point
Naw that sounds like flash 4, anoyne know it for MX? I think its the gotoandplay causing problems.
__________________
This is my signature.
Potato is offline   Reply With Quote
Old 01-24-2003, 10:56 PM   PM User | #23
mouse
Regular Coder


 
Join Date: Jun 2002
Location: North East England
Posts: 853
Thanks: 0
Thanked 0 Times in 0 Posts
mouse is an unknown quantity at this point
GoToAndPlay is valid actionscript.Try getting rid of the semicolons ( ; )
__________________
[+] Computer/PC issues [+] Silverpaw3D
------------------------------------------------
Never buy a dwarf with learning disabilities...

...it's not big, and it's not clever.
mouse is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 03:11 PM.


Advertisement
Log in to turn off these ads.