View Single Post
  #1 (permalink)  
Old 02-23-2009, 07:42 PM
JAC3085 JAC3085 is offline
Junior Member
 
Join Date: Sep 2008
Posts: 6
Default setVariable Trouble

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!
Reply With Quote