Im working on a project, on a basis of evey frame is a new movie clip.
Now i need to do the following!
From a link in html,
i need to send some sort of information (guessuing through javascript)
to my flash file, telling it to load the movie, and goto the frame which is syncronised by each link!
eg.
im on a retail page called “cigars r us”
I click the button called “map”
it then needs to open up my flash file, let it pre-load, then jump to scene 3 frame 33, because its the 33rd store for example!
i dont want it to show any other frame but this one!
is this possible?
how could i do it?
can some one help me write a script!
am i on the right track?
i jsut cant get anything to happen.
in this attatched fla i didnt include this actionscript cause i cant get anyhting to work!
grrrrrrr
click link…
opens swf in the same page…
sending a variable like… ?movie=2 on the end of a link
or something similar!
then it needs to
pre-load the movie (in scene-1) on load checks the following variables
then… jump to specified frame…
something like…
if (movie==1 or movie=="") {
trace(“default”);
}
if (movie==2) {
gotoAndPlay(“Scene 3”, 33);
}
if (movie==3) {
gotoAndPlay(“Scene 3”, 34);
}
ill post the actual fla…
Ill be extremely greatfull, if some you can help me out, by inserting some actionscript to so that when this html link is clicked, it pre loads the flash and then recgonises the sent variables and jumps to the correct frame!
The preload is handled by the swf.
The variable you send (flashvars or added to the swf as in mysite.swf?frame=1) will be available right from the start.
Don’t use scenes/frame numbers, use labels for your goto’s!!