Help with flash - Post ID 76210

User 625242 Photo


Guest
5 posts

Im using the CoffeCup flash menu builder and i have a problem with implementing the flash code it generated.


I have php page which i want to put a flash menu but it won't work yet in a folder on my desktop when i click the html file it worked. I upload the folder to my localhost and try it and it comes out blank! Makes no sense!

This is what i have in the php file:


<div id="midheader">

<?php
include("menu/mymenu.html"); //this is valid and is working i have tested that
?>

</div>



In mymenu.html i have:


<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="873" height="66" id="CU" align="middle">
<param name="movie" value="mymenu.swf"/>
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="#ffffff" />
<param name="wmode" value="transparent"/>
<embed src="mymenu.swf" quality="high" bgcolor="#ffffff" width="873" height="66"
wmode=transparent name="CU" scale="noscale" salign="lt" align="middle" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>


The menu folder which the flash script is in ... contains the following files:



mymenu.swf
mymenu.xml
roundedbutton.png


It just displays a thick blank <DIV> on my html page and shows no flash playing.... my page source shows this:


<div id="midheader">


<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="873" height="66" id="CU" align="middle">
<param name="movie" value="mymenu.swf"/>
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="#ffffff" />
<param name="wmode" value="transparent"/>
<embed src="mymenu.swf" quality="high" bgcolor="#ffffff" width="873" height="66"
wmode=transparent name="CU" scale="noscale" salign="lt" align="middle" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>


</div>



If i right click in the div it shows the options for flash...so it is "technically" there but not showing graphically.. which is what i don't understand.... is there something im missing?

Hope you can help me.
User 355448 Photo


Ambassador
3,144 posts

sir chick,

This is just a quick guess, but give it a test.

Try changing the mymenu.html to mymenu.php since generally includes require everything to have the php extension.
User 625242 Photo


Guest
5 posts

Yup tried that BillR, same result im afraid. Could it be something with the Coffee Cup Flash menu generator? Although viewing the mymenu.html (or mymenu.php) on their own works fine but once included into a webpage it does not work at all.
User 37670 Photo


Registered User
2,138 posts

your include says the file is in one place:
include("menu/mymenu.html");

but your flash code says the .swf file is here:
mymenu.swf

Not the lack of the menu folder? That blank white space where the flash should be usually indicates a bad path to the file.

Double check all the paths to the needed files and make sure they are uploaded where they need to be.
E-Learning Specialist
www.mainsites.ca is my website, and yes, some of it is crappy.
User 625242 Photo


Guest
5 posts

mymenu.html is in the same folder as the .swf file... heres the directory structure:


php file being viewed by the user is in CSS folder

root > css > menu

In "menu" is the following files:
mymenu.php
mymenu.html
mymenu.swf
mymenu.xml
roundedbutton.png

So as the mymenu.html is in same folder as the .swf file I didnt see the need to put the menu folder name into it ? Have i got it correct?
User 37670 Photo


Registered User
2,138 posts

Thanks for better explaining the directory structure. I missunderstood. You seem to have it correct.

Have you tried using the code on your web page, not as an include just to see if it works...I don't mean with the generated html page on it's own, but with the code on your php page. Maybe there is some other code that is messing it up for some strange reason.
I use includes, but have not tried to include a flash animation. I miight give that a try myself in the next day or so to see what happens.

Hope you find the fix...and post it for all of us in case we are in the same fix someday.
E-Learning Specialist
www.mainsites.ca is my website, and yes, some of it is crappy.
User 625242 Photo


Guest
5 posts

Ok some update for ya, not sure if it will help...


When i right click my flash player and click play i get this...

You need version 8 or higher... ( i have version 10)...
Then i click play again and it says:
Failed to load the xml file .. (but its in the same folder... how can it be confused by that...


Then i click play again then it just goes black, quite random... is there a way to edit the .swf file i think i need to edit the code for it to point to the correct directory.. is it possible to do that.. if not then is faslh menu builder program by CoffeeCup is rather unhelpful.



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.