
I've added an ShockwaveFlashObject inside my Windows Form. I've used the following code to run an SWF file:
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.<
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();