reading data from publisher to flash
May 21, 2007 12:00 AM
Hi guys, i know this has been covered before, but it mainly seems to be how to pass data from flash to publisher rather than publisher to flash!I have this actionscript in my flash file:var modsComplete;
Code:
if(getURL("javascript:window.document.swfa nim30756.SetVariable('modsComplete', Varcmi_suspend_data.getValue())")){ modsComplete = getURL("javascript:window.document.swfanim30756.SetVariable( 'modsComplete', Varcmi_suspend_data.getValue())"); String(modsComplete); gsbTrace("it worked, modsComplete is: "+modsComplete); } else{ String(modsComplete); gsbTrace("it didnt work, modsComplete is: "+modsComplete); }
All i need to do is pass the information stored in the publisher variable "cmi_suspend_data" to flash. As you can see i am doing it by making a call to a javascript function:
Code:
javascript:window.document.swfanim30756.SetVariable('modsCom plete', Varcmi_suspend_data.getValue())
but it just wont work! i am really getting frustrated with it now as i have spent hours trying to get it to work.Please help me!thanks,Mike
Discussions have been disabled for this post