Go Back   kirupaForum > Flash > ActionScript 3.0

Reply
 
Thread Tools Display Modes
Old 11-28-2009, 11:48 AM   #1
Primoz25
Registered User
Tiling background image on a display object - is there a limitation in object size?

Hi all,

I am tiling a 16x16px image on a large Sprite display object (5000x3200). I am loading tileable image from external file and then loading it into BitmapData object. Then I use beginBitmapFill to tile this image to the Sprite container.

Here is the code

Code:
_grid = new Sprite();

var gridBgBitmapData:BitmapData;
gridBgBitmapData = new BitmapData(_gridBgLoader.width, _gridBgLoader.height);
gridBgBitmapData.draw(_gridBgLoader);

_grid.graphics.beginBitmapFill(gridBgBitmapData, null, true);
_grid.graphics.drawRect(0, 0, 5000, 3200);
_grid.graphics.endFill();
Everything works perfectly. The background image gets tiles as I want but I it gets tiles only till 4080px in x direction... Why it doesn't tile till 5000px which is my width of the container? Is there a limitation on this?

Thank you,
Jume
Primoz25 is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?
 

Old 11-28-2009, 07:11 PM   #2
wvxvw
Holosuite User
I'm not sure on maximum size of display object, 4080 would be the bitmapdata maximum size in FP10 though. I presume you need this for a computer with 2 monitors where each one of them is 30", right? As it is of today, the highest resolution in the industry is 3280x2048 (WQSXGA). But it is hard to imagine those will need Flash Player as their primary use is in science field.
Anyways, why don't you just split it in two, if that makes a problem?

__________________

I support FlashDevelop (the .NET open source editor for Flash and web developers)
couchsurfing if you need it
wvxvw is online now   Reply With Quote
Old 11-29-2009, 10:46 AM   #3
Primoz25
Registered User
Quote:
Originally Posted by wvxvw View Post
I'm not sure on maximum size of display object, 4080 would be the bitmapdata maximum size in FP10 though. I presume you need this for a computer with 2 monitors where each one of them is 30", right? As it is of today, the highest resolution in the industry is 3280x2048 (WQSXGA). But it is hard to imagine those will need Flash Player as their primary use is in science field.
Anyways, why don't you just split it in two, if that makes a problem?
Yes the draw limit on bitmapdata is 4080px in FP10. I discovered that yesterday. I dont need this for 2 computers.. I just have a large grid than you can scroll over ...

I did split in two, but it's just additional work.

Thanks anyway.
Primoz25 is offline   Reply With Quote
Old 11-29-2009, 11:05 AM   #4
glosrfc
Registered User
 
glosrfc's Avatar
Location Halley Research Station, Latitude 75°35' S, Longitude 26°39' W, Brunt Ice Shelf, Coats Land, Antarctica

Posts 4,158
http://www.kirupa.com/forum/showthread.php?t=16877
http://www.bit-101.com/blog/?p=1426

__________________
©2006 GlosRFC - Searching 8,168,684,336 brain cells
glosrfc is offline   Reply With Quote
Old 11-30-2009, 11:13 AM   #5
Primoz25
Registered User
Thank for the links. This might come in handy!
Primoz25 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:17 PM.

SUPPORTERS:

kirupa.com's fast and reliable hosting provided by Media Temple. flash components
Creative web apps. Make your own free flash banners and photo slideshows.
Check out the great, high-quality flash extensions. Buy or sell stock flash, video, audio and fonts for as little as 50 cents at FlashDen.

Flash Transition Effects

Flash Effect Tutorials

Digicrafts Components
Flash effects. Art without coding. Upload, publish, deliver. Secure hosting for your professional or academic video, presentations & more. Screencast.com
Streamsolutions Content Delivery Networks Flipping Book - page flip flash component.
Flash-Gallery.com - Get your flash photo gallery (flash component or swf gallery Learn how to advertise on kirupa.com
 

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com