2 Replies Latest reply on Dec 21, 2007 7:43 AM by ben_marker

    Newbie flex issue w/ addChild

      Why am I getting an error for addChild()?
      "1180: Call to a possibly undefined method addChild."

      I"m completely lost, because I never had an addChild problem in Flash... Only inside of a Flex Component.

      package comps
      import flash.display.*;
      import mx.core.MovieClipLoaderAsset;
      import mx.core.MovieClipAsset;
      import mx.core.Container;

      public class AudioPlayer
      [Embed(source="images/audio_controls.swf", symbol = "audioControllerFinal")]
      var AControl:Class;
      var aCon:*;
      public function AudioPlayer():void
      aCon = new AControl();