-
ok I managed to make a slider like the one on joshdura.com with help from JewishMexican like so:
Its justa simple action..
It goes like this..
//put this code on the MC that you want to slide
______________
onClipEvent (enterFrame) {
_x -=(_x-/:x)*.1;
}
Then on a button add this other code.
______________
on (release) {
/:x = 100;
}
(the 100 is the position where you want it to slide on relase. Its just as simple as that.
-Reply:
hey thanks for lemme know the thing...
all i want to now is that i have never seen ' /:x ' what does this thing do??
-Reply:
wat this does, it calls for the root position MC and slides it to x cordinate you type in.
how would I change the speed? <<<<
-
any1 comeon. Im sure you guys know ... do you
-
Moderator
This is what I use:
onClipEvent (load) {
speed = 0.2;
}
onClipEvent (enterFrame) {
dist = _parent.tar-currentPos;
currentPos = _x += dist*speed;
}
-
so what would be the action for the button to slide the MC?
on (release)(
??
)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|