I was working with multiple examples and somehow got confused. At the end all I 
needed to do was this:
// parameter from command line:
var zoneId = oHTA.commandLine.substr(oHTA.commandLine.length - 1, 1);
AC_FL_RunContent(
                        "src", "boxingcomforters",
                        "width", "100%",
                        "height", "100%",
                        "align", "middle",
                        "id", "boxingcomforters",
                        "quality", "high",
                        "bgcolor", "#ffffff",
                        "name", "boxingcomforters",
                        "allowScriptAccess","sameDomain",
                        "type", "application/x-shockwave-flash",
                        "pluginspage", "http://www.adobe.com/go/getflashplayer";,
                        "FlashVars", 'zoneid=' + zoneId
        );
Where last two are my parameter.

Then in Flex:
var testVar:String = Application.application.parameters.zoneid;
trace(testVar); 


--- In [email protected], "Tracy Spratt" <tspr...@...> wrote:
>
> Lots of examples out there.  What google phrases have you tried so far?
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _____  
> 
> From: [email protected] [mailto:[email protected]] On
> Behalf Of markgoldin_2000
> Sent: Monday, March 30, 2009 9:31 PM
> To: [email protected]
> Subject: [flexcoders] Re: Application with parameters
> 
>  
> 
> Cannot get it working, any more examples?
> 
> --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
> Pedro Sena <sena.pedro@> wrote:
> >
> > Flashvars is the keyword.
> > 
> > http://www.permadi. <http://www.permadi.com/tutorial/flashVars/>
> com/tutorial/flashVars/
> > 
> > HTH
> > 
> > On Mon, Mar 30, 2009 at 7:15 PM, markgoldin_2000
> > <markgoldin_2000@>wrote:
> > 
> > > Is there a way of sending parameters to my Flex application?
> > >
> > > Thanks
> > >
> > > 
> > >
> > 
> > 
> > 
> > -- 
> > /**
> > * Pedro Sena
> > * Systems Architect
> > * Sun Certified Java Programmer
> > * Sun Certified Web Component Developer
> > */
> >
>


Reply via email to