Maelstrom filters: DropShadowFilter

Wednesday, July 13th, 2005

Here is quick example on DropShadowFilter filter :)



Download source for Maelstrom filters
Enjoy.

AddThis Feed Button

This is some text prior to the author information. You can change this text from the admin section of WP-Gravatar  I'm living in Bratislava, Slovakia. I'm Senior Flex, AIR Developer for my own company Flexets. Read more from this author


tagged under:

ABOUT THIS AUTHOR

I'm living in Bratislava, Slovakia. I'm Senior Flex, AIR Developer for my own company Flexets.

Get a Trackback link

3 Trackbacks/Pingbacks

  1. Pingback: Franto.com Flash blog » Blog Archive » Collected links to Maelstrom examples on July 14, 2005
  2. Pingback: Franto.com Flash blog » Blog Archive » Collected links to Maelstrom examples on July 18, 2005
  3. Pingback: Blog As-Is » Blog Archive » Première Liste d’exemple avec Flash 8 on July 24, 2005

10 Comments


  1. Tony MacDonell
    Visit Site
    July 13th, 2005

    I am positive that this must be a breach of NDA


  2. 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?


  3. 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


  4. 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. :)


  5. 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! :D

    Good times…


  6. 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) = 8) {
    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);
    };


  7. 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


  8. 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];


  9. 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.


  10. 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

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">

This site is using OpenAvatar based on
Images is enhanced with WordPress Lightbox JS by Zeo
Clicky Web Analytics