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

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{
            
            
      }
}
LVL 4
drxavAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
drxavConnect With a Mentor Author Commented:
its ok crisis over, i left out "public" in the class dec sorry and thanks
0
 
DreammonkeyCommented:
shouldn't you add :

import advComboBox;

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

Regards,
D
0
 
drxavAuthor Commented:
Nope, not needed cause their in the same folder, tried it anyway tho just incase, didnt work ;)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.