|
-
Action script help.
Oops i figured out my problem lol.
final code:
Code:
onClipEvent (press) {
this.gotoandplay(3){
}
this.startdrag(false, 0, 0, stage.width, stage.height);
}
onClipEvent (releaseoutside) {
this.stopdrag();
}
onClipEvent (release) {
this.stopdrag();
}
onClipEvent (release) {
this.gotoandstop(1)
}
}
Last edited by -Mystikal; 09-17-2005 at 10:09 PM.
There are 10 types of people in this world.
People who understand binary, and those
who dont.
---------------------------------------------
Give a noob a fish, feed him for a day.
Teach a noob to fish, he starves to death. 
-
Always needs help
For startDrag, you don't have to do false, 0, 0, and all that stuff. All you need is code:
on(press){
this.startDrag()}
on(release){
this.stopDrag()}
I don't remember if you need the () though.
-
Always needs help
Also, here's an easier version of the code. Remember, get into the habit of using correct syntax.code:
on(press){
//Give the frame a name
this.gotoAndPlay(frame3);
this.startDrag();
}
on(releaseOutside) {
this.stopDrag();
}
on(release) {
this.stopDrag();
}
on(release) {
this.gotoAndStop(frame1)
}
-
Some dude, says hi
 Originally Posted by marinebro0306
For startDrag, you don't have to do false, 0, 0, and all that stuff. All you need is code:
on(press){
this.startDrag()}
on(release){
this.stopDrag()}
I don't remember if you need the () though.
You have to, I spent 30 minutes once with that code trying to see what's wrong, and that was the problem....
-
Always needs help
-
Some dude, says hi
 Originally Posted by marinebro0306
works fine for me
must have stated that wrong, Your code is fine, When I did the code by myself, i forgot the (); and it didn't work...........................
-
Always needs help
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
|