This is a migrated thread and some comments may be shown as answers.

Running SWF file from Windows Forms

1 Answer 93 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rathakrishnan
Top achievements
Rank 1
Rathakrishnan asked on 31 Mar 2011, 02:28 PM
Hi!
I've added an ShockwaveFlashObject inside my Windows Form. I've used the following code to run an SWF file:

<span class="code-keyword">this</span>-<span class="code-keyword">></span>axShockwaveFlash1-<span class="code-keyword">></span>BringToFront();<br>    <span class="code-keyword">this</span>-<span class="code-keyword">></span>axShockwaveFlash1-<span class="code-keyword">></span>Movie::set(<span class="code-keyword">gcnew</span> System::<span class="code-SDKkeyword">String</span>(StringToWString(spath).c_str()));       <br>    <span class="code-comment">//</span><span class="code-comment">this->axShockwaveFlash1->CallFunction("<invoke" + "name=\"UserInformation\"returntype=\"void\"></invoke>");<br></span> <span class="code-comment">//</span><span class="code-comment">this->axShockwaveFlash1->SetVariable("file", "index.swf");<br></span>  <span class="code-keyword">this</span>-<span class="code-keyword">></span>axShockwaveFlash1-<span class="code-keyword">></span>Play();
This code is inside the form load event. But when I run the application, the movie is not playing. What to do to run the swf file from Windows forms? I'm using Managed C++/CLI for this application.

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 01 Apr 2011, 08:21 AM
Hello Rathakrishnan,

Your questions does not seem to be related to RadControls for WinForms. I would suggest that you ask this question in the MSDN Forums where you may get a helpful response.

Greetings,
Nikolay
the Telerik team
Tags
General Discussions
Asked by
Rathakrishnan
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or