|
|||
|
OK,
I'm having a lot of trouble with CS3 and AS3 with setVariable. In my actionscript on frame 1 I have import SWFKit.*; myTest.addEventListener(MouseEvent.CLICK, testFunction); myTest.buttonMode = true; myTest.mouseChildren = false; function testFunction (MouseEvent){ Global.invoke("apppath"); } in my scripts in swfkit, I have the following apppath var cdpath = getAppDir(); FlashPlayer.setVariable("root.thePath.text", cdpath); If I try another command in swfkit it works, I can close the windows and do function I just can't return info to Flash. I've read the forums a few times and understand that you must use synchronous calling but I need a bit of help to get there. If someone could be so kind? Thanks! |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|