PDA

View Full Version : How to add icons in Flex


weiyuqiao
03-17-2009, 09:16 AM
Hi all,

I'm new in flex and know little about that.Now I want to have a library.The user can choose an icon from the library,such as a tree,or a little house.He can add this icon in a map(for example),and can move it freely by using the mouse.

My question is if there is a library available to use? If not,can I add the icons (for example) of Visio into my application,or I must create the icons by myself?

Thank you very much if you can give me some advice.

Bombdogs
03-17-2009, 01:50 PM
Looks like you've got some learning ahead of you. Here's a couple of pointers to get you started...

1) Library - look into "List based controls", one of those should suit your needs. You can include images in your lists, look up "custom itemRenderers".

2) Icons - you can include external images, look into "embedding images" into your flex applications.

PMF

weiyuqiao
03-18-2009, 03:19 AM
You got it:I've got some learning ahead...

whatever,thank you!!