Skip to main content
Participant
March 12, 2012
Answered

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

  • March 12, 2012
  • 1 reply
  • 1601 views

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

This topic has been closed for replies.
Correct answer kglad

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.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
March 12, 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.

Participant
March 12, 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

kglad
Community Expert
Community Expert
March 12, 2012

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