topical media & game development
actionscript-misc-linkage-eas3_linkage_symbol_to_class-LoginForm.ax
actionscript-misc-linkage-eas3_linkage_symbol_to_class-LoginForm.ax
(swf
)
[ flash
]
flex
package {
import flash.display.*;
import flash.text.*;
import flash.events.*;
public class actionscript-misc-linkage-eas3_linkage_symbol_to_class-LoginForm extends Sprite {
public function actionscript-misc-linkage-eas3_linkage_symbol_to_class-LoginForm () {
submitBtn.addEventListener(MouseEvent.CLICK, submitListener);
}
private function submitListener (e:MouseEvent):void {
submit(username.text, password.text);
}
public function submit (name:String, pass:String):void {
trace("Now submitting user: " + name + " with password: " + pass);
// Now transmit login information to server (code not shown).
// Typically, the flash.net.URLLoader class is used to send
// data to a server.
}
}
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.