Page 12 of 24 FirstFirst ... 2101112131422 ... LastLast
Results 111 to 120 of 235
  1. #111
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    help question Re: Problem with Flash Header

    Quote Originally Posted by seethrou View Post
    With refer to the other topic at Reviewer's Corner Shop has gone live: please review

    Our fellow member JohneeMac suggested the following for the Flash.
    SWFObject: Javascript Flash Player detection and embed script

    I had tested, it works, with more functions and with XHTML validation.

    And below are the steps of the test which use the JavaScript download from the above site.

    1. save the header Flash file to the following directory (just for example)
    includes/templates/YOUR_TEMPLATE/images/flash/YOUR_HEADER.swf

    2. download the zip packaged file from the above site

    3. unzip and save the included swfobject.js file (not compressed and about 6.5 KB) to your ZC template directory
    includes/templates/YOUR_TEMPLTE/jscript/swfobject.js

    4. If in before, the tpl_header.php had not been modified,
    then copy the following file:
    includes/templates/template_default/common/tpl_header.php

    and save it to your template override directory:
    include/templates/YOUR_TEMPALTE/common/tpl_header.php

    5. Open up the new saved tpl_header.php file in your override directory
    include/templates/YOUR_TEMPALTE/common/tpl_header.php

    Add and modify the codes according to your requirements.
    For detail usuages, please refer to the docs and the original site for more infos.

    For example,
    in the tpl_header.php, just insert the codes for Flash below the section of:
    <!--bof-branding display-->
    <div id="logoWrapper">

    PHP Code:
    <!--bof-branding display-->
    <
    div id="logoWrapper">

    <
    script type="text/javascript" src="includes/templates/YOUR_TEMPLATE/jscript/swfobject.js"></script>
    <div id="flashcontent">
      This text is replaced by the Flash movie.
    </div>
    <script type="text/javascript">
       var so = new SWFObject("includes/templates/YOUR_TEMPLATE/images/flash/YOUR_HEADER.swf", "YOUR_HEADER", "750", "160", "7", "#000000");
       so.write("flashcontent");
    </script> 
    Note:
    In the above codes, where:
    YOUR_TEMPLATE = the name of your template.
    YOUR_HEADER = the file name of your Flash file.

    .
    Hi ,

    I was wondering if someone could please help.
    I have used above instructions and my flash DOES WORK. However it has a black background to it. How can I change it to white?

    Many thanks for the code above.
    Downunder QLD

  2. #112
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,473
    Plugin Contributions
    11

    Default Re: Problem with Flash Header

    In the php code, look for #000000 and change it to suit your needs.

  3. #113
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: Problem with Flash Header

    Would you believe that I am having several problems running my flash test_1.swf file on my main page? I have read everything I can get my eyes on and I still am having several problems. I wish some brilliant person would help out.

    Now for the setup in ZC 1.3.8a (Series_12_Horses is my new template):

    1) I first downloaded swfobject.js (version 2.1) and placed the file in includes/templates/Series_12_Horses/jscript/swfobject.js
    2) I originally added this code in define_main_page.php found in includes/languages/english/html_includes\Series_12_Horses\define_main_page.php

    PHP Code:
    <!--top of flash display-->
        <
    script type="text/javascript" src="includes/templates/Series_12_Horses/jscript/swfobject.js"></script>
     <div id="flashcontent">
       <center>
       <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
         codebase="http://active.macromedia.com/flash2/...ersion=4,0,0,0"
         id="test_1" width="600" height="240">

         <param name="movie"   value="includes/Series_12_Horses/flash/test_1.swf">
         <!--  <param name="movie"   value="test_1.swf">  -->
         <param name="quality" value="high">
         <param name="bgcolor" value="#FFCCCC">
         <embed name="test_1" src="test_1.swf" quality="high" bgcolor="#FFCCCC"
           width="600" height="240"
           type="application/x-shockwave-flash"
           pluginspage="http://www.macromedia.com/shockwave/...ShockwaveFlash">
         </embed>
       </object>
    </center>
     <script type="text/javascript">
        var so = new SWFObject("includes/Series_12_Horses/flash/test_1.swf", "test_1", "600", "240", "7", "#FFCCCC");
        so.write("flashcontent");
    </script>
    </div>
    <!--bottom of flash display--> 
    However, the directory where the flash file was located (includes/Series_12_Horses/flash/test_1.swf) could not be found by the code, so I placed test_1.swf in the root directory and test_1.swf was found. (I removed (includes/Series_12_Horses/flash/) in the two code locations above to make the code work).

    My problems are”

    1) I see an error in FireFox - SWFobject is not defined (my line 106 in define_main_page.php which is
    PHP Code:
    var so = new SWFObject("test_1.swf""test_1""600""240""7""#FFCCCC"); 
    2. Test_1.swf does not loop. I was under the impression the loop=yes was the default.
    3. I do not like to be forced to put my swf file in the rood directory. How do we fix this? I assume that fixing the SWFobject error may correct this problem.

    Oh, no errors seen in IE, but no looping.

    Just a FYI if you are wondering about the test_1.swf. It was not published using Adobe. It was published from a test fla file I made in Pinnacle Studio 12 using Moeya Flash Video Pro demo version. (I do not do this for profit so I can not afford Adobe.

    Any Ideas? I opened my site for any testing that you may want to do. - Thanks

  4. #114
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Re: Problem with Flash Header

    Quote Originally Posted by dbltoe View Post
    In the php code, look for #000000 and change it to suit your needs.
    Thanks dbttoe. That was it
    Downunder QLD

  5. #115
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: Problem with Flash Header

    I think I do not know how to load SWFOBJECT.js correctly. What I mean is that I downloaded swfobject.js from http://code.google.com/p/swfobject/d...label:Featured
    as swfobject_2_1.zip
    I then extracted swfobject.js from the zip. It was not sure what the other files in the zip were or how to run them.

    I believe I may have done this incorrectly.

    Does anyone know the correct procedure?

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

    Default Re: Problem with Flash Header

    Line of code incorrect
    i.e.
    Code:
    id="test_1" width="600" height="240">
    should be
    Code:
    id="test_1.swf" width="600" height="240">

  7. #117
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Re: Problem with Flash Header

    Quote Originally Posted by Sawhorse View Post
    I think I do not know how to load SWFOBJECT.js correctly. What I mean is that I downloaded swfobject.js from http://code.google.com/p/swfobject/d...label:Featured
    as swfobject_2_1.zip
    I then extracted swfobject.js from the zip. It was not sure what the other files in the zip were or how to run them.

    I believe I may have done this incorrectly.

    Does anyone know the correct procedure?
    You'll only need 'SWFOBJECT.js ' file
    Downunder QLD

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

    Default Re: Problem with Flash Header

    Quote Originally Posted by Sawhorse View Post
    I think I do not know how to load SWFOBJECT.js correctly. What I mean is that I downloaded swfobject.js from http://code.google.com/p/swfobject/d...label:Featured
    as swfobject_2_1.zip
    I then extracted swfobject.js from the zip. It was not sure what the other files in the zip were or how to run them.

    I believe I may have done this incorrectly.

    Does anyone know the correct procedure?
    http://www.zen-cart.com/forum/showpo...10&postcount=7
    Correct details/actual swfobject file given at previous thread,
    url above, but as mentioned in my last post, you have incorrect line
    of code...

  9. #119
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: Problem with Flash Header

    Quote Originally Posted by misty View Post
    Line of code incorrect
    i.e.
    Code:
    id="test_1" width="600" height="240">
    should be
    Code:
    id="test_1.swf" width="600" height="240">
    Thank your Misty, however I am confused. In your post http://www.zen-cart.com/forum/showpo...8&postcount=51 you do not show the swf extension. Maybe I am missing something.

    I did try your suggestion changing ID=test_1 to ID=test_1.swf - However, it did not change the error noted in Firefox.

    What am I doing incorrectly?

  10. #120
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: Problem with Flash Header

    Ovas & Misty, Your statements are exactly what I thought was correct until I looked at all the files of the ZIP file. There are two swfobject.js files. A long complicated js file (the one that I used) that looks appropriate. The another swfobject.js file showes only a single line of code, however the codes seems to include all that was in the first swfobject.js file. Strange.

 

 
Page 12 of 24 FirstFirst ... 2101112131422 ... LastLast

Similar Threads

  1. v150 Problem with flash header size
    By GodfatherAntiques in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 21 Mar 2012, 10:12 AM
  2. Problem with flash on main page (not header)
    By sartor in forum General Questions
    Replies: 7
    Last Post: 14 Jan 2009, 10:59 AM
  3. Once again problem with Flash header
    By craigpowell in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Sep 2008, 01:42 AM
  4. Problem with Flash Header pt2
    By hondauser85 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Jun 2007, 04:03 PM
  5. help with flash header
    By wizzard in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 1 Jun 2007, 05:58 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR