PDA

View Full Version : custom component



lac
October 17th, 2003, 01:08 PM
Hi All,

I have done a search and not found exactly what I was looking for so here goes.

I am trying to build a component based on a class where when you enter a label at design time (in the properties panel), it displays on the component on the stage.

This is done in all the FUI Components that have labels and I was wondering if any one knows which part of the code does this. I have spent a couple of days trying to figure out what the code does, but it 's pretty complicated.:hangover:

Any help, tutorials etc. gratefully accepted. :D

Liz

lostinbeta
October 17th, 2003, 02:20 PM
Building your own components is NOT easy. You have to have knowledge in Object Oriented Programming (OOP) and various other things.

Here are tutorials on building your own components...
http://www.flashcomponents.net/tutorials.cfm?nav=4

Specifically this one to start off with:
http://www.flashcomponents.net/tutorials/triangle/triangle.html

I have never built a component so this is as far as I take you.

lac
October 17th, 2003, 02:25 PM
Lostinbeta,


Thank you very much for the links. Time to give myself a headache I think ;)

Liz

lostinbeta
October 17th, 2003, 03:54 PM
Well OOP always gives me 3 headaches and a migrain, so if I were you I recommend a full bottle of Asprin next to you. :thumb:

senocular
October 17th, 2003, 03:59 PM
the part where it displays it on the stage is part of its live preview. They often take as long to make as the component itself... I beleive there are some tutorials on that in the site that lost linked ;)

ahmed
October 17th, 2003, 03:59 PM
look at this too :)

http://www.kirupaforum.com/forums/showthread.php?threadid=27900&highlight=component

lac
October 17th, 2003, 04:09 PM
Thanks for all the pointers guys.

Well, I guess it's off to play component :ch: :P

Liz