PDA

View Full Version : Link to specific frame or scene from HTML Page


dmcbrier
02-22-2002, 09:51 PM
Whazzzup! Is it possible to link from a standard HTML page to a specific point in a Flash movie.


For example I would like to Link from a standard HTML page to Frame 6 of my Movie. (i.e. the movie should begin on frame 6)

How would you link to a specific Scene?


Can this be done with Javascript? or standard HTML?


Sincerely,
David McBrier


Sail fast and hike hard! :p

Jesse
02-23-2002, 01:57 AM
Yeah you pass Flash the number of a frame (or better yet, the name of a label) using the GET syntax, by embeding the variable in the EMBED code for your flash file. Or alternatively using FSCommands but that's harder and doesn't work on as many OSes. See these two tutes for info on how to do the embed:
http://www.actionscripts.org/tutorials/intermediate/passing_variables_around/index.shtml
http://www.actionscripts.org/tutorials/intermediate/loadVariables_script_interaction/index.shtml
Once your ariables is embedde in Flash you can just use gotoAndPlay(variableName) which is why a label is better. If you pass a frame number you'll have to convert it to a number, as it's passed in a string: gotoAndPlay(Number(variableName))