Using Flashplayercontrol in ASP.net

.NET Edition of the F-IN-BOX
chris22
Posts: 3
Joined: Mon Apr 03, 2006 9:07 pm

Using Flashplayercontrol in ASP.net

Postby chris22 » Tue Apr 04, 2006 7:32 am

Has anyone had any success in using the Flashplayercontrol from within an ASP.Net application?

We're just getting back a black image (allthough it says "DEMO", so we know something is correct :-).

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

Postby Softanics » Tue Apr 04, 2006 7:48 am

We haven't tested FPC with ASP.Net.
Could you please send me your project to support (at) flashplayercontrol.com?
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

chris22
Posts: 3
Joined: Mon Apr 03, 2006 9:07 pm

Postby chris22 » Tue Apr 04, 2006 10:48 am

It's unfortunately impossible for us to share this code, but from my experiences with using Flash.ocx this shouldn't be a problem. The only thing we need is access to the Flash Player's handle so that we can send it a WM_PAINT message.

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

Postby Softanics » Wed Apr 05, 2006 8:33 am

Currently there is no this handle because Flash is in the transparent mode. I tested FPC with ASP.Net and all works fine. Piece of my code:

Code: Select all

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim Form As New System.Windows.Forms.Form
        Dim FPC As New FlashPlayerControlLibrary.FlashPlayerControl

        Form.SuspendLayout()

        FPC.Left = 0
        FPC.Top = 0
        FPC.Width = 200
        FPC.Height = 200
        FPC.Visible = True

        Form.Controls.Add(FPC)

        Form.ResumeLayout()

        FPC.FlashProperty_Movie = "C:\Misc\53\movie.swf"
        FPC.FlashMethod_Play()

        FPC.FlashProperty_FrameNum = 20

        Dim FrameBitmapWithAlpha As Bitmap
        FrameBitmapWithAlpha = FPC.FrameBitmap

        FrameBitmapWithAlpha.Save("C:\Misc\53\2.bmp", System.Drawing.Imaging.ImageFormat.Bmp)

    End Sub

Best regards, Artem A. Razin,

F-IN-BOX support

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

chris22
Posts: 3
Joined: Mon Apr 03, 2006 9:07 pm

Postby chris22 » Wed Apr 05, 2006 1:28 pm

After sending a few emails back and forth (and recieving great and instant support, thanks!) I finally found out that to make sure the movie loaded correctly, we had to load the movie using PutMovieFromStream instead of setting the FlashProperty_Movie.


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 10 guests

cron