Guest User

Untitled

a guest
Jun 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. package
  2. {
  3. import flash.display.Bitmap;
  4. import flash.display.MovieClip;
  5. import flash.display.Sprite;
  6.  
  7. import reflex.behaviors.TouchScrollBehavior;
  8. import reflex.components.Scroller;
  9. import reflex.containers.Application;
  10.  
  11. [SWF(backgroundColor="#FFFFFF", frameRate="31", width="1200", height="800")]
  12. public class ReflexExamplesAS3 extends Application
  13. {
  14.  
  15. [Embed(source="../bin/assets/images/475159790_7da9daa6d2_o.png")]
  16. private var imgCls:Class;
  17.  
  18. private var scroller:Scroller;
  19.  
  20. public function ReflexExamplesAS3()
  21. {
  22.  
  23. scroller = new Scroller();
  24. scroller.width = 200;
  25. scroller.height = 200;
  26. scroller.x = 20;
  27.  
  28. scroller.content = [new imgCls() as Bitmap];
  29. scroller.behaviors.addItem(new TouchScrollBehavior());
  30. this.content = [scroller];
  31.  
  32. }
  33. }
  34. }
Add Comment
Please, Sign In to add comment