Problem loading a Flash presentation in WebView

Discussion in 'Mac Programming' started by micmen, Oct 28, 2014.

  1. micmen macrumors newbie

    Oct 28, 2014
    Hi, I developed a simple Cocoa/Objective-C application that load a Flash presentation using a WebView. In this there are some link to web content and a list of pdf doc (these embedded in a folder of the presentation).
    When I click a link or a pdf, a popup by Flash Plugin appears, asking if the content can acces the internet.
    I read on internet a solution to make the content of the presentation trusted for Adobe. Now the popup doesn't appear, but nothing happens clicking on the links.
    The presentation is structured as follow :
    - MainRoot
    - attachments (containing pdf files)
    - data (containing the single slides .swf files)
    - main.swf
    - file.swf
    - index.html
    - presentation.xml
    Someone could help me to solve this problem ?
    Thank you.
  2. xStep macrumors 68000

    Jan 28, 2003
    Less lost in L.A.
    Two things...

    Does this work in Safari to your expectation?

    People will want to see your source of the html file to see how you are setting up the flash code.

    P.S. I'm assuming that a WebView can handle flash. I don't know if it does it doesn't.
  3. micmen thread starter macrumors newbie

    Oct 28, 2014
    Yes, if I open it from Safari, it works. WebView load the flash presentation and all interaction (button, index, volume...) work fine.
    The index.html code is the following :

    <html xmlns="" xml:lang="en" lang="en">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Acouphenes 10012013</title>
    <body topmargin="0" leftmargin="0" bgcolor="#ffffff">
    <table cellpadding="0" cellspacing="0" width="100%" height="100%">
    <td align="center" valign="middle">
    <object id="presentation" width="100%" height="100%" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=",0,0,0" align="middle">
    <param name=movie value="Acouphenes_10012013.swf" />
    <param name=quality value=high />
    <param name=allowFullScreen value="true" />
    	allowFullScreen="true" />
    <script type="text/javascript" src="fixprompt.js"/>

Share This Page