alors là je comprends pas...
je veux additionner deux variables.. mais cet idiot il les me concatene ! pourtant j'ai bien déclaré mes variables en Number... comme suit !
Code :
- var posx:Number=_root.XMLInfos[n].childNodes[1].attributes.posx;
- var posy:Number=_root.XMLInfos[n].childNodes[1].attributes.posy;
- var sticker_width:Number=_root.XMLInfos[n].childNodes[1].attributes.thiswidth;
|
et mon addition la voila :
Code :
- trace("move to : x:"+(posx+sticker_width)+" y:" +(posy+sticker.MCfond._height))
- moveTo ((posx+sticker_width), (posy+sticker.MCfond._height));
|
au lieu de me retourner
move to : x:120 y:34
il me retourne :
move to : x:20100 y:2014
... snif !