Solved

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

Posted on 2008-06-24
3
3,646 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

752 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