is it possible to send native nested objects to flash via swfobject? i am trying this right now without luck:
PHP Code:
var flashvars = {event1:{eventid:"145",title:"event 1",toggle:["thistha","timestart"]},
event2:{eventid:"145",title:"event 1",toggle:["thistha","timestart"]},
event3:{eventid:"145",title:"event 1",toggle:["thistha","timestart"]}}
var params = {};
params.allowscriptaccess = "always";
var attributes = {};
attributes.id = "myswf";
attributes.name = "myswf";
swfobject.embedSWF("shell.swf", "swfhome", "300", "250", "9.0.0",false,flashvars, params, attributes);
in my flash (as2), i would like to have:
PHP Code:
if(_level0.event1)
{
trace("----------->event1 : "+event1.eventid);
trace("----------->event1.toggle : "+event1.toggle);
}
anyone ever pull this off?