Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: Setting Variables from a javascript function
From: vg
Date: Sun, 10 Dec 2000 15:25:13 GMT

Greetings to Everybody,
I have a rather annoying and complex problem here. Let's say there
is the following structure :
MovieA (_root)
|
|_Frame1 ActionScript : var text = "blablablabla"; fscommand ("getText");
|
|_MovieB (Instance Name = "bMovie") ActionScript :
|
onClipEvent (load) {
|
aText = _root.text;
|
call ("script");
| }
|_Frame1 ActionScript : var aText = ""; stop();
| |_MovieC
|
|_Frame2 (label = "script") ActionScript : function doSmt(text) {
--> actions eg
duplicateMovie MovieC};

doSmt(aText);

There is also a javascript function MovieA_DoFSCommand which contains :
if ( command=="getText" ) {

MovieA.SetVariable("_root.text", "John Smith John Smith");
}
I want MovieA when loads itself in the browser to take
the variable "text" from javascript function "MovieA_DoFSCommand"
and pass it to the variable "aText" and then do some actions in MovieB.
My ActionScript the only thing that does is to pass the content of the
variable " text ="blablablabla" "
to the variable bMovie and do some actions in MovieB.
I hope i was detailed and clear enough for someone to help me.


With Respect,

vg_herodotos


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save £200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: converting Lingo to actionscript, brigo

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]