I would also suggest posting only to one mailing list first. This would help 
ghost threads from being created. Besides, I think most of us are subscribed to 
both and both lists have many helpful people on them to provide you solutions. 

Good luck. 
-----Original Message-----
From: "Paul Freedman" <[email protected]>
Date: Fri, 11 Jun 2010 19:21:55 
To: Flash Coders List<[email protected]>
Subject: [Flashcoders] AS3 newbie question: how can I correct this to make
        an object appear on the stage?

I don't understand why this doesn't work...

I have a MovieClip, "myClass.fla",  with one symbol in the library, "myBox_mc".

Frame 1 of "myClass.fla" has the following actions:

import flash.display.MovieClip;
var myBoxx:MovieClip = MovieClip("myBox_mc");
addChild(myBoxx);

The symbol is exported for ActionScript. Its class remains "myBox_mc". Its base 
class has been changed to "myBoxx".  The classPath has been properly configured 
and ends in the "classes" folder. "myBoxx.as" is in this folder.

The contents of "myBoxx.as" are:

package
{
    import flash.display.MovieClip;
 
 public class myBoxx extends MovieClip
 {
  public function myBoxx(m:MovieClip)
  {
   trace("09myBoxx parent "+this.parent);
   var dmc:MovieClip = m.MovieClip("myBox_mc");
   m.addChild(dmc);
  }
 }
}

When I run this, I get:"Symbol "myBox_mc"    error #1023    No default 
construtor found in base class myBoxx.

I can't find any other example, or any lesson that tells me what's wrong. Any 
help would be greatly appreciated.

Thanks,
- Paul

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to