next up previous contents
Next: getArray, putArray, getObject, putObject Up: Data exchanging between Action Previous: The setVariable method and   Contents


The updateData method

See: 2.29

Binds the variables

FlashPlayer.bindData("_level0.playerName",
    "_level0.score");

To get the value of the variables from Action Script

FlashPlayer.updateData();
score.playerName = FlashPlayer._level0.playerName;
score.score = FlashPlayer._level0.score;

To update the value of the variables in Action Script

FlashPlayer._level0.playerName = score.playerName;
FlashPlayer._level0.score = score.score;
FlashPlayer.updateData(false);



Copyright ©2000-2007 Shanghai TopCMM Software Technologies. All Rights Reserved.