Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

NOT LOADING FLASH!!! HELP!..


Ghawk

Recommended Posts

hi!!! im trying to add a flash in the main banner of the web..... it show the space of the .swf but it doesnt load.... i have try whit the SWFObject and with the tradicional way...... and NONE of those works!!! please! anyone have some idea about it???????? :huh:

Link to comment
Share on other sites

<div id="flashcontent00" class="leftFloatFlash">

<strong>You need to upgrade your Flash Player</strong>

This is replaced by the Flash content.

</div>

<script type="text/javascript">

 

var so = new SWFObject("/swf/navigation.swf", "flashNav", "100%", "100%", "7", "#FFFFFF");

so.addParam("quality", "high");

so.addParam("wmode", "transparent");

so.addParam("swliveconnect", "true");

so.addParam("AllowScriptAccess", "sameDomain");

so.addParam("scale", "noscale");

so.write("flashcontent00");

 

</script>

Link to comment
Share on other sites

that its with de SWFObject..... the other its the tipycal script....object..embed...etc..

That is where I think you are having problems, in the object embed tags. Show the 3 or 4 lines of the object code that you used.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

<script type="text/javascript">

AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1000','height','145','src','swf/Bnn-ppcl','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','swf/Bnn-ppcl' ); //end AC code

</script>

 

<noscript>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1000" height="145">

<param name="movie" value="swf/Bnn-ppcl.swf" />

<param name="quality" value="high" />

<embed src="swf/Bnn-ppcl.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1000" height="145"></embed>

</object>

</noscript>

Link to comment
Share on other sites

<script type="text/javascript">

AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1000','height','145','src','swf/Bnn-ppcl','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','swf/Bnn-ppcl' ); //end AC code

</script>

 

<noscript>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1000" height="145">

<param name="movie" value="swf/Bnn-ppcl.swf" />

<param name="quality" value="high" />

<embed src="swf/Bnn-ppcl.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1000" height="145"></embed>

</object>

</noscript>

Try this:

 

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="obj1" codebase="[url="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0[/url]" width="1000" height="145">
 <param name="movie" value="swf/Bnn-ppcl.swf">
 <param name="quality" value="high">
 <embed src="swf/Bnn-ppcl.swf" pluginspage="[url="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"]http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash[/url]" name="obj1" width="1000" height="145" quality="high"></object>

 

The above assumes that you have uploaded your flash movie to the "your_shop_folder"/swf directory. If you still have problems, then use this code instead:

 

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="obj1" codebase="[url="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0[/url]" width="1000" height="145">
 <param name="movie" value="swf/Bnn-ppcl.swf">
 <param name="quality" value="high">
 <embed src="swf/Bnn-ppcl.swf" pluginspage="[url="http://www.macromedia.com/go/getflashplayer"]http://www.macromedia.com/go/getflashplayer[/url]" type="application/x-shockwave-flash" name="obj1" width="1000" height="145" quality="high"></object>

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

ok ill try with those... but .. do i have to use ..???

 

AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1000','height','145','src','swf/Bnn-ppcl','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','swf/Bnn-ppcl' ); //end AC code

</script>

 

or not??

Link to comment
Share on other sites

OK... I HAVE TRIED EVERYTHING AND NOTHING HAVE WORKED!!! ... :'(

 

when i use the code...in another page......it works... but when i used inside OSC i doesnt work....... what im doing wrong????? do i have to activate something or what??????

 

pleeaaaseeeee someone!! heelp!!!

 

look this is the web http://elitcomonline.com

Link to comment
Share on other sites

some one??????

Well, I don't see where you ever tried the solution that I gave you. You do not need the "/" at the end of the param tags and you do not need the last /embed tag either.

As far as that goes, you also do not need the JavaScript in order to embed the object flash movie.

You should be adding your flash movie into your header.php file. Here is an example of a working flash movie embedded into the header.php file (notice that the flash movie was uploaded to the shops "image" folder:

 

 

<?php
/*
 $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com/"]http://www.oscommerce.com[/url]

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// check if the 'install' directory exists, and warn of its existence
 if (WARN_INSTALL_EXISTENCE == 'true') {
if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {
  $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');
}
 }

// check if the configure.php file is writeable
 if (WARN_CONFIG_WRITEABLE == 'true') {
if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
  $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
}
 }

// check if the session folder is writeable
 if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
if (STORE_SESSIONS == '') {
  if (!is_dir(tep_session_save_path())) {
	$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');
  } elseif (!is_writeable(tep_session_save_path())) {
	$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');
  }
}
 }

// check session.auto_start is disabled
 if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
if (ini_get('session.auto_start') == '1') {
  $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');
}
 }

 if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
if (!is_dir(DIR_FS_DOWNLOAD)) {
  $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');
}
 }

 if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
 }
?>
<table border="0" cellspacing="0" cellpadding="0" align="center" width="766">
<tr><td valign="top">
  <table border="0" cellspacing="0" cellpadding="0" width="766" align="center">	 
 <tr><td height="58" class="bg">		  
	 <table border="0" cellspacing="0" cellpadding="0">
	  <tr><td width="229" height="58" align="center" class="tx"><b><?=BOX_HEADING_CURRENCIES?>:</b>   <?
echo tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get');
reset($currencies->currencies);
$currencies_array = array();
while (list($key, $value) = each($currencies->currencies)) {
  $currencies_array[] = array('id' => $key, 'text' => $value['title']);
}
$hidden_get_variables = '';
reset($HTTP_GET_VARS);
while (list($key, $value) = each($HTTP_GET_VARS)) {
  if ( ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) {
	$hidden_get_variables .= tep_draw_hidden_field($key, $value);
  }
}
echo tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit();" class="se"') . $hidden_get_variables . tep_hide_session_id();
echo '</form>';
?> </td>
	   <td><?=tep_image(DIR_WS_IMAGES.'m11.gif')?></td>
 <td width="271" height="58" align="center"><?=tep_image(DIR_WS_IMAGES.'m12.gif')?>  <span class="tx"><b><?=BOX_HEADING_SHOPPING_CART?>:</b>  </span> <a class="ml" href="<?=tep_href_link('shopping_cart.php')?>"><?=$cart->count_contents()?> <?=BOX_SHOPPING_CART_EMPTY?></a>   </td>				
	<td><?=tep_image(DIR_WS_IMAGES.'m11.gif')?></td>
	<td width="268" height="58" align="center" class="ab"><span class="tx"><b><?=BOX_HEADING_LANGUAGES?>:</b></span>  <?
if (!isset($lng) || (isset($lng) && !is_object($lng))) {
include(DIR_WS_CLASSES . 'language.php');
$lng = new language;
}
$languages_string = '';
reset($lng->catalog_languages);
while (list($key, $value) = each($lng->catalog_languages)) {
$languages_string .= '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> ';
}
echo $languages_string;
?> </td></tr>
	  </table>
 </td></tr>  
</table>
<table border="0" cellspacing="0" cellpadding="0">
 <tr><td valign="top">
   <table border="0" cellspacing="0" cellpadding="0">   
 <tr><td><a href="<?=tep_href_link('index.php')?>"><?=tep_image(DIR_WS_IMAGES.'m01.gif')?></a></td></tr>
   <tr><td><a href="<?=tep_href_link('index.php')?>"><?=Tep_Image_Button('m02.gif')?></a></td></tr>
	  <tr><td><a href="<?=tep_href_link('products_new.php')?>"><?=Tep_Image_Button('m03.gif')?></a></td></tr>
<tr><td><a href="<?=tep_href_link('specials.php')?>"><?=Tep_Image_Button('m04.gif')?></a></td></tr>
<tr><td><a href="<?=tep_href_link('account.php')?>"><?=Tep_Image_Button('m05.gif')?></a></td></tr>
<tr><td><a href="<?=tep_href_link('contact_us.php')?>"><?=Tep_Image_Button('m06.gif')?></a></td></tr>
 <tr><td height="25"></td></tr>
</table>
  </td>
  <td valign="top"><a href="<?=tep_href_link('shipping.php')?>"><!-- Begin Flash Movie --><object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="[url="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0[/url]" border="0" width="552" height="300" align="right" hspace="0">
<param name="movie" value="images/banner-top.swf">
<param name="quality" value="High">
<embed src="images/banner-top.swf" pluginspage="[url="http://www.macromedia.com/go/getflashplayer"]http://www.macromedia.com/go/getflashplayer[/url]" type="application/x-shockwave-flash" name="obj1" width="552" height="300" quality="High"></object><!-- End Flash Movie --></td></tr>
   </table> 
</td></tr>
<?php
define(MAX_DESCR_2,'400');
define(MAX_DESCR_1,'60');
?>

The code between the "Begin Flash Movie" and "End Flash Movie" is all you need to make this work. Compare your code with the code above.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

LOOK... i used the same code .. and still doesnt load it........ http://elitcomonline.com

 

i dont know why its not working.. i have try almost everything!!! what should i do???

<?php
/*
 $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2003 osCommerce

 Released under the GNU General Public License
*/

// check if the 'install' directory exists, and warn of its existence
 if (WARN_INSTALL_EXISTENCE == 'true') {
   if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {
     $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');
   }
 }

// check if the configure.php file is writeable
 if (WARN_CONFIG_WRITEABLE == 'true') {
   if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
     $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
   }
 }

// check if the session folder is writeable
 if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
   if (STORE_SESSIONS == '') {
     if (!is_dir(tep_session_save_path())) {
       $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');
     } elseif (!is_writeable(tep_session_save_path())) {
       $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');
     }
   }
 }

// check session.auto_start is disabled
 if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
   if (ini_get('session.auto_start') == '1') {
     $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');
   }
 }

 if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
   if (!is_dir(DIR_FS_DOWNLOAD)) {
     $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');
   }
 }

 if ($messageStack->size('header') > 0) {
   echo $messageStack->output('header');
 }
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr class="header">
   <td valign="middle">

<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="[url="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"]http://download.macromedia.com/pub/shockwa...ersion=6,0,40,0[/url]" border="0" width="552" height="300" align="right" hspace="0">
   <param name="movie" value="images/bnn-ppcl.swf">
   <param name="quality" value="High">
   <embed src="images/bnn-ppcl.swf" pluginspage="[url="http://www.macromedia.com/go/getflashplayer"]http://www.macromedia.com/go/getflashplayer[/url]" type="application/x-shockwave-flash" name="obj1" width="552" height="300" quality="High"></object>


   </td>
 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
 <tr class="headerNavigation">
   <td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>
   <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>
 </tr>
</table>
<?php
 if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerError">
   <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>
 </tr>
</table>
<?php
 }

 if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerInfo">
   <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>
 </tr>
</table>
<?php
 }
?>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...