Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Animating An Arc In AS3



hello,i need to animate a sprite in an arc motion using dynamic start and end positions at runtime. hopefully with an easing function at the end of the path. since i'm not animating in a straight line i don't think i can use Tween since that class doesn't seem to support anything but a straight path. nothing's in the timeline. actionscript only.any advice as to the best way to do this? is the Animator class using XML the best way? can i use the BezierSegment class? can i create a custom easing function for Tween and get an arc path that way?the tough thing about using an XML doc is that i have to calculate each keyframe at runtime since i don't know the start/end points at compile time. that's an option but i'm wondering if there's a simpler way.any advice appreciated.thxmichael



Adobe > ActionScript 3
Posted on: 04/29/2008 11:48:33 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Text Animating And Zoom Animating
Hey im a beginner at animating and i need advise on how to animate text. Like when the viewer is watching my movie I don't want a whole paragraph to come out of no where I want it like word by word or letter by letter like someone was typing it right then and there. I tried figuring out a way but the only thing was adding a key frame for each individual letter. any tips? and also any advise on how to make the text come in with flare? like fading in or coming in from the top?

Also another thing. Let's say I make a city from far away on the stage. I want to zoom in on a person (a stick figure) for a couple seconds and then zoom back out to it's original position. Is there a way I can do this without having to disassemble the city and make the person zoomed in and then make it look zoomed out construct the city from scratch again?
I would like any help please.
Thanks in advance.

Anyone Know Why This Isn't Animating?
Ok, it's a redux on the looping movie question. I've fixed all my problems except for one.

http://www.kitsunestudios.com/temps/Movie5correct.html

Here's how it should work: after the preload page (big green button) there is a set of 5 menu items on the bottom of the screen. When you click on one, the entire bar scrolls left, then launches the secondary navigation (Represented by the white box with the funny words). Everything works, except that instead of scrolling over, it jumps immediately to the final position. I've tried a trace, and it spits down a continual countdown, but does so instantly, instead of over a period of time.

Here's the animation code; frame 2 of a 3 frame Movie instance called "Control"


Code:
play ();
if ( CP > 0) {
CP = CP - 5;
setProperty ("_root.botnav", _x, _root.botnav._x - 5);
nextFrame ();
} else if (CP <= 0) {
if (_root.botnav._x<500) {
setProperty ("_root.botnav", _x, _root.botnav._x+750);
}
tellTarget ("_root.film") {
gotoAndPlay (title);
}
tellTarget ("_root.botnav") {
gotoAndStop ("active");
}
prevFrame ();
}


The previous frame in this movie is a Stop action, the next frame is a "prevFrame" action.

What this should do is count down, move the navigation over by a set amount, then go to the next frame, jump back, and repeat. When it's finished, it then resets the navigation bar invisibly, so it dosen't scroll off the page, tells the secondary "film" navigation window to launch, then reactivates the buttons.

Everything is working except for the animation. If anyone knows why this is jumping to the last frame instead of slowly moving to it's new position, I'd appreciate it.

the original FLA can be found here:
http://www.kitsunestudios.com/temps/Movie5correct.zip

Thanks in Advance!

A Little Help Animating
ok....i just got flash 5......so far.....i know how to make a circle turn into square..........make a car move across the screen.....but i want to make animations that have a lot more detail(like xiao xiao movies)......i cant seem to make a stick man kick......only move across the screen......a little help on how? i think it involves layers

Animating MC
Is there a way to animate a MC so it looks like a motion tween? If so, how do you do it? Say you have a simple square box as a MC, and you want to move it from point A to point B - in AS how do you make look like a regular motion tween?

Thanks...

Animating An Arm
Hey All...
I'm trying to animate an arm. What I need to do is get the arm (from the elbow up to the hand) to move counter-clockwise, with one point (the elbow bit) to stay still, then stop... At the same time, I need the hand to move clockwise but at an extremely slow speed, while attached to the moving bit of the arm..
Any help would be much appreciated!!
Thanks!

Animating A JPG?
I just got Flash 5.0 and I'm trying to animate a .jpg file. All I want it to do is spin clockwise. How can I do this? Thanks...

Animating My Dog
How do I turn his tail, eyes & head into separate "movies" so that they move when the mouse rolls over them? HELP! I'm going crazy!

Animating
how do i make characters in a cartoon animated like moving just an arm or elbow? do i make a movie clip for each limb?

Animating
Can anyone direct me to a good tutorial to animate a stick figure walking?

Animating PNG
anyone knows why animating PNGs or Gifs causes some pixels of the background image to flicker?

Animating W/ AS
I know how to animate a clip using actionscript but I seem to have a problem that I cant get my head around! Here is what id like to do:

There are two movieclip buttons, one that will animate a ball MC up and another that will animate it down. When you press the up button, I want the ball MC to animate up say, 50 pixels with easing, then gradually start to animate downwards until you press the up MC again. It will keep animating up as fast as you press the up MC until you get to a certain height and then it wont let you go up any further. At that point it will start coming down again. If you click on the down button I want it to do that exact opposite of the up MC of course. As fast as they can press the button, it will keep animating downwards (this time w/out easing) until they get to a certain y coordinate and it wont let you go any further. Any help would be great guys! Thanks!

Animating
I was just wandering how I start a animation. I,m new and I need 2 no where I can download a program to make flash animations prefebly a free program.

Animating
I would like to figure out to how to create the effect on the polyphonic spree website (http://www.polyphonicspree.com). Specially how to animate lines to form objects or words.

New At Animating
All I want is a program to create cartoons or movies.
If anyone has any ideas, please post them here.
Thanks,
Thethingamabob

Help Animating A Dog
I need help to animate a dog....Any one know of a good tutorial.....a good web site or even have a good fla I could look at? Thanks

Animating Jpg
OK..I'm just getting started with FlashMX 2004. I created a background with 3d text in another pgoram and saved it as a .jpg file. I imported it to the flash stage and then I added a timeline effect. I was wondering if I can add multiple timeline effects to the same image...also, I want the text only of the first logo pic to be animated, but it animates the whole jpg with the background. Also, how do I add another image and add a timeline effect? do I hafta make a new scene? When I make a new scene with the same background and a new pic it's not that smooth when going to next scene..Here's what I am aiming for...a logo wehere the text only zooms in then zooms out, I know how to do the zoom in in transform effect which makes the whole pic move and not the text only which I want....Then I want the text to zoom out or fade out, not sure which effect I want yet, then fade or zoom in with another picture, I can add the stars background and send it to back and then add the pic I want in front on top and animate just the pic there, for the other pics..I have done that before. So for now this is my problem...adding mulitple timeline effects to a jpg. How do I make the effect last longer or shorter? even when I slide the bar to slow at end, it's still a bit too fast. I'm sorry I made this post as long as I did, but I need some help with these things. Also I will be using mp3s playing while the images are loading. I know how to add the sound, it's just that I want the mp3 to keep playing while the images are on screen with the effects applied to each one. So far I get the audio with the pics, but can't add a new timeline effect to the 2nd pic I use unless I make it a new scene and then only part of the mp3 will play and it goes to the next scene. Hope someone can guide me on my way with this. Being a newbie I have a lot of stuff to ask.

Animating A .gif
I'm trying to animate a .gif for an AIM icon in Flash.

Everything works just fine, except for the text. It looks hideous and completely illegible.

I was wondering what my publish settings should be or how the text should be? I noticed that it really screwed up when I tried using static text or any text that was selectable.

Age For Animating
about what age do you think most poeple start or should start using things like flash animator

[F8] Need Animating Help
So I have a question about creating a growing animation. Basically my navigation has straight lines that go into a rounded curve. I want the mousover to animate the bars starting from the straight part and into the curve. Anyone have any expereice with this? I want it to be as smooth as possible. Some of the curves come back around (see the attached example), and I think that is what is so hard for me to get my head around.

See Example

THANK YOU

Animating With AS2
Hey I'm trying to create this animated interface where when you click on each paper, it'll rotate out and load some content, and if you click it again it will go back. I'm only up to the rotating part. This is really just an experiment so that I can learn. Anyway, it all works well, but only once. It goes out, you click it again and it goes back, but if you click it again it just kind of jumps around instead of repeating the process.

Also, I may be getting ahead of myself, but I'm sure you'll notice that the mcBluePaper is clickable even behind other mc's. I'd like only the visible parts of the mc's to be clickable.

I'm really new so there's a chance that I've just done everything in some weird backwards way that isn't working out, so thanks ahead of time.

http://jtnatoli.googlepages.com/papers.fla

Flash 8

[F8] Help Animating
i just got the trial version of flash cs3 yesterday so i can try to make some animations...i searched for tutorials on google and only found how to make something slide across the screen...I'm trying to make something like a stick figure walking...if anyone can help either post here, or you can message me on xfire if you have it, names the same on it...thanks guys

Animating Out
im working on my website and i have 5 buttons that go to five different scenes and each scene animates out. So say for example, everytime i press a btn i want it to animate out- no matter which btn is press.( if currently on scene 1- and i press the scene2 btn, i want it to use the scene1 animation- out. if its on scene 5, and i want to play scene2, i want it to use scene 5- animation out?

can someone please help.
i tried setting up a simple variable, but after pressing the btns more than once, it would randomly go to different scenes- but it did play the animation "out" -scene.

Animating
lo all.
im tryin to animate a pencil/paintbrush to draw/paint the intro for a site.

http://www.kaoss.org.uk/drawn/

if youve got 5 mins take a look at the link. thats what i got so far, im usin shape tweens and such. the problem is the frames/layers are buildin up and im strugglin to keep the pencil/lines in sync.
anybody got any tips/hints/links for a source on how to do this in a more efficient/simple way, i feel like im goin the wrong way about it and wastin precious time!

ne help much appreciated...

kev.

Animating With XML
Hey people,

Basically I just want to use an XML file to animate a symbol.

So the pseudo code is this:


Code:
on each frame
symbol.angle=reading[counterID].angle
counterID=counterID+1

XML file:

Code:
<reading id="1">
<angle>10</angle>
</reading>
<reading id="2">
<angle>10</angle>
</reading>
<reading id="3">
<angle>10</angle>
</reading>
Many thanks for any help!
Marc

Animating An Arc In AS3
hello,
i need to animate a sprite in an arc motion using dynamic start and end positions at runtime. hopefully with an easing function at the end of the path. since i'm not animating in a straight line i don't think i can use Tween since that class doesn't seem to support anything but a straight path. nothing's in the timeline. actionscript only.

any advice as to the best way to do this? is the Animator class using XML the best way? can i use the BezierSegment class? can i create a custom easing function for Tween and get an arc path that way?

the tough thing about using an XML doc is that i have to calculate each keyframe at runtime since i don't know the start/end points at compile time. that's an option but i'm wondering if there's a simpler way.

any advice appreciated.

thx
michael

Animating Car.
I designed this car in flash. and Im having trouble on animating it to look like its moving can someone help me.

Help With Animating
Hi,

I need to illustrate via an animation how a frame opens and closes. I've done two rough illustrations of an opened and closed frame (it's just a frame that holds images) in Illustrator. I'm sure that if I want to show the four sides opening from the closed position to the fully opened position that I'd need to create the inbetween frames but I'm not sure how to go about this in flash.

I've uploaded the two rough illustrations here: http://www.officelinkonline.com.au/testimages.htm

... if anyone's interested in taking a look.

Can someone tell me how I'd go about making the animation work?

Thanks for any help offered.

Animating
hey ive been using flash for a few years but never bothered really getting that into it i make pretty basic sites etc anyway i wanna make a animation of a just a arrow coming in and forming just 2d very simple but i dont have a clue animation has never been my strong point haha anyway just wondering how i do it and any sources that i coulduse to learn to animate and stuff

cheers

-Tom

[F8] Animating Via AS
Is there an easy way to animate multiple movieclips without using a lot of functions and setInterval??

I want an animation to start and before it's finished another one starts, right now I'm using a ton of functions and setInterval but I'm sure there's a cleaner more efficient way to achieve this.

can anyone please enlighten me?

Animating Arm
hi guys,

i have the following image (attached), basically i want his arm to move to simulate he is conducting..can someone please advise me on how to do this..

thanks guys

andy

Animating An Arc In AS3
hello,
i need to animate a sprite in an arc motion using dynamic start and end positions at runtime. hopefully with an easing function at the end of the path. since i'm not animating in a straight line i don't think i can use Tween since that class doesn't seem to support anything but a straight path. nothing's in the timeline. actionscript only.

any advice as to the best way to do this? is the Animator class using XML the best way? can i use the BezierSegment class? can i create a custom easing function for Tween and get an arc path that way?

the tough thing about using an XML doc is that i have to calculate each keyframe at runtime since i don't know the start/end points at compile time. that's an option but i'm wondering if there's a simpler way.

any advice appreciated.

thx
michael

Animating Box Help
Hello guys! I dont know if i can explain this better, bt i'll try anyway.

I wanted this to become a preloader to all the external movie clip that I wanted to load to the main movie of the site I am creating. After it finished loaded, i want the box to animate and this is when the external movie clips appear. But i dont know how to do this as I am a Flash Newbie, all i got is the idea. So im here kneeling on front of you guys asking for your help.

thanks in advance!

Animating
Alright, my mom has a website for a lacrosse club and next to the lacrosse clubs name is a picture of two lax sticks crossed. She would like to animate the so that they spin around when you are viewing the page. I am new to flash but she asked me to do it. All I want to know is if you know of any programs that will help make the sticks spin if you would like to see the picture so that you cna help me out even more here is the website: http://www.summitlacrosseclub.com/. Please give me your thoughts. Thankyou.

Animating A Mc With AS
I am trying to animate a movie clip all it is doing is going from alpha 0 to 100

but i get this error:
**Error** Scene=Scene 1, layer=Actions, frame=1:Line 1: '{' expected
function animate() :Void {

Total ActionScript Errors: 1 Reported Errors: 1


can anyone tell me why i am getting this error. I am using a tutorial to learn and they are using the exact same code but it errors for me please help

[as]function animate() :Void {
mcTopLeftBox._alpha++;
updateAfterEvent() ;
mcTopLeftBox._alpha= 0;
var nInterval:Number = setInterval(animate,10);

Animating Arm
hi guys,

i have the following image (attached), basically i want his arm to move to simulate he is conducting..can someone please advise me on how to do this..

thanks guys

andy

Animating Rollover
in a 5 frame rollover I want to make the movie stop on the 3rd frame and on rollout start again to finish
any help?

GeeVeeGee

Animating Without Tweens
Hello:

I am quite sick and tired of using animations with tweens.
It takes forever to load up when I use tweens. I was wondering could somebody please help me to understand how I could animate without using tweens. Just a small example at that would help me alot. Or a small tutorial on a website would help me also. Thankyou:

Xanthus

Progam Animating
Could someone please show me some love and help me out. Ok here is my question, I know how to animate without using tweens such as this: "_root.ball._x += 10;", now my question is how would I make my movie clip "ball" to stop at a certain place?

Help Animating Buttons
I need to make it so that once i button in a movie is clicked or the mouse is over it, it animates. I dont need to make the button link to anything, I just want an object in my movie that animates when you click it.

Animating A Mask
Hi all,

I am trying to animate a mask, but not working for me.

I have an image over that a circle which is used to mask the image. I am trying to drag on press event. But nothing is happening.

Can anyone help on this. If so it would be helpful for me.

luv

lamus

Animating With ActionScript
Ok I doing a simple drag'n'drop. If the answer is dropped over anything but the correct hitTest i want it to return to its startpoint... easy, however i want to animate it to its startpoint using scripting, can anyone give me a start on how to do this?!

Thanks in advance Oll

Preloader Not Animating
Anyone know why my preloader is not animating? I got it from FlashKit.com and I just copy and pasted it into my movie and I added the appropriate code to Frame 1 and Frame 2...? Also, does it work correctly aside from it not animating???

http://www.BillyJoelMusic.com/ClassicalMusic2.shtml

Thanks,
Dan

Animating Buttons
i want to create a button, that when your mouse moves over it a line appears to a link and description just next door to it. how is this done, i think ive made the animation for the button but am new and so dont know actionscript very well at all, could someone spell it out please

cheers

Animating A Button
someone please help, this is killing me!!!

i'm making a button with an animate mouse over- i made the movie clip and the button, put a keyframe in the button's 'over' state, but i cannot get the movie clip into that frame- it says you cannot place a symbol inside itself.

How do i get the movie clip into the 'over' state of the button????

Animating A Line
I am extremely new to flash here. I can make text fade in and out. That's about it. On to my question...

I want to make a line go from one side of the screen to the other. Kinda draw itself I suppose. I am using Macromedia Flash MX. Thanks for any help.

Shane

ANIMATING ARROW - PLEASE HELP
I want to make an animated arrow i MX. I want it to enter the screen from the right hand side and then go to the center of the page... so far so good... BUT!!! Then I want it to CURL 180 degr. and stop in the "curly" position :|
I really need help with this one, people!!!! ANYONE PLEASE??
Looking forward to great responses.....Go for it!!!

Animating A Regular Pic.
Hey I dont really get into flash a whole lot, but im interested in animated a few little peices of a site. examples of this would be the computers on the front page of this site http://www.edevstudios.com/flashmxindex.html. Another is ofcourse at 2advanced.com where u can see the clouds moving in the background of the bridge picture. I have also seen the windows of buildings made to look like the lights are being turned on inside the building. I hope this is a easy effect to grasp. Can anyone help me with it

Animating Lines
I was just wondering, what th ebest and most efficient (yet simple) way of animating lines is. Like i want to have a heap of basic straight lines appear and make them appear as if they are drawing and making themselves into boxes etc in my movie.

How can i acheive this in actionscript, rather than using the timeline and masking it all??

Animating Jpgs
i am animating a full size jpg and it stutters really bad.... i am creating a cd project so downloading is not an issue just play back as an exe... and we would really like to use full screen jpgs.... any suggestions!

Copyright © 2005-08 www.BigResource.com, All rights reserved