Voila j'ai un souci pour faire la liaison entre les boutons,
champtext etc... definie dans mon fichier mxml :
CODE
<mx:Application creationComplete="init()" xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="100%" height="603">
<mx:Script><![CDATA[
import Pixlp.Admin
public function init():void {
var myApp:Admin = new Admin()
}
]]></mx:Script>
<mx:ViewStack id="loginPage" width="768" height="585" borderStyle="none" horizontalCenter="0" verticalCenter="1">
<mx:Canvas label="View 1" width="100%" height="100%">
<mx:Form width="280" height="122" horizontalCenter="0" verticalCenter="0">
<mx:FormItem label="Login">
<mx:TextInput id="_login"/>
</mx:FormItem>
...
<mx:Script><![CDATA[
import Pixlp.Admin
public function init():void {
var myApp:Admin = new Admin()
}
]]></mx:Script>
<mx:ViewStack id="loginPage" width="768" height="585" borderStyle="none" horizontalCenter="0" verticalCenter="1">
<mx:Canvas label="View 1" width="100%" height="100%">
<mx:Form width="280" height="122" horizontalCenter="0" verticalCenter="0">
<mx:FormItem label="Login">
<mx:TextInput id="_login"/>
</mx:FormItem>
...
Et ma classe Admin.as :
CODE
public class Admin {
public var _login:TextInput
public function Admin() {
this._login = new TextInput()
this._login.text = "lionel"
}
...
public var _login:TextInput
public function Admin() {
this._login = new TextInput()
this._login.text = "lionel"
}
...
faut il utiliser la composition comme en flash
j'avoue je ne sais pas trop
Merci d'avance
