A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: custome tween clas???

  1. #1
    flash animator guy
    Join Date
    Oct 2006
    Location
    Daly City
    Posts
    219

    custome tween clas???

    Hello there.

    I am using an external script some one gave me. It's a custom class I believe that tweens. right now it's set to tween a MC from right to left. on stage roll over. i need it to go from bottom to top.

    Here is my script and the external as is atached:

    //----------SLIDE OUT SIDE NAV----------------
    #include "mc_tween2.as"
    var home:MovieClip = this;
    var hideInt:Number = setInterval(hideNav, 100);//A higher number here will cause the hide animation to delay
    var mouseListen:Object = new Object();
    navL.origX = navL._x;
    Mouse.addListener(mouseListen);
    var soundPlay:Boolean = true;

    mouseListen.onMouseMove = function() {
    _root.navL.xSlideTo(0, 1);
    clearInterval(hideInt);
    hideInt = setInterval(hideNav, 500);//A higher number here will cause the hide animation to delay
    Mouse.show();
    }

    function hideNav() {
    var shouldHide:Boolean = true;
    var b:Object = _root.navL.getBounds(_root.home);
    if (_xmouse > b.xMin && _xmouse < b.xMax && _ymouse > b.yMin && _ymouse < b.yMax) {
    shouldHide = false;
    }
    if (_xmouse > b2.xMin && _xmouse < b2.xMax && _ymouse > b2.yMin && _root._ymouse < b2.yMax) {
    shouldHide = false;
    }
    if(shouldHide == true){
    Mouse.hide();
    _root.navL.xSlideTo(_root.navL.origX, 2);
    }
    }


    Can any one help me?
    Attached Files Attached Files

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