A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Mouse Wheel plays Movie clip

  1. #1
    Senior Member
    Join Date
    Oct 2002
    Posts
    412

    Mouse Wheel plays Movie clip

    ...can anyone tell me how I can make a movie clip play forwards and backwards in response to the users mouse wheel please?

    I need to integrate it with other AS that will be on the first frame - so if someone can suggest some script that could work independently but in harmony with the script that would be perfect. Maybe some code that I could drop onto a different layer and keep it seperate or something.

    Anyone know?

    Thanks in anticipation
    D

  2. #2
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    Code:
    var myListener:Object;
    myListener = new Object();
    myListener.onMouseWheel = function(delta, scrollTarget) {
    	rocket_mc._y -= delta;
    };
    Mouse.addListener(myListener);
    I also attached a .fla
    Attached Files Attached Files

  3. #3
    Senior Member
    Join Date
    Oct 2002
    Posts
    412
    ...thanks for that amigo - really appreciate it )

  4. #4
    Senior Member
    Join Date
    Oct 2002
    Posts
    412
    ...sorry me again - is there a way of making it work on a mac too?

  5. #5
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    It won't work on MACS sorry

  6. #6
    Senior Member
    Join Date
    Oct 2002
    Posts
    412
    okay - thanks again E

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