Solved

1046: Type was not found or was not a compile-time constant: AdvComboBox.

Posted on 2008-06-24
3
3,639 Views
Last Modified: 2013-11-11
I am having a really off day... :(

the error i am getting is: 1046: Type was not found or was not a compile-time constant: AdvComboBox. on the first line of test.fla

cant figure out why something as basic as this is playing up on me... any help?

(both the files are in the same directory)

content of test.fla:

var fontComboBox:AdvComboBox = new AdvComboBox();

addChild(fontComboBox);




content of AdvComboBox.as

package{
      import fl.controls.*;
      class AdvComboBox extends ComboBox{
            
            
      }
}
0
Comment
Question by:drxav
  • 2
3 Comments
 
LVL 8

Expert Comment

by:Dreammonkey
ID: 21862427
shouldn't you add :

import advComboBox;

or something like it as the first line of the .fla?

Regards,
D
0
 
LVL 4

Author Comment

by:drxav
ID: 21862439
Nope, not needed cause their in the same folder, tried it anyway tho just incase, didnt work ;)
0
 
LVL 4

Accepted Solution

by:
drxav earned 0 total points
ID: 21862490
its ok crisis over, i left out "public" in the class dec sorry and thanks
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Action Script commands 3 218
Adobe Flash Player - PPAPI plugin 6 645
Animating text  - electrons orbit around letter M 12 79
Include Adobe AIR libraries in Flash Builder 4 121
This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question