How to do this
- Started
- Last post
- 6 Responses
- Prev
not sure what search terns to use for a tutorial to show me this way of clicking and having the canvas move to a specific point and easing to it like this...
- who0
The canvas is MC and when you press a button you set the possition of this MC in axes X and Y...
- rson0
um
try something like this you will have
function moveAndScale(instanceName, targetWidth, targetHeight, targetX, targetY, factor) {
instanceName._x += (targetX-instanceName._x)/factor...
instanceName._y += (targetY-instanceName._y)/factor...
instanceName._width += (targetWidth-instanceName._width...
instanceName._height += (targetHeight-instanceName._heig...}
- who0
This http://www.shakira.com/ is more difficult...
- the-saint0
Shakira... Who would have Thunk it!
- rson0
haha yeah but i think the same effect can be achieved with that function just build on it. It was just off the top of my head. But i do have that script lying around somewhere i try to dig it up.
- Prev0
What would be a keyword that I could look up a tutorial on this type of thing?