FLEX: how to better align my Tile component to the puppet (and how to solve roll over out effects) ?
Posted
by Patrick
on Stack Overflow
See other posts from Stack Overflow
or by Patrick
Published on 2010-05-04T19:35:45Z
Indexed on
2010/05/04
19:38 UTC
Read the original article
Hit count: 184
hi,
At the moment my Puppets are larger on the left if I add them the <mx:Tile>
component (with tags): http://dl.dropbox.com/u/72686/puppets.png
how can I move my Tile component to the right ? In order to align with the left border of my puppets ?
<mx:Tile id="tagsPopup" width="200" visible="false" >
<mx:LinkButton label="Tag1" />
<mx:LinkButton label="Tag2" />
<mx:LinkButton label="Tag3" />
<mx:LinkButton label="Tag4" />
</mx:Tile>
<mx:VBox verticalGap="0">
<mx:Image id="puppet" source="@Embed(source='../icons/userIcon.png')" />
<mx:Label id="username" text="Nickname" visible="false" fontWeight="bold" />
</mx:VBox>
2nd Question: I want to add objects on top of the puppets, some of them are visible only when the mouse is over, and they are overlying the ones are permanently visible.
How do you suggest to implement it ? I was thinking to add in MXML all visible elements and then use Actionscript to add the fade in fade out components.
However I just realize it is quite tricky, because I want the user select for example tag1, tag2 and tag3, with the mouse. Instead now they disappear when the mouse rolls out from the puppet image.
Any guideline ?
thanks
© Stack Overflow or respective owner