Maelstrom filters: DropShadowFilter
Wednesday, July 13th, 2005Here is quick example on DropShadowFilter filter
Download source for Maelstrom filters
Enjoy.
Here is quick example on DropShadowFilter filter
Download source for Maelstrom filters
Enjoy.
4 Trackbacks/Pingbacks
10 Comments
Tony MacDonell
• Visit Site
July 13th, 2005
I am positive that this must be a breach of NDA
Paul Neave
• Visit Site
July 13th, 2005
I don’t think Mr Franto has signed the beta NDA… any chance you can publish the source code?
Casey Corcoran
• Visit Site
July 13th, 2005
Would have been nice to label the text fields
For those trying to figure it out, it looks like:
1. Strength
2. Horizontal Spread
3. Vertical Spread
4. Angle
Keith Peters
• Visit Site
July 13th, 2005
There’s a long history of hacking the public beta players. I remember using the drawing API in Flash 5 with the Flash MX player and some obscure ASNative calls.
Mike Johnson
• Visit Site
July 13th, 2005
Heh, very true. If I remember correctly, that exploration was part of the inspiration for the “25 Lines of Code” contest on We’re Here!
Good times…
dave
• Visit Site
July 13th, 2005
// Here’s the source code
function tween(str, bx, by, an) {
{
filterObj2.strength = filterObj2.strength – ((filterObj2.strength – str) * 0.5);
filterObj2.blurX = filterObj2.blurX – ((filterObj2.blurX – bx) * 0.5);
filterObj2.blurY = filterObj2.blurY – ((filterObj2.blurY – by) * 0.5);
filterObj2.angle = filterObj2.angle – ((filterObj2.angle – an) * 0.5);
p.filters = [filterObj2];
var _local3 = Math.abs(filterObj2.strength – str);
var _local2 = Math.abs(filterObj2.blurX – bx);
var _local4 = Math.abs(filterObj2.blurY – by);
var _local9 = Math.abs(filterObj2.angle – an);
if (((_local3 + _local2) + _local4) =
but.label.text = “Tween”;
but2.label.text = “Random”;
var filterObj2 = (new flash.filters.DropShadowFilter());
filterObj2.strength = 50;
filterObj2.blurX = 50;
filterObj2.blurY = 50;
filterObj2.angle = 160;
p.filters = [filterObj2];
} else {
desc.text = “You need Flash player 8″;
}
but.onRelease = function () {
_root.tween_interval = setInterval(_root, “tween”, 40, Number (strength.text), Number (blurX.text), Number (blurY.text), Number (angle.text));
};
but2.onRelease = function () {
strength.text = random (100);
blurX.text = random (100);
blurY.text = random (100);
angle.text = random (360);
};
Pablo Costantini
• Visit Site
July 13th, 2005
This is awesome!
Here’s another example using glow and bevel:
http://www.luminicbox.com/blog/?page=post&id=49
You may also see a tree with the new classes and properties from the filter objects.
Regards
Administrator
• Visit Site
July 13th, 2005
no no, i’m not betatester , i’ve signup for beta testing, but i haven’t received anyemail. I’m just use code it was add to comment in http://www.franto.com/blog2/new-features-in-maelstrom-8ball by
# pooyaposh Says:
July 13th, 2005 at 5:05 pm
Tinkered a bit with the filters…
Looks like they changed the MovieClip array filter variable to “filters”…previously it was reported that you were to assign filterList
Here’s some quick code:
var filterObj = new flash.filters.BlurFilter();
filterObj.blurX = 100;
filterObj.blurY = 100;
this.filters = [filterObj];
Administrator
• Visit Site
July 13th, 2005
Sorry, i will include fla tommorow. I had to leave office, and had no time to include label and fla, and want just share it with you
so I tommorow i will include FLA.
chall3ng3r
• Visit Site
July 14th, 2005
I’ve just finished this little windows tool to easyly convert SWF version to 8.
get it here: http://chall3ng3r.blogspot.com/
No need for hex editors
i hope it’ll help you guyz in testing latest FP8 features.
// chall3ng3r //
Live Preview
Leave a comment