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
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 {
;
}
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
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
[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
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
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
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
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
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
/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
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
i always being 2 doesn't make much sense (in the trace anyway).
var i:Number = 2 ;
btn.addEventListener(MouseEvent.CLICK, f1);
function f1(e:MouseEvent):void {
if (i 10) {
trace(i = + i);
i = i+2;
}
}
Paul
- Original Message -
From: Bassam M [EMAIL PROTECTED]
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
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
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
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:
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,
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
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
20 matches
Mail list logo