A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: This one has confused me TOO LONG!

  1. #1
    Senior Member
    Join Date
    Jun 2001
    Posts
    148
    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.

  2. #2
    Senior Member
    Join Date
    Jun 2001
    Posts
    148
    anyone? Don't tell me that I am the only one that has ventured in this arena?!?!?!?

  3. #3
    Senior Member
    Join Date
    Mar 2001
    Posts
    192
    What variable are you setting when you drag the mouse...
    mousex=_root._xmouse??
    rotationx=_root._xmouse??

  4. #4
    Senior Member
    Join Date
    Jun 2001
    Posts
    148
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center