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

[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()

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

2011-08-29 Thread Cor
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? what is the problem ? how Timer

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

[Flashcoders] loop to delete XML nodes WAS: Getting bitmap data after successfully loading a swf file

2010-11-30 Thread Mendelsohn, Michael
Sorry list! I didn't properly title that post! :-( - MM Hi list... I want loop through to delete certain nodes, but can't figure out how to do it. I've tried a conventional loop, for...in and for...each...in, and I must be missing something. pack dog id=1/ dog/

Re: [Flashcoders] loop to delete XML nodes WAS: Getting bitmap data after successfully loading a swf file

2010-11-30 Thread Kenneth Kawamoto
I have this (rather ugly) solution: var i:uint = 0; while(i xml.dog.length()){ if(xml.dog[i].attribute(id) != 2){ delete xml.dog[i]; } else { ++i; } } My preferred way would be though, is doing it vise versa, i.e. add the qualifying nodes instead of deleting not

[Flashcoders] loop or if

2008-07-13 Thread Bassam M
Hi guys I have this simple question I have this script btn.addEventListener(MouseEvent.CLICK, f1); function f1(e:MouseEvent):void { var i:Number = 2 ; if (i 10) { i = i++; trace(i = + i); } } I want to multiple i when I click on btn I m getting i = 2 always i don't understand I need

Re: [Flashcoders] loop or if

2008-07-13 Thread Paul Andrews
] To: Flashcoders@chattyfig.figleaf.com Sent: Sunday, July 13, 2008 11:56 AM Subject: [Flashcoders] loop or if Hi guys I have this simple question I have this script btn.addEventListener(MouseEvent.CLICK, f1); function f1(e:MouseEvent):void { var i:Number = 2 ; if (i 10) { i = i++; trace(i

RE: [Flashcoders] loop or if

2008-07-13 Thread Cor
Hi Bassam, Try this var i:Number = 0 ; btn.addEventListener(MouseEvent.CLICK, f1); function f1(e:MouseEvent):void { if (i 10) { i += 2; trace(i = + i); } } Regards Cor ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] loop or if

2008-07-13 Thread Hans Wichman
Hi, function f1(e:MouseEvent):void { var i:Number = 2 ; //set i to 2 if (i 10) { //if i10 = true, so this always executes i = i++; //i = now 3 trace(i = + i); //traces 3 not 2? } you probably want to declare i as an instance variable, not a local var

Re: [Flashcoders] loop or if

2008-07-13 Thread Bassam M
Yes sorry its traces 3 but I want to do something like on click multiple the i var or and variable as I said first click i=2 then second click i = 4 and so untile i =10 On 7/13/08, Hans Wichman [EMAIL PROTECTED] wrote: Hi, function f1(e:MouseEvent):void { var i:Number = 2 ; //set i to 2

Re: [Flashcoders] loop or if

2008-07-13 Thread Bassam M
Cor thank you it's working On 7/13/08, Bassam M [EMAIL PROTECTED] wrote: Yes sorry its traces 3 but I want to do something like on click multiple the i var or and variable as I said first click i=2 then second click i = 4 and so untile i =10 On 7/13/08, Hans Wichman [EMAIL PROTECTED] wrote:

Re: [Flashcoders] loop or if

2008-07-13 Thread Hans Wichman
sorry i misread it, i thought u needed to double i, but it seems you want to up it by 2, that's i+=2. On Sun, Jul 13, 2008 at 1:25 PM, Hans Wichman [EMAIL PROTECTED] wrote: Hi, function f1(e:MouseEvent):void { var i:Number = 2 ; //set i to 2 if (i 10) { //if i10 = true,

RE: [Flashcoders] loop or if

2008-07-13 Thread Cor
Youre welcome! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bassam M Sent: zondag 13 juli 2008 14:35 To: Flash Coders List Subject: Re: [Flashcoders] loop or if Cor thank you it's working On 7/13/08, Bassam M [EMAIL PROTECTED] wrote: Yes sorry its

[Flashcoders] Loop thru LoadVars in the good sense

2005-11-14 Thread Flapflap
Hi there, If I got a file with this kind of data : a=1 b=2 c=3 and I load it into a LoadVars object. How can I loop so my vars are taken in the same order in my file ? (Start by a, and b, etc...) Thanks... -- Flapflap[at]sans-facon.net -- DevBlog : http://www.kilooctet.net

Re: [Flashcoders] Loop thru LoadVars in the good sense

2005-11-14 Thread Robert Wąs
I you have order and i think the same length. Simpler - ?variables=1,2,3 var lv:loadVars //etc var orderedVars=lv.variables.split(,) Robert Wąs Flapflap wrote: Hi there, If I got a file with this kind of data : a=1 b=2 c=3 and I load it into a LoadVars object. How can I loop so my vars