A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: hi guys need a bit of help

  1. #1
    Junior Member
    Join Date
    Jun 2005
    Posts
    29

    hi guys need a bit of help

    I made some buttons in photoshop imported them into flash and I Am geting an error in the code

    this is the code

    on(rollOver) {
    gotoAndPlay(2);
    }

    and this is the error

    **Error** Symbol=home butt movieclip, layer=home butt, frame=1:Line 1: Mouse events are permitted only for button instances
    on(rollOver) {

    Total ActionScript Errors: 1 Reported Errors: 1

    could someone please help this is sort of urgent
    this is a great place

  2. #2
    Senior Member
    Join Date
    Sep 2000
    Location
    POA, Brazil
    Posts
    323
    it seems your button is actually a movie clip. only button symbols can have the "on" action. double click your movie clip, select the image and press F8 (convert to symbol) and choose button. you can also change the behaviour of the symbol in the library.

  3. #3
    See Above thedeed's Avatar
    Join Date
    Jun 2003
    Location
    Dallas Tx
    Posts
    157
    You have a the button image set as a movie clip not a button.
    Convert it to a Button Symbol, then add your code
    and you should be good.
    the deed flash cartoons

    http://thedeed.us

    Discount Gifts and more store
    http://discountgiftsandmorestore.com/

  4. #4
    Junior Member
    Join Date
    Jun 2005
    Posts
    29
    thanks alot guys but that is not the problem because I did define it as a button in the first place and I got to change the roll over states and everything so that means that it is a button so if you guys know any other posibilities I would be glad to hear them, but thanks alot so far
    this is a great place

  5. #5
    Senior Member
    Join Date
    Sep 2000
    Location
    POA, Brazil
    Posts
    323
    maybe the action is on a keyframe. the log is telling you that ii is NOT on a button. can you post it?

  6. #6
    Junior Member
    Join Date
    Jun 2005
    Posts
    29
    haha I found out what I did wrong you see it has been 3 years since I have used flash lol so I forgot some stuff what I did that gave me the error was that I CODED the TIMELINE instead of the actual BUTTON hehe my bad thanks alot for everything guys
    this is a great place

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