Hi
I have to use somethink like this;
slider.dragger.onPress = function(){
startDrag(slider.dragger,false,0,-15,372,-15)
_root.onEnterFrame = checkRotation;
}
slider.dragger.onRelease = slider.dragger.onReleaseOutside = function(){
this.stopDrag()
delete _root.onEnterFrame;
}
function checkRotation(){
var pct = slider.dragger._x/372;
var frame = Math.floor(25*pct);
rotator.gotoAndStop(frame)
}
My problem is that this is in AS2 and i srarted playing with flash
only about 2 weeks ago but with AS3 - i know how to do only few things with AS now.
My question is:
Could someone please translate it to AS3 if it’s possible.
Or of it’s not possible show me some other exemple
but in AS3.
I found this thread but as i sad i’m beginner an i really want to finish this before
25th August
Thanks to it i recived somethink like this:
package {
slider.dragger.onPress = function(){
startDrag(slider.dragger,false,0,-15,372,-15)
_root.onEnterFrame = checkRotation;
}
slider.dragger.onRelease = slider.dragger.onReleaseOutside = function(){
this.stopDrag()
delete _root.onEnterFrame;
}
function checkRotation(){
public var pct = slider.dragger.x/372;
public var frame = Math.floor(25*pct);
rotator.gotoAndStop(frame)
}
}
but it’s still not this.
Sorry for mistakes i i done some but my english isn’t perfect.