Page 1 of 1

Image from .NET to FlashPlayerControl

Posted: Thu Nov 30, 2006 3:13 pm
by vzhukov
Hello ! There is one issue I can't resolve.

In .NET I recieve image file from database and i want to import it into flash using FlashPlayerControl for .NET.

Can you please give a sample ?

Regards
Zhukov V.

Posted: Thu Nov 30, 2006 8:08 pm
by Softanics
Thank you for your question.

Do you need to load image into flash? If yes, please see sample which demostrates embedding resources (it's included in the demo zip). In short, a flash movie starts image loading using some URL, then you handle this event and provide image content.

If you need more assistance, please write me here or to support: http://f-in-box.com/support.html

Thank you!

Posted: Fri Dec 01, 2006 11:32 am
by vzhukov
Hello !

Flash 8 supports such object as BitmapData. The scenario I want to implement is to pass ActionScript function argument as Stream that can be converted inside ActionScript to BitmapData.

Is it possible ? Or there is other solution that can take place ?

Regards
Zhukov V.

Posted: Fri Dec 01, 2006 12:06 pm
by Softanics
You can pass a string (that contains information about width / height and pixel colors) to actionscript function using external api. In the function you can construct new BitmapData and fill it using the method SetPixel / SetPixel32 ( http://www.brajeshwar.com/reference/as2 ... hodSummary ).