Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > AIR (Apollo)

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-21-2007, 02:14 AM   #1
Zillosophy
Registard
 
Join Date: Jun 2004
Location: Dayton, OH
Posts: 79
Default Custom classes with Imports = 1046: Non-CTC:SimpleButton

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..
Zillosophy is offline   Reply With Quote
Old 02-11-2008, 02:15 AM   #2
aamenabar
ASorg learner
 
aamenabar's Avatar
 
Join Date: Nov 2005
Location: Santiago, Chile
Posts: 264
Default

DUDE! thanks! I was going nuts also.
Thanks for the edit.
__________________
We are here to learn
aamenabar is offline   Reply With Quote
Old 04-27-2008, 12:33 AM   #3
bingomanatee
Registered User
 
Join Date: Apr 2008
Posts: 1
Red face SimpleButton is a flash.display class

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.*".
bingomanatee is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 06:46 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.