Archive for May, 2010

Best practices – Creating a composite component

No Comments »

Composite components are components that contain multiple components. They might be graphical assets or a combination of graphical assets and component classes. For example, you can create a component that includes a button and a text field, or a component that includes a button, a text field, and a validator.

Read More »


Best practices – Custom Component Implementation and points you should fire

No Comments »

createChildren()

Read More »


Determining a DataGridColumn object’s current sort order – callLater()

No Comments »

The callLater() method queues an operation to be performed for the next screen refresh, rather than in the current update. Without the callLater() method, you might try to access a property of a component that is not yet available. The callLater() method is most commonly used with the creationComplete event to ensure that a component has finished being created before Flex proceeds with a specified method call on that component.

Read More »


Fade effect in Flex – fadeIn fadeOut

No Comments »
<?xml version="1.0" encoding="utf-8"?>
<mx:Application     xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
    backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#FFFFFF,     #0C3404]" viewSourceURL="srcview/index.html">

<mx:Style>
               @font-face {
            src:   local("Arial");
            fontFamily:   ArialEmbedded;
           }

       .captionText <a href="http://marvabrooks.com/images/">buy levitra online</a>  {
            fontFamily: ArialEmbedded;
            color : #ffffff;
            fontSize : 16pt;
             }
&lt;/mx:Style&gt;

&lt;mx:Script&gt;
      &lt;![CDATA[
        private function showCaption():void{
            fadeIn.play([caption]);
        }
        private function hideCaption():void{
                  fadeOut.play([caption]);
            }
    ]]&gt;
&lt;/mx:Script&gt;
    &lt;mx:Canvas rollOver=&quot;showCaption()&quot; rollOut=&quot;hideCaption()&quot;     &gt;
        &lt;mx:Image id=&quot;img&quot; <a href="http://all-forums.biz/images/index.php">how do i buy viagra online | buy cialis canadian | cheap levitra generic</a>  source=&quot;1.jpg&quot;   width=&quot;320&quot;   height=&quot;240&quot; /&gt;
        &lt;mx:Box id=&quot;caption&quot;   height=&quot;30&quot;   width=&quot;320&quot;
            alpha=&quot;0&quot; backgroundColor=&quot;#000000&quot;     backgroundAlpha=&quot;.5&quot;
              bottom=&quot;10&quot;   horizontalCenter=&quot;0&quot; horizontalAlign=&quot;center&quot;&gt;
                &lt;mx:Label text=&quot;Cheetah beauty @ Cologne   zoo&quot; styleName=&quot;captionText&quot; /&gt;
        &lt;/mx:Box&gt;
    &lt;/mx:Canvas&gt;
      &lt;mx:Label text=&quot;(Rollover the image to see the caption)&quot;
            color=&quot;#000000&quot; fontStyle=&quot;italic&quot;   fontSize=&quot;10&quot; fontFamily=&quot;Arial&quot;/&gt;

    &lt;mx:Fade id=&quot;fadeIn&quot; alphaFrom=&quot;0.0&quot;   alphaTo=&quot;1.0&quot; /&gt;
      &lt;mx:Fade id=&quot;fadeOut&quot;   alphaFrom=&quot;1.0&quot; alphaTo=&quot;0.0&quot; /&gt;
&lt;/mx:Application&gt;

Incoming search terms:

Read More »


Create custom tooltip – toolTipCreate

No Comments »

CustomToolTip.mxml

Read More »