Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2008-06-24
3
Medium Priority
?
3,662 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

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 live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

722 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