Thanks for the suggestion. Actually i find a solution, in the override public function set preloader(preloader:Sprite):void { this.customPreloader = preloader preloader.addEventListener(FlexEvent.INIT_COMPLETE,myHandleInitEnd); preloader.addEventListener(FlexEvent.INIT_PROGRESS, myHandleInitProgress); } I am using the customPreloader.visible = false to hide the progressbar.
Thanks ilikeflex --- In flexcoders@yahoogroups.com, "Haykel BEN JEMIA" <hayke...@...> wrote: > > To hide the progress bar you should override the progress handler with an > empty function (or add your own code to show the progress). > > Haykel Ben Jemia > > Allmas > Web & RIA Development > http://www.allmas-tn.com > > > > > On Wed, Dec 10, 2008 at 9:23 AM, ilikeflex <ilikef...@...> wrote: > > > Hi > > > > I am using the preloader in my application. I have override the below > > method. > > > > // Define the event listeners for the preloader events. > > override public function set preloader(preloader:Sprite):void > > { > > preloader.addEventListener > > (FlexEvent.INIT_COMPLETE,myHandleInitEnd); > > > > } > > > > // Event listeners for the FlexEvent.INIT_COMPLETE event. > > private function myHandleInitEnd(event:Event):void { > > Alert.show("Yahooooooooooo"); > > } > > > > I want this Alert should come in front of DownloadProgressBar. If i > > run above code then Alert is hidden behind the DownloadProgressBar. > > Secondly if we can hide the DownloadProgressBar that will be awesome. > > > > Any pointers will be highly appeciated. I tried using visible=false > > but it does not work. > > > > Thanks > > ilikelfex > > > > > > >