Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

STSv4 Using Flash


Recommended Posts

Ok, I am making headway. I found the post on the flash movie, Bill Kellum post #4735. I copied the code box to a text file and named it "swfobject.js" I then created a flash folder and placed the file inside the flash folder. The path is mystore/includes/sts_templates/freeoscomm_061/flash/swfobject.js.

I then copied this line of code to the sts_template.html "<script type="text/javascript" src="$templatedir/flash/swfobject.js"></script>".

I then pasted this code in the index.php_0.html file inside the freeoscomm_061 folder where I want the movie to play.

<td class="styleFlash">

<script type="text/javascript" src="$templatedir/flash/swfobject.js"></script>

<div id="flashcontent">This text is replaced by the Flash movie.

</div>

<script type="text/javascript">

var so = new SWFObject("images/flash/your_flash_movie.swf", "movie", "763", "368", "8", "#ffffff");

so.write("flashcontent");

</script>

</td>

 

and finally I added a folder to my base images folder called flash and copied my flash movie to this folder..... I also renamed my flash movie to "your_flash_movie.swf" thinking that matched all the references.

 

Any ideas as to why all I see is the code text I added to my index.php_0.html file when I view the store in a browser?

 

Thanks for the help.

RJ

Link to comment
Share on other sites

  • 3 weeks later...

Ok, I am making headway. I found the post on the flash movie, Bill Kellum post #4735. I copied the code box to a text file and named it "swfobject.js" I then created a flash folder and placed the file inside the flash folder. The path is mystore/includes/sts_templates/freeoscomm_061/flash/swfobject.js.

I then copied this line of code to the sts_template.html "<script type="text/javascript" src="$templatedir/flash/swfobject.js"></script>".

I then pasted this code in the index.php_0.html file inside the freeoscomm_061 folder where I want the movie to play.

<td class="styleFlash">

<script type="text/javascript" src="$templatedir/flash/swfobject.js"></script>

<div id="flashcontent">This text is replaced by the Flash movie.

</div>

<script type="text/javascript">

var so = new SWFObject("images/flash/your_flash_movie.swf", "movie", "763", "368", "8", "#ffffff");

so.write("flashcontent");

</script>

</td>

 

and finally I added a folder to my base images folder called flash and copied my flash movie to this folder..... I also renamed my flash movie to "your_flash_movie.swf" thinking that matched all the references.

 

Any ideas as to why all I see is the code text I added to my index.php_0.html file when I view the store in a browser?

 

Thanks for the help.

RJ

 

 

Remember, if you are adding stop end characters to your tags, you must do it for the $tempplatedir$ as well.

 

thumbsup.gif Please visit the STSv4 Support Thread. Link is in the STS User Manual as well as in my signature below.

 

 

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...