# Pass AS objects to Director?

**URL:** <https://forum.kirupa.com/t/pass-as-objects-to-director/260096>\
**Category:** flash\
**Created:** [May 12, 2008, 4:05pm UTC](https://forum.kirupa.com/t/pass-as-objects-to-director/260096 "2008-05-12T16:05:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![duncanhall](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@duncanhall](https://forum.kirupa.com/u/duncanhall)\
**Post date:** [May 12, 2008, 4:05pm UTC](https://forum.kirupa.com/t/pass-as-objects-to-director/260096/1 "2008-05-12T16:05:46Z")

</div>

I know that I can call a shockwave function from flash, using the lingo prefix, but am I limited to what I can send, or will AS objects keep their structure when passed to director?

eg, would this work:

[AS]  
var room:Object = { name:“lobby”, id:22, type:“regular” }

getURL( “lingo:setRoom(” + room + “)” );  
[/AS]
