ActionScript 3 - Tile a Bitmap
Thanks to this excellent Kirupa post, I see that tiling a bitmap object in AS3 is actually fairly straightforward!
1. Import the desired graphic you wish to tile to your Flash library.
2. Right-click the entry, and select Linkage….
3. Select the Export for ActionScript checkbox (and ensure the class name is legal).
4. You can now reference the bitmap using the class name (“tilepic” in the sample code below).
var bmd:BitmapData = new tilepic(0,0);
var sp:Sprite = new Sprite();
sp.graphics.beginBitmapFill(bmd);
sp.graphics.drawRect(0,0,800,60);
sp.graphics.endFill();
addChild(sp);
2 Comments:
What does this do with performance?
[url=http://seghan.ru/go.php?sid=35][img]http://s002.radikal.ru/i200/1001/f0/0ddd2280d906.jpg[/img][/url]
[url=http://deuaexj.naheliegend.de/]buy discount cigaretts coupon code [/url]
buying clove cigarettes in canada buy cheap cigarettes online uk buy some candy and cigarettes
[url=http://deuaexj.naheliegend.de/]buy cigarette to resell [/url]
order cigarettes outlet hit bg death cigarettes buy buy cheap 100s menthol cigarettes
[url=http://vjzvmeu.il.gp/]buy a cigarette vending machine [/url]
buy cigarettes in nh buy sobranie cigarettes order cheyenne cigarettes
[url=http://botziho.485.at/]buy cigarettes online from discount store [/url]
buy cigarettes from overseas ordering cigarettes online legal laws about buying cigarettes
[url=http://uvfaquc.akzentuiert.de/]buy cloves cigarettes [/url]
e cigarette buy online were to buy charter menthol cigarettes order cartons of cigarettes
[url=http://tioozua.connection24.de/sitemap.html]age to buy cigarettes [/url]
order indian cigarettes order cigarettes from canada buy pianissimo cigarettes dallas texas
[url=http://uvfaquc.akzentuiert.de/]buy cigarettes online indian [/url]
you buy duty free cigarettes age for buying cigarettes smoking years to buy newport cigarettes
[url=http://cauvzah.weinend.de/]age to buy cigaretts [/url]
ny mail order cigarettes e cigarette buy age to buy cigarettes quebec
[url=http://wcsoius.biz.co.nl/]buying indian cigarettes from the cherokees [/url]
buy 555 cigarettes legalities of buying cigarettes online buy cigarettes on the internet
[url=http://tyouhca.xn--geglckt-q2a.de/]buy cigarettes in belgium [/url]
buy cigarettes in spain cigarette mail order buy njoy electronic cigarette
Posta un commento
<< Home