Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Button with Movieclips dosn't work - frustrated

Status
Not open for further replies.

JohnnyxL

Programmer
Jul 25, 2007
12
US
Hello All. Any help appreciated.

I have a button and in each of the states for the up,over, and down I dropped a movie clip into their respective keyframes.

The rollover effects work when I publish but I can't get any events to work like onpress, onrelease.

For example the button is named openbookbtn <openbtn>
up has clip openbook_static <o_static>
over has clip openbook_motion <o_motion>
down has clip openbook_static <o_static>

in other words their is an animated rollover, can I even do it this way?

If not could someone point me to some good example code of animated movie clips used as buttons?

Thanks in advance- Johnny~xL^
 
You can put MovieClips in Button states, that's not an issue. May be your script is funky. The basic code for Button is like this:
Code:
// AS2 main timeline
openbookbtn.onPress = function():Void  {
	trace("onPress: "+this);
};
Output
onPress: _level0.openbookbtn


Kenneth Kawamoto
 
Adobe.com has lots of support in their knowledgebase under the flash section. There are examples of codes, macromedia extensions you can download and lots more.

Maria Santella
Technical Sales Engineer
 
Thanks

kennethkawamoto (TechnicalUser)

That worked!!!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top