Button with dynamic text in Flash CS5 -


i'm new flash pro programming, , trying create button-type symbol can set label. problems i'm running follows.

  1. if make symbol type=button, can't add actionscripts in frames and/or access subcomponents? why so?
  2. if make symbol type=movieclip, can add actionscript , access sub-components, can't figure out how make handcursor show on hover?

any ideas appreciated. thanks..

there couple of ways it.

first off - have ability access sub components of button , can add actionscript it. however, same , build button using movieclips gives more freedom.

to overcome hand pointer issue - there 2 ways reproduce this.

firstly (my preference), build button object. invisible, or @ worst 1% opacity. , i'd place on upper layer of movieclip. not require hover states or code - can reproduce hand icon.

the second option within code. 1 problem tend create - need same code sub components, if not - might have selective text in reproduced movieclip of change mouse pointer text selection pointer (the when hover on text).

its simple enough produce. in frame 1 of movieclip add:

buttonmode = true; 

and make hand cursor also. can read more here: http://www.adobe.com/livedocs/flash/9.0/actionscriptlangrefv3/flash/display/sprite.html#buttonmode

hope helps


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -