Hey guys and girls,
I know this seems a little simple to add to the list, but I am
eagerly awaiting my Actionscript3.0 book, coming from Amazon
tomorrow, then I'll be able to study this stuff with out listing.
I have an HBox holding a bunch of images for the my thumbnail, I have
an issue where if the thumbnails load more images than my HBox
displays it autosizing, changing my entire nav, throwing it off.
Idealy, I want to make the HBox not keep resizing if my thumbnails is
greater than the width of the box. I should use a mask as well, how
do i apply one to this:
public function addThumb(target:SWFLoader):void
{
deleteLastBorder();
var image:Image = new Image();
image.filters = [new
DropShadowFilter(4,45,0x00,1,4,4,.3)]
var bmp:Bitmap = Bitmap(target.content);
var newBitmap:Bitmap = new
Bitmap(Bitmap(target.content).bitmapData.clone())
newBitmap.width = 60;
newBitmap.height = 45;
image.width = 60;
image.height = 45;
image.setStyle("moveEffect", Move);
image.setStyle("addedEffect", Fade);
image.buttonMode = true;
image.addEventListener(MouseEvent.CLICK,
image_handler);
image.addEventListener(MouseEvent.ROLL_OUT,
image_handler);
image.addEventListener(MouseEvent.ROLL_OVER,
image_handler);
var border1:Sprite = new Sprite();
border1.graphics.lineStyle(1, 0xcccccc, 1.0);
border1.graphics.drawRect(-3, -3,
image.width+6, image.height+6);
image.addChild(border1);
image.addChild(newBitmap);
images_container.addChild(image);
lastImage = image;
lastBorder = border1;
THUMBARRAY.push(image);
index++;
}
Thanks so much,
Patrick Lemiuex
patrick AT me.com
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/