I have the following scenario:
I create an HBox with a width of 1000000px (one million pixels of width).
this big HBox is contained inside another smal开发者_如何学JAVAl HBox that has a width of 1000 px
<mx:HBox id="small" width="1000" >
<mx:HBox id="big" width="1000000" />
</mx:HBox>
Inside this big HBox I create a bitmapFill of a simple image, its just a pattern of lines
the problem is that the scrollBar of the small hbox doesnt work well, it just stops halfway, the thumb of the scrollbar keeps going, but the scrolling stops and the end of the big hbox is not beign reached.
Somebody knows a workaround for this? Thanks in advance. Here is the part of the code that makes the bitmapfill:
var shape:Shape = new Shape();
shape.graphics.lineStyle(2, 0x008800);
shape.graphics.drawRect(0,0,100, 100);
var bd:BitmapData = new BitmapData(0, 100, true, 0x00000000);
bd.draw(shape);
small.graphics.clear();
small.graphics.beginBitmapFill(bitmapData);
small.graphics.drawRect(0,0,width, 400);
small.graphics.endFill();
As everyone has told me, the approach I'm trying to develop is not possible and is really not recommended. But as adobe has point out, flash 11 will remove the size limits, so, if you want to do something like the big bitmap I wanted to create, then you will have to wait for flash 11
精彩评论