Hello there, thanks for checking my post. I have a bunch of jpgs that I've imported into my library and have given class names, they default to extend the BitmapData class. When I try and instantiate them I get an error message saying I need to pass them 2 arguments. Here is my code:

var formatImg = new LibImage();

var image:Bitmap = new Bitmap(formatImg);
                        
mainMC.addChild(image);

Could someone let me know the correct syntax for doing this?
As I am using a document class I think I may need to use the [Embed (source='myPhoto.png')] syntax also

Thanks!
Ali


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to