I have a director project with 3 scripts (2 behaviors and 1 movie script). I have the following code in my movie script:
on startwriting () --do stuff _movie.script ["script2"]. Passgrade (75, 3, 4) End
And in one of my behavior scripts, I have the following:
Passgrade (ACC, Door, Tim) Member ("Assessment", "Assessment") DisplayWrite (ACC, Door, Tim) and Passgrad
Where the second behavior is the name of the script script2
and there is a flash object on the platform estimation
containing an action script method which takes 3 digits named displayGrade
as input.
I have 2 questions, first of all, call -movie.script ["script2"]. Passgrade (75, 3, 4)
does not work, and I do not know why I am not allowed to call the script for a behavior from the script? Or am I not doing this correctly? The second question is how do I call the Action Script method? The script is defined as a behavior for the flash object, which is called Assessment
, but the director is not able to locate the method.
I am using Director 11 with HotFix 3, and Flash Object was compiled for ActionScript 2.
The syntax for calling behavioral script should be instead:
script ("Script2"). Passgrad (75, 3, 4)
Alternatively, you send a call to your practice Flash Preet (the example platform of your flash), and the Phantom:
sendSprite (FlashSpriteNumOrNameOrRef, #passGrade, 75, 3, 4)
About calling a function inside the Flash Phantom, you do more or less the same, but you send a call to the Flash Phantom, not the member: / P>
Phantom (Flash espritonym name ORRef). DisplayGrade (AC, Door, Tim)
If the behavior is associated with the phantom: Phantom (IISpriet New). DisplayGrade (ACC, Door, Tim)
Comments
Post a Comment