Line Animation Using Actionscript
hey all, I have what seems like a rather easy effect to acheive here, but I'm having troubles with it.
Basically, I want a line to scale from the left side of my movie to the right. When I use "this.line._width = 20", it scales on both sides. I want it to only scale to the right. Is there a way to do this with actionscript? I'm going to make the line scale at a variable rate in the future, so it starts out scaling fast, then slows down as it reaches its destination. If anyone has any suggestions, I'd appreciate it.
Gene
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 04-02-2003, 01:11 PM
View Complete Forum Thread with Replies
Sponsored Links:
:: ActionScript Text Animation -- Line Breaks?
I'm using the text effect I found in
ActionScript Text Animation , and the script works great.
My question is, is it possible to have line breaks? I tried adding spaces to end a line, but you'd have to wait for the script to read through the added spaces before the next line begins.
Thanks!
-zap
.:.·.:.·.:.·.:.·.:.·.:.·.:.·.:.·.:.·.:.
CARLO ERWIN V. ZAPATOS
Website Designer
SUYEN CORPORATION
Tel +63 2 887-2311, local 159
www.benchtm.comActionScript Text Animation
View Replies !
View Related
Is Actionscript Processed Sequential (line By Line)?
Ok, so long story short, I have a loop that fills three different arrays. As soon as the loop finishes, on the next line, a function is called that loads dynamic images into movie clips. However, this isn't working as I thought. Instead, the function is being called at the same time as the loop is running. Therefor, the first few images don't show up and I get undefined errors. However, if I delay the function being called by 50ms, I don't get the error. This means that it is a timing problem and that flash is executing the loop and the function call at the same time.
Does anybody have any experience/advice on what or why this might be happening?
Thanks in advance.
Edit: Also, my entire movie is implemented using actionscript in the first frame of the movie.
Edited: 07/18/2007 at 02:27:48 PM by nateyboy044
View Replies !
View Related
Line Animation
I am still trying to figure this out. I am trying to creat a Flash Intro for a construction company. The intro is going to be of a house in Line Art. I want to animation to draw the house (much like a pen writing on paper). Can anyone help. I know of one tutorial in FK, but it doesn't work for what I was going to do. Anyone that can help please respond. The more the better.
View Replies !
View Related
Line Animation?
I'd like to know what Eric Jordan of http://www.2advanced.com/flashindex.htm did to make the lines of the tables appear one by one, glean, and then to dull out.
How did he do it?
Sidenote: If this topic has been posted up before, I'm sorry. I tried searching under line animation and 2advanced.com to find it, but nothing came up.
Thanks for your help.
View Replies !
View Related
Line Animation
does anyone know a good script for random line movement?
lines should move from left to right and from right to left, including random postion of begining and random alpha.
the effect is really old, i have seen it so often, but i canīt find a script.
View Replies !
View Related
Line Animation
Does anyone have a sample of a line animation that shows a line being drawn from point A to point B. There a quite a few verbal explainations, but no visual samples. If you have one, there are quite a few of us that would appriciate one.
Thanks for any help.
View Replies !
View Related
Line Animation
I am a newbie to flash. I am trying to make an Indiana Jones-like animated line over a map. I am using the tween function and whenever there is a turn in the road i build a new line. I am having two problems.
1. About halfway through my sequence the different segments start moving all around the screen.
2. When i export my sequence as a Quicktime, none of my animations show up, only my map layer.
Please help me flash gurus!
-Grommit
View Replies !
View Related
Line Animation
hello, i have this portion of code:
Code:
var my_line:Sprite=new Sprite();
my_line.graphics.lineStyle(0, 0x000000);
this.addChild(my_line);
my_line.graphics.moveTo(0,0);
my_line.graphics.lineTo(35, 40);
my_line.graphics.lineTo(60, 60);
my_line.graphics.lineTo(180, 100);
my_line.graphics.lineTo(60, 160);
that as you see as 4 lineTo method, waht i would like to achieve is an effect as the line are actually being written(in real time), what is the way to achieve this, do i need to make a timer for each lineTo method or is there something more practical?
View Replies !
View Related
Line Animation
can any one help me. im am tryin to create an animation where it looks like a line is being drawn, i can do a steaight line but having difficulty with it curving. anyone know how i can do this??
this website is the kind of effect im tryin to achieve http://www.glorbox.com/site2.html
would be very greatful for the help.....
View Replies !
View Related
Line Animation Using MC
Hi
I'm making a crack animation in a surface, using MC to lengthen a line. But the line gets bigger the longer I go.
I can remember a line animation tool in flash, with points you allocated to control the line.
Anyone know it?
View Replies !
View Related
Extending Line Animation
I was wanting to a line that is drawn along where my menu will appear, like appears at the bottom of the page @ http://www.ckc-clan.co.uk/xl/
Please take a look and let me know if you can help, in flash or maybe another prog
thx
lev
View Replies !
View Related
Simple Line Animation
hello i wanna do i simple line animation starts off small then streches the length of my project window sort of like drawing a straight line with a pencil. my begining and endframes are graphic symbols when i tween it doesnt work any help would be appreciated
View Replies !
View Related
Line Animation Under Jpeg
Small problem. On stage I load a jpg in a empty movieclip. The movieclip has a mask. I have an animation (a square that get wider and wider until it is the size of the jpg + 2 pixels)
When I test, the animation opens under the jpg, so you can only see the sides! I thought it might be the depht so I've set it with swapdepths. The animation is on top but still "hides" under the jpg.
What can be the problem ??
View Replies !
View Related
Diagonal Line Animation
I'm currently looking to create a diagonal line animation within Flash MX.
I've thrown together a really quick example (attached) using a JPEG with motion tween, but I'm really interested in creating this effect within Flash instead of having to import an existing image. Is this possible?
Many thanks,
Ricoz.
View Replies !
View Related
Help: Line Animation Effect
I'm looking for this kind animation found at:
http://www.luckyvoice.co.uk/
Lines go self-drawing until an outline image is completely formed.
Does anyone know if it's an effect or was just made step by step?
I'm working with Flash MX.
Thanks a lot!
View Replies !
View Related
Tracing Line Animation
Hello,
this is my first post here, so please be kind to me
What I am trying to do is to have this line being revealed as the mask is moving along to it. Like that after the mask has revealed an area it stays revealed. so that in the end the line will have grown.
I have been looking and looking a lot but can't find how to do this. Could it also be that there is a simple trace function that could help me to simply have a line being traced as an object is moving on the screen? like for these scripts that let you draw dynamically. except that what draws the line here is simply an object in the flash file?
I bet this can be very easily done.
Thanks in advance for your help !
View Replies !
View Related
How To Do A Simple Line Animation?
Hey guys,
New to flash and I was wondering if anyone here knows how to animate a line drawing -to make it look like i put a pen on a sheet of paper and started to draw...!
I'm sure it may have been discussed here but I don't know what you would call this type of animation.
Thanks for any help!
Zupr.
View Replies !
View Related
Animation Line Drawing
I have a drawing that looks like an outline.
I have drawn it in illustrator and imported it as a PNG and have used mask to make it looks as if it being drawn in front of the viewers face.
masks are tedious as is motion tweening.
Has anyone had expeience with this and have done it a different way?
I am trying to learn advanced animation to supe up my sites
ie. http://www.petermatra.com
View Replies !
View Related
How To Do A Simple Line Animation?
Hey guys,
New to flash and I was wondering if anyone here knows how to animate a line drawing -to make it look like i put a pen on a sheet of paper and started to draw...!
I'm sure it may have been discussed here but I don't know what you would call this type of animation.
Thanks for any help!
Zupr.
View Replies !
View Related
Complex Line Animation
greetings all,
my problem is this: I want to animate a line like it was being written on the computer screen with pen and ink. I have the final image that I want to produce, I just don't know how to make an animation form it.
what I've tried so far is creating a mask tween to slowly expose parts of the final image until it's all shown, but this process is pretty ugly to me. I've also tried shape tweening it, but all I can get out of this method is a bad morphing effect. the final image is complex, and I imported it from illustrator, so creating it totally in flash is pretty much out of the question.
anyone know a tutorial on this kind of thing? or can anyone at least point me in the right direction? thanks.
View Replies !
View Related
Animation Line Drawing
I have a drawing that looks like an outline.
I have drawn it in illustrator and imported it as a PNG and have used mask to make it looks as if it being drawn in front of the viewers face.
masks are tedious as is motion tweening.
Has anyone had expeience with this and have done it a different way?
I am trying to learn advanced animation to supe up my sites
ie. http://www.petermatra.com
View Replies !
View Related
Line/Tracing And Animation
Hello there,
I have been wondering about one effect. We can see this effect very often in PowerPoint, where a line or a connector line is being drawn from start to finish. I know that we can do that using masks in Flash but is there anyother way so it would appear more realistic when using curves or complex drawings using lines. For example if I want to trace an object, like a car and woud like to animate that trace so that the audience would have the feeling that the line by itselt is drawing a car from start to finish. How can I do this effect in Flash MX. Is there a third party software that can help me do that?
If I want to first show that a line is drawing a car and before the line (trace) finishes tracing/drawing the car the image of the car fades in. What is the best way to do this?
I hope I made myself clear enough.
Thanks anyway,
Greeting from Brazil,
Fabio Mattos
View Replies !
View Related
Scripted Line Animation
Hey fellow shockers.
I'm in need of a scripted line animation. I got a horizontal line which is supposed to vibrate like a guitar string for example. but not at a high frequency. much slower like a guitar string filmed in slow motion.
the tremble should happen when the cursor is moved over the line from top to bottom or vice versa. anyone got a clue where to find that effect (i've seen it somewhere, but don't remember wher that was). or how to do something like this myself.
View Replies !
View Related
Random Line Animation
Hello, i'm trying to make a line randomly move to a different point. (curveTo).
Now the first time the line moves it goes smoothly, but after that it doesn't go like i want it.
This is the as i currently have, i hope somebody can help me out
Code:
var controlX:Number;
var controlY:Number;
var currentX:Number;
var currentY:Number;
var firstMove:Boolean = false;
var amount:Number = 10;
stage.addEventListener(Event.ENTER_FRAME, randomLine);
function randomLine(e:Event):void {
if (firstMove == false) {
controlX = Math.round(Math.random() * stage.stageWidth);
controlY = Math.round(Math.random() * stage.stageHeight);
currentX = Math.round(Math.random() * stage.stageWidth);
currentY = Math.round(Math.random() * stage.stageHeight);
firstMove = true;
}
if (currentX > controlX) {
currentX -= amount;
controlX = Math.random() * stage.stageWidth;
} else if (currentX < controlX) {
currentX += amount;
}
if (currentY > controlY) {
currentY -= amount;
controlY = Math.random() * stage.stageHeight;
} else if (currentY < controlY) {
currentY += amount;
}
graphics.clear();
graphics.lineStyle(1);
graphics.moveTo(0, stage.stageHeight / 2);
graphics.curveTo(currentX, currentY, stage.stageWidth, stage.stageHeight / 2);
}
View Replies !
View Related
Loading.Animation.Line Art.Help.FlashMX
Basically, I want to make a similar type of loading sequence that can be found in the beginnin of any of the "view" links at
http://www.brendandawes.com/headshop/
I want to create a loading sequence where a vector piece of line art appears to "draw" itself out. Does anyone have a .fla or actionscript of this. How does this animation work??? Flash MX only.
View Replies !
View Related
Line Animation Script Problem
i simply want to move a line from a to b with actionscript.i create a movie in _root and use lineTo moveTo and clear.the problem i encountered is this: the line is blinking if i use lineTo and clear and the same thing happens when i use lineTo and then lineTo with backgorund colour.so what i need is something to make the the transition smooth and cut out that crazy flickering.thanks
View Replies !
View Related
Line Animation - From A Dot To Outline Of Graphic?
i had a talk to a friend of mine as to how this would be achieved. i can't seem to achieve the answer.
basically what i want to do is this. the screen is basically empty initially in the animation, with only a dot. but as soon as the dot blinks, i want it to begin moving, and eventually outlining the shape of a human, and also outlining background details. afterwards, i would like the real photograph to fade in, behind the outlining, to create a photograph with the edges basically all outlined.
really appreciate it. i have a string of other things i'm looking at too. i have a client interested, and our flash team just left for further persuing their graphic design careers at york university.
thanks,
danny
View Replies !
View Related
Line Animation - From A Dot To Outline Of Graphic?
i had a talk to a friend of mine as to how this would be achieved. i can't seem to achieve the answer.
basically what i want to do is this. the screen is basically empty initially in the animation, with only a dot. but as soon as the dot blinks, i want it to begin moving, and eventually outlining the shape of a human, and also outlining background details. afterwards, i would like the real photograph to fade in, behind the outlining, to create a photograph with the edges basically all outlined.
really appreciate it. i have a string of other things i'm looking at too. i have a client interested, and our flash team just left for further persuing their graphic design careers at york university.
thanks,
danny
View Replies !
View Related
Timeline Animation Tweening Vs Actionscript Animation
Hi All.
The reason for this title is because I am currently producing flash banners for a company and have been looking all over the internet on such a subject.
My flash skills are somewhat limited. I currently make everything on the timeline and have started to see its limits. I find I am getting choppy movement with some of my animations.
I have tried using jpgs, pngs, gifs and vectors in flash but still get the same problems. I have tried setting the fps to 12, 24, 32 and 90.
I hear that flash 8 is apparently buggy and that you should set it to 31fps. Can anyone verify this?
Also I understand by uping the fps you start to encounter loading problems as you are starting to reload the whole piece your working on faster and faster and so computers with a low cpu will suffer.
I found by looking at using certain colours one can get around possible chopping problems and by spinning the word or image this can take away some of the effect.
I also read by setting publish to 'quality=best' can make a difference.
Next I've started reading about 'onEnterFrame' 'pressHandler' and OnMouseMove handlers in actionscript and how this can help.
Can anyone shed any light about how to get a nice simple smooth animation for a flash banner?
Many thanks
Newsense
View Replies !
View Related
Changing Keyframed Animation Into Actionscript Animation
Can anybody provide me with any code and technique that will succesfully allow me to convert my menu from a keyframed animation into a dynamically generated actionscript menu? I just realized that i might have to change the buttons more often than not and i would like to future-proof this as much as possible. i also want it to move very smoothly. Any and all help is appreciated
Here is the menu animation
P.S.: some of the buttons are to be drop down menus, so id like that functionality as well. Any and all help is appreciated. Thanks alot
View Replies !
View Related
Changing Keyframed Animation Into Actionscript Animation
Can anybody provide me with any code and technique that will succesfully allow me to convert my menu from a keyframed animation into a dynamically generated actionscript menu? I just realized that i might have to change the buttons more often than not and i would like to future-proof this as much as possible. i also want it to move very smoothly. Any and all help is appreciated
Here is the menu animation
P.S.: some of the buttons are to be drop down menus, so id like that functionality as well. Any and all help is appreciated. Thanks alot
View Replies !
View Related
Changing Keyframed Animation Into Actionscript Animation
Can anybody provide me with any code and technique that will succesfully allow me to convert my menu from a keyframed animation into a dynamically generated actionscript menu? I just realized that i might have to change the buttons more often than not and i would like to future-proof this as much as possible. i also want it to move very smoothly. Any and all help is appreciated
Here is the menu animation
Roll over the cross to start it.
P.S.: some of the buttons are to be drop down menus, so id like that functionality as well. Any and all help is appreciated. Thanks alot
View Replies !
View Related
Changing Keyframed Animation Into Actionscript Animation
Can anybody provide me with any code and technique that will succesfully allow me to convert my menu from a keyframed animation into a dynamically generated actionscript menu? I just realized that i might have to change the buttons more often than not and i would like to future-proof this as much as possible. i also want it to move very smoothly. Any and all help is appreciated
Here is the menu animation
Roll over the cross to start it.
P.S.: some of the buttons are to be drop down menus, so id like that functionality as well. Any and all help is appreciated. Thanks alot
View Replies !
View Related
Animation Of A Line Being Drawn Via Shape Tween
while i know how to reveal lines and other graphic elements through masks, i wonder if there is a way to animate the drawing of a line directly via shape tweening (or some other method i don't know?). the line i want to make is scribbly and overlaps itself many times, which makes the mask method very time comsuming and not so easy to do smoothly. my early attempts show a dot that just exapnds into the final scribbly shape, and shape hints do not seem to be applicable here.
i would greatly appreciate any insight here (even if it is a conformation that i'm barking up the wrong tree).
many thanks,
shawn
View Replies !
View Related
Time Line Control Question, Animation Fade In And Out
what im trying to do is load an external with a menu button. This is easy, now to be completely clear the loading external movie is going into level 5 and has a basic intro animation over 40 frames or so. then it comes to a stop command. Now what i want it to do is when another menu button is clicked i want the movie that is currently loaded into level 5 to play from frame 40 to frame 80 or what ever then when it is done i want to be able to load a new movie into level 5. so basicly i need code that says play the movie in level five, when its done playing load a spacific movie into level 5.
Thanks a ton, i hope this is clear.
Chris
View Replies !
View Related
Actionscript Animation Vs. Timeline Animation
So I just got finished watching lees tut on the new motion editor in CS4, it looks pretty sweet!!! As I was watching a few questions came to my mind. Please keep in mind I have only been in the flash world for about a one and a half years and still trying to wrap my brain around AS2.
As I have been learning actionscript I have always been under the notion that it has been better to script your animations rather than do timeline animations. While I understand that would be good for a 10-15 second web banner I never understood how you could script a 2 min animation so I always animated in the time line.
So now with the new motion editor and say the bone tool in cs4 my question now is when should you script your animations and when do you use the timeline?
Thanks,
Mike
View Replies !
View Related
What Does This Actionscript Line Mean?
Hello,
I'm trying to create a txt effect, but there's one line in the sample movie which I do'nt understand:
set (c add "/2type:letter", substring(text, c, 1));
Can somebody tell me what's done here?
It's a line from flash 4, converted to flash 5. I just can't get out.
Please help me..
Sorry for bad English
Greets DrakaN
View Replies !
View Related
Help Actionscript For New Line
Hi
I have actionscript for a text effect. All the text I write is put on one line. How can I make the actionscript divde the text into more than one line?
The code I have is: -
text = "Hello! How are you doing today?"
which gives me: -
Hello! How are you doing today?
I want: -
Hello!
How are you doing today?
I have tried these but it does not work:-
text = "Hello!" /n"How are you doing today?"
text = "Hello!"
"How are you doing today?"
text = "Hello!" <br>"How are you doing today?"
Any ideas anybody?
View Replies !
View Related
Draw A Line From X To Y With Actionscript?
Hi there new friends!
Is it possible to add a snippet of code which draws a line from point 1 to point 2, according to variable coordinates.
I want a funcion looking like this, kinda;
drawLine(p1_X,p1_Y,p2_X,p2_Y,COLOR_GREEN, WIDTH_2px)
Or something like that.
Or can you stretch a piece of graphics between those points? It sure would be great, sorry if this is a n00b question.
Cheers and thanks in advance.
/Hoffe
View Replies !
View Related
Line Movement With Actionscript
How do I make a movie (of a horizontal line going down the screen) start playing backwards (ya know, going back up?) when it gets to the last frame and keep looping? I thought I could do this by setting a variable at the beginning equal to 1 and at the end equal to -1 and then just have the actionscript Go to and Play (_currentframe + framenum); (framenum is the variable I created)....but it doesn't seem to work...what did I do wrong? I know it's something stupid.
Alright alright, I know i can do this by doing a simple motion tween with 3 keyframes to make the line go down and up and rinse and repeat and whatever, but that's not the point. The point is...I'm stubborn and I want to do this with actionscript.
View Replies !
View Related
|