Running SWF file from Windows Forms

2 posts, 0 answers
  1. Rathakrishnan
    Rathakrishnan avatar
    2 posts
    Member since:
    Mar 2011

    Posted 31 Mar 2011 Link to this post

    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.
  2. Nikolay
    Nikolay avatar
    1802 posts

    Posted 01 Apr 2011 Link to this post

    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.

    the Telerik team
  3. DevCraft R3 2016 release webinar banner
Back to Top