cdugga
cdugga

Reputation: 3859

retrieve flashvar from Flex3 using mxml

Is it possible to retrieve flashvar parameter in mxml code and if so how? Up to now i have been using Application.application.parameter.name to get what i need.

Upvotes: 2

Views: 345

Answers (2)

Joel Hooks
Joel Hooks

Reputation: 6565

You can bind to it:

<mx:Label text="{Application.application.parameters.name}"/>

Upvotes: 2

RJ Owen
RJ Owen

Reputation: 615

I'm fairly certain that's the only way to get it - you'll have to use that bit of actionscript. How would you like to use it in MXML? If you post an example of what you'd expect it to look like we might have more ideas.

Upvotes: 0

Related Questions