Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

SWF file!

Started by Muut Archive 10 years ago · 6 replies · 647 views
10 years ago

Please help us reproduce the problem by writing all the details we need to recreate it. What's the page content?

10 years ago

I already inserted swf to Allowed fallback types but nothings happen. I put it through media, then i inserted it to the content. Then, the error just appear.

10 years ago

Is there other way to fix that? Thanks @flavicopes

10 years ago

AFAIK the SWF file cannot be just inserted in the page and it works. You need to wrap it in an object, with the full path of the swf (check it's accessible via page route):

TXT
<object>
    <embed src="/grav/your-page-slug/Car.swf" width="100%" height="100%"></embed>
</object>
10 years ago

As flavioscopes said, you have to embed the file in the page. SWF files need to run that way, the easiest way is still to use SWFObject to get it done. https://code.google.com/p/swfobject/
Then just check the examples to get the code right.
https://code.google.com/p/swfobject/wiki/documentation

But this would work as long as you include the js file ( http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js )

HTML
<script type="text/javascript"> 
            var flashvars = { };
            var params = {
                wmode: "opaque",
                quality: "high",
        bgcolor: "666633"
            };
            swfobject.embedSWF("path/to/file.swf", "flashCar", "100%", "100%", "8", "/media/utils/expressInstall.swf",flashvars,params);
        </script>
<div id="flashCar">
   <!-- alt content -->
</div>

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1354 9 years ago
Archive · by Muut Archive, 9 years ago
2 935 9 years ago
Archive · by Muut Archive, 9 years ago
2 4065 9 years ago
Archive · by Muut Archive, 9 years ago
1 2953 9 years ago
Archive · by Muut Archive, 9 years ago
3 1119 9 years ago