Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-23-2009, 07:42 PM
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
  #2 (permalink)  
Old 03-01-2009, 07:55 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default

In AS3 you can get the values directly, so don't use setVariable

Code:
thePath.text = Global.getAppDir();
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:39 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.