|
|||
|
Hi,
just a very simple question I can't resolve: how can I launch functions writted in ActionScript in Flash environment from swfkit script? I have looked the doc, and I can't find... .Isn't there a FlashPlayer.executeFunction(functionName,Arguments ) or something like that? thanks by advance. P. PS: for my question of this morning, I succeed to do what I wanted by using regions |
|
|||
|
Put the call for the functions in a frame of your flashmovie.
Call the actions of that frame from within SWFkit using the FlashPlayer.targetCallLabel (target, label) command. Code:
FlashPlayer.targetCallLabel ("_root","updatefunction")
FlashPlayer. setVariable (name, value) |
|
|||
|
Seems to me that setting up a "watch" object on frame 1, with a callback to execute the desired actionscript function would be a better way?
I've set up the callback with a switch statement which does different functions, according to the value assigned to the watched property (available to the callback function as the "newval" argument) Downside is the Object.watch method is only avaiable on Flash 6+. Don't know of any other potential problems Rob |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|