Pleeeeze help!!!!
Pleeeeze help!!!!
- Started
- Last post
- 6 Responses
- Deadfrog
if ((curPos ›= 0) && (curPos ‹=5))
{
tellTarget(_root.spot_1){
_x=#;
//# representing a position on the stage
}
}How do I make _root.spot_1 move to a new position but not just jump to a new position I mean like move there kinda like motion tweening.
(Sorry fellas kinda new at FMX & trying to get the hang of this)
Thanks in advanced for any help.
- vburo0
use find here..
look for "inertia"
i think that's what you need..
- unfittoprint0
//within spot 1
function slide(x:Number, y:Number):Void {
clearInterval(loop)
loop 0 setInterval(this, "chk", 30, x, y)
}function chk(x:Number, y:Number):Void {
_x += (x-_x)/4;
_y += (y-_y)/4
if(Math.abs(x-_x)
- Deadfrog0
Thanks for all the help guys...
I appreciate it.
- vburo0
..and there he is .. out of the dark!
:D