A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Tween on Rollover?

  1. #1
    Member
    Join Date
    Jul 2005
    Posts
    81

    Tween on Rollover?

    Hi, I have a vertical tween using the tween class that I want enacted when a user rolls over a button. I attached the code below, because I am stuck.
    Thanks in advance

    Code:
    function toggleMenuTween (obj) {
    	var toggleTween:Tween = new Tween(obj, _y, Regular.easeIn, 337, 357, 2, true);
    }
    
    togglemenu.onRollOver = function() {
    		this._alpha = 100;
    		trace(this._name);
    		toggleMenuTween(this);
    }
    
    togglemenu.onRollOut = function() {
    	this._alpha = 0;
    }

  2. #2
    Bearded (M|G)od MyFriendIsATaco's Avatar
    Join Date
    Dec 2002
    Location
    Awesomeville.
    Posts
    3,045
    The second parameter of Tween() is a String.

    new Tween(obj, "_y", ...);

  3. #3
    Member
    Join Date
    Jul 2005
    Posts
    81

    Re:

    Oh....duh ;p. Thanks man!

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