Problem loading a Flash presentation in WebView

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

  1. micmen macrumors newbie

    Joined:
    Oct 28, 2014
    #1
    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

    Joined:
    Jan 28, 2003
    Location:
    Less lost in L.A.
    #2
    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

    Joined:
    Oct 28, 2014
    #3
    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 :

    Code:
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Acouphenes 10012013</title>
    </head>
    <body topmargin="0" leftmargin="0" bgcolor="#ffffff">
    <table cellpadding="0" cellspacing="0" width="100%" height="100%">
    <tr>
    <td align="center" valign="middle">
    
    <object id="presentation" width="100%" height="100%" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" align="middle">
    <param name=movie value="Acouphenes_10012013.swf" />
    <param name=quality value=high />
    <param name=allowFullScreen value="true" />
    <embed 
    	src="Acouphenes_10012013.swf" 
    	quality=high
    	width="100%" 
    	height="100%" 
    	name="presentation" 
    	align="middle" 
    	type="application/x-shockwave-flash" 
    	pluginspage="http://www.adobe.com/go/getflashplayer" 
    	allowFullScreen="true" />
    </object>
    </td>
    </tr>
    </table>
    <script type="text/javascript" src="fixprompt.js"/>
    </body>
    </html>
    
     

Share This Page