1 Reply Latest reply on Mar 16, 2011 3:35 PM by Flex harUI

    pass a parameter in mxml like you would in actionscript.

    5Systems Level 1

      Hey all,


      I have a questions.  How would you pass a property from one mxml to another via the "constructor".  Say for example I have a main appplication mxml and 1 or more compoent mxml files.  When my Main app instantiates the component e.g. <components:ComponentOne x="26" y="10" width="269" height="161" /> how would I pass a property to it.


      In actions script I would be as simple as var myvar:ComponentOne = new ComponentOne(properytIwantToPass:String);  How would I accomplish this sort of thing via mxml?


      Thanks guys.