Welcome Guest, Not a member yet? Register   Sign In
.swf files and CI (SOLVED)
#1

[eluser]miramichi[/eluser]
Does anyone have a solution?

I can't get my flash movies to play in CI. All the Flash files are in a folder at the root level. The embed/object code below works fine when I upload it to another site (non-CI).

To see this in action got to miramichi dot ca, and click on the video links. The image link goes off site and works. The text link tries to open the view below, and fails.
If you think the solution is .htaccess, please post an example.



Controller code:
Code:
class Video extends Controller
{
    function Video()
    {
        parent::Controller();
    }
    
    function index()
    {
        $this->load->view('video');
    }
}

View Code:
Code:
[removed][removed]
</head>
<body>
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="720" height="600">
  <param name="movie" value="http://www.miramichi.ca/Flash/ssp.swf">
  <param name="quality" value="high">
  <param name="wmode" value="opaque">
  <param name="swfversion" value="6.0.65.0">
  &lt;!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. --&gt;
  <param name="expressinstall" value="http://www.miramichi.ca/Scripts/expressInstall.swf">
  &lt;!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --&gt;
  &lt;!--[if !IE]>--&gt;
  &lt;object type="application/x-shockwave-flash" data="http://www.miramichi.ca/Flash/ssp.swf" width="720" height="600"&gt;
    &lt;!--<![endif]--&gt;
    <param name="quality" value="high">
    <param name="wmode" value="opaque">
    <param name="swfversion" value="6.0.65.0">
    <param name="expressinstall" value="http://www.miramichi.ca/Scripts/expressInstall.swf">
    &lt;!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --&gt;
    <div>
      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
      <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
    </div>
    &lt;!--[if !IE]>--&gt;
  &lt;/object&gt;
  &lt;!--<![endif]--&gt;
&lt;/object&gt;
[removed]
&lt;!--
swfobject.registerObject("FlashID");
//--&gt;
[removed]
&lt;/body&gt;
#2

[eluser]miramichi[/eluser]
This problem was solved by adding this to my .htaccess:

RewriteEngine On
RewriteCond $1 !^(index\.php|Flash)
RewriteRule ^(.*)$ index.php?/$1 [L]




Theme © iAndrew 2016 - Forum software by © MyBB