Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Dec 2008
    Posts
    82
    Plugin Contributions
    0

    Default Emedding flash into define_main_page.php

    I'm trying to embed a 600px x 600px flash object into the define_main_page.php page.

    The flash object is actually a carousel, which my client wants as a form of navigation on the home page. The problem I'm having is a pure file path issue, but I just can't seem to find the correct solution.

    The swf file path is located at:
    http://www.christinafrench.com/sienn...l/MainFile.swf

    If you go to that link the carousel will load as it should.

    The define_main_page.php file path is located at:
    http://www.christinafrench.com/sienn..._main_page.php

    I know the code in the xml and swf file are correct as the carousel loads ok when you just visit the link above. But I can't get it to load into the define_main_page.php page when loading the home page.

    If you go to http://www.christinafrench.com/sienna you will be taken to the home page of the site and will notice that there is a huge space where the flash carousel should be loading.

    I've tried putting the carousel directory in the root of the site with no luck, I've tried putting it into the sienna directory which is the root of the zen-cart with no joy. I've also tried putting it in the same directory as the define_main_page.php file with no luck.

    This has to be a simple file path issue but I can't for the life of me get my head round why it's not working. i've checked with the developer of the carousel and all the code being used in the flash files is correct.

    Please please help me.... Any guidance would be greatly appreciated as I've been stuck on this issue for the last week and am getting nowhere fast. i was hoping to get this project turned around within 3 weeks but as it stands I've wasted the last week on just this off and on.

    Best regards,

    andy
    Last edited by bettsaj; 13 Jan 2009 at 08:12 AM.

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Emedding flash into define_main_page.php

    http://www.zen-cart.com/forum/showthread.php?t=64057
    Plus posting url where you have attempted to insert code will
    help..can then view source coding.

  3. #3
    Join Date
    Dec 2008
    Posts
    82
    Plugin Contributions
    0

    Default Re: Emedding flash into define_main_page.php

    Quote Originally Posted by misty View Post
    http://www.zen-cart.com/forum/showthread.php?t=64057
    Plus posting url where you have attempted to insert code will
    help..can then view source coding.

    Do you mean the xml file coding, or the coding on the actual define_main_page.php??

  4. #4
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Emedding flash into define_main_page.php

    I coded similar carousel file for another zencart member several months ago, for define main page..
    Code is below...use, and alter paths to suit ..
    Code:
    <script language="javascript">AC_FL_RunContent = 0;</script>
    <script src="AC_RunActiveContent.js" language="javascript"></script>
    <body bgcolor="#000000">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <!-- saved from url=(0013)about:internet -->
    <center>
    <script language="javascript">
     if (AC_FL_RunContent == 0) {
      alert("This page requires AC_RunActiveContent.js.");
     } else {
      AC_FL_RunContent(
       'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0',
       'width', '336',
       'height', '251',
       'src', 'caraosel',
       'quality', 'high',
       'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
       'align', 'middle',
       'play', 'true',
       'loop', 'true',
       'scale', 'showall',
       'wmode', 'window',
       'devicefont', 'false',
       'id', 'caraosel',
       'bgcolor', '#000000',
       'name', 'caraosel',
       'menu', 'true',
       'allowFullScreen', 'false',
       'allowScriptAccess','sameDomain',
       'movie', 'caraosel',
       'salign', ''
       ); //end AC code
     }
    </script>
    <noscript>
     <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/s...ersion=7,0,0,0" width="336" height="251" id="caraosel" align="middle">
     <param name="allowScriptAccess" value="sameDomain" />
     <param name="allowFullScreen" value="false" />
     <param name="movie" value="caraosel.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /> <embed src="caraosel.swf" quality="high" bgcolor="#000000" width="336" height="251" name="caraosel" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
     </object>
    </noscript>
    </center>

  5. #5
    Join Date
    Dec 2008
    Posts
    82
    Plugin Contributions
    0

    Default Re: Emedding flash into define_main_page.php

    this is the code from the define_main_page.php page:

    <script src="../../../../../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>

    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','600','height','600','src','carousel/MainFile','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','carousel/MainFile' ); //end AC code
    </script><noscript><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="600" height="600">
    <param name="movie" value="../../../templates/cherry_zen/carousel/MainFile.swf" />
    <param name="quality" value="high" />
    <embed src="../../../templates/cherry_zen/carousel/MainFile.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="600" height="600"></embed>
    </object></noscript>

    <p>This content is located in the file at: <code> /languages/english/html_includes/YOUR_TEMPLATE/define_main_page.php</code></p>

    <p>You can quickly edit this content via Admin->Tools->Define Pages Editor, and select define_main_page from the pulldown.</p>

    <p><strong>NOTE: Always backup the files in<code> /languages/english/html_includes/your_template</code></strong></p>

  6. #6
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Emedding flash into define_main_page.php

    Without having your actual files, difficult to comment, but
    from coding you have posted...check paths to files
    i.e.
    all files for my code are in zencart root folder NOT
    template folder...

  7. #7
    Join Date
    Dec 2008
    Posts
    82
    Plugin Contributions
    0

    Default Re: Emedding flash into define_main_page.php

    I've tried putting the carousel drectory in the root of the zen-cart and it didn't work.... Do you think I should try putting just the files in the zen root folder??

    The files in the carousel directory are:

    xmlMenu.xml
    MainFile.swf
    images folder

  8. #8
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Emedding flash into define_main_page.php

    Quote Originally Posted by bettsaj View Post
    I've tried putting the carousel drectory in the root of the zen-cart and it didn't work.... Do you think I should try putting just the files in the zen root folder??

    The files in the carousel directory are:

    xmlMenu.xml
    MainFile.swf
    images folder
    Yes, but if you do not set paths correctly in coding, then
    that wont work either...as stated in my last post, without
    having actual files. difficult to advise..

  9. #9
    Join Date
    Dec 2008
    Posts
    82
    Plugin Contributions
    0

    Default Re: Emedding flash into define_main_page.php

    I shall have to check it tonight.... I'm at work at the moment and can't work on it. i'll check it and report back.

  10. #10
    Join Date
    Dec 2008
    Posts
    82
    Plugin Contributions
    0

    Default Re: Emedding flash into define_main_page.php

    I got it sorted.... It was a file path issue in the actual actionscript of the swf file.

    you can now see the carousel by going to http://www.christinafrench.com/sienna

    One thing i'd like to know is how do I centre the swf file on the page??

    that's centred side to side horizontally NOT virtically.


 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Flash not working on my define_main_page
    By deemurphy in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 19 Apr 2012, 09:07 AM
  2. adding flash to the define_main_page
    By deemurphy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Apr 2012, 02:57 AM
  3. Flash file in define_main_page.php obscures flyout menu
    By Yolanda in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Sep 2009, 02:01 AM
  4. want to add php code in define_main_page.php
    By parin123 in forum General Questions
    Replies: 1
    Last Post: 2 Jul 2009, 04:27 PM
  5. Flash Movie resized in define_main_page
    By jdw1979 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Jun 2009, 05:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg