6 Replies Latest reply on Oct 17, 2010 4:00 PM by Shongrunden

    problem with fadeIn

    david1113

      I have the following piece of code and am trying to create a simple fadeIn with embedded text, but nothing happens when I click on the NavigatorContent, which is a tab.

       

      <s:NavigatorContent label="Work History" width="100%" height="100%" click="navigatorcontent1_clickHandler(event)">

      <s:Label x="10" y="10" fontFamily="MyArial" fontSize="14" visible="false" text="work history content" showEffect="{fadeIn}" />

       

      </s:NavigatorContent>

       

      <fx:Declarations>

      <s:Fade id="fadeIn" duration="1000" alphaFrom="0.0" alphaTo="1.0"/>

      </fx:Declarations>

       

      Should I be using a click attribute on the NavigatorContent to call a function to fade in the text?