I'm pretty sure this line:
if (this.myLoader._x eq this.myLoader._x-1){

will never resolve to true, given that no number is equal to the same
number minus one.  Thus, the code in that if statement will never
trigger.

Should one of those this.myLoader values be a different variable?

  -Andy

On 1/26/07, Gustavo Duenas <[EMAIL PROTECTED]> wrote:
hi, this is code:



this.onEnterFrame = function(){
        if (this.myLoader._x eq this.myLoader._x-1){
                delete onEnterFrame;

        }
        else{ this.myLoader._x-=2;
        }
}


I'm trying to move this loader created by code and it looks ok, it
moves, but it doesn't stop,
I hope you might know what I'm doing wrong, you are my last resource.


Regards


Gustavo Duenas




_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to