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
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()
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
;
}
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
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/
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
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
]
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
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
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
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
24 matches
Mail list logo