A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: button actions

  1. #1
    Junior Member
    Join Date
    Jan 2004
    Posts
    6

    button actions

    hey there guys, flash newb here. I'm reading the O'Reilly book on Actionscript and there is some mentioning that instead of using:

    on (rollover) {
    //some button property code here
    }

    I should open the button (which I made as an instance from the library) and put in some action code in the "over" state. But flash says that I cant put in any actions in there. Any insights? thanks.

  2. #2
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Flash is right. You can't add code inside the button symbol and you can not target a frame inside a button. But, in MX, not all buttons are 'Buttons'. Some buttons can be movie clips. In that case you can add code anywhere in it or on 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