next up previous contents
Next: getArray Up: Methods Previous: unbindAll   Contents


updateData

Description

Transfers data between bound Action Script variables and FlashPlayer properties.


Syntax

FlashPlayer.updateData(get)


Parameters

get
Boolean. If true, data transfer from the bound Action Script variables to the corresponding FlashPlayer properties. Otherwise, transfer from the FlashPlayer variables to the corresponding bound Action Script variables.


Returns

Nothing


Example

FlashPlayer. bindData("text", "movieClip1.x");
FlashPlayer.updateData(true);
trace(FlashPlayer.text);
trace(FlashPlayer.movieClip1.x);
FlashPlayer.text = "New text";
FlashPlayer.updateData(false);
FlashPlayer. unbindData("text", "movieClip1.x");




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