Ok, so I got the component thing running more or less. I now have a
dozen of components (all using the same assets - such as bevels
etc.). I only got a couple of problems to iron out. My components,
though, do not inherit from UIObject (or other MM classes) - I try to
avoid that to allow compilation with MTASC in th future without
attachment to Flash IDE.
First of all is the whole resizing business. I have to both resize
the component in the init code and in the setSize - I still don't
understand the relationship between the two. Right now how I have to
do it:
function initComponent():Void {
// bla bla
// rearrange components based on the new _width and _height
}
function setSize(nWidth:Number, nHeight:Number):Void {
// bla bla
// rearrange components based on the new _width and _height AGAIN
}
This is te only approach that works.
The second problem is exporting SWC. Some SWCs work after export,
some others don't. One, for instance, shows nothing on the Stage when
included in another file, but works beautifully - the other shows up
OK on the Stage but looks like in the authoring environment upon
exporting. When I drag the symbols from my main document (where all
the widgets get created) the work and show up fine. I wonder if there
is some good documentation about creating SWCs somewhere, or if
csomeone can explain to me what am I doing wrong.
--
Julian 'Julik' Tarkhanov
please send all personal mail to
me at julik.nl
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com