package{

   public class Main extends MovieClip
   {
      //Import Library Assests
                public var myThumb:CloseThumb;

      public function Main()
      {
         init();

      }

      public function init():void
      {
                        theThumb();
      }

               public function theThumb():void
                {
                        myThumb = new CloseThumb():
                        myThumb.x = 300;
                        myThumb.y = 350;
                        addChild(myThumb);
                }
   }
}




}



-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of beno -
Sent: zaterdag 23 januari 2010 19:01
To: Flash Coders List
Subject: [Flashcoders] A Simple Problem

Hi;
I have this code:

   public class Main extends MovieClip
   {
      //Import Library Assests
                public var myThumb:CloseThumb;

      public function Main()
      {
         init();

      }

      public function init():void
      {
                        theThumb();
      }

               public function theThumb():void
                {
                        myThumb = new CloseThumb():
                        myThumb.x = 300;
                        myThumb.y = 350;
                        addChild(myThumb);
                }
   }
}

It throws this error:

1078: Label must be a simple identifier.

I've added mcCloseThumb into the library of the fla. I've edited the
Preferences for the same to export for AS and labeled the class
"CloseThumb". What did I do wrong?
TIA,
beno
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.730 / Virus Database: 271.1.1/2639 - Release Date: 01/22/10
20:33:00

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

Reply via email to