Copy link to clipboard
Copied
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
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
the Button component has an autoRepeat property. other interactiveobjects do not.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now