Guest User

Untitled

a guest
Jan 19th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. package
  2. {
  3. import com.asual.swfaddress.SWFAddress;
  4. import com.asual.swfaddress.SWFAddressEvent;
  5.  
  6. import flash.display.Sprite;
  7. import flash.display.StageAlign;
  8. import flash.display.StageScaleMode;
  9.  
  10. public class SWFAddressExample extends Sprite
  11. {
  12. public function SWFAddressExample()
  13. {
  14. //Stage instellen
  15. stage.align = StageAlign.TOP_LEFT;
  16. stage.scaleMode = StageScaleMode.NO_SCALE;
  17.  
  18. var sw:TaalSwitch = new TaalSwitch();
  19. addChild(sw);
  20.  
  21. SWFAddress.addEventListener(SWFAddressEvent.CHANGE, getAddress);
  22. SWFAddress.setValue("UWMOEDER");
  23. }
  24.  
  25. protected function getAddress(event:SWFAddressEvent):void
  26. {
  27. var waarde:String = SWFAddress.getValue();
  28. trace(waarde);
  29. }
  30. }
  31. }
Add Comment
Please, Sign In to add comment