Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Cannot access fl.controls.Button in Flash Pro CS 5.5 ?

New Here ,
Mar 11, 2012 Mar 11, 2012

I must be missing something obvious, but I've done a couple of hours of searching and haven't found the answer. I'm using Flash Pro CS 5.5, and have created a Main class that is set in the Document's class property.

In the ActionScript editor, it lists a whole bunch of ActionScript 3.0 packages and classes. In particular, it has one called fl.controls. When I try to add this to my import, though, the compiler tells me that the definition for fl.controls.Button (for example) cannot be found. Is there some additional steps (libraries to be linked, paths to be set) that would allow me to use these?

Note that I'm compiling/publishing for Air for iOS.

Any idea what I'm missing?

Thanks

-D

TOPICS
ActionScript
1.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 11, 2012 Mar 11, 2012

whenever you try to use a component (like a Button component), you must have one in your library.  ie, add a Button component to your library.

Translate
Community Expert ,
Mar 11, 2012 Mar 11, 2012

whenever you try to use a component (like a Button component), you must have one in your library.  ie, add a Button component to your library.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 11, 2012 Mar 11, 2012

Thanks. I thought I did have a Button, but based on your message, I looked at the components and found Buttons there as well. I was using something that seemed to be called Button (one of the three basic types of objects: MovieClip, Button and Graphic), but the fl.controls.Button seems to be the ones from the Components page. I had hoped to use the AutoRepeat functionality of the Button class, but it doesn't look like it is part of the MovieClip/Button. I guess I can simulate things with a timer and such.

-D

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 11, 2012 Mar 11, 2012
LATEST

the Button component has an autoRepeat property.  other interactiveobjects do not.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines