Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-08-2006, 08:27 AM
Junior Member
 
Join Date: Jun 2006
Posts: 1
Default Problem setVariable

I have a big problem to set a variable :
Here is my script :

//Actionscript code

fscommand("FFish_run", "script1");
var textvar;
_root.text_txt.text = textvar;


//Ffish script name : "script1"

var ok = SysInfo.computerName;
FlashPlayer.setVariable("textvar", ok);

My textfield named text_txt send in the application undefined ??? >
I work with flash8 and AS2 (with swfkit v2)

Where is my problem ?

Thanks !
Reply With Quote
  #2 (permalink)  
Old 06-08-2006, 09:58 AM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Re:Problem setVariable

I should use

//Actionscript code
Code:
fscommand("FFish_run", "script1");
//Ffish script name : "script1"
Code:
var ok = SysInfo.computerName;
FlashPlayer.setVariable("_root.text_txt.text ", ok);
In your code you declare the var textvar after you called the ffish script. Therefore the var (that swfkit transfered) is overwritten with an empty (undefined) var
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 03:43 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.