Copy link to clipboard
Copied
flash CC on W7. To use 'import fl.controls.Button' on a fla file, I first drag a Button from Library to Screen. How do I use 'import fl.controls.Button' on a class (.as) file where the library is not available?
No. If you are using Button symbols in your library you draw out all the states using Flash Pro. If you simply create the Button programattically, then you draw out all the states via code.
Copy link to clipboard
Copied
You'd have to programmatically draw your own assets for the button. There is an example here:
Copy link to clipboard
Copied
I have a class (.as) file with an ‘import fl.contros.Button’ line. Do you mean that each fla file that includes this class must have a Button component on its library?
Copy link to clipboard
Copied
No. If you are using Button symbols in your library you draw out all the states using Flash Pro. If you simply create the Button programattically, then you draw out all the states via code.