[osflash] pattern generate and editor

Jonathan Valliere sybersnake at gmail.com
Fri Sep 19 16:54:42 PDT 2008


Try adding this to whichever class extends mx.core.Application ( I just
wrote that off the top of my head, so check for spelling errors ).
[Embed(source="../../background_tile.png")]
public var BackgroundGraphicData:Class;

override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void
{
       super.updateDisplayList( unscaledWidth, unscaledHeight );

if(BackgroundGraphicData){
     var backgroundImageAsset:BitmapAsset = BitmapAsset(new
BackgroundGraphicData());
     var backgroundImageData:BitmapData = backgroundImageAsset.bitmapData;
}

if(backgroundImageData){
     where.graphics.beginBitmapFill(backgroundImageData);
     where.graphics.drawRect(0, 0, this.width, this.height);
     where.graphics.endFill();
}

}

On Fri, Sep 19, 2008 at 6:31 PM, Rostislav Siryk
<rostislav.siryk at gmail.com>wrote:

>
>
> On Wed, Sep 17, 2008 at 11:26 AM, ivan <ivanposta at yahoo.it> wrote:
>
>>
>>
>> where can I find resource to create graphic pattern in AS3 like these ?
>>
>> http://www.patterncooler.com/
>>
>> http://bgpatterns.com/
>>
>> http://www.colourlovers.com/pattern/228273/tomato_picking
>>
>> thanks
>>
>> _______________________________________________
>> osflash mailing list
>> osflash at osflash.org
>> http://osflash.org/mailman/listinfo/osflash_osflash.org
>>
>>
>
>
> --
> --
> Rostislav Siryk | Lead Graphic Designer / RIA Developer | GlobalLogic
> Ukraine
>
> rostislav.siryk at gmail.com
> +38 050 406 0396
> http://flash-ripper.com/
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20080919/b9850353/attachment.html 


More information about the osflash mailing list