>In the Flash app we are having some trouble with the attachMovie method and
the fact that you can only attach a mc on the same parent.
What you could do here (if you are developing for Flash 8) is put a method
in you library like this (might contain errors, wrote it from the top of my
head):
function getImageBitmapData(linkageID:String, width:Number,
height:Number):BitmapData
{
var currentImage:MovieClip = attachMovie(linkageID, "currentImage", 0);
var bmd:BitmapData = new BitmapData(width, height);
bmd.draw(currentImage);
//remove the movieclip
currentImage.removeMovieClip();
//make sure it is removed
delete this.currentImage;
return bmd;
};
Then where you use the component you could draw it with attachBitmap or
bitmapFill. I suspect you resize the images aswell. In that case at the end
of the resize just get a new bitmapData (during might be too heavy,
something to test I guess).
Greetz Erik
On 2/4/08, Gert-Jan van der Wel <[EMAIL PROTECTED]> wrote:
>
> Hi Erik,
> Thank you for your response. I know that something like this should be
> possible in AS3 but we're (at this moment) stuck with AS2, so that makes
> it
> a little bit more difficult.
>
> On our server we've been testing with Swfmill and Ming, but we keep
> getting
> an error rate of about 10% with the bundling our furniture swf's to one
> big
> swf. In the Flash app we are having some trouble with the attachMovie
> method
> and the fact that you can only attach a mc on the same parent.
>
> Therefor we decided to stop our attempt. We'll continue our quest when the
> main app is AS3 ;-)
>
> Cheers,
> Gert-Jan
>
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders