Some favorite site feeds aggregated locally: iPhone Development RSS   Adobe Labs RSS   Macrumors RSS

Wednesday, March 11, 2009

Custom ActionScript 3 Components

Wednesday, March 11, 2009   

While in the throes of creating AS3 code libraries, I felt the desire to encapsulate some of it into proper AS3 components that were easy to install, had documentation for them (thanks VisDoc) and had live preview as well as custom component parameter UIs.

I'd made plenty back in the AS2 days (bollocks to you xch), but since those days are long gone, I really wanted to re-learn the process and get working on AS3 components.

There is documentation and information scattered around the web on how to roll all this up properly. It's still an organizational challenge getting things created and ready for packaging, but after some trial and error and googling, I discovered the magic sauce in creating these things without requiring a FLA or using UIComponent.

The process is much better in my opinion in getting these things created and deployed. One of the quirks though is in the custom icon - I've noticed oddities in white or black being keyed as transparent in their display in the component panel. But that's just a nit.

If any are interested, I can report my findings here so you can get your own component factory churning out deployable developmental goodies to the masses. Or maybe this find of mine is just really basic and you've known all about all of this already. I spend 99.9% of my time with code only so getting into components again caused me to have to learn some things all over again.
 
 Return to the main page
Comments:

There are currently 3 Comments:

Anonymous Mark said...
“It'd be cool to see you blog your experience on this and some posts pulling all of the information together on how to do this!!”
 
Blogger zwetan said...
March 11, 2009 6:16 PM
“AFAIK with Flash CS3, if you want to produce a visual component, the only way to generate the SWC is to do it in the IDE, but if you have discoveries to do that on the command-line please share :)

I didn't explored yet but with Flash CS4 there should be a way to do that onthe command-line, now the problem is to know if the SWC will be backward-compatible with CS3.”
 
Blogger Димитър Грудев said...
March 14, 2009 3:50 AM
“yes, it will be helpful !
I agree with comments above.
thankyou in advance”
 
 Leave a comment