You may utilize 'callFrame' command until Director MX will be available.
(B
(B// [Flash ActionScript]
(B// _root
(B// Frame action
(B// Frame label: dirExecutes
(Beval(dirTarget)[dirAction](dirArgument);
(Bdelete dirTarget;
(Bdelete dirAction;
(Bdelete dirArgument; 
(B
(B-- [Director Movie Script]
(Bon xCallAction(oSprite, sTarget, sAction, sArgument)
(B   setVariable(oSprite, "dirTarget", sTarget)
(B   setVariable(oSprite, "dirAction", sAction)
(B   setVariable(oSprite, "dirArgument", sArgument)
(B   oSprite.callFrame("dirExecutes")
(Bend 
(B
(BTry the following in the message window.
(B
(B-- In the message window (supposing sprite(1) is a flash sprite)
(BxCallAction(sprite(1), "_root.myMovieClip_mc", "loadMovie", "Load.swf")
(B_____
(B"Mendelsohn, Michael" wrote:
(B> I would like to be able to do something like
(B> sprite(5).doActionScript(_root.foo(param1)).  Does this ability exist?  It
(B> seems that if I want to pass a parameter from lingo, I'd have to set a
(B> global variable in the swf.  That doesn't seem to make much sense.  Any
(B> thoughts are appreciated.
(B
(BGood luck,
(B
(BFumio Nonaka
(BPhone: +81-42-397-9452
(BFax: +81-42-397-9452
(Bmailto:[EMAIL PROTECTED]
(Bhttp://www.FumioNonaka.com/
(BSee also:http://www.F-site.org/
(B[To remove yourself from this list, or to change to digest mode, go to 
(Bhttp://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
([EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
(Blearning and helping with programming Lingo.  Thanks!]


Reply via email to