A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [RESOLVED] Mouse Control of Movie Clip

  1. #1
    Junior Member
    Join Date
    Dec 2009
    Posts
    7

    resolved [RESOLVED] Mouse Control of Movie Clip

    Hi All

    Am having a problem with getting the playhead to move inside a movieclip based on the horizontal or vertical position of the mouse on the screen.

    I can get the horizontal motion to move the playhead, but I can't get the vertical movement to do the same.

    I have attached the document class .as file for it.

    Any suggestions or help would be GREATLY appreciated as I have a deadline and a nagging boss.

    Thanks in advance.


    Phil
    Attached Files Attached Files

  2. #2
    Senior Member
    Join Date
    Jul 2006
    Location
    San Jose, CA
    Posts
    334
    Hm.. so from looking at the xNum, it goes from 2-30-somethin? Granted, that's assuming the stage size is the default, which I assume it is not.

    What is the end result you're after, when the mouseY = stage.stageHeight, return 1 for the logo frame, and when mouseY = 0, return the max frame of the logo?
    I (Love | Hate) Flash.
    ----
    Save a version back so others may help you!

  3. #3
    Junior Member
    Join Date
    Dec 2009
    Posts
    7

    Fixed it

    Hi everyone

    Have fixed the problem. I just needed to separate some of the logic out and use it to set a variable which was then checked to see which direction the mouse was moving in.

    Have included the update .as file here so that anyone that needs it can use it themsleves.


    Phil
    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