- Home /
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.
Answer by jorgon · Oct 20, 2011 at 09:43 PM
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??.
Answer by osasuna · Jun 11, 2013 at 04:48 AM
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.
Your answer
![](https://koobas.hobune.stream/wayback/20220613062156im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Web Player Broken After Exporting To Flash. 1 Answer
flash animation scene to unity 2 Answers
Flash build giving some errors.(Type was not found or was not a compile-time constant) 0 Answers
Static materials are lost? 0 Answers