Groups | Blog | Home
all groups > flash exchange extensions > december 2005 >

flash exchange extensions : Creating component the MM way.


Dimitar
12/3/2005 8:40:35 PM
Hi.

As we need to create a small set of components I digged into mx.controls,
mx.core, etc. to understand the exact and proper way of MM for creating their
components.
There are many examples of creating components but as there are many ways to
create such, most of them are very creative and even exotic :-)

I am trying to use the MM way and logic for Flash components and combining
them with the same way to create Flex 2/AS3 components.

Well, I am stuck. I went to check all the things needed to create a checkbox
similar to mx.controls.CheckBox one. The MCs used for the different icon states
(over, up, down, disabled, etc. are into the library and the proper linkages
are assigned.
But through the whole chain of creating a CheckBox (CheckBox ->Button
->SimpleButton -> UIComponent -> UIObject -> MovieClip) I couldn't find in any
place a way how they assign these movieclips visually. As far as I know there
is only one and one only way to assign a library MC object at runtime - using
attachMovie(). I couldn't see any of this in their code.
Somehow it comes from the styling functions and they are assigned
automatically, but HOW?

Does someone know a similar way/example for creating a component the way MM is
using and do I miss something in the code?

Any ideas?

Thanks,

Dimitar
carlos pires
12/12/2005 4:38:10 PM
Hi.
You're right about attachMovie(), but that's for MovieClips. Maybe your answer
lies in the createClassObject() method of the UIComponent class: that's for
creating Components in runtime. At least that's what I've understood so far.
Check this
http://www.macromedia.com/devnet/flash/articles/footer_component_06.html.
mleder4
12/28/2005 1:58:40 PM
Same problem here. I have Flash Pro 8. The Extension Manager is 1.7. I've
uninstalled it, run a registry cleaner, rebooted, and reinstalled. The EM sees
DW8 and Fireworks 8, but does not see Flash Pro 8. Not even a grayed out menu
selection for "Manage Extensions" in Flash Pro 8.
mleder4
12/28/2005 1:59:24 PM
I see dead people
1/6/2006 6:28:17 PM
I've run into the same problem as well. But I have found a fix for it. Just
open Flash 8 first and click on "Help / Manage Extensions". That will bring up
the Extension Manager and now Flash 8 will show up. This problem started when
I uninstalled my old Flash MX 2004 suite.

Later

Paul Nevins
AddThis Social Bookmark Button