Marcos is Currently...

  • @s9i これは見てないでしょ: http://snurl.com/62ibe | 20 hours ago
  • About to present at fitc unconference at max | Yesterday
  • @ Max, keynote is rocking. Our demo is about to go live. | 3 days ago
  • Setting up our demos backstage of MAX. Whole setup and logistics for this event are quite impressive. | 5 days ago
  • lovin' ajax. hacked up a dojo livesearch widget in no time. will post source soon. | 4 weeks ago

Follow Marcos on Twitter

recent photos on flickr

recent trips

news / AS3: attachMovieClip() no more!

« Previous Page 81 of 96 Next »

October 29, 2005

AS3: attachMovieClip() no more!

aaah, "attachMovieClip"... just the sound of it sounds so retro already. plus... the library?! who the heck needs a library anymore? kiss the library bye-bye!! I'm sure we are going to remember these days with a lot of nostalgia.

package {
   import flash.display.MovieClip;
   import flash.display.StageAlign;
   import flash.display.StageScaleMode;
   public class Test extends MovieClip {
      // be sure this is pointing to an image in your hardrive
      [Embed(source='c:\images\whatsup.jpg')] public var MyImage:Class;
      public function Test() {
         stage.align     = StageAlign.TOP_LEFT;
         stage.scaleMode = StageScaleMode.NO_SCALE;
         var img:MyImage = new MyImage();
         addChild(img);
      }
   }
}

this item is tagged as: code /  AS3 / 
« Previous Page 81 of 96 Next »