Hi there

When you try to play a little with Effects like WipeDown in MenuBar Flex
doesn't work properly, So here's a full example of that.
It was to start showing the effect when I click it not when it's showed.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute">
<mx:Script>
   <![CDATA[
       import mx.effects.easing.Elastic;
   ]]>
</mx:Script>
<mx:WipeDown id="efeito" duration="10000" target="{meuMenu}"
moveEasingFunction="Elastic.easeOut"/>
   <mx:MenuBar rollOverColor="#505050" mouseDownEffect="{efeito.play()}"
selectionColor="#ffffff" backgroundColor="#3f3f3f" fillAlphas="[1,1]"
fillColors="[0x3f3f3f, 0x000000]" color="#cccccc" id="meuMenu"
labelField="@label" dataProvider="{de_}" width="100%"/>
               <mx:XMLList id="de_">
                   <menuitem label="Gestor" >
                       <menuitem label="Gestor subItem-1" enabled="False"/>
                        <menuitem label="Gestor SubItem-2"/>
                   </menuitem>
                   <menuitem label="Editar" selected="true">
                       <menuitem label="Formatar Fonte"/>
                       <menuitem label="Procurar"/>
                       <menuitem label="Recortar"/>
                       <menuitem label="Colar"/>
                   </menuitem>
                   <menuitem label="Biblioteca">
                       <menuitem label="Abrir Biblioteca" type="radio"
groupName="one"/>
                       <menuitem label="Procurar na Biblioteca"
type="radio" groupName="one" selected="true"/>
                       <menuitem label="Subitem-3" type="radio"
groupName="one"/>
                   </menuitem>
               </mx:XMLList>
</mx:Application>



So, Anyone had the same problem before?


Regards.


--
----------------------------
Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta

Reply via email to