Weblog


Flex And Flash
What is Flex? Flex is a highly productive, free open source framework for building and maintaining expressive web applications that deploy consistently on all major browsers, desktops, and operating systems.


Simple Flex Effects Example and Simple Flex Image Slideshow (image gallery) with source code

just change the path of image

<mx:Image source="../no_image.png"/>

and put your image path here

<mx:Image source="your image path"/>

*-------------------------------------------------------------------------*

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="930" height="468">

<mx:WipeUp id="wipeOut" duration="1000"/>

<mx:WipeUp id="wipeIn" duration="1000"/>

<mx:Script>

<![CDATA[

import flash.net.navigateToURL;

import mx.controls.Alert;

[Bindable]

private var i:int=0;

private function previous():void

{

if(i==-1)

{

p.visible=false;

}

else

{

i=slideshow.selectedIndex-1;

n.visible=true;

}

}

private function next():void

{

if(i==4)

{

n.visible=false;

}

else

{

i=slideshow.selectedIndex+1;

p.visible=true;

}

}

private function url1():void

{

navigateToURL(new URLRequest('http://www.google.co.in/firefox?client=firefox-a&rls=org.mozilla:en-US:official'),'_blank');

}

]]>

</mx:Script>

<mx:HBox width="693">

<mx:Button label="previous" id="p" click="previous()"/>

<mx:ViewStack width="545" height="402" id="slideshow" selectedIndex="{i}" >

<mx:VBox hideEffect="{wipeOut}" showEffect="{wipeIn}">

<mx:Image source="../no_image.png"/>

<mx:LinkButton label="view site" click="url1()"/>

</mx:VBox>

<mx:VBox hideEffect="{wipeOut}" showEffect="{wipeIn}">

<mx:Image source="../no_image.png"/>

<mx:LinkButton label="view site" click="url1()"/>

</mx:VBox>

<mx:VBox hideEffect="{wipeOut}" showEffect="{wipeIn}">

<mx:Image source="../no_image.png"/>

<mx:LinkButton label="view site" click="url1()"/>

</mx:VBox>

<mx:VBox hideEffect="{wipeOut}" showEffect="{wipeIn}">

<mx:Image source="../no_image.png"/>

<mx:LinkButton label="view site" click="url1()"/>

</mx:VBox>

<mx:VBox hideEffect="{wipeOut}" showEffect="{wipeIn}">

<mx:Image source="../no_image.png"/>

<mx:LinkButton label="view site" click="url1()"/>

</mx:VBox>

</mx:ViewStack>

<mx:Button label="next" id="n" click="next()" />

</mx:HBox>

</mx:Application>

*---------------------------------------------------------*



POSTED BY Abhilash ,WEB and UI Designer AT 7/11/2008 5:24 AM  |  0 COMMENTS  |  POST A COMMENT  |  DIGG IT









MY PROFILE
Name: Abhilash ,WEB and UI Designer
Location: India ,kerala ,cochin ,Aluva ,Kadungalloor
Hi,my name is Abhilash S, I am a web designer and coder from Kerala India. I specialise in web and UI designing ,however my skills set also includes web design and coding/development in standards complient XHTML/HTML, tableless CSS,Adobe Flex . abhilathi[at]gmail[dot]com



certification

RECENT POSTS
Simple Flex Effects Example and Simple Flex Image Slideshow (image gallery) with source code

ARCHIVES
November 27, 2008
November 19, 2008
November 10, 2008
November 06, 2008
October 15, 2008
July 22, 2008
July 14, 2008
July 11, 2008
July 09, 2008
July 02, 2008
June 17, 2008
June 16, 2008
June 13, 2008
June 11, 2008
June 10, 2008
June 06, 2008
May 30, 2008
May 27, 2008
May 22, 2008
January 17, 2008


Search All about Adobe Flex





Technorati Profile
Add to Technorati Favorites