Jump to content
Sign in to follow this  
POMO-man

Actionscript 3.0 question

Recommended Posts

Hey, guys.Here's some actionscript I'm using to try to facilitate a rollover effect in FLASH CS#.Originally, I had this:

b1.onRollOver = over;b1.onRollOut = out;function over() {	this.gotoAndPlay(2);}function out() {	this.gotoAndPlay(7);}

But flash then told me I had to add a little scritping before the mouseover in order for it to work.So, now i have this:

addEventListener ('mouseOver', callback_handler)b1.onRollOver = over;b1.onRollOut = out;function over() {	this.gotoAndPlay(2);}function out() {	this.gotoAndPlay(7);}

But, now it's basically saying there's an issue with " callback_handler "Anyone savvy in Actionscript 3.0? I'm, just trying to get this thing to function.

Share this post


Link to post
Share on other sites

callback_handler needs to be the function you want to run when the event (in this case mouseOver) happens. You don't have a function named callback_handler.

Share this post


Link to post
Share on other sites

Putting a link in a Flash movie is pretty easy, there's not really a "hard" way and an "easy" way to do it. Check the Flash tutorials in the program for info on how to load a page when you click on something.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...