FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
How do you start at a different frame every time

 
Post new topic   Reply to topic    Cambodia eXPlore Forum Index -> Flash Shockwave
Author Message
simonl



Joined: 21 Oct 2006
Posts: 1
Location: Sheffield England

PostPosted: Sat Oct 21, 2006 1:18 am    Post subject: How do you start at a different frame every time Reply with quote

Hi there,
A few weeks ago I found a way to start a flash animation at a different frame. This was done in the <ENMBED src="mysite.com/myamin.swf(something went here)"
Why do you need to do this you ask. Well there may be a different way to do this but...
To stop the animation running though every time you load a different page, I could stop it by modifying the EMBED tag via PHP using the cookie info. I also have the page titles in the anim. This is all done from the one file. So it's quick to load another page, and it doesn't annoy anyone.

I can't remember how to do it!!
I usually remember to write these things down, or to make any example.
PLEASE PLEASE HELP!!

you can see the general idea [url]e-bee.net[/url]

Back to top
guitarman
fourth grade


Joined: 04 Nov 2005
Posts: 728

PostPosted: Sat Oct 21, 2006 2:06 am    Post subject: Reply with quote



hi simon,

May be you want to learn about flashvars. Basically the flashvars is a variable that you pass from the browser into the flash movie. So in summary, you can pass let say a variable named 'frame' to the flash movie and in the first frame of your movie, you can put a script to tell

gotoAndPlay(frame); (this will make the movie to play at the frame number)

You may learn more here> [url="http://www.informit.com/discussion/index.asp?postid=caa678cf-6c43-4101-8f74-7feefce29475&rl=1"]flash variable to pass content into flash movie.[/url]

That's what I understand from your question but do let us know if you need something else.

Back to top
indogo
fourth grade


Joined: 03 May 2006
Posts: 223

PostPosted: Sun Oct 22, 2006 12:16 am    Post subject: Reply with quote

Your missing piece would have been
src="mysite.com/myamin.swf?frame=3"or similar which sets the variable 'frame' to 3 in your movie as guitarman suggests.

I think you need to also repeat this in the 'movie' parameter if you use this method whereas havin a separate parameter
<param name='frame' value='3'> would be neater (as guitarman suggests again Smile )

Perhaps you could use the parameter to dynamically load your intro for the first instance (followed by the main movie) and not for further pages so saving bandwidth for dial up visitors...as far as I know if the query string is changed then the browser will download a fresh instance of the movie as it thinks it is dealing with a different file.

have fun

mike

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cambodia eXPlore Forum Index -> Flash Shockwave All times are GMT + 8 Hours
Page 1 of 1



by phpBB