A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: passing nested objects through swfobject?

  1. #1
    will i ever get it?
    Join Date
    Feb 2004
    Posts
    707

    passing nested objects through swfobject?

    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,flashvarsparamsattributes); 
    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?

  2. #2
    will i ever get it?
    Join Date
    Feb 2004
    Posts
    707
    still no takers?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center