flex: loading mxml component -
I am trying to load an MXML component in my main Flex project, I noticed that many There are related questions but I am also a newbie to understand them.
On the left and right side of the page and the other flash file is located in the middle. I want the Volksbox to be placed in separate mxml components on the left and right sides. How can i do
Thanks
Build mxml component for your side In the following, I did this based on the VBox
, because it could be what you are searching for. I've given it an unpleasant background color which we should be easy to spot while driving the app.
& lt ;? Xml version = "1.0" encoding = "utf-8" & gt; & Lt; Mx: VBox xmlns: mx = "http://www.adobe.com/2006/mxml" width = "100" height = "300" background color = "0x990000" & gt; & Lt; / Mx: VBox & gt;
In your main MXML application, you can include your custom component by telling the application to see the name of the place (this is that xmlns: local = For "*"
- the word local
is just a name so that I can easily remember what it means, you can say anything to it, * < / Code> Essentially currently viewing / Same directory).
The main. Mxml
& lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Mx: application xmlns: mx = "http://www.adobe.com/2006/mxml" xmlns: local = "*" layout = "full" & gt; & Lt; Local: sidebox x = "40" y = "20" /> & Lt; Local: sidebox x = "500" y = "20" /> & Lt; / Mx: Applications & gt;
Comments
Post a Comment