all groups > flash actionscript > may 2004 >
You're in the

flash actionscript

group:

load movie specific frame: no solution works


load movie specific frame: no solution works jubal44
5/23/2004 9:19:09 PM
flash actionscript:
Hi!
I want to load some movies at specific frames, by clicking some buttons on
another movie. I have several problems, and have tried everything...
This is the ways I tried:

Movie1:

Button1:

on (release) {
loadMovie("dos.swf", 1);
vars = button1;
}


Button2:

on (release) {
loadMovie("dos.swf", 1);
vars = button2;
}




Movie2:

(I have a preloader.)

if (vars==button1) {
gotoAndPlay(20);
} else if (vars==button2) {
gotoAndPlay(351);
}
stop();


Result? It always goes to the frame 20.

But if I desactivate one button, for example the button1, doing this on the
second movie:


if (vars=="button1") {
gotoAndPlay(20);
} else if (vars==button2) {
gotoAndPlay(351);
}
stop();

The both go to the frame 351.


I?ve also tried this syntaxis on the buttons:

on (release) {
loadMovie("dos.swf?vars=button1", 1);
}

and so on. Then everything goes fine; both buttons load the movie at the
desired frame, but doing this way, when I load movie 2 from button 1 is
different than if I load the same movie from a different button, so each button
loads te movie even if it?s the same movie and is already cached.

Result? Each button must load the movie even if the movie as been previously
loaded from anothe button. In the temporary internet files, the same movie
appears as different movies depending on the button that loaded it.

dos.swf
dos.swf?vars=button1
dos.swf?vars=button2

So... any ideas? I?m really really desesperated, and in a very hurry!!! :?-(((
Thanks in advance,
Jubal
Re: load movie specific frame: no solution works pazzoboy
5/24/2004 1:13:36 AM
Look up how to use localConnection(). With this method, the two movies can "talk" to each other.

AddThis Social Bookmark Button