Posted By

madra on 10/10/07


Tagged

textmate oop Objects api graphic Drawing addChild


Versions (?)

drawing in a new object


 / Published in: ActionScript
 

  1. // import necessary classes
  2. import flash.display.DisplayObject;
  3. import flash.display.Graphics;
  4. import flash.display.Shape;
  5. import flash.display.Sprite;
  6.  
  7. // instantiate object
  8. yaddayadda = new objectname();
  9.  
  10. // importinkt! - you need to attach it to the drawing layer
  11. // otherwise its content willnae show up
  12. this.addChild(yaddayadda);

Report this snippet  

You need to login to post a comment.