Hi,

I know it doesn't make sense, but try passing in the width and height in the constructor. If I remember correctly that will do it.

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
----- Original Message ----- From: "Charles Parcell" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Thursday, July 26, 2007 1:30 PM
Subject: [Flashcoders] [CS3 - AS3] Getting BitmapData from a Library image


I am stumped.

I have an image in my Library and I have set it to export to AS and in frame 1. I have given it the Linkage of "Brick" and the "flash.display.BitmapData
".

With just that, I am able to build a SWF with no errors.

But I want to use the image's BitmapData to build a larger image that will
be displayed on Stage.  So, to that end I am instancing the image from the
Library via

imageSource = new Brick();

This should make an instance of the image so I can then grab its
BitmapData.  but I get the following error for the indicated code above.

1136: Incorrect number of arguments.  Expected 2.

Thoughts?


Charles P.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to