Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

micmen

macrumors newbie
Original poster
Oct 28, 2014
2
0
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.
 
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.
 
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>
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.