To fit the Adobe Window Application in the desktop you need to call the below script in the applicationComplete event.
ie
In mxml file
applicationComplete="init()"
In the script add the below function
private function init():void
{
this.nativeWindow.maximize();
}
Flex action scripting, Zend AMF , Audio/Video Player, IBM ILOG Calendar, Cairngorm Framework
Calculate Audio play progressing time
private var sound:Sound = new Sound()
private var channel:SoundChannel = new SoundChannel();
sound.addEventListener(ProgressEvent.PROGRESS, onProgress);
private function onProgress(event:ProgressEvent):void{
var percentLoaded:Number = event.bytesLoaded / event.bytesTotal;
var approxProgress:Number
= channel.position / sound.length * percentLoaded;
// Update your progress bar based on approxProgress
}
private var channel:SoundChannel = new SoundChannel();
sound.addEventListener(ProgressEvent.PROGRESS, onProgress);
private function onProgress(event:ProgressEvent):void{
var percentLoaded:Number = event.bytesLoaded / event.bytesTotal;
var approxProgress:Number
= channel.position / sound.length * percentLoaded;
// Update your progress bar based on approxProgress
}
How to add Browser window page title in Flex
mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" pageTitle="MyFirstPageTitle"
How to check whether the flex array is not empty
We can check by using array length.
ie. array.length > 0
ie. array.length > 0
Subscribe to:
Posts (Atom)