Link to home
Start Free TrialLog in
Avatar of drxav
drxavFlag for Australia

asked on

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{
            
            
      }
}
Avatar of Dreammonkey
Dreammonkey
Flag of Belgium image

shouldn't you add :

import advComboBox;

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

Regards,
D
Avatar of drxav

ASKER

Nope, not needed cause their in the same folder, tried it anyway tho just incase, didnt work ;)
ASKER CERTIFIED SOLUTION
Avatar of drxav
drxav
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial