Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-10-2010, 09:08 AM
Junior Member
 
Join Date: Sep 2010
Posts: 1
Angry again: how to Exchanging Data between FFishScript and Flex

Hi,
In the section "Add more functions to your application" it discussed a sample about saving game scores.

I saw two declared variables defined in Flash MX, given names are "playerName" and "score" in level 0,

To get the value of the variables in Flash MX, FFish script is:
FlashPlayer.getVariable("_level0.score")

But now I use Flex components to define score and playerName, eg:
<mx:TextInput id="score"/>

in my case, FlashPlayer.getVariable("_level0.score") will not work.

my question is what FFish script looks like to get Flex component 'score' input value( I know there are a button listener handler to call fscommand("ffish_run", "loadscore")).

what is convention for call FlashPlayer.getVariable(..) method, how the parameter name is given in Flex?

Thanks
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 06:18 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.