
162 Use View States and Transitions
The layout should look similar to the following example:
10. Switch to the editor’s Source mode by clicking the Source button in the document toolbar.
The ViewStates.mxml file should contain the following MXML code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Panel id="panel1" x="5" y="5" width="300" height="400"
layout="absolute">
<mx:Label x="20" y="70" text="Search"/>
<mx:TextInput x="20" y="90"/>
<mx:Button x="185" y="90" label="Go"/>
<mx:LinkButton x="20" y="120" label="Advanced Options"
id="linkbutton1"/>
</mx:Panel>
</mx:Application>
Commenti su questo manuale