sorry about the topic but i could not think of anyhting to call it.
i need help, i have a picuter that is in mask (so it is not all visible) but i want it so when i press a button it goes to part of the picture of moves the picture so it is visible in the mask.
anyone think then can help.:-\
EXAMPLE: think you are looking down at a map but not all is visble, you press a button and the map move to be visble.:sigh:
So when a button is pressed the whole map gets visible ? Then you’ll just have to ease the mask out of sight I guess.
no the mask stays the same just the part of the map you can see changes
Ahh I see. Add this code to a new mc on the stage.
[AS]
onClipEvent(enterFrame){
_root.maskedobject._x = _root.tarX-(_root.tarX - _root.maskedobject._x)/1.2;
_root.maskedobject._y = _root.tarY-(_root.tarY - _root.maskedobject._y)/1.2;
}
[/AS]
And add this to the button:
[AS]
on (release){
_root.tarX = targetXposition;
_root.tarY = targetYposition;
}
[/AS]
You’ll have to replace [COLOR=BLUE]targetXposition[/COLOR] and [COLOR=BLUE]targetYposition[/COLOR] with the X and Y value of the masked object when at the place where it should move to.
I can’t test it tho cuz I ain’t got Flash on this pc.
thanks i will test it later:)