Ask a questionAsk a question
 

AnswerWPF hosting Flash

  • Wednesday, February 01, 2006 12:30 PMRaja_Pols Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi,

    I want to host a SWF file in XAML layout. Is this possible at all? and if so what is the way to do?

    Thanks

Answers

  • Wednesday, February 01, 2006 6:35 PMirhetoric Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    The other way to do this is to use the WinFormsHost and then use that to host the Flash .ocx, which lives down in c:\windows\system32\macromed\flash -- you'll have to run AxImp.exe from the .net sdk on the Flash ocx. 

    Check out the sample on WinFormsHost in the SDK (under interop) to get started...

    --Karsten

     

All Replies

  • Wednesday, February 01, 2006 3:19 PMeburke Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    try using the Frame object.

    <Window>
    <Frame Source="myflash.swf"/>

    </Window>

  • Wednesday, February 01, 2006 6:35 PMirhetoric Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    The other way to do this is to use the WinFormsHost and then use that to host the Flash .ocx, which lives down in c:\windows\system32\macromed\flash -- you'll have to run AxImp.exe from the .net sdk on the Flash ocx. 

    Check out the sample on WinFormsHost in the SDK (under interop) to get started...

    --Karsten