Reputation: 13855
I have a Flash sprite in my Director project. Under the Properties of that sprite, under both the Member and the Sprite tabs, it has as its name "Assessment". In my Lingo script, I have the following call:
sprite("Assessment").displayGrade(75, 3, 4)
where displayGrade is a function defined in the Flash object's ActionScript as a method taking 3 numbers as parameters. However, I get an error on this line, and cannot determine why. Am I calling the Flash object's method incorrectly?
Upvotes: 1
Views: 1257
Reputation: 1
I have a Flash sprite in my Director project. Under the Properties of that sprite, under both the Member and the Sprite tabs, it has as its name "first". In my Lingo script, I have the following call:
sprite("first").number1
where number1 is a variable defined in the Flash object's ActionScript3 :a=25 in flash. However,in director return , but if swf cteate in ActionScript2 return 25 ! what is syntax in as3 for get variable from flash(swf) inside director (if swf created in as3)?
Upvotes: 0
Reputation: 11139
I don't know a thing about the Director side, but since this isn't resolved yet I'll ask: how are you doing things on the Flash side?
Apologies in advance if you're already sure the Flash part is okay. These are only guesses.
Upvotes: 2
Reputation:
I browsed a little and I found this one:
and this too:
http://dreamweaverforum.info/director/23160-director-11-actionscript-3-a.html
Of course, you should verify by browsing the Director 11 docs.
Regards, Vyger
Upvotes: 3
Reputation:
Try this:
set up a container-content reference to your swf, that is the Flash main timeline:
global swfTL
on beginSprite me
swfTL = getvariable(sprite('yourFlashSprite'),'_level0',False)
end
then call
swfTL.displayGrade(75, 3, 4)
Hope it helps.
Upvotes: 1