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

2011-08-30 Thread nasim hhhhh
thx --- On Mon, 8/29/11, Kerry Thompson wrote: From: Kerry Thompson Subject: Re: [Flashcoders] loop and Timer problem? To: "Flash Coders List" Date: Monday, August 29, 2011, 6:28 PM The timer isn't completely independent. If there is code executing when it is time f

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

2011-08-29 Thread Kerry Thompson
> --- On Mon, 8/29/11, Cor wrote: > > From: Cor > Subject: RE: [Flashcoders] loop and Timer problem? > To: "'Flash Coders List'" > Date: Monday, August 29, 2011, 2:44 PM > > TRY THIS: > > > var forsate,generalFlag:Boolean; > var cou

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 TimerEvent.T

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

2011-08-29 Thread Ktu
Of nasim > h > Sent: maandag 29 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 t

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

2011-08-29 Thread Cor
: 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 nasim hhhhh
: [Flashcoders] loop and Timer problem? To: "'Flash Coders List'" Date: Monday, August 29, 2011, 2:44 PM TRY THIS: var forsate,generalFlag:Boolean; var counter:int=0; var generalTimer:Timer=new Timer(1); generalTimer.addEventListener(TimerEvent.TIMER,generalfunc);

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 generalfunc(e:TimerEven

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

2011-08-29 Thread Cor
.@chattyfig.figleaf.com [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 loo

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

2011-08-29 Thread Cor
ng because it stays true --- On Mon, 8/29/11, Cor wrote: From: Cor Subject: RE: [Flashcoders] loop and Timer problem? To: "'Flash Coders List'" Date: Monday, August 29, 2011, 2:01 PM 1. You call the function but your timer does not exist 2 your Boolean never get

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

2011-08-29 Thread nasim hhhhh
counter+=1;         }     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 wrote: From: Cor Subject: RE: [Flashcoders] loop and Timer problem? To: "'Flash Coders List'" Date: Monday, Au

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

2011-08-29 Thread Cor
d binary and those who don’t." -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of nasim h Sent: maandag 29 augustus 2011 19:55 To: Flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] loop and Timer problem???

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

2011-08-29 Thread nasim hhhhh
what is the problem ? how Timer work that the loop stuck in  the program I cant understand the loop and Timer increase cpu usage?? var forsate,generalFlag :Boolean; var counter:int; var generalTimer:Timer = new Timer(1); testhalgheh() generalTimer.addEventListener(TimerEvent.TIM