Would you like to react to this message? Create an account in a few clicks or log in to continue.


Pakistan is contributing at its best in the field of latest technologies, platforms and approaches. Here,Flex developers share their experience, knowledge and ideas to assure their best talent in the world.

Latest topics
» Advice sought on recruiting a Senior Flex developer in Lahore
Blinking effect Flex Panel EmptyTue May 11, 2010 2:41 pm by anjum

» steam boiler efficency calculator
Blinking effect Flex Panel EmptyWed Dec 23, 2009 4:55 am by imranmalik

» URLLoader and URLRequest application
Blinking effect Flex Panel EmptyTue Dec 15, 2009 6:01 pm by imranmalik

» Time display by ILOG ELIXIER PACKAGE
Blinking effect Flex Panel EmptyThu Dec 10, 2009 9:28 am by imranmalik

» how Filter XML data by Flash Builder
Blinking effect Flex Panel EmptySat Dec 05, 2009 6:33 pm by imranmalik

» drag and drop (Advance Data Grid to List Box)
Blinking effect Flex Panel EmptyThu Nov 19, 2009 7:12 pm by imranmalik

» access the xml file through HTTPService request
Blinking effect Flex Panel EmptySun Nov 15, 2009 11:46 am by imranmalik

» CURRENCY VALIDATOR
Blinking effect Flex Panel EmptyTue Nov 03, 2009 2:06 pm by imranmalik

» Synchronous Behavior
Blinking effect Flex Panel EmptySun Nov 01, 2009 8:04 pm by imranmalik

Social bookmarking
Social bookmarking reddit      

Bookmark and share the address of on your social bookmarking website


You are not connected. Please login or register

Blinking effect Flex Panel

Go down  Message [Page 1 of 1]

1Blinking effect Flex Panel Empty Blinking effect Flex Panel Tue Oct 27, 2009 1:14 pm

saqib.agha

saqib.agha
Admin

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
creationComplete="OnCreationComplete()">
<mx:Script>
<![CDATA[

import flash.utils.Timer;
import flash.events.TimerEvent;

private var tmrSlideShow:Timer = null;
private var bIsWhitePanel:Boolean = false;

public function OnCreationComplete():void
{
changeBackgroundColor(500);
}
public function changeBackgroundColor(nTimeInterval:Number):void
{
tmrSlideShow = new Timer(nTimeInterval,0);
tmrSlideShow.addEventListener("timer", slideShowTimerHandler);
tmrSlideShow.start();
}

public function slideShowTimerHandler(event:TimerEvent):void
{
if(bIsWhitePanel)
{
myPanel.setStyle("backgroundColor","white");
bIsWhitePanel = false;
}
else
{
myPanel.setStyle("backgroundColor","red");
bIsWhitePanel = true;
}

}

]]>
</mx:Script>
<mx:Panel x="10" y="10" width="250" height="200" layout="absolute"
id="myPanel" borderStyle="none">
<mx:Button x="73.5" y="128" label="Click Me..!"/>
</mx:Panel>

</mx:Application>

http://www.intelliscence.com

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum