Actionscript help!

Started by: New Generation | Replies: 30 | Views: 2,085

New Generation
Banned

Posts: 1,713
Joined: Mar 2007
Rep: 10

View Profile
Apr 15, 2008 3:53 AM #115898
I've made a realistic water effect on a picture using actionscript:

http://antiup.net/view.php?id=20412346866realistic%20water%20effects.swf

But how can I remove the white,blue line movements at the bottom and top of the water, they don't look the same and take away the realism.

Here's the actionscript I've used.

import flash.display.*;
import flash.geom.*;
import flash.filters.*;
myBitmap = new BitmapData(390,293,false,0);
pt = new Point(0,0);
mpoint = new Point(0,0);
myDispl = new DisplacementMapFilter(myBitmap, mpoint,1,2,10,50);
water_mc.myList = new Array();
water_mc.myList.push(myDispl);
water_mc.filters = water_mc.myList;
i = 1;
this.onEnterFrame = function()
{
filterList = water_mc.filters;
offset = new Array();
offset[1] = new Object();
offset[1].x = i;
offset[1].y = i/8;
myBitmap.perlinNoise(45,5,3,50,true,false, 7,true,offset);
filterList.mapBitmap = myBitmap;
water_mc.filters = filterList;
i++;
}



Please explain simply how to fix/remove the strange blue/white lines at the bottom and top of the water.
NTG
2

Posts: 1,052
Joined: Feb 2006
Rep: 10

View Profile
Apr 15, 2008 4:06 AM #115905
change it to this

realitic: {water} 
/h20
get
make {}}][%%%
Kitsune
2

Posts: 6,011
Joined: May 2006
Rep: 10

View Profile
Apr 15, 2008 4:08 AM #115907
Quote from NTG
change it to this

realitic: {water} 
/h20
get
make {}}][%%%


I lol'd.
New Generation
Banned

Posts: 1,713
Joined: Mar 2007
Rep: 10

View Profile
Apr 15, 2008 4:11 AM #115909
Quote from NTG
change it to this

realitic: {water} 
/h20
get
make {}}][%%%


If you don't want to help then LEAVE MY THREAD NOW! ¬.¬
Kitsune
2

Posts: 6,011
Joined: May 2006
Rep: 10

View Profile
Apr 15, 2008 4:29 AM #115921
Quote from James Moer
If you don't want to help then LEAVE MY THREAD NOW! ¬.¬


You really think you can be more compelling by caps lock? It seems like you yell but you really do look like an idiot.

Is this AS3? If it's AS2 I can maybe help you out. This is all foriegn looking to me, however:

water_mc.myList.push(myDispl);
New Generation
Banned

Posts: 1,713
Joined: Mar 2007
Rep: 10

View Profile
Apr 15, 2008 4:33 AM #115924
It's AS2. That piece of script, do I insert it somewhere or delete it from my actioscript? Because I can see that line in my actionscript :/
Kitsune
2

Posts: 6,011
Joined: May 2006
Rep: 10

View Profile
Apr 15, 2008 4:36 AM #115926
I just said it looked foreign.

This is all a bit beyond me. Sorry.
Devour
Administrator
1

Posts: 9,916
Joined: Apr 2008
Rep: 10

View Profile
Apr 15, 2008 5:25 AM #115949
Quote from James Moer
If you don't want to help then LEAVE MY THREAD NOW! ¬.¬

Joke, get.

I don't really know what images and movements you used to make the effect, but you may only have to remove the water effect by taking the blue/white line effects manually, as in removing their movieclip.
Bonk
2

Posts: 2,778
Joined: Mar 2008
Rep: 10

View Profile
Apr 15, 2008 10:07 AM #116058
I get the feeling that you didn't write that script.

If you don't understand it, then it defeats the purpose. If you understood it, you could go through step by step and see whats wrong.
New Generation
Banned

Posts: 1,713
Joined: Mar 2007
Rep: 10

View Profile
Apr 15, 2008 4:45 PM #116175
So no one knows? Okay....


I'll just leave it like that. Coz I tried fixing it but it still didn't change. I changed the blur and force, but nothing.
Kitsune
2

Posts: 6,011
Joined: May 2006
Rep: 10

View Profile
Apr 15, 2008 9:41 PM #116276
Quote from bonk
I get the feeling that you didn't write that script.

If you don't understand it, then it defeats the purpose. If you understood it, you could go through step by step and see whats wrong.

Win logic win reply
Quote from James Moer
So no one knows? Okay....


I'll just leave it like that. Coz I tried fixing it but it still didn't change. I changed the blur and force, but nothing.

Failure method fail reply.
Sunder Forge
2

Posts: 2,969
Joined: Jul 2006
Rep: 10

View Profile
Apr 15, 2008 9:59 PM #116293
Quote from Kitsune
Win logic win reply

Failure method fail reply.


Failure + Failure = x2 Failure

I'm gonna see what that code does now.
Kitsune
2

Posts: 6,011
Joined: May 2006
Rep: 10

View Profile
Apr 15, 2008 10:00 PM #116295
Quote from grubber
Failure + Failure = x2 Failure

I'm gonna see what that code does now.


I think bitmap transmorphing is a bit beyond most of us. (Probably not The Pirate.) He may have copied that.
Sunder Forge
2

Posts: 2,969
Joined: Jul 2006
Rep: 10

View Profile
Apr 15, 2008 10:05 PM #116303
My plan was to make a new movie, press F9 or something, and pop it in with a red BG.
:l
Sunder Forge
2

Posts: 2,969
Joined: Jul 2006
Rep: 10

View Profile
Apr 15, 2008 10:05 PM #116302
My plan was to make a new movie, press F9 or something, and pop it in with a red BG.
:l