Solved

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

Posted on 2008-06-24
3
3,630 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
Comment Utility
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
Comment Utility
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
Comment Utility
its ok crisis over, i left out "public" in the class dec sorry and thanks
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to how to record live broadcast.
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.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now