-
I have a movie (it is at http://flashtrack.8m.com/matrixburst.html)
It is actionscripted to explode and with user interaction (dragging the mouse from side to side) you get a 3d Matrix effect. All of that works fine. However, I now want it to explode, stop and then rotate without any user interaction for a specified number of turns and then fade. I can get it to stop by simply adding script:
_parent.dragging = false;
this.stop();},
but can not for the life of me get it to rotate without dragging the mouse. Has someone scripted this kind of 3d rotation before? This has plagued me long enough! Thanks in advance.
-
anyone? Don't tell me that I am the only one that has ventured in this arena?!?!?!?
-
What variable are you setting when you drag the mouse...
mousex=_root._xmouse??
rotationx=_root._xmouse??
-
Originally posted by craftymind
What variable are you setting when you drag the mouse...
mousex=_root._xmouse??
rotationx=_root._xmouse??
This is set for the Button that covers the screen:
on(press) {
_parent.dragging = true;
this.startDrag();}
on(release, releaseOutside) {
_parent.dragging = false;
_parent.p
this.stopDrag();
this._x = 0;
this._y = 0;}
This is included in the first frame of the action to make the button work:
if (this.rotating == true) {
this.ry = _root.explosion.dragger._x;
newP = new Point(this.x, this.y, this.z);
newP.rotateY(this.ry);
this.tx = newP.x;
this.ty = newP.y;
this.tz = newP.z;
delete (newP);
needRotation = true;
} else {
if (needRotation) {
this.x = this.tx;
this.y = this.ty;
this.z = this.tz;
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
|