ActionScript 3.0 in Flash is now supported. There are many incompatible issues between ActionScript 2.0 and 3.0. When setting values to variables of AcrionScript 3.0 in Flash with flashvars=your_flash_variable... from within ViewDAQ/View client or fscommand(“GETVAL”, “your_flash_variable=your_webaccess_tag”);, root.loaderInfo.parameters. your_flash_variable must be used to retrieved the values in ActionScript 3.0. The following sample script written in ActionScript 3.0 illustrates how this can be done.
function WaitGetValue():void {
fscommand("GETVAL","pv=%ANUMRAND");
pv=root.loaderInfo.parameters.pv; // This statement is not required and not allowed when using ActionScript 2.0;
if (pv != pv_old) {
pv_old = pv;
tbox.text=pv;
}
}
var sid;
var pv;
var pv_old;
pv = "";
pv_old = pv;
tbox.text=pv;
sid = setInterval(WaitGetValue, 500);