| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registard
Join Date: Jun 2004
Location: Dayton, OH
Posts: 79
|
Ok, so why (in Flash IDE - AIR 1.b3) do I keep getting :
1046: Type was not found or was not a compile-time constant: SimpleButton. for everything (on each import, the class declairation and the constructor method declairation) in a simple class like : Edit: the Class didn't really matter. It was because I had a button within the clip I was trying to apply a custom class upon. Which makes use of the SimpleButton class. I had tried to import that into my class just to make sure but that had no effect. The only way I finally got it stop throwing that error is by setting those buttons to "export to actionscript" or I could have just made a custom button.... man that was driving me (more) nuts. Maybe it's always like this now that I think about it (lol). I hardly ever use the built in buttons in Flash. Last edited by Zillosophy; 12-21-2007 at 06:24 AM.. |
|
|
|
|
|
#2 |
|
ASorg learner
Join Date: Nov 2005
Location: Santiago, Chile
Posts: 264
|
DUDE! thanks! I was going nuts also.
Thanks for the edit.
__________________
We are here to learn |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Apr 2008
Posts: 1
|
The story behind the problem: cs3 ActionScript in many ways enforces objective representation of everything and class library structure. Buttons must be imported into the main movie with an "import flash.display.SimpleButton" command, or a more broad-based "import flash.display.*".
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| creating separate classes for custom event | frank grimes | ActionScript 3.0 | 6 | 06-27-2009 11:55 PM |
| in CS3, how to import custom classes from a SWC-based component? | DrElvisToad | ActionScript 3.0 | 5 | 08-01-2007 04:08 PM |
| Can't Access Custom Classes in my .as File | dewey | ActionScript 2.0 | 23 | 06-16-2006 03:56 PM |
| Custom Classes | Sekka | ActionScript 2.0 | 20 | 02-22-2006 07:18 PM |
| Beginner needs help with Custom Classes | recap | ActionScript 2.0 | 5 | 10-23-2005 02:09 AM |