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

flash actionscript

group:

Javascript controlling SWF in other frameset


Javascript controlling SWF in other frameset Hugo Setta
9/21/2004 9:18:48 PM
flash actionscript:
Hello,

I?m having the following problem.
I have this site, and it?s divided in to frames (let?s call them TOP and MAIN).
In the TOP frame I have my FlashMovie, in the MAIN frame I have a JScript
function that?s suppose to control the movie in the TOP frame.

I use the following sintaxe to control it?s position:
parent.TOP.mymoviename.GotoFrame(2);

It works perfectly.
But I need to send a variable too. The thing is that It?s not working at all.
I?ve tryed a lot of options but none could make it work.

For example, this code:
parent.TOP.mymoviename.SetVariable("myvar",1);

The variable exists in the movie, and I use it to control from the movie
itself.

I tryed to use TellTarget too, to control a movieclip inside my movie (this is
what the variable shoul do), but this didn?t work to:
parent.TOP.mymoviename.TGotoFrame("mymovieclipinstancename", 3)

Well, does anyone know how to do this? Send a variable value from a frame to
another, or Telltarget to a movieclip in other frame?

Thanks in advance to you all.
Re: Javascript controlling SWF in other frameset Patrick Bay
9/23/2004 10:33:12 AM
Hi,

Have a look at the LocalConnection class methods. That should do the
trick ;)

Regards,
Patrick

-----------------------------------------------------
www.baynewmedia.com

IRC (www.dal.net) -> #baynewmedia
-----------------------------------------------------



[quoted text, click to view]
Re: Javascript controlling SWF in other frameset Hugo Setta
9/23/2004 2:30:41 PM
Please guys, help me!

Anything related with javascript controlling flash is welcome.
Re: Javascript controlling SWF in other frameset chrism59
9/23/2004 2:34:10 PM
I truely fell for you...My message is up here with all of my attempts to pass a
variable using javascript. No help yet and still unsuccessful. I am subscribing
to you thread with hop that you get better help than I did.
Re: Javascript controlling SWF in other frameset Hugo Setta
9/24/2004 5:44:33 PM
chrism59 what a sad thing :(
But don?t worry, if I ever finde the "cure" I?ll post it here.

Well, since the gotoframe is working, i?m trying to create some key frames
where the flash itself changes the value of the variable, then I just need to
use the working (so far) code GotoFrame via JScript->SWF.

I didn?t have time to test it, (and *OH MY GOD* the dead line is today
Sep24th) so I don?t know if it?ll work.
Wish me luck!
AddThis Social Bookmark Button