Manish posted a good article from the Macromedia Devnet Flex site:
http://www.macromedia.com/devnet/flex/articles/creating_comp.html
 
I have yet to go through the article in detail and try it out with my own home-brewed component. From a quick scan it looks quite in depth, but simple.
 
I'll let you know how I get on.
 
Regards,
Simon
 
-----Original Message-----
From: Erik Westra [mailto:[EMAIL PROTECTED]
Sent: 24 March 2005 14:45
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Custom Control Components

I feel u there,
 
I myself want to create components that are fully functional, skinnable and fit right into the V2 architecture. I havent been able to put my head around it yet. I think i found the the same PDF u are talking about (Developing Flex Components and Themes in Flash Authoring) wich i hope gives enough detail.
 
A problem in this matter is that the flow of components (UIObject and UIComponent with their helper classes) is very complex and not easy to understand. And besides that, i couldnt find a document that describes the flow very good (it may be in the PDF though).
 
I understand that this is a complex problem for macromedia as well, as they are familiar with this architecture. Maybe we could provide them with a list of questions regarding the building of components. Questions like:
 
- How can i make a custom component skinnable?
 -- And how does the skinning of components work internally?
- Say i want to build a 'wizard' (next, previous) component, how would u do it?
- I want to make a component with buttons from wich the states are dynamicly loaded images combined with a label. The placement of the label is dependend of the available size of the component. In wich 'hook' would i place the check function. And how would i build a button component with different states?
 
As u can see these are more practical based questions of problems i ran into. Im guessing that more of us developers are having these kind of questions.
 
 
Greetz Erik
 


From: Simon Fifield [mailto:[EMAIL PROTECTED]
Sent: donderdag 24 maart 2005 14:59
To: [EMAIL PROTECTED] Com
Subject: [flexcoders] Custom Control Components

Is it just me, or are custom control (actionscript) components really really difficult to get your head around?
 
I am struggling with just about every aspect of creating custom controls, from deciding what to extend, through sizing/layout, right down to event handling.
 
I have created some custom controls but they have never turned out to be what I really wanted.
 
There is a real lack of documentation about this subject. I've read the Flex Components PDF, and I've read the relevant parts of Developing Flex Apps, but none of these really covers creating components in actionscript from scratch through to more advanced components at reasonable steps. Some of the more basic examples that are given require you to draw a circle in Flash first - I don't want to (and I know I shouldn't) have to use Flash to create a basic custom component.
 
I would like a more in-depth discussion of what the various sizes are - _measuredXXX, preferredXXX, defaultXXX properties etc
A clearer explanation of the instantiation and display order/process.
Perhaps a breakdown of some existing components that have both been built from scratch and has extended other components.
 
Anyone else finding this topic hard going like me?
 
 
Kind Regards,
 
Simon Fifield



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to