This reproduces the error: 
 
package { 
        import flash.display.MovieClip; 
        import Star; 
        public class App extends MovieClip { 
                public function App() { 
                        trace('app'); 
                        Star(); 
                } 
        } 
} 
 
This fixes it: 
 
package { 
        import flash.display.MovieClip; 
        import Star; 
        public class App extends MovieClip { 
                private var _star:Star; 
                public function App() { 
                        trace('app'); 
                        _star = new Star(); 
                } 
        } 
} 
 
Regards,

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net


> -----Original Message-----
> From: [email protected] [mailto:flashcoders-
> [email protected]] On Behalf Of Susan Day
> Sent: Thursday, March 04, 2010 10:03 AM
> To: Flash Coders List
> Subject: [Flashcoders] Problem Importing Class
> 
> Hi;
> I have this line in the importing package:
> 
> import Star;
> 
> and this in the function of the same package:
> 
> Star();
> 
> Star package has this code:
> 
> package
> {
> import flash.display.MovieClip;
>  public class Star extends MovieClip
> {
>  public function Star()
> {
> trace('star');
> }
> }
> }
> When I run the importing package, I get this error:
> 
> 1136 Incorrect number of arguments. Expected 1. Star.as
> 
> What argument is it expecting?!
> TIA,
> Susan
> _______________________________________________
> 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