This content has been marked as final. Show 6 replies
There are many ways you can approach this. You could use button components, but reskin them, or images in a grid would work, or the face of the phone could be a single image that you watch for click events and then check the coordinates of the pointer on a click.
I liek your idea of having multiple images in a grid. I think that would be the best bet as you mentioned. Having one big picture would be hard to distinguish the sub-areas with mouse coordinates. I think checking the coordinates for the mouse would be very tedious because I would have to check for the left boundary, the right, top, and bottom for each sub-area!
What do you mean by using button components and reskinning. Is this simply using buttons and changing the way they look? I'm just trying to save time and memory, because if I had a 10 by 10 grid, thats a hundred buttons. Wouldn't that slow down the machine alot? And for that matter wouldn't having a grid of 10 by 10 images also by the same deal?
Thanks for the input, I'm just trying to find the most efficient way to do it.
Aynone have an opinion over this?
Thanks for the tip, this works perfectly, but I have a small problem:
When using the ImageMap component that is part of flexlib, how can I use ActionScript to set the values of the area coordinates, shape, alt, etc? Below is sample code.
At this link they use MXML: