ActionScript 2.0 :: Sine Wave Picture Effect?
Jun 11, 2004how do i make this sine wave picture effect ,wave on the horizontal insted of the vertical
)
( vertical as it is now
)
[code]....
how do i make this sine wave picture effect ,wave on the horizontal insted of the vertical
)
( vertical as it is now
)
[code]....
I have a logo that I made in Fireworks, and it looks decent, but I was wondering if anyone could mimic it with movement. For example, if someone could use actionscript to make it "wiggle" or wave like a flag in the wind, that would be awesome.
Notice how the blue line itself stays at about the same thickness (it barely starts getting thicker), but the shading around it thickens as it goes more and more to the right.
Here's the image (ignore the text):
I want to make a movieclip move on random sine wave. (sine path)I m trying to do this for a week and cant get it good.I want to make the curves random. and acceleration too.(it will be a fish like character swimming)Like as in this game : http:[url]..........(the small character which swim and move smoothly)this is the portion of code im using now.
var tempEnemy:MovieClip = _root.attachMovie("enemy1","enemy_1,1);
tempEnemy._x = 500;
tempEnemy._y = 0;[code]..........
how to create a sine wave using flash as3?and how to add changes to the wave based on changing frequency and wavelength using a slider.
View 2 RepliesI'm generating a sine wave and playing it as a sound. But When I call SoundMixer.StopAll() it's causing a click when sounds stops. I think its because it's cutting the sound off in the middle of the wave, I was wondering of a way to make the sine wave slowly ripple out before i stop it. Is there already functions to do this in Action Script 3 or is my sine wave function i need to modify here is my code for the wave.
function sineWave(event:SampleDataEvent):void { var sample:Number for (var i:int=0; i<8192; i++) { sample = Math.sin((i+event.position) * ((2 * Math.PI)/44100) * freq); // freq is just any frequency event.data.writeFloat(sample * .15); event.data.writeFloat(sample * .15); } }
There are a couple of problems i'm having with this - the first is how to work out how to find where the tip of each sine curve is (ie the frequency) and the second is to work out how to rotate each object so that it slides sideways along the sine wave(note file is 800 x 600)here's my code: CarouselTest.as:
package
{
import com.greensock.easing.Sine;
[code].....
As you can tell from the title I am not very good at math ( sigh ).
Is there a way I can create a sine wave with any given angle between 2 points ?
I am sooooooooo lost. I need help in making a movie clip go in a wave motion with only action script. basically I am trying to make a game and I am so lost on how to make the enemy come in and fly in a wave motion from the left to the right in an up and down motion. I thought it would be easy but I must be using the wrong code since my enemy plane is just fly from left to right and not going up and down.
View 8 RepliesI want to be able to take a general sine wave y=Math.sin(x) and rotate it around some other angle, so instead of going strictly left-to-right, I'd like to go from, say, the top left corner toward the "center," or from the bottom right to the center, or any other arbitrary angle. Like this: I want to be able to use that wave as a "path" for enemies in a game, but I cannot seem to wrap my head around it. I've tried matrix transformations, but I was missing something there, too, because the origin was wrong.
View 1 RepliesI need help in making a movie clip go in a wave motion with only action script. basically I am trying to make a game and I am so lost on how to make the enemy come in and fly in a wave motion from the left to the right in an up and down motion.I thought it would be easy but I must be using the wrong code since my enemy plane is just fly from left to right and not going up and down.
View 8 Repliesi want to create a sine wave and its speed will change depends on change in freequency and wavelength . and stop the wave movement when we click stop button.[code]
View 0 RepliesI wander if anyone knows a way how to make a wave effect in flash. In fact anything that would remind of sea would be accepted.
View 7 RepliesI made a semi-sinewave effect (view attachment) and it works fine with one exception. I want for it to wave on random intervals (from 1-15 seconds) instead of continuously, but I can't get it working right. Here's the code:
[AS]
pts = 5;
sine = 0;
[code].....
how to make wave text effect in as2.0
and i need to know on how to make workArt effect ( worddocucment) in flash
I'm trying to replicate the motion of a 'mexican wave'. I am using Flash CS5, and using AS2. I've created a 'jumper' graphic and animated it in a clip so it jumps once - up then falls back to the ground. I've pulled the clip in to the main timeline and replicated a bunch of times so I have a row of 'jumpers'. I've given each instance a unique ID. Then I'm telling each clip instance to start playing, in sequence, using the following code:
var total_jumpers = 36;
var i = 0;
var jumpLag = 1000;
function do_jump(bottle) {
jumper.play();
[Code] .....
In the clip, I have put stop() in the last frame to try and stop it looping. So this works ok, but the clips seem to loop - I can't get them to stop.
how to get the Perlin Flag Wave shown at
Senocular[dot]com/flash/source/?entry=761
to go from right to left?
Reversing the gradient of the displacement does not work. It simply reverses the amount of the effect on the left side so the waves are bigger on the left end, but the waves still move from left to right.
I want to move all objects in an array producing a stadium wave effect, how do i do that?I want to move the objects based on their y-value on the stage... all my squares are of 50x50 in size. I want to move them up then move them down
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
[code].....
I need to add glint effect to a logo.I need a tutorial for doing this.I found tutorials for add glint effect to text but didn't find tutorial how to add glint effect to picture.
View 2 RepliesUgh how to start...Each thumbnail image is a link which enlarges to an easel to the right with a neat effect. If you move the cursor over a thumbnail it has a little effect on it (very transparent "snow" like on a TV screen) I don't know why Flash keeps "moving" (if you call it that) the snow effect on top of the thumbnails when I open the file at a later time. All I remember doing is just editing simple text and swapping one bitmap thats not even tied to the thumbnails.
I can still click the thumbnails and they open to the right just fine. I just don't get why the "effect/link" moves on top of the thumbnails. If I delete the snow it deletes every effect on the website so they won't enlarge to the right. I don't care if I lose the effect but I don't remember/know how to make each thumbnail a link so they open on the spot I want.
How can I do an animation like in the attachment. There are four stages. Every picture shows the next stage of the animation. So I want a picture to lighten from the middle to up and down equally.
View 1 RepliesMaybe you know how do easy turn page. Picture will be load into swf files and with turn page effect they change when some time will pass (sorry for my english)
View 1 Repliessomeone have a code for creating magnifying glass effect on a picture in a UiLOADER commponent ?
View 1 RepliesI want to make a picture gallery and use buttons that move you from picture to picture and backwards, but I don't want to tell button 1 to go to frame 2 and button 2 to got to frame 3 and so on (I hope you know what I mean)Can I use on button on a separate layer with the same action set? I tried something like that, but it didn't work:
on (release) {
thisframe =+1
}
[code]........
but it didn't work. I'm kind of new to any action script other than gotAndPlay, easy functions and all that.
how do easy turn page. Picture will be load into swf files and with turn page effect they change when some time will pass
View 1 RepliesI have a specific request or a general pondering really.I know you can create a sine wave type thing with as, could you then perhaps create movie clips, letter by letter that would move along and up and down on this sine wave?could you then, instead of setting the size and scale of the sine wave have it react to the input levels of a mic.i've been hunting for something that will help for a while and have drawn a blank
View 5 RepliesI am trying to create a similar effect to what is used in CityVille for dropping coins and experience icons, they do a custom move animation and it first moves a little bit up and then down. It looks like it is following a spline or a sine function.
View 2 Replieshow draw sine and other functions using the drawing api ? so far all my efforts have yielded amazing random designs but not the desired functions.
View 5 RepliesBasically I need to have text from a dynamic/input textfield to appear in a wavy line pattern automatically. Now I'm pretty sure it can be done fairly easily with the right knowledge but I unfortunately lack that knowledge.
The idea I had was that a string is broken into individual letters and each is placed along a sine curve of a set length/width - the string/characters are repeated if necessary in order that the full width of the curve is covered. Also note that the text need not be rotated to match the lines, only _x and _y values need to be adjusted.
I have to produce a design with dynamic text similar to this (my ascii art skills are crap so please imaging that these are wavy lines rather than zig zags):
/////////////////
/////////////////
/////////////////
/////////////////
/////////////////
I have nothing to offer apart from the satisfaction of producing a wavy text pattern and from knowing that you have saved me from a breakdown.
I recently used the loadMovie action to load a .swf file to a target in the movie which it was being called from. Then I tried calling a picture to another target in the movie, but it did not load the picture as intended. I read about it on my book, but it didn't seem to work. Is there anyways on calling a picture into a target in the movie without placing the picture inside an swf file?
View 7 RepliesI have just been to a really nice website that has some really nice use of Flash on it.... I'm totally wowed by the resizing picture effect though? When each picture loads the loading frame resizes to the new picture size.
View 3 Replies