• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Is there a way to append a flash embed so that it skips to a specific frame?

I have a main flash banner for my site along with 10 different pages..and I want to keep the same toolbar but have the images change on each page. Right now I just exported 10 different swfs with a different image on each of them, but was wondering if there was a way to just have one swf file and in the embedding command to skip to a specific frame within the swf?
 
If I recall correctly, you can add a query string (like a HTTP GET) to the end of the URL for the SWF like so:

<EMBED src="myflashmovie.swf?skiptoframe=5">

That ends up as the value of: _root.skiptoframe
 
the command "gotoandplay(5)" comes to mind, that would be for skipping
to frame 5. i would have to get out some old homework.

i don't know how to do it outside the Flash programming environment.

there's probably an exact tutorial for this at
http://www.gotoandlearn.com/
 
Like GaryJohnson said you can pass variable values to a SWF using CGI style in the URL or a
< param name='flashvars' value='x=val1&y=val2&z=val3...' > tag in the < object > .

In your ActionScript for the first frame you look for the variable and if found do a gotoandstop or gotoandplay.
 
Hmm I'm confused..so my flash embed would say:

<param name="movie" value="header.swf?skiptoframe=300" />

And in my actual .swf it would say: gotoAndStop(_root.skiptoframe);

Or how would I modify the embed src?

Edit: Awesome, it worked! Thanks.
 
Back
Top