i've found where is exactly the problem:
http://www.adobe.com/go/7c90fec7 : a known bug saying that with flash playr 9, it's impossible to create a bitmapdata snapshot of an FLV streamed by FMS2.

it seems that the problem goes further... with images loaded from different domain

please take 2mn to copy/paste this code in flash... nothing ele needed
press ctrl-enter. in Flash it works.

http://www.foolarts.com/testBD3.html
here it works too because the swf and jpg domain is the same

http://test.nodule.com/makar/testBD3.html
but here it doesn't, while swf and jpg domains aren't the same... however the image is loaded in the moviecliploader... did I make something wrong or is it a player bug?

here's the source of the swf I linked, there's nothing else in the flash

import flash.display.BitmapData;

mcPicto = _root.createEmptyMovieClip("mcPicto",1);
mcPicto2 = _root.createEmptyMovieClip("mcPicto2",2);

displayPicto = function()
{
var oBD:BitmapData = new BitmapData(mcPicto._width,mcPicto._height,true,0x000000);
   mcPicto2._y = mcPicto._height + 10;
   mcPicto2.attachBitmap(oBD,1);
   oBD.draw(mcPicto);
}
var oMCL:MovieClipLoader = new MovieClipLoader();
var oL:Object = new Object();
oL.onLoadInit = mx.utils.Delegate.create(this,displayPicto);
oMCL.addListener(oL);
oMCL.loadClip("http://www.foolarts.com/crapaud.jpg",mcPicto);
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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