1 Reply Latest reply on Jul 14, 2007 5:20 PM by Handycam

    Roll Over problem

      Hi I made this little component, please.
      My goal: I want that the internal canvas appears when I roll over the bigger canvas and I want to put some buttons in the inside canvas, as the example below.
      The problem:
      When i go over the buttons with the mouse, it blinks, how do I stop it? :D
      thank you.

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Canvas xmlns:mx=" http://www.adobe.com/2006/mxml" width="206" height="184"
      mouseOver="currentState='rollIt'" mouseOut="currentState=''">
      <mx:State name="rollIt">
      <mx:SetProperty target="{little}" name="alpha" value="1"/>
      <mx:Image x="33" y="11" source="categories/tamburi.jpg" width="140" height="107"/>
      <mx:Label height="20" text="{data.@price} €" x="77.5" y="126" id="price"/>
      <mx:HBox id="little" backgroundColor="red" alpha="0" width="100%" bottom="0" height="10%"
      <mx:Button id="button2"/><mx:Button id="button1"/>
        • 1. Re: Roll Over problem
          Handycam Level 1
          I'm not sure i fully understand, but I think it would be better to "delete" the hbox in the rollit state, using RemoveChild.

          You can do this in design mode, just make the new state active and delete the hbox. When you switch back to the base state, it's still there.