Click to See Complete Forum and Search --> : Action script help.
-Mystikal
09-17-2005, 11:04 PM
Oops i figured out my problem lol.
final 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)
}
}
marinebro0306
09-18-2005, 12:36 PM
For startDrag, you don't have to do false, 0, 0, and all that stuff. All you need is
on(press){
this.startDrag()}
on(release){
this.stopDrag()}
I don't remember if you need the () though.
marinebro0306
09-18-2005, 12:40 PM
Also, here's an easier version of the code. Remember, get into the habit of using correct syntax.
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)
}
Ultra Pulse
09-19-2005, 04:58 PM
For startDrag, you don't have to do false, 0, 0, and all that stuff. All you need is
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....
marinebro0306
09-19-2005, 05:15 PM
works fine for me
Ultra Pulse
09-19-2005, 05:32 PM
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...........................
marinebro0306
09-19-2005, 06:45 PM
i see.
flashkit.com
Copyright WebMediaBrands Inc., All Rights Reserved.