dynamic button effect - a hand here!

  • elihorn
  • Born
  • Born
  • elihorn
  • Posts: 1

Post 3+ Months Ago

Hi, I have several buttons, all movieclips, all the same symbol, which I want to make it look like they're "flying in" one after the other. I figured I could maybe do it with attachMovie and somehow apply setInterval to it so they all load a second after each other. I would rather load them all with one script and not have to write a seperate code for each individual button. Oh, and I also want them to have the instance name "button1", "button2", "button3", etc . . .

here is an example of the effect I want to acheive (take a look at the square buttons to the left when you enter each section of the site)

Any help would be awesome - Thanks!
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

Well the animation is tweened.

The duplication is does via attachMovie (or even duplicateMovieClip) and setInterval just as you thought. It's the only way to do that in succession via actionscript unless you want to tween it by hand.

You can apply the mouse actions upon clip creation using dynamic event handlers. Such as..

Code: [ Select ]
myButton.onRelease = function(){ ... }

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 6 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.