Xml based flash
Permalink
Hi i'm having trouble when i embed a flash file that i have made that has a xml running the content i can't upload the xml. And i'm not sure where to ftp the files.
Can anyone help me??
Can anyone help me??
... are you embedding it?
Can you paste sample code to explain better?
Can you paste sample code to explain better?
Hi okhayat,
Thanks for getting back to me.
Here's the code I'm using to embed the swf file. Everything is included in the 'structure' folder: XML, swf and images.
<object width="450" height="400">
<param name="movie" value="main.swf">
<embed src="/themes/bhh/structure/main.swf" width="450" height="400">
</embed>
</object>
It works when i use the same code but embedding the swf into a static HTML page, just not when trying to embed it in one of my page type templates which to me suggests that it's to do with the way C5 pages are rendered that means the XML file isn't being referenced properly...
Any ideas?
Thanks
Thanks for getting back to me.
Here's the code I'm using to embed the swf file. Everything is included in the 'structure' folder: XML, swf and images.
<object width="450" height="400">
<param name="movie" value="main.swf">
<embed src="/themes/bhh/structure/main.swf" width="450" height="400">
</embed>
</object>
It works when i use the same code but embedding the swf into a static HTML page, just not when trying to embed it in one of my page type templates which to me suggests that it's to do with the way C5 pages are rendered that means the XML file isn't being referenced properly...
Any ideas?
Thanks
One of two things. Either the Flash file is not loaded (because of wrong path). You can check this if you right click on the area when the flash file is supposed to appear, it will show you a 'Movie not loaded' message.
If not, it means the XML file path is wrong.
I actually did test XML/SWF Charts component (http://www.maani.us/xml_charts/) and it's really cool!
1. Downloaded the file (http://www.maani.us/xml_charts/charts.zip)
2. Extracted to my C5 directory under /charts
3. Edit any page and add a HTML block
4. Insert the follwing code (from the sample.html) and edit the paths accordingly.
and the result in the screenshot ;-)
If not, it means the XML file path is wrong.
I actually did test XML/SWF Charts component (http://www.maani.us/xml_charts/) and it's really cool!
1. Downloaded the file (http://www.maani.us/xml_charts/charts.zip)
2. Extracted to my C5 directory under /charts
3. Edit any page and add a HTML block
4. Insert the follwing code (from the sample.html) and edit the paths accordingly.
<script language="javascript">AC_FL_RunContent = 0;</script> <script language="javascript"> DetectFlashVer = 0; </script> <script src="/c5svn/charts/AC_RunActiveContent.js" language="javascript"></script> <script language="JavaScript" type="text/javascript"> <!-- var requiredMajorVersion = 9; var requiredMinorVersion = 0; var requiredRevision = 45; if (AC_FL_RunContent == 0 || DetectFlashVer == 0) { alert("This page requires AC_RunActiveContent.js."); } else { var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision); if(hasRightVersion) { AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0',
Viewing 15 lines of 43 lines. View entire code block.
and the result in the screenshot ;-)
Take a look at the C5 page here:
http://gator555.hostgator.com/~mark1/index.php/structure/...
And then take a look at a test page I put together with the Flash embedded in the page:
http://gator555.hostgator.com/~mark1/themes/bhh/structure/...
The latter works, but the former doesn't yet they reference the same .swf file.
As I said, the swf and xml are both in the directory called 'structure' along with the images folder which is referenced by the XML file.
I'm a little confused as to where I should move the XML file to get the path correctly referenced...
http://gator555.hostgator.com/~mark1/index.php/structure/...
And then take a look at a test page I put together with the Flash embedded in the page:
http://gator555.hostgator.com/~mark1/themes/bhh/structure/...
The latter works, but the former doesn't yet they reference the same .swf file.
As I said, the swf and xml are both in the directory called 'structure' along with the images folder which is referenced by the XML file.
I'm a little confused as to where I should move the XML file to get the path correctly referenced...
The site is protected by username/password and I can't view it.
Use this:
u: hello
p: 1324
u: hello
p: 1324
I found a temporary solution using an iframe here:
http://www.concrete5.org/index.php?cID=20236...
I guess I'm going to need to learn how to create a block that references the files in the right way for C5.
However not yet, bit by bit I think...so muc to learn in this game!
http://www.concrete5.org/index.php?cID=20236...
I guess I'm going to need to learn how to create a block that references the files in the right way for C5.
However not yet, bit by bit I think...so muc to learn in this game!
You should change the path in the <param> line too. Currently it's:
<param name="movie" value="main.swf">
It should be
<param name="movie" value="/themes/bhh/structure/main.swf">
So, it should look like:
<param name="movie" value="main.swf">
It should be
<param name="movie" value="/themes/bhh/structure/main.swf">
So, it should look like:
<object width="450" height="400"> <param name="movie" value="/themes/bhh/structure/main.swf"> <embed src="/themes/bhh/structure/main.swf" width="450" height="400"> </embed> </object>
I'm having the same problem - can anyone help with where to put these files?
My XML file is in the same directory as my SWF file, I've tried putting both of these in the root, but when I embed the file in my page type template, it says it can't load the XML.
Any ideas?