Forums / General Questions / Flash on DefineMainPage

Flash on DefineMainPage

Locked
Results 1 to 9 of 9
This thread is locked. New replies are disabled.
16 Dec 2008, 00:13
#1
chequepoint avatar

chequepoint

New Zenner

Join Date:
Nov 2008
Posts:
7
Plugin Contributions:
0

Flash on DefineMainPage

Following the instructions on the wiki. Searched the forum but seems like every time someone had a problem, someone else just solved it for them without posting the solution.

I'm just trying to add a flash object to my main page.

www.tops-malibu.com
Code looks like this so far:
  <object type="application/x-shockwave-flash" data="http://www.tops-malibu.com/includes/templates/TopsMalibu/TopsBanner/topsbanner.swf" width="607" height="290">
<param name="movie" value="http://www.tops-malibu.com/includes/templates/TopsMalibu/TopsBanner/topsbanner.swf" />
<param name="quality" value="high"><param name="BGCOLOR" value="#000000">
<param name="menu" value="false">
</object> 

Help.
16 Dec 2008, 00:16
#2
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Flash on DefineMainPage

What's wrong with the current code? The flash is not displayed?
16 Dec 2008, 00:21
#3
chequepoint avatar

chequepoint

New Zenner

Join Date:
Nov 2008
Posts:
7
Plugin Contributions:
0

Re: Flash on DefineMainPage

Correct. Not in Safari or Firefox anyways.
I'm adding this code via the define pages editor.
16 Dec 2008, 00:38
#4
chequepoint avatar

chequepoint

New Zenner

Join Date:
Nov 2008
Posts:
7
Plugin Contributions:
0

Re: Flash on DefineMainPage

Now I'm attempting to do it with the .js technique, and it still wont display.

if I go to www.tops-malibu.com/includes/templates/TopsMalibu/TopsBanner/topsbanner.swf it loads up.

The js is clearly loading a space for the flash. Ack.
16 Dec 2008, 00:48
#5
chequepoint avatar

chequepoint

New Zenner

Join Date:
Nov 2008
Posts:
7
Plugin Contributions:
0

Re: Flash on DefineMainPage

This is my javascript code, stored in includes/templates/TopsMalibu/jscript/

document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"');
document.write('WIDTH="607" HEIGHT="290" id="topsbanner" ALIGN="">');
document.write('<PARAM NAME=movie VALUE="http://www.tops-malibu.com/includes/templates/TopsMalibu/TopsBanner/topsbanner.swf"> <PARAM NAME=loop VALUE=true> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#ffffff> <EMBED src="http://www.tops-malibu.com/includes/templates/TopsMalibu/TopsBanner/topsbanner.swf" loop=true menu=false quality=high bgcolor=#ffffff WIDTH="607" HEIGHT="290" NAME="topsbanner" ALIGN=""');
document.write('TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
document.write('</OBJECT>');


This is the code i've inserted into the define pages main page:

<script src="includes/templates/TopsMalibu/jscript/topsbanner.js"></script>


The swf is located at www.tops-malibu.com/includes/templates/TopsMalibu/TopsBanner/topsbanner.swf

All I get is a white box.
16 Dec 2008, 06:11
#7
chequepoint avatar

chequepoint

New Zenner

Join Date:
Nov 2008
Posts:
7
Plugin Contributions:
0

Re: Flash on DefineMainPage

Maybe I'm missing something, but that puts a flash banner in a sidebox.. not what I need.

Or does it load Jscript in an invisible sidebox that lets me put flash on the define page and I'm just missing it?
16 Dec 2008, 06:16
#8
misty avatar

misty

Inactive

Join Date:
Apr 2004
Posts:
5,752
Plugin Contributions:
1

Re: Flash on DefineMainPage

Does it not contain swfobject.js file so your define main
page code would look something like..
i.e.
<script type="text/javascript" src="includes/templates/classic/js/swfobject.js"></script>
 <div id="flashcontent">
   <center>
   <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
     codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
     id="photo_tutorial" width="560" height="450">
     <param name="movie" value="photo_tutorial.swf">
     <param name="quality" value="high">
     <param name="bgcolor" value="#FFFFFF">
     <embed name="photo_tutorial" src="photo_tutorial.swf" quality="high" bgcolor="#FFFFFF"
       width="560" height="450"
       type="application/x-shockwave-flash"
       pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
     </embed>
   </object>
</center>
 <script type="text/javascript">
    var so = new SWFObject("includes/templates/classic/photo_tutorial.swf", "YOUR_HEADER", "560", "450", "7", "#FFFFFF");
    so.write("flashcontent");
</script>
</div>
16 Dec 2008, 07:13
#9
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Posts:
1,075
Plugin Contributions:
5

Re: Flash on DefineMainPage

chequepoint:

Now I'm attempting to do it with the .js technique, and it still wont display.

if I go to www.tops-malibu.com/includes/templates/TopsMalibu/TopsBanner/topsbanner.swf it loads up.

The js is clearly loading a space for the flash. Ack.


Boy that's a large loader... Your code inserting the flash is correct... but your action script is not following. Where did you but the xml file? Your action script says it should be at the root
tops-maibu.com/imageData.xml
imageData.load("imageData.xml');

Some of these loaders require the swf and xml files to be at the root. If your the coder of the swf, then you may need to play with the addressing until you get it... imageData.load("includes/templates/TopsMalibu/TopsBanner/imageData.xml');

If your not the coder, then try placing the xml at the root and then check the image pathways in your xml. They may need to find the swf!