Re: [Flashcoders] loop and Timer problem?????????

2011-08-30 Thread nasim hhhhh
thx --- On Mon, 8/29/11, Kerry Thompson al...@cyberiantiger.biz wrote: From: Kerry Thompson al...@cyberiantiger.biz Subject: Re: [Flashcoders] loop and Timer problem? To: Flash Coders List flashcoders@chattyfig.figleaf.com Date: Monday, August 29, 2011, 6:28 PM The timer isn't

RE: [Flashcoders] loop and Timer problem?????????

2011-08-29 Thread Cor
1. You call the function but your timer does not exist 2 your Boolean never get true so your loop in infinite. Try this: var forsate,generalFlag:Boolean; var counter:int=0; var generalTimer:Timer=new Timer(10); testhalgheh(); function generalfunc(e:TimerEvent=null):void {

RE: [Flashcoders] loop and Timer problem?????????

2011-08-29 Thread nasim hhhhh
;         }     should work but the test show the flag doest get true why is that the timer shoudl work independently --- On Mon, 8/29/11, Cor c...@chello.nl wrote: From: Cor c...@chello.nl Subject: RE: [Flashcoders] loop and Timer problem? To: 'Flash Coders List' flashcoders

RE: [Flashcoders] loop and Timer problem?????????

2011-08-29 Thread Cor
it stays true --- On Mon, 8/29/11, Cor c...@chello.nl wrote: From: Cor c...@chello.nl Subject: RE: [Flashcoders] loop and Timer problem? To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com Date: Monday, August 29, 2011, 2:01 PM 1. You call the function but your timer does not exist 2

RE: [Flashcoders] loop and Timer problem?????????

2011-08-29 Thread Cor
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of nasim h Sent: maandag 29 augustus 2011 20:29 To: Flash Coders List Subject: RE: [Flashcoders] loop and Timer problem? in main i call testhalgheh(); so inside it timer will start it stuck in loop untill it get true in logic I

RE: [Flashcoders] loop and Timer problem?????????

2011-08-29 Thread Cor
TRY THIS: var forsate,generalFlag:Boolean; var counter:int=0; var generalTimer:Timer=new Timer(1); generalTimer.addEventListener(TimerEvent.TIMER,generalfunc); //NOW IT IS SET //UN COMMENT THE LINE BELOW TO NOTICE THE DIFFENCE //generalFlag=true; testhalgheh(); function

RE: [Flashcoders] loop and Timer problem?????????

2011-08-29 Thread nasim hhhhh
c...@chello.nl Subject: RE: [Flashcoders] loop and Timer problem? To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com Date: Monday, August 29, 2011, 2:44 PM TRY THIS: var forsate,generalFlag:Boolean; var counter:int=0; var generalTimer:Timer=new Timer(1

RE: [Flashcoders] loop and Timer problem?????????

2011-08-29 Thread Cor
To: Flash Coders List Subject: RE: [Flashcoders] loop and Timer problem? I Cant understad why is that when the timer start it should work independence any thing but it wait for finish th loop can u explain the timer and loop i know them but i cant understand how they work and has

Re: [Flashcoders] loop and Timer problem?????????

2011-08-29 Thread Ktu
augustus 2011 21:27 To: Flash Coders List Subject: RE: [Flashcoders] loop and Timer problem? I Cant understad why is that when the timer start it should work independence any thing but it wait for finish th loop can u explain the timer and loop i know them but i cant

Re: [Flashcoders] loop and Timer problem?????????

2011-08-29 Thread John R. Sweeney Jr.
We can see why this approach doesn't work, but maybe if you said what your trying to accomplish, then a working solution could be offered. John On Aug 29, 2011, at 3:18 PM, Ktu wrote: A stack needs to finish and a new frame needs to enter for the Timer to actually dispatch its

Re: [Flashcoders] loop and Timer problem?????????

2011-08-29 Thread Kerry Thompson
/11, Cor c...@chello.nl wrote: From: Cor c...@chello.nl Subject: RE: [Flashcoders] loop and Timer problem? To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com Date: Monday, August 29, 2011, 2:44 PM TRY THIS: var forsate,generalFlag:Boolean; var counter:int=0; var