A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: On mouse over play movieclip????????

  1. #1
    Junior Member
    Join Date
    Jan 2001


    I have a button If you go with your mouse over it or on it.
    Then it must play a movieclip but how do i do that.
    Please help???

    Greetings Devil

  2. #2
    Senior Member
    Join Date
    Sep 2000
    New Zealand
    drag the movie clip on to the stage ( the one you want the mouse event to play)
    goto the Instance panel and give this movie clip an instance name. This has a different mean to the name of the movie clip in the Library although it can have the same name.
    Now select the button, open the actions panel>drag onMouse event into the right panel of the actions window.
    select the approriate event, probably on rollover. The choose either tellTarget or with from the list of actions. You should see a little target shaped icon in the lower right hand corner of the actions panel. Click that and another dialogue box will appear. All going well the instance name of the movie clip should be in that box. Select that and hit OK.

    Then in the actions panel select Play.

    test ya movie.
    All going well it will work.
    Hope this helps - if not reply and will get it going - its pretty basic.

    Hay, arent you the webmaster of this site?

  3. #3
    Junior Member
    Join Date
    Jan 2001
    Damn it isn't working.
    must be the movieclip in the scene or not?????


  4. #4
    I use the exact same functionality in my site, and the script behind the button should look like this

    on (rollOver) {
    tellTarget ("contactspray") {
    play ();

    'contactspray' is the instance name of my MC. If you dragged the movieclip onto the stage, you should see a little dot where it was drug to. Click it once, then goto the Instance tab on instance panel. Give it an instance name, and substitute it in where I've use 'contactspray'

    That should do the job perfectly. If it doesn't, then your MC has some script in it that won't allow it to be played.

    Good Luck.

  5. #5
    Junior Member
    Join Date
    Jan 2001

    Smile Thnxs

    Thnxs man
    O yeah i am not the webmaster lol

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