# Object Object Syntax Help

**URL:** <https://forum.kirupa.com/t/object-object-syntax-help/281826>\
**Category:** flash\
**Created:** [February 13, 2009, 3:59pm UTC](https://forum.kirupa.com/t/object-object-syntax-help/281826 "2009-02-13T15:59:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matius](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@matius](https://forum.kirupa.com/u/matius)\
**Post date:** [February 13, 2009, 3:59pm UTC](https://forum.kirupa.com/t/object-object-syntax-help/281826/1 "2009-02-13T15:59:50Z")

</div>

Sadly, I have the livedocs wide open and I still can’t figure out how to send off multiple variables in an object (from a class) to the FLA file… ([http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Object.html](http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Object.html))

**The setup:**  
I have a class that [COLOR=Blue]_extends EventDispatcher_[/COLOR]. I created an Object called **\_pass** , [COLOR=RoyalBlue]_[COLOR=Blue]public var \_pass:Objec[COLOR=Blue]t;[COLOR=Black]. [/COLOR][/COLOR][/COLOR]_[/COLOR]

In my last function (everything is cool up until now), **I have four variables that need to be passed to the main fla.** Let’s say they’re [COLOR=Blue]param1[/COLOR], [COLOR=Blue]param2[/COLOR], [COLOR=Blue]param3[/COLOR], [COLOR=Blue]param4[/COLOR].

It was explained to me that I could use the [COLOR=RoyalBlue]_[COLOR=Blue]public var \_pass:Objec[COLOR=Blue]t; [/COLOR][/COLOR]_[COLOR=Blue][COLOR=Blue][COLOR=Black]by first creating an instance of the object like so, _[COLOR=Blue]\_pass = { param1, param2, param3, param4 };[/COLOR]_[/COLOR][/COLOR][/COLOR][/COLOR] (each _param_ is available in the function). Having setup an object instance, I could then dispatch the object to read from within my fla: _[COLOR=Blue]dispatchEvent(new Event(Event.COMPLETE));[/COLOR]_.

But I get these errors:

> 

1084: Syntax error: expecting colon before comma.  
1083: Syntax error: rightbrace is unexpected.

As the livedocs show, you can use an associative array (with braces and a colon), but I don’t need that. I just need to pass my variables that are pre-made to the FLA.

Any help on what I’m missing is appreciated.
