Jump to content


Simple (I hope) Actionscript Question


  • You cannot reply to this topic
2 replies to this topic

#1 darkchicken101

    Young Padawan

  • Members
  • Pip
  • 1 posts

Posted 09 July 2006 - 12:04 PM

Ok, I've got 4 movieclips, which a tweened to move across the screen. When you click one of them, I want all four to shot off the screen, moving at 20 pixels per frame. I wanted to know if this were possible with Actionscript, and if it were, please show me an example.

Thanks in advance.

#2 PizdusInc

    Young Padawan

  • Members
  • Pip
  • 37 posts
  • Location:Southern California

Posted 15 July 2006 - 03:26 PM

You may want to animate the four clips shooting off the screen at the frame rate desired later on the timeline (sometiem after the moving across the screen anim.) and then on all clips put the code:
on(release) {
gotoAndPlay(frame number where the shooting off animation starts)
}

Hope that makes some sense.

#3 Wowzers

    Young Padawan

  • Members
  • Pip
  • 40 posts

Posted 16 July 2006 - 07:07 AM

^yeah that code should do what you want, just add it to the button you want to initiate these movements.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users