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




Animating With ActionScript



I'm using Flash 8 for Mac OS X

I have individual layers on the main timeline. Each layer has one vector shape that altogether forms into a design of sorts. I was planning to manually animate each of the shapes through tweening/masking etc, but since there isn't a strict way to how I want these things animate, i.e, it can be completely random, I figured I'd look into ActionScript to see if there's any clever techniques I could use instead. I'm a total novice when it comes to ActionScript, it has to be said, but I am aware that you can draw commands to animate more flexibly than simple tweening.

Any help will be greatly appreciated.

Edit:

I've attached pictures so you can see what I'm referring to.

http://img120.imageshack.us/img120/183/01mm4.jpg
http://img120.imageshack.us/img120/6256/02ce6.jpg
http://img120.imageshack.us/img120/7421/03er9.jpg
http://img120.imageshack.us/img120/181/04pm1.jpg



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 11-26-2006, 02:50 PM


View Complete Forum Thread with Replies

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

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

Animating With Actionscript
I was wondering if animating everything with actionscript is more effective then animating with tweens? It seems more complicated to animate with script then tweens, perhaps its just me because i know merely the basics of animating with actionscript. Can anyone give me some feedback on this subject matter and give me some script for two cents, thanks much, Danny

Animating With Actionscript
ok.. i want to keep my file size down by cutting out as many tweens as possible.
how do i animate a simple movement with actionscript?
for example, i have a cloud moving slowly across the screen, from right to left....

???

Animating With Actionscript
I am working on learning more about animating using actionscript and my brother helped me figure out this little bit of code that will make an object look like its smoothly moving from one side of the stage to the other. Now what I am having a lot of trouble figuring out is how to modify this code to do a couple of things.

1) Once the object hits its target location is it possible to make it then move to another area. For example lets say it starts at x position 200, and then moves to x position 50, is it then possible to tell flash that if it hits x position 50 then its time to go up to y position 100?

2) I think this first question will probbally have an easy answer but this one I think might be a little bit trickier. Ok so say that I have this one object that when the movie loads it goes from x position 100 to x position 50. Is there any way to have a second object move in at a certain time? Like say I want it to start moving to a certain position 5 seconds after the first object stops moving. Would I have to use an if statement like if box1's x position is 50 start to move box 2 (I know if I were wrigting actionscript it wouldnt be written just like that but I am using it as an example).

Thanks to anyone to can help me out if there are any articles online that you can point me too I would appreciate it very much and also if there are any good book on animating with actionscript I would also appreciate it if you could give me a title. I am including an .fla file so you can see how I am making objects move if you can think of a better way to do it please let me know.

Thanks

Help: Animating With Actionscript
I have got it animating on the _x axis perfectly, but when I loop it, it goes back to the exact location of _x but does not play.


Code:
onClipEvent (enterFrame) {

if (this._x<375) {
_parent.topOriginal._x = 7100;
_parent.topOriginal._x -= 2;

}


}
Any help on getting this to play is greatly appreciated.

/z

Animating With Actionscript
I am currently using this actionscript to move an MC from 1 place to another:


Code:
on(release){
setProperty (_root.footer, _y, 123);
}
Is there a way of doing this so that it actually animates from its current x & x position to the new one I specified (as opposed to just 'jumping in')?

Thanks!

Animating With Actionscript
Hi all:

Just wondering if anybody can help me out with this:

Little sample movie

Now, if you have a slow enough computer, you'll notice this sort of asynchronous redraw, where if you watch the "moon" circle, (if you think of the movie in terms of orbits) it definitely lags slightly behind the "planet" circle, which can also slip slightly off it's orbit around the "supernova" circle. This always seems to happen to me with actionscript, where something does not seem to be redrawing at the same rate as something else, even though none of it uses onEnterFrame for anything.

Does anyone know a way around this?

I am using createEmptyMovieClip in order to instatiate new "frames" in my actionscript "animation." I was thinking that maybe this is what is slowing the thing down.

This little movie is entirely actionscript-driven. The only symbol in my library is a font.

Thanks in advance for any help,
Christopher

Animating With Actionscript?
ok so what I want to do, is, create a button that moves a box or any object across the stage. as well as make it scale and scew maybe change collor but I want it to animate, not just jump to the next position can anyone help me do this with actionscripting I know you can but I dont know how to make it work?
PLease help the helpless. hahhahahahahhaha, but for real can you help?

[F8] Animating With Actionscript
I'm working on an animation. The 'red balls' enter, breaks up and bounces around the stage. What I want to do is to have all those balls stop (when the user clicks) and move to the center of the stage. I was wondering if it was possible to do this using actionscript? The red balls are coded to move around randomly.

Here's the SWF file:
Animation SWF

So right now, when you click, the balls just stop...but I know if I enter

this._X = 400;
this._Y = 300;

in the onClipEvent (mouseUp) part of my code, all the balls will be placed in the center. So I was wondering if there a way to have the balls stop and actually have them all MOVE towards the center?

Each ball is a movie clip and I'm using this code to control all the balls:


Code:
onClipEvent (load) {

speed = 25;
angle = random(360);
speedX = Math.cos(angle*Math.PI/180)*speed;
speedY = Math.sin(angle*Math.PI/180)*speed;

}

onClipEvent (enterFrame) {

this._X += speedX;
this._y += speedY;

if (this._X>=760) {
speedX = -speedX;


} else if (this._X<=15) {
speedX = -speedX;


} if (this._Y>=560) {
speedY = -speedY;


} else if (this._Y<=15) {
speedY = -speedY;

}

}

onClipEvent (mouseUp) {

speed = 0;
angle = 0;
speedX = 0;
speedY = 0;

}




Hope I explained my problem clearly!
Thanks.

Animating With ActionScript
I'm using Flash 8 for Mac OS X

I have individual layers on the main timeline. Each layer has one vector shape that altogether forms into a design of sorts. I was planning to manually animate each of the shapes through tweening/masking etc, but since there isn't a strict way to how I want these things animate, i.e, it can be completely random, I figured I'd look into ActionScript to see if there's any clever techniques I could use instead. I'm a total novice when it comes to ActionScript, it has to be said, but I am aware that you can draw commands to animate more flexibly than simple tweening.

Any help will be greatly appreciated.

Edit:

I've attached pictures so you can see what I'm referring to.

Animating With ActionScript
I'm having a problem animating a character with ActionScript.
I need him to do a certain animation when I press left and right but I have no idea on how to do it. Is there a key Press and key release command? Otherwise if I just use key Press he'll keep doing the animtion until i cstop the movie.And also is there a way to access bits of movie clips from the script of another movie clip?

Help Animating With Actionscript
Greetings,

I'm developing a spinning wheel (wheel of fortune style) to use in an online trivia game. The wheel will determine the number of points assigned to each question that a person gets right, but I can't figure out how to animate it using actionscript. The wheel needs to rotate a certain number of degrees based on the random point value that is selected so it lands on the right space.

I have the random value and have weighted it based on the number of spaces with that value. I've then assigned a degree value for the rotation based on the point value. I just can't figure out the next step of assigning that degree value to the rotation property. I've attached what I have so far. I've tried several things, but I can't get it right. I think it must involve using the classes, but since I'm new to this, I haven't been able to figure out which one(s) or the proper syntax for using them. I've removed my failed attempts from the code since I'm not sure if I'm even barking up the right tree.

Any help would be greatly appreciated!

Animating A Box Using Actionscript
Hi,

i want to make a box appear from nowhere using actionscript,i have a small box 5 width by 5 height, and i want it to go to 300 width and then go to 300 height. I don't want to tween it cos using actionscript is probably a more effective way of doing it.

I don't know how this is done, does anyone have any ideas?

Animating Using ActionScript
is there a way of moving a movie CLip along the y axis using actionScript instead of tweening??

Animating With Actionscript
hi there,

i don't often post in the actionscript section even though i'm very experienced in flash, i've been mostly tweening things rather than looking into actionscript to help me out.

i've noticed some sites lately that just have such a smoothness to the animation and i want to work on learning how to do that. for example, this site:
http://www.ronherman.com/index_flash.html

someone told me that in order to get that fluidness to the animation, actionscript is used rather than frame tweening. i've searched and not sure where to start. does anyone have any links that i could look at to try to learn this type of actionscripting? thanks in advance!

nickyseven

HELP Animating Using Actionscript
Hi All,

I'm having a bit of trouble with some actionscript.

I have a movie with an instance name of myBook. myBook has these actions on it.

onClipEvent(load){
_root.myBook._x = 152;
_root.myBook._y = 323;
_root.targXscale=100;
_root.targYscale=100;
}

I have a button that tells the movie clip (myBook) to move a certain distance to the right. This in the action on the button.

on (rollOver) {
_root.myBook._x = 870;
_root.myBook._y = 323;
gotoAndStop(10);

}


So far so good...but this is when I get stuck.

You see, the button makes the movie clip (myBook) jump to its new position. I want it to motion tween (animate) to its new position..NOT...jump suddenly to it.

I would appreciate some help please.

Animating Mc Using Actionscript
Hello all,

I am new to animating with only actionscript so I am not sure how I need to do this.

I have a movie clip of 10 buttons, that I would like to scroll from top to bottom continuously. SO button 1 would appear on top of button 10. I am told doing this soley in AS can save me considerable bandwith, but I don't know how to go about doing it.

I started with this that I found... but, it's obviously still far off.

onClipEvent (load) {
this._y = 50;
}
onClipEvent (enterFrame) {
this._y = this._x+5;
}

Animating A Box Using Actionscript
Hi,

i want to make a box appear from nowhere using actionscript,i have a small box 5 width by 5 height, and i want it to go to 300 width and then go to 300 height. I don't want to tween it cos using actionscript is probably a more effective way of doing it.

I don't know how this is done, does anyone have any ideas?

Animating With Actionscript
Does anyone know the advantages/disadvantages to animating with actionscript vs. manual tweens?

also, i can animate with actionscript using two different methods (one with an ease out, and the other not) using the following code:

Ease out:
xPos=200;
cx=this._x;
difx=cx-xPos;
this._x=cx-(difx/6);

No ease out:
if (this._x<400) {
this._x+=5;
}

can anyone tell me of a way to move an object without an ease, and without using an if statement? how do you set the number of frames/time length for animating?

if anyone could help, i'd be grateful! thanks!
kathy

Animating Properties Via Actionscript
I need to know if it's possibile to animate the alpha property
(but it can be anyone else)using actionscript.

I have three graphic symbol in a loop structure
and at mouse event trigger I want to fade to zero
these symbols.
I have to use actions script because I do not
know when the user would click.

At mouse event I would like to tell flash to change
to zero the aplha property during a certain amount of time..

and only then instruct the playhead to jump everywhere I want to.

Thank in advance for you all

Davhub

Animating With Actionscript Problem...
I've been trying to do some animation using actionscript, i'm trying to make an on click rotation of a movie clip. I want it to stop rotating at a random spot. The movie clip is part of a spinner for a game that i am making, it looks kind of like the one thats used in the twister game if you know what that looks like. I've looked at some .fla files and some tutorials and i can get a _y or _x animation to go across the screen, but when i try to change it to a rotation it doesn't work.

If you could help me out with the scripting i would really appreciate it. I'm pretty new at actionscript so any help you can offer is good.

Animating A Grid With Actionscript
question:
i have a grid (symbol) on the stage and i want a ripple of light to course through each square in turn (so it looks like the light is runnign across the grid).

before i start changing each line colour in keyframes (nightmare) i'd like to know if this can be done with actionscript instead!


thank you

Animating Text With Actionscript
Hi-
i am somewhat new to Actionscript, but have enough understanding to disect what somebody gives me to look at.. here's my question. I have used Swish before to create text effects, but i want to learn to do it using Actionscript. Some time last year, i followed a tutorial that showed me how to make text effects by loading my text into an external text file, Inside the flash movie, if i remember correctly, I created a movie clip that would hold a letter "M" of whatever font i wanted. The capital M was to make sure that all letters would fit into the MC, since it is the widest and tallest of all the letters. I animated the movie clip however i wanted, and the actionscript would pull one letter at a time from the text fine and animate it along the motion path i set up... at the time that i did the excercise, i didnt fully understand. Now that i have a little more understanding of actionscript, i'd like to learn this.

if anyone can suggest a tutorial or show me the proper script to do this, that would be great... also, if you have a sample FLA file that i can study, that would be even better.

thanks
-myk

Animating Text With Actionscript
Lets try this again...
can anyone point me in the right direction? I'm trying to learn how to animate text with actionscript. ANy links to a good tutorial, or can someone post a saple .fla or script i can study? What i'd like to do is either read from an external text file or maybe assign my text to a variable in actionscript and have a movieclip that follows a motion path. I suppose this would be done in some way by slicing one letter at a time from the text or variable and running it along the path at whatever speed it needs to be run. I think i understand the concept, but the script is stumping me. I'm looking to learn how to do what 3rd party programs like Swish do, except i wanna learn to do it "the old fashioned way."

Thanks
-myk

Animating Tween Using Actionscript
Hello ,

Like thte new look

i have the following function that move the movie clip and fades it out
-----------code----------
function MoveMovie() {
target_x = getProperty(txBxClip1, _x);
new_x = _level0.txBxClip1._x+eval(target_x);
setProperty(_level0.txBxClip1, _x, _level0.txBxClip1._x+(++new_x));
newAlpha = getProperty(_level0.txBxClip1,_alpha)-2;
setProperty(_level0.txBxClip1, _alpha, newAlpha+1);
}
-------end---------
i have three frames with that calls the functions
and in the third frame i have an if loop
----------code------------
if (_root.loops<20) {
_root.MoveMovie();
gotoAndPlay("MoveMovie");
_root.loops = _root.loops+1;
} else {
_root.loops = 0;
gotoAndPlay("DuplicateMovie");
}
-----------end-----------
what i am trying to achieve here is that on each frame the movie cliped is moved in a +x position while fading out
the problem is that it moves and then after moving fades out

can anyone tell whats the glitch in my code here that i causing it
i want it to fade out while moving?

Kendall

Simple Animating With Actionscript...
not simple enough for my dumb ass....

so as if I shouldn't have figured this out years ago.... all I'm trying to do is make a movie clip animate upon clicking a button... I have 13 buttons and thirteen frames in the movie when you press any button and enter its frame the animated clip should slide over to underneath the button...moving faster if its farther away... slower as it gets closer...all I need to control is its x coordinates... easy enough... right? not for me... aaagghhh... thanks guys here I'll post it up for you...

www.michaelselto.com/random/ICMinterface2

Roatating/Animating With Actionscript
Hi people!

Does anybody know of anyway of being able to animate using Actionscript?

I realise that this question probably crops up all the time, but it would be very very handy!

for example, rotating a graphic clockwise/anticlockwise using actionscript.

OR... Even better being able to rotate a graphic clockwise/anitclockwise RANDOMLY - now that would be special!

e.g. So maybe it would spin twice to the right, stop, then once to the left, stop, 0.5 to the right, stop, 3 times to the left etc, etc....

Is this kind of animation possible in actionscript?

If so can anybody point me in the direction of how to learn it?

Cheers,

Deadhands

Animating A Set Of Pictures With Actionscript
Hi guys,

hope someone can help me! I have six pictures that i need to animate using actionscript. I need the pictures to get bigger as you hover over them and the other pictures (not being hovered over) to get smaller. I need to make it really smoother looking.

Does anyone have the code and the know how to do this?!
Someone gave me this code, but i can't seem to get it working:
MyPic1_mc.onEnterFrame = function(){
var speed = 2;

this._height+=(_root.Pic1H-this._height)/speed;
this._width+=(_root.Pic1W-this._width)/speed;

}


MyPic1.onMouseOver=function(){
_root.Pic1H=150;
_root.Pic1W=150;
_root.Pic2H=50;
_root.Pic2W=50;
_root.Pic3H=50;
_root.Pic3W=50;
_root.Pic4H=50;
_root.Pic4W=50;
_root.Pic5H=50;
_root.Pic5W=50;
_root.Pic6H=50;
_root.Pic6W=50;

}
I'd really apprenciate any help!!!!!!!!!

Animating Text With Actionscript
Hi pals.
I'm wondering how to animate a big volume of text with actionscript. I know that you can do that using AS but Im not a programmer (I'm actually a designer).

The idea is that I want to animate any character but if I do this manually it could takes years...

Any ideas to get this?

Please help.

...

Animating With Actionscript Questions
hi,

here are my questions...

1 )(This one is a general one) What if i animate my whole movie with actionscripts instead of tween animations, motion shapes? Using some setProperty values , +='s and so on... does that need much cpu usage? or whatelse? what are the advantages and disadvantages?

2 ) In frame by frame tweens, animations it's easy to arrange the animations. In actionscript, how do you make one action to play after the another and so on?... Is is all about with conditions and "if" statements? like, if that's done then do this? or is there any other ways to arrange the playing order of animations?

3 ) Let's say there is a "main" MC on the stage and everything else are embedded in it like "child animations"... and more child animations in those child ones and that goes on... Since when editing the animation structures, i had some difficulties with coordinates, exact places for motion tweens, i'm more into animating my objects with AS... is this a right idea? or is it harder or worse to edit and control lots of animations thru AS?

4 ) assuming that we have a static FPS rate, we generally organize our frame by frame animations according to their length of frames. For fast ones we give a few frames and for the slow ones it takes many frames. In AS? How can i adjust the speed that the animations flow with? Is there a common function, variable or does it change according to the AS structure that that animation uses?

By the way i don' plan to animate everything of course. and i don' plan to have so much complicated animations. Just some basic ones.
And please try to be as clear as possible since i'm not much good at ASing.

Thanx A Lot,

Animating Text Through ActionScript
I just want to animate few text messages by changing their alpha. I want each text message will come to stage, stay there for few seconds, changes their alpha value, faded there and new message come again. I want to do this by using the property of movie clips. So suggest me what Actionscript to use.

Animating Curve In Actionscript
I have just started using flash an am trying to use API to move a curve up and down but have got stuck just trying to move the curve handle controler just up by 200 in an animation?
This control handle is called controlY and have built a loop to change its value but although the debugging screen states its value has changed from 500 t0 300 there is no animation of this happening.
I include the script below and would appricate any help as It driving me nuts and I know I have forgotten somthing basic.
Thanks in advance.

//create clip
_root.createEmptyMovieClip("quad",100);

//variables
controlY=500;
controlY2=500;
col= 0xA5AFE2;
// my api drawing function
function drawWaves(clip,controlY,controlY2, colour){
bottom = _root[clip];
bottom.lineStyle(3,colour,100);
//start point
bottom.moveTo(0,800);
bottom.beginFill(colour,100);
bottom.lineTo(750,800);
bottom.lineTo(750,600);
// moving curves
bottom.curveTo(562.5,controlY,375,600);
bottom.curveTo(187.5,controlY2,0,600);
bottom.lineTo(0,800);
bottom.endFill(0,800);
};
//my loop to ajust the curve handle but doesnt work!!!
_root.onEnterFrame = function() {
if (controlY >300) {
for (i=0; i<200;i++){
drawWaves("quad",controlY,controlY2,col)
controlY--}
}
};

[f8] Animating Whit Actionscript
Hello all you almighty flashers
I need some help putting together some code.

I am making an “animation” to explain the server functions, to our clients,
how to download, file types, icons etc..

I have a cursor, the animation, moving around clicking stuff and info boxes appearing,
it works first time I play the animation but second time, it F**** up so some help would be greatly appreciated

It is don whit mctween2, slides and scale and so on.
basically i use thees scripts

//Frame1
setProperty(“pdftxt_mc”, _alpha, “0”);
pdftxt_mc.scaleTo(0, 1, “easeOutExpo”);
pil_mc.slideTo(16, 160, 0.9);
stop();
var nDelayID:Number = setInterval(this, “pause”, 3000);
// where 4000 is 4000 milliseconds
function pause():Void {
clearInterval(nDelayID);
nextFrame();
}

//Frame2
pdftxt_mc.scaleTo(100, 0.7, “easeInOutBack”);
pdftxt_mc.alphaTo(100, 0.7, “easeInOutBack”);
nextFrame();

//Frame3
stop();
var nDelayID:Number = setInterval(this, “pause”, 7000);
// where 4000 is 4000 milliseconds
function pause():Void {
clearInterval(nDelayID);
nextFrame();
}

//frame4
stop();
pdftxt_mc.scaleTo(0, 0.7, “easeInOutBack”);
pdftxt_mc.alphaTo(0, 0.7, “easeInOutBack”);
pil_mc.slideTo(135, 160, 0.5);
var nDelayID:Number = setInterval(this, “pause”, 500);
// where 4000 is 4000 milliseconds
function pause():Void {
clearInterval(nDelayID);
nextFrame();
}

And it is used over 25 frames
Ill attach the fla, it might be easier, but as i said any help wuld be greatly appreciated

Animating Actionscript Lines
Hey, how would i go about animating lines via actionscript? i have search for a tutorial but i only found a tutorial on how to draw static lines in actions script. Is there a way I can make it so the line takes time to draw it self, i mean so it not instant so it can draw the line say over a period of 10 seonds or 20 seconds, so it just draws itself and i specifie the points?
Thanks.
Definity.

Animating Whit Actionscript
Hello all you almighty flashers
I need some help putting together some code.

I am making an “animation” to explain the server functions, to our clients,
how to download, file types, icons etc..

The problem
I have a cursor, the animation, moving around clicking stuff and info boxes appearing,
it works first time I play the animation but second time, it F**** up so some help would be greatly appreciated

It is don whit mctween2, slides and scale and so on.
basically i use thees scripts

//Frame1
setProperty(“pdftxt_mc”, _alpha, “0”);
pdftxt_mc.scaleTo(0, 1, “easeOutExpo”);
pil_mc.slideTo(16, 160, 0.9);
stop();
var nDelayID:Number = setInterval(this, “pause”, 3000);
// where 4000 is 4000 milliseconds
function pause():Void {
clearInterval(nDelayID);
nextFrame();
}

//Frame2
pdftxt_mc.scaleTo(100, 0.7, “easeInOutBack”);
pdftxt_mc.alphaTo(100, 0.7, “easeInOutBack”);
nextFrame();

//Frame3
stop();
var nDelayID:Number = setInterval(this, “pause”, 7000);
// where 4000 is 4000 milliseconds
function pause():Void {
clearInterval(nDelayID);
nextFrame();
}

//frame4
stop();
pdftxt_mc.scaleTo(0, 0.7, “easeInOutBack”);
pdftxt_mc.alphaTo(0, 0.7, “easeInOutBack”);
pil_mc.slideTo(135, 160, 0.5);
var nDelayID:Number = setInterval(this, “pause”, 500);
// where 4000 is 4000 milliseconds
function pause():Void {
clearInterval(nDelayID);
nextFrame();
}

And it is used over 25 frames
Ill attach the fla, it might be easier, but as i said any help wuld be greatly appreciated

Animating Text Box With Actionscript
hi. can someone help

i have got a dynamic text box inside of a movie clip that I want to move around the stage using actionscript.

When I program it to move, the text disappears. i have tried embedding the text but it still disappears.

i am using the simple code for the animation.
_y += (endY-_y)/div;

I have tried dymanic and static text boxes, but it always happens.

Have you get any suggestion?

[FlashMX]Animating With ActionScript
Hi,

I'm just venturing into Flash MX action script. Could you please give me an example of code for the following?

- Changing Movie Clip Properties over time
- Stopping the animation on Enter Frame
- Stopping the animation after a certain time period

Should you know any sites that gives examples on the above, kindly state the complete URL. I sincerely appreciate your help. Thanks!

Animating Buttons With Actionscript?
Hey guys, here's another one I'm having trouble with (no surprise there =P). I picked up a site I half did a long time ago, when I knew a lot less about Flash. Since I knew so little, I made the timeline very dense (ie 100 things on 1 layer lol), so here's my problem: I have some buttons on there that I'd like to do some rollover animations on, but since the timeline is so dense, if I put a tween on them, it would royally screw everything up. Any way I can do a simple animation (ie gradual alpha or color change), as if it was a tween, except with actionscript? Thanks for any and all help, I really do appreciate it.

[FlashMX]Animating With ActionScript
Hi,

I'm just venturing into Flash MX action script. Could you please give me an example of code for the following?

- Changing Movie Clip Properties over time
- Stopping the animation on Enter Frame
- Stopping the animation after a certain time period

Should you know any sites that gives examples on the above, kindly state the complete URL. I sincerely appreciate your help. Thanks!

Animating On A Motion Guide With Actionscript?
I was wondering if anyone knows if it is possible to have a movieClip follow a motion guide using actionscript and not motion tweening? And if so how?

Animating Movie Clip With Actionscript
Ill try my best to explain my situtaion. On the root timline I have a series of different sections. Each section has a MC on it with a series of buttons inside the MC that control the different frames on the root. When clicking on a button from the controls in a movieclip I need it to go to the specific frame in the root timeline and target the MC in that next frame and have it move up. So far, I have got it to move up upon clicking the button, but the problem im having is when referencing back to that frame where the MC animation occurs, it starts over again, when it should stay in place where it moved to. Basically its repeating that animation, and I need to write some sort of code saying that if the MC is in the position where its supposed to be, dont do anything, but if it isnt, move to where it needs to be. Here is the code I have so far:

This is on the "nextButton" in one of the MC's which are on the root:

on (release) {
_parent.gotoAndPlay ("home_3")
ypos=46.8;
}

This is the code thats on the MC that resides on the _root at frame "home_3":

onClipEvent (load) {
_root.ypos = 560.6;
}
onClipEvent (enterFrame) {
speed = 5;
this._y += (_root.ypos-this._y)/speed;
}

Animating Mc's On A Curved Path Using ActionScript
I've got a project that calls for animating some text along an invisible curved path. I know how to do this manually with motion guides and individual mcs for each letter, but I need to really conserve file size and I think AS is going to be the only way to achieve this.

I know how to convert the characters in a string to individual mcs and work with them in a straight line, but can I get some suggestions for doing this along a curved path?

Thank you!

Animating Dynamic Text With Actionscript
I have 2 dynamic text boxes that are embedded in a movie clip, which I'm fading in using actionscript.

All the content in the movie clip fades in, but the 2 text boxes just imediately appear on screen.

This is the code I'm using.


Code:
new mx.transitions.Tween(_parent.patients, "_alpha", mx.transitions.easing.Regular.easeInOut, -100, 100, 3, true);
I've tried putting the code and that text boxes at various levels of my movie thinking it may be a nesting issue, but nothing seems to work. Also changing other attributes, such as position on screen, but that doesn't work with these text boxes either. Even tried putting a mask over the boxes and animating the mask, that cause the text to disappear entirely.

The same or similar code is working without any problems on other elements in my movie.

At this point, I don't really care what it does or how I do it, I just need the text to animate in some how, instead of just plopping into place.

Animating A Movie Clip With Actionscript
Can someone point me in the direction of a tutorial to accomplish the following.

I have an image gallery, which is a horizontal group of images in a movie clip. I want to put back and next buttons in place that when clicked the movie clip will fluidly move across _x to the next image, preferably with a springy sort of motion as it stops at each image.

Any help appreciated.

Animating Mc's On A Curved Path Using ActionScript
I've got a project that calls for animating some text along an invisible curved path. I know how to do this manually with motion guides and individual mcs for each letter, but I need to really conserve file size and I think AS is going to be the only way to achieve this.

I know how to convert the characters in a string to individual mcs and work with them in a straight line, but can I get some suggestions for doing this along a curved path?

Thank you!

Help Having Issue With Animating MovieClip In Actionscript
Hello to all my favorite forum folks!

I have been using flash for a few years, on and off and have used the forums successfully for many issues I couldn't resolve.

Essentially I have a 3 layer Flash file.
First layer being actions, second is my Navigation (just text right now) and third is my photo (which is being used as a movie clip)

I am wanting to animate the photo from one xy coordinate to another using the same navigation button. I tried using frame labels and the gotoAndPlay function but I have had problems with this in the past and it just won't work.

Does anyone have any piece of code which I could use that would use a if/else statement to animate to certain xy coordinates.

I've been trying diferent things that have been posted on the forums to no avail. If anyone can help it would be appreciated. Thanks!

Animating (Advanced) Colour With Actionscript.
Can anyone walk me through how to animate the colour of a movie clip using actionscript? i.e. in the way 'Advanced' lets you add/shift colour values per channel (in the Properties panel).

Looking for the easiest way possible.

Thanks heaps in advance.

Animating Blocks Of Text Via Actionscript
I'm using MX2004. I'm trying to find a way to animate several different blocks of text (no more then 5 words long) mainly using actionscript. The blocks of text fade in over a period of 10 frames. I also want them to fade in at specific times so that they can play along side a video. Similar to a power point animation but automated.

Is there an easier way to do this without doing it by hand on the time line?

something like:

at frame 1620 fade in "Some Block of Text" from "_alpha = 0" to "_alpha = 100" over 10 frames...?

could somebody point me in the right direction?

Thanks,
Bob
www.bayonics.com

Animating Blur Filter With Actionscript
Hey guys,

I've been scouring the internet for the past hour or so in search of how to do this. It's very simple, but every example seem to want me to bring a loaded movie clip, or trace mouse position. I don't need that!

Basically I have a button that when clicked comes to the front (using behaviours), moves to a new position, scales and then I want every other button behind it to blur. Obviously I want them to blur gradually to keep the flow going.

Here's my current code so you can see where its going:

on (release) {

import mx.transitions.easing.*;
import mx.transitions.Tween;
import flash.filters.BlurFilter;

//Bring to Front Behavior
mx.behaviors.DepthControl.bringToFront(_root.testi monials_content.testimonial1);
//End Behavior

//gets rid of buttons
gotoAndPlay("no_buttons");

//brings to centre
var testimonialX:Tween = new Tween(testimonial1, "_x", mx.transitions.easing.Back.easeOut, -377, 0, 10, false);

testimonialX.onMotionFinished = function() {

//scaling
var testimonialH:Tween = new Tween(testimonial1, "_height", mx.transitions.easing.Bounce.easeOut, 134, 333, 10, false);
var testimonialW:Tween = new Tween(testimonial1, "_width", mx.transitions.easing.Bounce.easeOut, 146, 363, 10, false);

//blurs other testimonials

}
}

All the instances are already on the stage so I don't want to go calling anything else in.

So how do I simply say I want testimonial to blur over 5 frames or so?


Cheers!

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