Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3670
  • Last Modified:

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{
            
            
      }
}
0
drxav
Asked:
drxav
  • 2
1 Solution
 
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
 
drxavAuthor Commented:
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.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now