Hi,

Are you sure you are not reading Essential Actionscript 1.0? ;)

Because the code you link to is AS 1.0 and not AS 3.0. You can test the code by changing the Actionscript version to 2.0 or 1.0 in the Publish Settings dialog.

Regards,
Meinaart

----- Original Message ----- From: "ACE Flash" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, May 05, 2008 4:22 PM
Subject: [Flashcoders] Using Function to Create Objects


Hi there, I am reading ActionScript 3 Essential,  there is an example code
shows on page 290. When I tried to run the code, I got an error msg => "
1048: Method cannot be used as a constructor."


http://www.privatepaste.com/dagJFB6kD5

Any Suggestions?

Thanks
_______________________________________________
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