AS3 Sprites in Flex


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.