Thanks for your help guys, It worksregards
Gustavo
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Prem
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
Hello :)
1 - eq keyword is depreciated !! don't use "eq" but the == operator :)
if ( x == 2)
{
// do it
}
2 - to move a movieclip, a simple example :
// the speed of the move
var speed = 10 ;
// the max x position
var xMax = 500 ;
mc.onEnterFrame = function()
{
this._x += speed ;
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
4 matches
Mail list logo