ActionScript 3.0 :: Way To Create Sin Wave Motion Using Math / Not Tween / Class?
Apr 18, 2009
What would be a good way to create a sin wave motion using the math, not tween, class? In maya it was quite simple with sin(value) but I can't seem to get a decent undulation out of Flash. The case I'm working on is a bubble generator, you know, just for kicks. That fish tank screen saver has the bubbles moving in a sin wave it seems, looks like it works well enough.
What would be a good way to create a sin wave motion using the math, not tween, class? In maya it was quite simple with sin(value) but I can't seem to get a decent undulation out of Flash. The case I'm working on is a bubble generator, you know, just for kicks. That fish tank screen saver has the bubbles moving in a sin wave it seems, looks like it works well enough.
I'm just learning the software and haven't been able to figure this out. I'm trying to create an historic timeline for our company and am using 20 jpg images, which I placed on separate layers and then converted each jpg to a symbol and motion tweened to go across the screen. The problem is that there is a gap between the frames when they play as a movie and I don't know how to get rid of that so that they flow continuously across the screen from left to right seamlessly.
I have no problem creating shape tweens in Flash CS4, but motion tweens are a problem. Here's what I do: - I draw a rectangle and convert it to a symbol on frame 1. - I create a key frame on frame 25, where I place the symbol in a different position. - On frame 1 I create a motion tween. When I run this nothing happens until frame 24, and on 25 the symbol appears on its final position. I can do the movement with a shape tween, but I want to do it with a motion tween, as this may be a question at the exam next week.
I have already created an animattion of a bird flapping its wings. I want to include this within another animation of it flying around as well as flapping wings and wondering how this can be done. I tried to import it as both a gif image and swf movie and although it holds the original animation I cannot add the motion tween to draw the flying path.
I dont have any examples now, but you know when you tween a movieclip across the stage (changing its x and y properites) and then according to speed of a movieclip a blur effect is applied?
How do you create a motion tween when I insert keyframe in frame 28 then I click on the object and create motion tween but when i click in 60 to insert keyframe I get opition of position, scale, skew, rotate ect. I just want to insert keyframe. What am I doing wrong?
Basically, I created an image and converted it to a movie clip. Inside of this movie clip, I create a new layer and I give both layers 70 frames. On the top layer, I then draw a path, right click on the layer, and choose guide. I then drag and drop the bottom layer, which represents my movie clip, under the guide layer. The next step is to right click on the bottom layer, my object layer, and choose create motion tween. This for me however is blocked out, and my only option is to create a classic tween.
Just as a note, I am using CS5 and the tutorial I am following looks to be using an older version. Additionally, they don't right click on the layer and choose motion tween. They select the layer and from like their properties panel, they have a tween option, and from the drop down, they choose motion. I cannot find this option box in my interface however. Is there any logical reason why it wont allow me to do a motion tween?
im building a class file that tweens an empty movie clip, containiing an attached mc, using the tween class. How can i make the script wait for the tween to finnish before executing the next function?
whether it is possible to automatically create a motion tween of a black circle that would result in an animated drawing of a line? The circle should not only move but also leave its own copy at each frame of its route.
I know it is very easy. Right click> create motion tween> drag to where I would like the text/object to move. But, Sometimes it doesn't seem to work when I drag the text. It will work the first time and for the second text on the frame it won't work. What are the requirements of a motion tween when it comes to text on a single layer in the same frame.
I need to move a movie clip with action script. I am writing action script to one of the layers and calling my movie clip "bird". I want to move the clip in a wave motion(like a sine wave). I am using the bird._x and bird._y and setting them equal to a variable. But the _y part of it is not moving. The movie clip is only moving from right to left and there is no upward or downward movement.
It seems to be the case that the MOTION_FINISH event fires of prematurely in the Flash Tween class. I've heard that it is not the best tween engine to use, but this seems like a particularly egregious. I am using "Strong.easeOut" for the motion. What are some alternative tween engines that people like?
If I perform a motion tween along a curved path, Flash CS4 does not allow to change the curves to "corner point" or "linear" in the motion editor. URL...
way to add more time in between the keyframes when you are using the "create motion tween" tween. For example I have a simple animation, an object floating up, it pauses for a second, then goes to the right. Say I finish tweening the animation, I then want the object to take more time moving to the right. So pretty much i want to add more frames inbetween those two keyframes. In a classic tween, I would select the frames in between and hit f5 a few times to lenhthen it. How can I do that using the new tweening method?
I will have three seperate pages for the motion tween, mask effect and shape tween... would you make the seperately, in a different scene, as a symbol or on the same scene with the website.
my movieclip button was working perfectly as a motion tween. Can you use shape tweens as movie clip buttons? I just made that change, and kept my code:
I am facing a problem in one of my animation with flash CS4 - I have nested a Shape Tween in a Motion tween to get more control over the easers and effects, unfortunately I am not able to view on the timeline of my Motion Tween the action of the Shape tween nested inside.
It only show the first shape of the Shape Tween during the entire Motion Tween and that is really a problem for me because I need to see the final frame result of that Shape tween to be able to position it in a precise way on my scene according to other instances.
I'm making a "master movie" for an assignment and I'm stuck right now. What I've got is an Intro page that will serve at the Parent.swf to load 4 other child swf's upon a mouse click. The problem is I have a theater stage where I tweened an animation to make it appear the curtain on the stage is going up but once it reaches it maximum height....the tween abruptly stops. I want it to HOLD there until a user clicks a button.
How would I make this happen? Here is the page in question: [URL]...
how to create an interactive wave using actionscript and flash api? I mean the interaction like this but not so complex (I need jsut about 10 to 20 peakpoints)URL...