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








Wave Effects?


I wanting to know if someone knows of a animated fractured wave effect or a vertical wave effect tutorial. I searched for it using Google but there was a tutorial that asks for a payment before downloading the tutorial. I am after a free tutorial. Thanks in advance.




FlashKit > Flash Help > Flash MX
Posted on: 10-22-2006, 07:48 PM


View Complete Forum Thread with Replies

Sponsored Links:

Does Anybody Know How To Creat SEA WAVE Effects?
I am going to place it below my boat image.........

cheers

View Replies !    View Related
Ripple/ Wave Effects
Hi all, can anyone tell me how to do a wave or ripple effect by using flash mx..?
i need to put these effects on an image.
i'd read through the tutorial from :

http://www.tutorialized.com/tutorial...le-Effect/5095


but....i really nott understand how to do it...
anyone can help me on this..? thanks....

View Replies !    View Related
Harmonic Effects On A Sine Wave
I had posted a portion of this a couple of days ago but thought I would post the rest in case it might be useful. I hope all the code gets attached. It is helpful for demonstrating the effects of harmonic content in a power system on the sine wave. The individual harmonic percentages are expressed as a percentage of the fundamental (sine wave). I am attaching the script in parts because Attach Code will not let me attach it all in one go.

Here are the first 400 lines







Attach Code

//This is designed for MX 2004
//I think the movie works best at about 30 fps
fscommand("allowscale",true);
fscommand("fullscreen",true);

mouse_listener = new Object();
mouse_listener.onMouseDown = function() {
recalculate_THD();
movesliders();
}
Mouse.addListener(mouse_listener);
//update the harmonics array based on the digital input
//redisplay that digital input with the correct number of decimal places
//calculate the sum of the individual harmonics and update the display
//update the THD display value
//
function recalculate_THD() {
total_harmonic_distortion = 0;//initialize this variable
for(var i = 1; i < harmonics.length; i++) {
harmonics[i]["myamount"] = Number(this.sliders["digital" + i].text_holder.harmonic_percent.text)/100;
this.sliders["digital" + i].text_holder.harmonic_percent.text = String(limit_decimals(Number(harmonics[i]["myamount"])*100));
total_harmonic_distortion = total_harmonic_distortion + Number(harmonics[i]["myamount"]) * Number(harmonics[i]["myamount"]);
}
total_harmonic_distortion = Math.round(Math.sqrt(total_harmonic_distortion)*10000)/100;
this.harmonicsdata["harmonics_value"].text = String(total_harmonic_distortion);
}

//resposition the slider buttons according the the harmonic percentages currently contained in the array
function movesliders() {
for(var i = 0;i < harmonics.length; i++) {
this.sliders["button" + i]._y = -harmonics[i]["myamount"]*100;
}
}

function update_digital_input() {
for(var i = 1; i < harmonics.length; i++) {
this.sliders["digital" + i].text_holder.harmonic_percent.text = String(limit_decimals(Number(harmonics[i]["myamount"])*100));
}
}

function sinewaves_defined_enterframe() {
this._parent._parent.sine.sinewave.onEnterFrame = function() {
if(this.i >= this._parent._parent.res*10) {
this.i = 0;
}
var current_x = this.i;
update_xy_array (current_x);
this._parent._y + add_harmonics(current_x) * my_yscale / 100;
this.i++;
}
}

function add_harmonics(i_value) {
my_yvalue = 0;
for(var k = 0; k < harmonics.length; k++) {
my_yvalue = my_yvalue + 100 * Math.sin(2*Math.PI*i_value*Number(harmonics[k]["myorder"])/res)*Number(harmonics[k]["myamount"]);
}
my_yvalue = my_yvalue * 0.8;
return(my_yvalue);
}

function update_xy_array (currentvalue) {
//push the latest value onto the array
calculated_xy_pairs.push({myx:String(currentvalue),myy:String(add_harmonics(currentvalue))});
//if the length of the array is longer thanthe display area is wide, knock off the first element of the array
if(calculated_xy_pairs.length*my_xscale > oscope._width) {
calculated_xy_pairs.shift({myx:String(currentvalue),myy:String(add_harmonics(currentvalue))});
}
//clear the line and redraw it
sine.sinewave.clear();
sine.sinewave.lineStyle(1,0x00FF00,100);
for(var i = 0; i < calculated_xy_pairs.length-1; i++) {
sine.sinewave.moveTo((-calculated_xy_pairs.length+i)*(my_xscale),Number(calculated_xy_pairs[i]["myy"]));
sine.sinewave.lineTo((-calculated_xy_pairs.length+i+1)*(my_xscale),Number(calculated_xy_pairs[i+1]["myy"]));
}
}

function makeslider(mypath,number_of_sliders,color1,color2,linecolor,slotcolor,leftmargin,mylabels) {
var mylabels,slotcolor;
var mypath,number_of_sliders,mywidth,leftside,rightside,topside,bottomside,slider_x,color1,color2,linecolor,leftmargin;
var my_format:TextFormat = new TextFormat();
my_format.color = linecolor;
my_format.font = "Arial";
my_format.size = 14;
my_format.align = "center";

my_digital_format = new TextFormat();
my_digital_format.bold = true;
my_digital_format.align = "right";
my_digital_format.font = "Arial";
my_digital_format.color = 0x000000;
my_digital_format.underline = false;
my_digital_format.size = 14;
my_digital_format.italic = false;

mypath._xscale = 60;
mypath._yscale = 50;

mypath.createEmptyMovieClip("scale",mypath.getNextHighestDepth());
pixels_between_sliders = 40;
leftside = -10-leftmargin;
rightside = -10 + pixels_between_sliders*number_of_sliders;
topside = -125;
bottomside = 55;
slider_x = 0;

with (mypath.scale) {
//left side
colors = [color1, color2];
alphas = [100, 100];
ratios = [0, 0xFF];
matrix = {matrixType:"box", x:0, y:-120, w:30, h:150, r:(90/180)*Math.PI};
beginGradientFill("linear", colors, alphas, ratios, matrix);
moveTo(leftside-leftmargin,bottomside-5);
lineTo(leftside-leftmargin,-120);
curveTo(leftside-leftmargin,topside,leftside-leftmargin+5,topside);
lineTo(rightside-5,topside);
curveTo(rightside,topside,rightside,topside+5);
lineTo(rightside,bottomside-5);
curveTo(rightside,bottomside,rightside-5,bottomside);
lineTo(leftside-leftmargin+5,bottomside);
curveTo(leftside-leftmargin,bottomside,leftside-leftmargin,bottomside-5);
endFill();

for(var j = 1; j < number_of_sliders; j++) {
slider_x = slider_x + pixels_between_sliders;
lineStyle(0,linecolor,0);
beginFill(slotcolor,100);
moveTo(slider_x-1,0);
lineTo(slider_x-1,-100);
lineTo(slider_x+1,-100);
lineTo(slider_x+1,0);
lineTo(slider_x-1,0);
endFill();
lineStyle(0,linecolor,100);
moveTo(slider_x-1,0);
lineTo(slider_x-1,-100);
moveTo(slider_x+1,0);
lineTo(slider_x+1,-100);
for(var i = 0; i <= 10; i++) {
lineStyle(1.5,linecolor,100);
moveTo(slider_x+6,-i*10);
lineTo(slider_x+12,-i*10);
}
for(var i = 0; i <= 9; i++) {
lineStyle(1,linecolor,100);
moveTo(slider_x+6,-i*10-5);
lineTo(slider_x+10,-i*10-5);
}
}
}
for(var j = 1; j < number_of_sliders; j++) {
mypath.createTextField("buttonlabel" + j,mypath.getNextHighestDepth(),j*pixels_between_sliders-15,-120,33,23);
mypath["buttonlabel" + j].setNewTextFormat(my_format);
mypath["buttonlabel" + j].selectable = false;
mypath["buttonlabel" + j].text = mylabels[j];
my_format.size = 13;
mypath["buttonlabel" + j].setTextFormat(mypath["buttonlabel" + j].text.length - 2,mypath["buttonlabel" + j].text.length,my_format);
my_format.size = 16;

mypath.createEmptyMovieClip("digital"+j,mypath.getNextHighestDepth());
mypath.createEmptyMovieClip("button"+j,mypath.getNextHighestDepth());

mypath["digital" + j]._x = j*pixels_between_sliders;
mypath["digital" + j]._y = 40;
mypath["button" + j]._x = j*pixels_between_sliders;
with (mypath["digital" + j]) {
//make_a_rectangle(this,0x000000,CAF9CC,100,100,0,-10,10,-5,1);
lineStyle(0,0x000000,100);
beginFill(0xCAF9CC,100);
mywidth = 38;
myheight = 20;
moveTo(-mywidth/2,-myheight/2);
lineTo(-mywidth/2,myheight/2);
lineTo(mywidth/2,myheight/2);
lineTo(mywidth/2,-myheight/2);
lineTo(-mywidth/2,-myheight/2);
createEmptyMovieClip("text_holder",1);
text_holder._x = -4;
text_holder._xscale = 90;
text_holder._yscale = 120;
text_holder.createTextField("harmonic_percent",1,-mywidth/2,-myheight/2,mywidth+6,myheight);
text_holder.harmonic_percent.setNewTextFormat(my_digital_format);
text_holder.harmonic_percent.text = "0.00";
}
with (mypath["button" + j]) {
my_button_number = j;
//left side
colors = [0xEEEEEE, 0x666666];
alphas = [100, 100];
ratios = [0, 0xFF];
matrix = {matrixType:"box", x:0, y:0, w:8, h:36, r:(90/180)*Math.PI};
beginGradientFill("linear", colors, alphas, ratios, matrix);
//lineStyle(0,0xFF0000,100);
moveTo(-4,-18);
curveTo(-4,-22,-5.5,-25);
lineTo(-5.5,25);
curveTo(-4,22,-4,18);
curveTo(-6,0,-4,-18);
endFill();
//right side
colors = [0x999999, 0x222222];
alphas = [100, 100];
ratios = [0, 0xFF];
matrix = {matrixType:"box", x:0, y:0, w:8, h:36, r:(90/180)*Math.PI};
beginGradientFill("linear", colors, alphas, ratios, matrix);
//lineStyle(0,0xFF0000,100);
moveTo(4,-18);
curveTo(4,-22,5.5,-25);
lineTo(5.5,25);
curveTo(4,22,4,18);
curveTo(6,0,4,-18);
endFill();
//lineStyle(0,0xFF0000,0);
colors = [0x666666, 0xD5D5D5];
alphas = [100, 100];
ratios = [0, 0xFF];
matrix = {matrixType:"box", x:0, y:-20, w:8, h:36, r:(90/180)*Math.PI};
beginGradientFill("linear", colors, alphas, ratios, matrix);
moveTo(-4,-18);
lineTo(4,-18);
curveTo(6,0,4,18);
lineTo(-4,18);
curveTo(-6,0,-4,-18);
endFill();
colors = [0x666666, 0xCCCCCC];
alphas = [100, 100];
ratios = [0, 0xFF];
matrix = {matrixType:"box", x:0, y:-25, w:8, h:4, r:(90/180)*Math.PI};
beginGradientFill("linear", colors, alphas, ratios, matrix);
lineStyle(0,0xCCCCCC,100);
moveTo(-4,-18);
curveTo(-4,-22,-5.5,-25);
lineStyle(0,0x666666,100);
lineTo(5.5,-25);
lineStyle(0,0xFFFFFF,100);
curveTo(4,-22,4,-18);
lineStyle(0,0x666666,100);
lineTo(-4,-18);
endFill();
colors = [0x999999, 0x000000];
alphas = [100, 100];
ratios = [0, 0xFF];
matrix = {matrixType:"box", x:0, y:21, w:8, h:6, r:(90/180)*Math.PI};
beginGradientFill("linear", colors, alphas, ratios, matrix);
lineStyle(0,0xFFFFFF,100);
moveTo(-4,18);
curveTo(-4,22,-5.5,25);
lineStyle(0,0x000000,100);
lineTo(5.5,25);
lineStyle(0,0x666666,100);
curveTo(4,22,4,18);
lineStyle(0,0xCCCCCC,100);
lineTo(-4,18);
endFill();
lineStyle(0,0x999999,0);
beginFill(0x333333,100);
moveTo(-4,-1);
lineTo(4,-1);
lineTo(4,1);
lineTo(-4,1);
lineTo(-4,-1);
endFill();
lineStyle(0,0xFFFFFF,100);
moveTo(-4,1);
lineTo(4,1);
lineTo(4,-1);
lineStyle(0,0x999999,100);
moveTo(-4,-18);
lineTo(4,-18);
curveTo(6,0,4,18);
lineTo(-4,18);
curveTo(-6,0,-4,-18);
colors = [0x000000, 0x000000];
alphas = [40, 10];
ratios = [0, 0x66];
matrix = {matrixType:"box", x:0, y:15, w:2, h:60, r:(90/180)*Math.PI};
beginGradientFill("linear", colors, alphas, ratios, matrix);
lineStyle(0,0xFF0000,0);
moveTo(-5.5,25);
lineTo(5.5,25);
lineTo(5.5,-25);
curveTo(8,-20,10,-6);
curveTo(8,-6,8,2);
lineTo(8,30);
curveTo(7,32,6,32);
lineTo(0,32);
curveTo(-6.5,29,-5.5,25);
endFill();
lineStyle(0,0x666666,80);
moveTo(-5.5,25);
lineTo(5.5,25);
lineTo(5.5,-25);
_xscale = 100;
_yscale = 100;
}
}
my_format.align = "center";
my_format.size = 12;
my_format.color = 0x000000;
mypath.createTextField("percentage",mypath.getNextHighestDepth(),-32,24,55,50);
mypath["percentage"].setNewTextFormat(my_format);
mypath["percentage"].selectable = false;
mypath["percentage"].wordWrap = true;
mypath["percentage"].text = "harmonic
percentage";
text1 = "harmonic";
text2 = "order";
text1_y = -100;
text2_y = -80;
my_format.align = "center";
my_format.bold = true;
my_format.color = 0xFFFFFF;
my_format.size = 14;
for(var i = 0; i < text1.length; i++) {
mypath.createTextField("mylabel1" + i,mypath.getNextHighestDepth(),-20,text1_y,14,20);
mypath["mylabel1" + i].setNewTextFormat(my_format);
mypath["mylabel1" + i].selectable = false;
mypath["mylabel1" + i].text = text1.substring(i, i+1);
text1_y += 12;
}
for(var i = 0; i < text1.length; i++) {
mypath.createTextField("mylabel2" + i,mypath.getNextHighestDepth(),-5,text2_y,14,20);
mypath["mylabel2" + i].setNewTextFormat(my_format);
mypath["mylabel2" + i].selectable = false;
mypath["mylabel2" + i].text = text2.substring(i, i+1);
text2_y += 12;
}
}
//function to make a (filled) rectangle based on four input corners and color info
function make_a_rectangle(mypath,linecolor,fillcolor,linealpha,fillalpha,linewidth,left_x,right_x,top_y,bottom_y) {
mypath.lineStyle(linewidth, linecolor, linealpha);
mypath.beginFill(fillcolor,fillalpha);
mypath.moveTo(left_x,top_y);
mypath.lineTo(right_x,top_y);
mypath.lineTo(right_x,bottom_y);
mypath.lineTo(left_x,bottom_y);
mypath.lineTo(left_x,top_y);
mypath.endFill();
}
function displaydelay(mypath){
mypath.solidbox._visible = 1;
mypath.solidbox._alpha = 0;
mypath.fadingbox._visible = 1;
mypath.myhint._visible = 1;
mypath.fadingbox._alpha = 90;
//after the initial delay has elapsed, now make the fade in
fadedelay = setInterval(gradualfade,10,mypath);
clearInterval(initialdelay);
}
function gradualfade(mypath) {
mypath.solidbox._alpha += 4;
mypath.fadingbox._alpha -= 4;
if(mypath.solidbox._alpha >= 100) {
clearInterval(fadedelay);
}
}
function limit_decimals(myinput) {
return_for_display = String(Math.round(myinput*100)/100);
return_for_display = return_for_display.split("").reverse().join("");
//trace(return_for_display.indexOf("."));
if(return_for_display.indexOf(".") <> -1) {
for(var i=2; i> return_for_display.indexOf("."); i--) {
return_for_display = "0" + return_for_display;
}
} else {
return_for_display = "00." + return_for_display;
}
return_for_display = return_for_display.split("").reverse().join("");
return(return_for_display);
}
//create movie clips to fill
//"sinewave" is nested /in "sine" in a previous version that was required but technically is
//no longer. I went ahead and left it this way because it is so easy to reverse the direction
//of the wave travel this way just by setting the _xscale of its parent ("sine")
this.createEmptyMovieClip("oscope",this.getNextHighestDepth());
this.createEmptyMovieClip("sine",this.getNextHighestDepth());
this.sine.createEmptyMovieClip("sinewave",this.sine.getNextHighestDepth());
this.createEmptyMovieClip("sliders",this.getNextHighestDepth());
this.createEmptyMovieClip("harmonicsdata",this.getNextHighestDepth());
this.createEmptyMovieClip("sine_masker",this.getNextHighestDepth());

mylabels = new Array();
topcolor = 0x990000;
bottomcolor = 0xFFCC00;
linecolor = 0xFFFFFF;
leftmargin = 10;
slotcolor = 0x000000;
sliders._x = 10;
sliders._y = 65;
mylabels = ["1st","5th","7th","11th","13th","17th","19th","23rd","25th","29th","31st","35th","37th","41st","43rd","47th","49th"];
//number_of_buttons = mylabels.length;
makeslider(sliders,mylabels.length,topcolor,bottomcolor,linecolor,slotcolor,leftmargin,mylabels);

harmonics = new Array();
//set initial values for the array. In this case, since there are zero harmonics, the result will be a sine wave
harmonics.push ({myorder:1,myamount:1.0,mysuffix:"st"});
harmonics.push ({myorder:5,myamount:0.0,mysuffix:"th"});
harmonics.push ({myorder:7,myamount:0.0,mysuffix:"th"});
harmonics.push ({myorder:11,myamount:0.0,mysuffix:"th"});
harmonics.push ({myorder:13,myamount:0.0,mysuffix:"th"});

View Replies !    View Related
The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 3: Animation Effects
This is an article discussion thread for discussing the SitePoint article, "The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 3: Animation Effects"

View Replies !    View Related
The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 5: Sound Effects
This is an article discussion thread for discussing the SitePoint article, "The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 5: Sound Effects"

View Replies !    View Related
The Flash Anthology: Cool Effects &amp; Practical ActionScript - Chapter 5: Sound Effects
This is an article discussion thread for discussing the SitePoint article, "The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 5: Sound Effects"

View Replies !    View Related
Bouncing Effects And Elastics Effects
i read some tutorials about some clips that includes bouncing or elastic effects, the problem is i can't still figure out some axnscripts such as MovieClip._x*=100 or MovieClip._x-=100, what does these syntax mean anyway?

can i have some tutorial like a dribbling ball that bounces a lot then settles down after a few moment?

View Replies !    View Related
Where Is The Wave?
looking for a tutorial (basic actionscript)


imagine 0 1 2 3 4 5 6 7 8 9 these are all buttons
now i want when you go over them (mouse) that there is a wave created by expanding and increasing the numbers/buttons smoothly.

i'm sure you've seen this one before like me


hope anyone can helpe me

respect

View Replies !    View Related
Wave
Hey all... I was wondering if anyone know a bit of code that would make an image/graphic on the stage "wave" slightly? thanks!

View Replies !    View Related
Wave Help
I've learned a lot from the ppl here and now I need some specific help. I am working on getting the movie to look like boat spray, but it's not quite working out....I did get an interesting effect out of it though

Here's the code:


Code:

onClipEvent (load) {
ang = 0;
screenY = 300;
freq=Math.random()*24;
amp=Math.Random()*100;
wavecnt=0;
this._x=0;
this._y=screenY;
}
onClipEvent(enterFrame) {
this._alpha=Math.random()*100;
this._xscale=this._yscale=Math.random()*25;
ang += 10;
this._x += freq;
this._y = screenY + -Math.abs(Math.sin(Math.PI/180 *ang )*amp);
if (ang == 180){
freq/=2;
amp/=2;
alpha/=2;
wavecnt++;
}
if (wavecnt>=3){
removeMovieClip(this);
}
}
I was thinking about it this morning and realized that angle will never equal zero and that I probably need to change it to screenY...I would like it to be a continual spray where each clip moves out from the boat in a sine like wave. As it gets farther away from the boat its amplitude should be less and I would like it to fade out. After 3 waves, the clip should be removed(my effort at trying to make it continuous--one leaves so it adds another clip....) The spray should be a little random so that it doesn't look like one stream.....

If anyone can make sense of what I'm trying to do and can offer some pointers, I appreciate it!

Thanks,
M

View Replies !    View Related
Wave
I'm having a really hard learning experience. I'm trying to make a ball do a random "wave" across the stage like that one kirupa banner does.
This is the code I have so far.

Code:
onClipEvent (load){
width = 720;
height = 200;
this._x = -20;
this._y = Math.round(Math.random()*height);
origy = this._y
speed = Math.round(1+Math.random()*11);
up = true;
faster = Math.round(1+Math.random()*6);
slower = Math.round(5+Math.random()*6);
}
onClipEvent (enterFrame){
this._x+=speed;
if (speed<=5){
yend = origy+slower;
yup = slower;
}
if (speed>=6){
yend = origy+faster;
yup = faster;
}
if (this._y>yend+2){
up=false;
}
if (this._y<origy+2){
up=true;
}
if (up=true){
this._y+=yup/2
}
if (up=false){
this._y+=-yup/2
}
}
Right now it'll choose a random y position and angle down at a speed depending on the speed var.
But I can't get it to start going the other direction when it hits a certain point or over.
Thanx.

View Replies !    View Related
AS Wave
Hi,

I've recently finished a wave motion experiment, based on the work done by Yugo Nakamura (genius - http://www.yugop.com)

I've posted it a few places but forgot to do it for the folks here at Kirupa. Anyway, you can find the code at:

http://www.anygivenfriday.com/water2/

But if you would just like to look over the source code go to:

http://www.anygivenfriday.com/downloads/wave.zip

I was going to upload it but it exceeds the size allowance

I hope you enjoy this; I have started writing up this and my other experiments (http://www.anygivenfriday.com/elastic and http://www.anygivenfriday.com/torque)

Cheers

Paul

PS Any questions, please ask away!

View Replies !    View Related
BMP Wave
Just a little something. Use it if you want.

Updated

View Replies !    View Related
[AS] Wave
Hey,

Me again. Following on from the elastic and the torque (do a search if you want to find them or click the links below), I'm back with another piece of code / experiment.

I was fascinated by Yugop's wave experiment and so I set about creating my own code to do it, which I've just finished.

You can get a copy of the code here:

http://www.anygivenfriday.com/downloads/wave.zip

Or, if you just want to see it, go to:

http://www.anygivenfriday.com/water2

It's to become the basis of another experiment of mine, this, I feel. I hope someone else can find a use for the code.

In the zip there is the FLA, AS file and the SWF. Enjoy!

Paul

Elastic: http://www.anygivenfriday.com/elastic
Torque: http://www.anygivenfriday.com/torque

View Replies !    View Related
How To Do The Wave Effect Like This?
How to do the wave effect like this -http://www.twelveten.com/1210.html

View Replies !    View Related
A Wave Effect.. Anybody?
This isn't necercerily actionscripted based but I was wondering anyone has a way of making an effect like a wave coming at you.. maybe some duplication wave effect that zooms at you or SOMETHING.. maybe a sine wave that moves towards you making a wavey effect.. if anyone knows what I mean please get back to be as soon as you can.
Thank you!

View Replies !    View Related
Flag Wave
I would like to make a bitmap picture of a flag wave like in the movie below:
http://www.flashkit.com/movies/Effec...5398/index.php

The one selection(wave)is the one I am talking about.

It is difficult for me to learn from that how the wave selection could be programmed.


I looked at another post about this same effect but saw no resolution.

http://board.flashkit.com/board/show...hreadid=188273

In this post they referred to a website that uses this effect in its opening.

http://www.che-lives.com/

Thanks!

View Replies !    View Related
Sine Wave
I'm trying to just draw a static sine wave on the stage. How do I do this? I've seen some that map dots to the Math.Sine function, but I'm trying to do it with a line or path...I need to see some code, though. I'm new to Actionscripting, so dots or lines or whatever is fine. Would appreciate the help.

View Replies !    View Related
Where Do I Find This Wave?
looking for a tutorial (basic actionscript)


imagine 0 1 2 3 4 5 6 7 8 9 these are all buttons
now i want when you go over them (mouse) that there is a wave created by expanding and increasing the numbers/buttons smoothly.

i'm sure you've seen this one before like me


hope anyone can helpe me

respect

View Replies !    View Related
Little Help With Cosine Wave?
as you can see: http://entropy.randomstupidity.com/cosinewave.html the last ball has almost an oposite cosine value, or the _x didn't get turned into radian. here's the code. maybe someone could lend a little hand?

bnum = 19;//number of balls
bspace = 13; //space between the rightmost ball and the rightedge
rightedge = 550;//right edge of the stage
leftedge = 0;//left edge of the stage
topedge = 0;//topedge of the stage
bottomedge = 400;//bottomedge of the stage

//it's loop time, everybody!
for(i=0; i<bnum; i++){
if(!i){ //this part only declared the first time around the loop
xorigin = rightedge-10;
yorigin = topedge+200;
}

attachMovie("ballclip", 'b'+i, i, {_x: xorigin-bspace});
thisB = _root["b"+i];
thisB.onEnterFrame = moveMe;
xorigin=xorigin-28;
}

function moveMe(){
this._y= yorigin+x;
amplitude=_ymouse/2-100;
x=Math.cos((this._x+_xmouse)*(Math.PI/180))*amplitude;
}

View Replies !    View Related
Flag Wave
I am trying to get this image I have attached look like it is moving in the wind but I just am at a loss does anyone have any idea's?

Thanks

Betsy

View Replies !    View Related
Help With Wave Menu
Ave,

Can anyone help me on how to create the navigation menu that you see on Widegroup.Net website? I have attached an SWF file which is like the same too.. i want to make a similar menu for my site.

I did find a movie in the FlashKit Movies depository.. but it was created using Flash 5 and most importantly, i could not define the different links.. it uses a "DuplicateMovieClip" function and i am not able to define each of the 9 links seperately with seperate Text and URL. There is only one button with one Text.

Thanks.

View Replies !    View Related
Wave Animation
is there a way to make a line do the wave?

I would like the line under the words in this logo to do the wave...

http://www.crazynines.com/musicmerchandise/logo.jpg

Thanks,
Resistor
aka
Richard

View Replies !    View Related
Wave Problem .. Me Too ...
Couple of days before, similar kind of problem was pasted, I just want a wave kind of animation .... swoosh effect , like it is forming a sin wave, I have searched a lot in it but was quite unable to find a simple wave motion, which goes from up to down quickly whilst forming a sin wave ... ........ ..........

View Replies !    View Related
Animating A Wave
I am trying to animate a growing vine, but when I draw the vector in flash-it keeps adding extra anchor points. Anyone have a sugestion on how to do this (similiar to animating an octopus arm)

I posted this a while back but got no response-just in case you may have seen this before

View Replies !    View Related
[Help] Flag Wave
Does anyone know if there's a premade script floating around somewhere to make a flag (or any bitmap) wave (by distorting the bitmap)? I've seen a water effect before, so I guess it'd be something like that. Thanks.

View Replies !    View Related
Wave Effect
Hi I'm just wondering If anyone knew of a toutorial that could do a similar effect as in this website?? I really love the effect and how all of the elements are in contant motion!

http://www.arminmorbach.com/

Thanks so much for any input!

M

View Replies !    View Related
[F8] Sine Wave Help
I want to create a background like on the psp and ps3 but I cant figure out how to animate the waves. How could i do this?

View Replies !    View Related
How Do I Get The Wave Movement?
need help.... how do i get this affect please go to
http://www.buttr.com/

once you skip the intro and get the the main site you will see the menu on the bottom. The squares in the bottom are moving like a wave.... how do i get that affect usng action script....

help i am stuck!!


thanks and ANY help will be appreciated

View Replies !    View Related
Ask Some Help With Sine Wave
i use this .fla
and try to make it changing colours.....
like gradient, changing colours non-stop(look like equalizier)

sorry i'm a newbie pls help

thx for anyone who helping me!!!!!!!!!!!!!!

View Replies !    View Related
Drawing A Wave
Hi,

I'm trying to draw a wave using curveTo, but I'm having trouble determining the center of the wave (the x position of the control point) everytime a new wave is generated. I managed a temporary fix that works for the first few waves but after that the discrepancy becomes too much.


Code:
var beginCurve = 100;
var step = beginCurve;// step constant
var waveHeight:Number = 150;
var middle = beginCurve/2;

function drawCurve()
{
mShape.lineStyle( 3, 0xFF0000, 100 );
mShape.curveTo(middle, waveHeight, beginCurve, 0 );

// inverse curve
waveHeight *= -0.8;

beginCurve += step;

middle = beginCurve * 0.8;
}


this.createEmptyMovieClip( "mShape", this.getNextHighestDepth() );
mShape._y = 200;

for ( i = 0; i < 5; i++ )
{
drawCurve();
}
I just can't seem to think up the correct formula to determine the center of every curve.

View Replies !    View Related
Shock Wave Using AS 1
Hello,

I am trying to achieve a shock wave effect to use in a little game for mobile devices.

Attached is a motion tweening effect that I would like to achieve in AS1.

These devices do not have a lot processing power and the attached wave is made of vector design using gradient alpha fill and motion tweening at 60 fps. Pointless to say that the devices' processors cannot cope with that.

Even an old PC would start to struggle.

I know that such effects can be achieve with AS which makes them so much lighter for processors.

Could someone help me ?

Thanks

View Replies !    View Related
Sound Wave
I know AS3 can create visualizations using sound waves, But I'm trying to find something that will show the wave length within a mp3. So as it's playing, you'll see when the audio is spiking or dipping. Any thoughts or directions to where I might find something like this would be great.

Thanks

View Replies !    View Related
Help Please... Wave Effect
I have an image of a sea shore, can anyone please help me animate this image with a simple waterwave effect when the water reaches the seashore. I'll appreciate if anyone can give me a step by step tutorial, I am just starting and know nothing but tweening.

thanks in advance.
Echo

View Replies !    View Related
Analyzing A Wave Or Mp3
Is there a way in AS to analyze a waveform? Either an mp3 or wave. Meaning, when the song is louder, quieter, and to sync that with a movie clip?

View Replies !    View Related
Wave Code
I was wondering if anyone had a code that could help make a wave effect. The image im useing is a really simple upside down v shape but I want it to look like its actually coming in like a wave. If anyone has any ideas please share

Thanks a bunch

View Replies !    View Related
Wave Developing
hey guys

just wrote a little script
what do you think about it click here

View Replies !    View Related
Wave Sound
hi there, anyone know where I could download some nice .wav file of wave or water sound or nice clicking sound for buttons? thank you! jinro

View Replies !    View Related
Image Wave
This one is my entry for an ActionScripting battle, which had as theme Photo Manipulation through ActionScript. So here's what I came up with.

[swf=http://www.voetsjoeba.com/lab/view/imagewave.swf]width=700 height=500[/swf]

Download: http://downloads.voetsjoeba.com/?1099254183

View Replies !    View Related
Realistic Wave
hi, im struggling to make a nice looking wave without much success, i have tried using frame by frame and also by actionscript, neither i could find any good tuts even here on how to ahiceve this kind of effect without using 3rd party programs such as after effects and the like
basically is just the sea as background and a big wave coming towards the screen and splashing against it, its very simple but im just not getting it >_<

if anyone knows any good tut or pointing direction will be apreciated

View Replies !    View Related
Wave Generator
This is a simple wave generator that I have been working on. I plan to make improvements on it. Let me know what you think.

*Note- It starts off with the wave particles as circle...I would toggle them to squares...the circles make it very cpu intensive. Also if you just get froth then try playing with the gravity settings...in space things tend to get mess
*EDIT
-I redid some of the things.

http://www.austastic.com/media/gfhj.swf

View Replies !    View Related
Music Wave
can you make an animation of music work with work you are playing

like in windows media player

View Replies !    View Related
Wave Effect
Hello,

I am wondering if there is a tutorial on how to create a wave effect in Flash. I am planning to create a banner where a word will appear in the water with wave effects.

Thx
MasterJ

View Replies !    View Related
How They Do That Wave Menu?
http://www.cocacolalight.com.br/br/index.jsp

help me please!!!

View Replies !    View Related
Isometric Wave
My friend online was talking about an isometric game so I made this yesterday:

Example

Source

Maybe one of you is working on an isometric game and always wondered if realistic waves were possible. I just used a 128x128 height map for the wave and interpolated between another height map which I generated using the flashes perlin noise. I also used a sin wave for the well... wave effect I have other work at the moment, but I'm sure someone knows how to render bitmaps along points if their dedicated toward their project. All I rendered though was points of different color. If you have CS3 you can change the amplitudes of the wave's sine and other properties. In the example I set the perlin noise's effect rather low, but you can see it on the shoreline.

Have fun!

View Replies !    View Related
Wave Animation
hi everybody,

can somebody help to animate wave/flag effect thru motion tween?

thanks.

View Replies !    View Related
Wave Effect With AS
I'm trying to create a page transition with a wave that starts at the bottom and moves to the top of the screen to create a 'filling up' effect. Anyone ideas on how to actionscript an effect like this?

View Replies !    View Related
AS Wave Motion
Here's my code for trying to make a dynamic wave ... It works thus far, but Im having some Maths problems. The 'wave' block is 30x20, stored in the library with an id of 'wave':

Code:
sw = Stage.width/2;
sh = Stage.height/2;
h = 22; //tile height

t = 20; //no. of tiles
rows = 4;
wlength = 20;

for(r=0;r<rows;r++){

for(i=0; i< t; i++){
var xPos:Number = i*22;

_root.attachMovie("wave",[r]+"_mc"+[i],this.getNextHighestDepth(),{_x:sw+xPos,_y:sh+(r*h)});
//_root[r+"_mc"+i].duplicateMovieClip([r]+"b_mc"+i,this.getNextHighestDepth(),{_x:sw-h-xPos,_y:sh+(r*h)}); this is for the other side of the wave, which needs to be 'mirrored' .. but first things first..

_root[r+"_mc"+i].onEnterFrame = function(){

var wave:Number = (this._x/sw)*wlength;
this._y += (_root._ymouse-i*h)/wave;
}
}
};
If Anyone can help - it would be awesome - Ive just got my numbers crossed now

View Replies !    View Related
Wave Code
I was wondering if anyone had a code that could help make a wave effect. The image im useing is a really simple upside down v shape but I want it to look like its actually coming in like a wave. If anyone has any ideas please share

Thanks a bunch

View Replies !    View Related
Wave Developing
hey guys

just wrote a little script
what do you think about it click here

View Replies !    View Related
Image Wave
This one is my entry for an ActionScripting battle, which had as theme Photo Manipulation through ActionScript. So here's what I came up with.

[swf=http://www.voetsjoeba.com/lab/view/imagewave.swf]width=700 height=500[/swf]

Download: http://downloads.voetsjoeba.com/?1099254183

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved