Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Works as Player 6 but not as 7 or 8

Status
Not open for further replies.

mickey6499

IS-IT--Management
Mar 7, 2002
3
US
This bit of code works if I publish as flash player 6, but not if I publish as flash player 7 or 8 (regardless whether I choose Actionscript 1.0 or 2.0).

if (pressv != 0) {
this.panel = this.panel + pressv;
pressv = pressv * 0.875;
if (pressv < 0.2 && -0.2 < pressv) {
pressv = 0;
}
}
theta = theta + _parent.speed;
xbit = Math.sin(0.01745329252 * theta);
ybit = Math.cos(0.01745329252 * theta);
this._xscale = ybit * this.panel;
this._x = xbit * this.radius;
this._alpha = 30 + (ybit + 1) * 50;
this._yscale = this.panel - 3 + (ybit + 1) * 3;
stack = Math.round((ybit + 1) * radius * 2);
if (stack == 100) {
stack = 101;
}
this.swapDepths(stack);


would anyone be able to point me in the right direction?

Thanks,
Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top