A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: need help on mouse rollover and rollout events

  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    1

    need help on mouse rollover and rollout events

    Hi,

    I have a lengthy text running in flash movie. I want the movie clip to be stopped (meaning pause) when the mouse roll over on it to read the content... and when the mouse roll out from the movie it should be played continuously. ( not from the beginning. ) how to write the code snippets? can someone help me to fix this?

  2. #2
    Senior Member
    Join Date
    Mar 2011
    Location
    Riverside ish...
    Posts
    173
    removeEventListener(Event.ENTER_FRAME, yourenterframeevent);
    addEventListener(Event.ENTER_FRAME, yourenterframeevent);

    make sure the enterframe event is what is controlling the scroll...

    function yourenterframeevent(event:Event){
    container.target.y-=0.3;
    }

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