Image from .NET to FlashPlayerControl

.NET Edition of the F-IN-BOX
vzhukov
Posts: 6
Joined: Thu Nov 30, 2006 2:38 pm

Image from .NET to FlashPlayerControl

Postby vzhukov » Thu Nov 30, 2006 3:13 pm

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.

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Thu Nov 30, 2006 8:08 pm

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!
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

vzhukov
Posts: 6
Joined: Thu Nov 30, 2006 2:38 pm

Postby vzhukov » Fri Dec 01, 2006 11:32 am

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.

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Fri Dec 01, 2006 12:06 pm

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 ).
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 15 guests

cron