|
|||
|
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 |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|