Code for animation in flash action script 2.0

Click For Summary
SUMMARY

The discussion focuses on implementing mouse-driven animations in Flash ActionScript 2.0, specifically dividing a stage into six interactive parts. Users can utilize the onRollOver event to trigger animations, moving objects to specified coordinates (x, y) using tweening techniques. The provided code snippets demonstrate how to manage frame events and position updates effectively. Resources such as FlashKit are recommended for further assistance and community support.

PREREQUISITES
  • Understanding of Flash ActionScript 2.0 syntax and event handling
  • Familiarity with tweening animations and frame-based programming
  • Basic knowledge of coordinate systems in Flash
  • Experience with creating interactive elements in Flash
NEXT STEPS
  • Explore advanced tweening techniques in Flash ActionScript 2.0
  • Learn about the use of invisible buttons for interactive animations
  • Research frame event handling in Flash for smoother animations
  • Visit FlashKit for community support and additional resources
USEFUL FOR

Flash developers, animators, and anyone looking to enhance their skills in creating interactive animations using ActionScript 2.0.

brandy
Messages
156
Reaction score
0
i have a a board and i want it divided into 6 parts.
1 part is equal to the size of the stage.
when the mouse moves to the left of the screen i want the current part to tween into the left part.
same for right and down and up.

what i have so far is for the bar on the left, right, bottom.
on(rollOver){
...
something do to _x and _y?


how do i finish it?
please and thankyou.
 
Technology news on Phys.org
I dont' really understand your question, but you can basically just set a point (x,y) that you want to be at. Then for your invisible button, you can have something like:
Code:
onRollOver() {
  mcSquare.nextFrame()
}
Then on one of the 6 squares, you have a stop command on the first frame, then on the second, you have something like:
Code:
onFrameEvent(enterframe){
dx = targetx - this._x
dy = targety - this._y
this._x =+ dx
this._y =+ dy
}
Sorry if the code is rusty, it's been years since I've coded or done anything in Flash.

For better reference, may I direct you to www.flashkit.com <-GREAT FORUM for Flash
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
3
Views
6K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K