Without practical knowledge, I would suggest either
flash.filters.DisplacementMapFilter or mc.beginBitmapFill along with
mc.blendMode.

//
// DisplacementMapFilter
//

Maybe something like these mixed with a tiled bitmaps?

http://www.reflektions.com/miniml/template_permalink.asp?id=334
http://lab.andre-michelle.com/panorama
http://lab.andre-michelle.com/gooify 
http://nodename.com/blog/2006/01/16/psyarks-displacementmapfilter-tutorial/



//
// beginBitmapFill
//

The example below creates a tiled Bitmap image the size of an attached
vector MovieClip, attaches a duplicate to use as the Bitmap's mask, and
applies a blendMode from the Bitmap MovieClip over the base vector image.


var bmp = flash.display.BitmapData.loadBitmap( 'bitmap_linkageID' );
/*actual jpg or png*/
var base = this.attachMovie ( 'vector_image_linkageID3', 'base',
this.getNextHighestDepth() );
var mask = this.attachMovie ( 'vector_image_linkageID3', 'mask',
this.getNextHighestDepth() );
var bmp_mc = this.createEmptyMovieClip ( 'bmp_mc',
this.getNextHighestDepth() );

var useBitmapFill = true;
var adjustScale = false;
var blend_mode = 'difference';


if ( useBitmapFill ) 
{
        var matx = new flash.geom.Matrix();
        if ( adjustScale ) 
        {
                base._xscale = mask._xscale = bmp_mc._xscale = 200; /*test*/
                // adjust for scale distortion
                matx.a = 1 / (bmp_mc._xscale/100);
                matx.d = 1 / (bmp_mc._yscale/100);
        }

        bmp_mc.clear();
        bmp_mc.beginBitmapFill(bmp, matx, true, false);
        
        var W = base._width || mask._width;
        var H = base._height|| mask._height;
        with (bmp_mc)
        {
                moveTo(0, 0);
                lineTo(W, 0);
                lineTo(W, H);
                lineTo(0, H);
                lineTo(0, 0);
                endFill();
        }
} 
else 
{
        bmp_mc.attachBitmap ( bmp, bmp_mc.getNextHighestDepth() );
}

bmp_mc.cacheAsBitmap = true;
mask.cacheAsBitmap = true;
bmp_mc.setMask ( mask );

bmp_mc.blendMode = blend_mode;



_____________________________

Jesse Graupmann
www.jessegraupmann.com    
www.justgooddesign.com/blog/    
_____________________________




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cristo @
Cryzto
Sent: Tuesday, July 17, 2007 6:58 PM
To: [email protected]
Subject: [Flashcoders] textures

Hi everybody!

 

I've surely got a interesting question:

 

If I've got a plain vector-rectangle (with radial-color) and want to give it
a texture (-fill) per actionscript. how can I achieve that? Is it even
possible?

 

Thnx 4 answering.

 

Cryzto

 


  _____  

Ich verwende die kostenlose Version von SPAMfighter,
die bei mir bis jetzt 1341 Spammails entfernt hat.
Fur private Anwender ist SPAMfighter vollig kostenlos!
Jetzt gratis testen: hier klicken <http://www.spamfighter.com/lde> . 
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to