Posted By

timstepp on 03/11/09


Tagged

sprite Flex as3 DisplayObject uicomponent


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

tspitzr


AS3 Sprites in Flex


 / Published in: ActionScript 3
 

  1. public class SpriteWrapper extends UIComponent
  2. {
  3. public function SpriteWrapper(s:Sprite)
  4. {
  5. super();
  6.  
  7. explicitHeight = s.height;
  8. explicitWidth = s.width;
  9.  
  10. addChild(s);
  11. }
  12. }

Report this snippet  

You need to login to post a comment.