another shitty flash question
- Started
- Last post
- 11 Responses
- ross
ok.
i want a couple of buttons to move a couple of movieClips using x and y. where should i start.any help would be great.
thanks
ross
- Mick0
on(release){
MCname._x = MXname._x + 50;
}start here... play with values, +/-etc.
- Mick0
x'cuse my typos :)
MXname = MCname
- ross0
great, ill start playing around
thanks A LOT
- ross0
thanks
ganoni see good things coming your way
- ross0
so this is working for me:
on(press){
_root.two._x = 225;
_root.three._x = 225;
}thoughts on how it could ease to final location insted of snapping there?
thanks again
- 19780
thoughts on how it could ease to final location insted of snapping there?
thanks again
ross
(apr 29 04, 19:37)
-------------------
Tell it nicely, but firmly, to go to final location.
- ganon0
put these actions in a frame in the _root...this will move an MC with an instance name of "circ" to xPos = 255 when you click on it...:
this.circ.onPress = function () {
this.onEnterFrame = function() {
if (Math.abs(255 - this._x) < 1) {
this._x = 255;
} else {
this._x -= (this._x - 255) * .1;
}
}
}
- ross0
got it working, thanks A LOT, again
- peteski0
http://www.kirupa.com/developer/…
a good start