Sorry Guys My mistake , i fixed that. there was no problem with the timer class, actually i am using this code in between of frames and forgot to put the stop frame. Ir's up and running now Thanks Anuj
On Fri, Oct 17, 2008 at 5:15 PM, anuj sharma <[EMAIL PROTECTED]> wrote: > Hi All > I am trying to use timer to load 2 different swf files (having pixel > effect).I need little pause before loading another movie. On enter frame it > is loading DVR.swf fine and then i am starting timer to load another > HardDisk.swf file and it is loading the 2nd movie fine but then it is not > stopping the timer, it is puttting both the movies in repeated loop adn keep > on laoding and unloading both of them one by one. After loading the 2nd i > need everythign to be stopped. i I haven't used timer class ever . Can you > guys please help me out in making this thing working .(need these 2 movies > loading one by one after little pause.) > Thanks a lot in advance > Anuj > > /************Here's my Code**********************/ > import fl.containers.UILoader; > > var tBool:Boolean=false; > var tmr:Timer = new Timer(5000); > > var myUILoader:UILoader = new UILoader(); > myUILoader.maintainAspectRatio=false; > myUILoader.scaleContent = true; > myUILoader.width=800; > myUILoader.height=600; > myUILoader.mouseChildren=false; > myUILoader.source = "DVR.swf"; > myUILoader.load(); > addChild(myUILoader); > tmr.start(); > tmr.addEventListener(TimerEvent.TIMER,loadAnother); > > > function loadAnother(event:TimerEvent):void > { > var myUILoader1:UILoader = new UILoader(); > myUILoader1.maintainAspectRatio=false; > myUILoader1.scaleContent = true; > myUILoader1.width=800; > myUILoader1.height=600; > myUILoader1.source = "HardDisk.swf"; > myUILoader1.load(); > addChild(myUILoader1); > if(tmr.running) > { > tmr.stop(); > } > tBool=true; > } > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders