Silverlight, to control SWF Files?
Last post 05-01-2008 8:41 AM by LanceWynn. 3 replies.
Sort Posts:
04-30-2008 6:08 PM
Silverlight, to control SWF Files?

Hi all,

I am really wanting to get started in silverlight, and I have a project that I want to use it on.  However; this project currently has a whole bunch of SWF movie files that I am currently controlling using the Flash JScript API.  I want to add some new features, and eventually move all the video content into something more appropriate to Silverlight, but in the short term that is not an option.

Is there a way to embed non-silverlight objects (In this case the SWF files) and interact with them like I would if it were just on a regular HTML page?

Thanks in advance

Lance

 

LanceWynn

Joined on 04-30-2008
Posts 2
05-01-2008 4:07 AM
Re: Silverlight, to control SWF Files?

I don't know how to control SWF files but in silverlight you can interact with and execute javascript code. If you are able to control your flash movies from javascript there is a way for you to control them from silverlight.

Thierry Bouquain
Ucaya
http://www.ucaya.com

thierry.bouquain

Joined on 05-06-2007
Nantes, France
Posts 224
05-01-2008 4:35 AM
Marked as Answer
Re: Silverlight, to control SWF Files?

Try call on javascript functions which in turn talks to the JScript API, (or the newer ExternalInterface/External API in flash 8). to call a javascript function from Silverlight use something like:

HtmlPage.Window.Invoke("functionname","parameter");

If you like the flashmovie appear "inside" the Silverlight movie, look for the Windowless:true and the Background:Transparent parameters

cakeWho

Joined on 05-28-2007
Posts 9
05-01-2008 8:41 AM
Re: Re: Silverlight, to control SWF Files?

That's exactly what I needed, thanks!

 

Lance

 

LanceWynn

Joined on 04-30-2008
Posts 2