msukow
asked on
Adobe Lingo communication with Flash Actionscript
See gthe code in actionscript. "gFlashServicesArray" is a global variable in lingo. it contains a value = {0,0,0,0,0] if all 5 checkboxes from the flash asset in director are set to off. If director, the user can turn on or off any of the fix buttons and "gFlashServicesArray" will get updated (Example: the first button is clicked, so the value of "gFlashServicesArray" is now = {1,0,0,0,0], etc).
I need to be able to update "gFlashServicesArray" in director and then read it in flash to determine if the button is in the On or Off state.
OR
I need to set the state in flash and then update "gFlashServicesArray" (which ios what I was trying to do originally.
I need to be able to update "gFlashServicesArray" in director and then read it in flash to determine if the button is in the On or Off state.
OR
I need to set the state in flash and then update "gFlashServicesArray" (which ios what I was trying to do originally.
on (release) {
click = getURL("lingo:_global.gFlashServicesArray[1]");
trace("Click: " + click);
//
if (click == true) {
getURL("lingo:_global.gfValue_Checkbox=false");
getURL("lingo:_global.gFlashServicesArray[1]=false");
click = false;
} else {
getURL("lingo:_global.gfValue_Checkbox=true");
getURL("lingo:_global.gFlashServicesArray[1]=true");
click = true;
}
getURL("lingo:updateARServices()");
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.