dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: onmouseover a button i want to trigger a MC

  1. #1

    onmouseover a button i want to trigger a MC

    i have a project im working on where i have some button MCs that are just text that say Pic 1, Pic 2, etc... what would the code be to make it so when your mouse moves over the "Pic x" button MCs another MC is played.
    "O"

  2. #2
    Senior Member Computer Dork's Avatar
    Join Date
    Mar 2001
    Location
    St. Louis
    Posts
    1,026
    code:

    on(rollOver){
    _root.buttonMC.play();
    }


  3. #3
    sorry...now ive just changed it so there are no MCs for the buttons to play, i just put some tweens in the main part and labelled the frames their in, now i need the buttons to just goto the specified frame... i know its easy, but i keep getting error messages
    "O"

  4. #4
    Senior Member Computer Dork's Avatar
    Join Date
    Mar 2001
    Location
    St. Louis
    Posts
    1,026
    code:

    on(release){
    gotoAndPlay(frame);
    }


  5. #5
    yes, ive done that, but here are the error messages i get

    Scene=Scene 1, Layer=main, Frame=8: Line 2: ':' expected
    gotoAndPlay("jimmyaustin")

    Scene=Scene 1, Layer=main, Frame=8: Line 1: Statement must appear within on handler
    onRelease = {

    Scene=Scene 1, Layer=main, Frame=8: Line 3: Unexpected '}' encountered
    }
    "O"

  6. #6
    Senior Member Computer Dork's Avatar
    Join Date
    Mar 2001
    Location
    St. Louis
    Posts
    1,026
    Simple code mistakes. On the first one, put a ";" after it.

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