[thelist] Flash Frame Recognition

Erik Mattheis gozz at gozz.com
Mon Jun 19 14:39:39 2000


In your html, you can define a variable on the main timeline by appending a 
name/value pair to the URL of the swf:

<PARAM NAME=movie VALUE="propelmenu.swf?initialframe=10">

and

<EMBED src="propelmenu.swf?initialframe=10">

This will create a variable in the top level of the movie named 
"initialframe" with a value of 10.

Then in the first frame of the main timeline, have an actionscript send the 
MC to the correct frame.

Flash looks for variables relative to the instance being targeted, you need 
to do it as explained in this technote:

http://www.macromedia.com/support/flash/ts/documents/flash_labels_scripting.htm

But if you're just sending the main timeline to a specific frame you can 
just have a goto action to initialframe defined as an expression, and don't 
have to figure out the technote (which would be a lot easier to do if one 
could download FLAs of the examples!)

At 01:11 PM 6/19/00 -0500, you wrote:
>Eric,
>
>Could you give a bit more directive on this part
>
>then in your movie, tell the timeline to goto gotoframe defined as an 
>expression. If you are targeting a mc like this, you have to reference the 
>variable from the root of the movie, like
>
>tell target('"yourMC")
>         goto and stop "yourMC" & /:gotoframe
>
>I set up a test to go to frame 10 here...
>
>http://www.nweinc.net/testbays/bay7/propelmenuframe10test.html
>
>
>
>
>
>
>>Look for fscommand in the help files.
>>
>>Or, if you are targeting Flash 4 only, you can send a message to the swf 
>>as a url parameter: <embed src="movie.swf?gotoframe=8">
>>then in your movie, tell the timeline to goto gotoframe defined as an 
>>expression. If you are targeting a mc like this, you have to reference 
>>the variable from the root of the movie, like
>>
>>tell target('"yourMC")
>>         goto and stop "yourMC" & /:gotoframe
>>
>>>If we are using a Flash menu on an HTML page is there a way to start the 
>>>Flash movie on a specific frame. We're wanting the Flash movie to 
>>>signify what HTML page were on by displaying the path to the page as 
>>>dictated in the flash movie
>>
>>
>>
>>
>>---------------------------------------
>>For unsubscribe and other options, including
>>the Tip Harvester and archive of TheList go to:
>>http://lists.evolt.org Workers of the Web, evolt !
>
>
>---------------------------------------
>For unsubscribe and other options, including
>the Tip Harvester and archive of TheList go to:
>http://lists.evolt.org Workers of the Web, evolt !