Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package
- {
- import com.asual.swfaddress.SWFAddress;
- import com.asual.swfaddress.SWFAddressEvent;
- import flash.display.Sprite;
- import flash.display.StageAlign;
- import flash.display.StageScaleMode;
- public class SWFAddressExample extends Sprite
- {
- public function SWFAddressExample()
- {
- //Stage instellen
- stage.align = StageAlign.TOP_LEFT;
- stage.scaleMode = StageScaleMode.NO_SCALE;
- var sw:TaalSwitch = new TaalSwitch();
- addChild(sw);
- SWFAddress.addEventListener(SWFAddressEvent.CHANGE, getAddress);
- SWFAddress.setValue("UWMOEDER");
- }
- protected function getAddress(event:SWFAddressEvent):void
- {
- var waarde:String = SWFAddress.getValue();
- trace(waarde);
- }
- }
- }
Add Comment
Please, Sign In to add comment