x


Embedding Flash in Windows.Forms under Unity

I have seen several examples in C# for embedding a Flash SWF in a Windows.Forms form. Can this be done using Unity? All I need is for Unity to open a separate window with the embedded swf. I don't need Unity and Flash to communicate with each other. So far I have a C# script opening a C# Form object, but Unity will not recognize the AxShockwaveFlash DLLs needed to embed the Flash.

Thanks in advance for any help.

more ▼

asked Jun 15, 2010 at 01:26 PM

JustDucky gravatar image

JustDucky
11 3 2 3

(comments are locked)
10|3000 characters needed characters left

2 answers: sort newest

Check this link

 using System;
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Data;
 using System.Drawing;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 using System.Windows.Forms;
 using ShockwaveFlashObjects;
 
 namespace WindowsFormsApplication3
 {
    
     public partial class Form1 : Form
     {
         public Form1()
         {
             InitializeComponent();
         }
 
         private void Form1_Load(object sender, EventArgs e)
         {
             this.axShockwaveFlash1.LoadMovie(0,"test9.swf");
         }
 
     }
 }

Tested with Visual Studio 2012.

more ▼

answered Jun 11, 2013 at 04:48 AM

osasuna gravatar image

osasuna
1

(comments are locked)
10|3000 characters needed characters left

Please, could you send to me this script?. It's yours or have you found in some website?. It would save to me a lot of time if I could open froms made with C# in Unity and distribute them all along the screen.

Please??.

more ▼

answered Oct 20, 2011 at 09:43 PM

jorgon gravatar image

jorgon
75 88 70 69

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x6911
x340

asked: Jun 15, 2010 at 01:26 PM

Seen: 2674 times

Last Updated: Jun 11, 2013 at 04:48 AM