Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving movies, in different files...

Status
Not open for further replies.

Caden

Programmer
Dec 9, 2001
101
CA
Greetings once again Tek-Tips.

Does anyone know how to change movies from other movies...
eg.
movie 1 has buttons in it
movie 2 has pictures in it

from clicking a button in movie 1
I want to moves frames in movie 2

completely different FLA files...

thanks
Caden
 
It would be 2 different .swfs...

But what's your setup?

Just 1 movie loaded into another one? In a container clip? On another level?
2 different movies embedded in 1 html? A frameset, with movies in different frames?

Regards,

cubalibre2.gif
 
I know it's 2 different .swfs, but I figured i'm workin in the .fla's whatever =0p anyhow.

They are two seperate movies right now.

I'm attempting to get one movie to change a javascript variable and the other to read that variable, if the variable changes, do something accordingly...this is what i'm trying...

Code in the button you click in movie 1:

on (release){
set (javascript:changemovie, 1);

}

Code in the hopeful reading movieclip actionscript:
stop ();

if (javascript:changemovie==1){
_root.gotoAndStop (2);
}

but it isn't working, so, i'm doing something wrong
 
and to answer your question from above, 2 different movies, embedded into a html file
 
So, I got this working no problem, thanks Oldnewbie! Thoes links to the resource sites were terrific!

It was as simple as putting this into my flash button

on (release) {
getURL("javascript:topbar.GotoFrame(2)");
}



Although, now I am having another problem I am unsure of. These javascript functions don't work on Mac IE, 5.2? I find this hard to believe, but the mac i'm checking it on is throwing an error at me telling me it doesn't recognize the method.

Although i'm looking around for an answer, any insight would help, thanks!

Caden
 
ugh, that makes me hate Mac's just a little bit more then I already do...thanks Oldnewbie, you've been awsome!

Caden
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top