Hi,
Im having a problem with this flash movie, Its a cd that spins but I cant get the buttons inside to work! Can someone take a look for me and let me know how to fix.
Thanks v much.
Hi,
Im having a problem with this flash movie, Its a cd that spins but I cant get the buttons inside to work! Can someone take a look for me and let me know how to fix.
Thanks v much.
because you didn’t put any code in the buttons.
what! - the roll over effects dont work. therefor code wont work either.
your buttons dont work because you didnt put an instance on them and the fact that their inside the cd mc so if you want your buttons to work they would be referenced as follows
[AS]_root.cd.index[/AS] index being the instance you put on said button.
could you do this for one button please?
….or at least elaborate?
Replace the onPress and onRelease handlers with this code:
[AS]CD.onMouseDown = function() {
if (this.hit=this.hitTest(this._parent._xmouse, this._parent._ymouse, true)) {
this._clickrotation = this.getMouseRotation()-this._rotation;
this.onEnterFrame = this.positionToMouse;
}
};
CD.onMouseUp = function() {
if (this.hit) {
this.spinSpeed = this._rotation-this._lastrotation;
if (this.spinSpeed>180) {
this.spinSpeed -= 360;
} else if (this.spinSpeed<-180) {
this.spinSpeed += 360;
}
this.onEnterFrame = this.spin;
this.hit = false;
}
};[/AS]
cheers horse.
g’luk
nice one Kax, (as usual)
also, gabydog I noticed you were using scenes, try levels or targets instead and should work a treat
PS - did you get the spinning cd idea from subdisc.com?
Originally posted by jain
nice one Kax, (as usual)
Hehe - Thanks… but I didn’t do anything, senocular coded the whole thing.
:: Copyright KIRUPA 2024 //--