flex - How can I load my own custom component into an AIR application? -


I have created separate canvas component for home page, contact page, rule page etc. In my main application it has a link button like Home, Contact, Rule in Application Controller (Child State).

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Mx: canvas xmlns: mx = "http://www.adobe.com/2006/maxml" width = "903" height = "508" background image = "@ embed (source = 'picture / main background page')" & Gt; & Lt; Mx: label x = "483" y = "166" label = "Welcome to our site" / & gt; & Lt; Mx: select date x = "229" y = "166" />  

Show the home page canvas if you click the Home button How can I apply? Or

between script tags

  Public static institution house: number = 0; Public fixed contract contact: number = 1;  

You can use a view-stack to display different views and MyStack. The selected index is just a number, but I like to do this with the static value so that you have to change it to only one place. If anything changes

  & lt; Mx: link button label = "home" click = "{myStack.selectedIndex = HOME}" /> & Lt; Mx: viewstakes id = "mystacks" creation policy = "auto" width = "100%" height = "100%" & gt; & Lt; View: Home / & gt; & Lt; View: Contact / & gt; & Lt; / Mx: viewstack & gt;  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -