Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Posts
    2
    Plugin Contributions
    0

    Default Flash Embed For Explorer Tutorial

    ok... since explorer lost some legal issue with the EMBED and OBJECT issues... it causes all of our websites to have a CLICK to ACTIVATE warning on all our flash files that are embeded.


    ANNNNOYING!.. Customers FLEEEEE! Panic fills web designer!!!


    easy fix.



    We'll use Java Script to call it up instead of the usual ways.



    The scenario: Flash banner on main_page



    ok.. We need to make a javascript file and we need to call it up.





    Here was the original method:


    I have a flash banner called paragone.swf



    the old method would be to write:



    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="300" height="156" id="paragone" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="paragone.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="paragone.swf" quality="high" bgcolor="#ffffff" width="300" height="156" name="paragone" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>



    now you cant use that anymore&#33;&#33;&#33;


    so you need to put that code in javascript:

    open up a text editor and type in:

    document.write(&#39;<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"&#39;);
    document.write(&#39;codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"&#39;);
    document.write(&#39;WIDTH="300" HEIGHT="156" id="paragone" ALIGN="">&#39;);
    document.write(&#39;<PARAM NAME=movie VALUE="paragone.swf"> <PARAM NAME=loop VALUE=false> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#> <EMBED src="paragone.swf" loop=false menu=false quality=high bgcolor=# WIDTH="300" HEIGHT="156" NAME="paragone" ALIGN=""&#39;);
    document.write(&#39;TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>&#39;);
    document.write(&#39;</OBJECT>&#39;);


    you&#39;ll notice thats basically the same code but with

    document.write(&#39; line of original flash text &#39;);


    save it as paragone.js



    now this is important... you must know what template you are using......


    im using the blue_strip template


    so you need to upload your paragone.js file into

    includes/templates/blue_strip/jscript/

    ok now...


    you want to call up this function to display your flash banner.. without the annoying pop up message asking you to activate..


    so write :


    &#60;script src="includes/templates/blue_strip/jscript/paragone.js"></script>



    This will call up the flash object.. and PRESTTO&#33;

    No more annoying blocking CLICK to ACTIVATE warning&#33;&#33;&#33;


    if you&#39;re reeeeeeally lazy... some one made a php script to automate the programing bit at



    http://www.freddythunder.com/programs/codegen.php


    Cheers

    Darryl

  2. #2
    Join Date
    May 2007
    Location
    Italy
    Posts
    438
    Plugin Contributions
    0

    Default Re: Flash Embed For Explorer Tutorial

    thanks a lot, simply fantastic!!!

    Only one thing, can I insert the botton to play, stop or resume video?
    thanks

  3. #3
    Join Date
    Jan 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Flash Embed For Explorer Tutorial

    I've used the above method for loading a SWF object to the define_main_page.php and it works on all platforms, thank you!

    Now I want to be able to link to the products featured in the SWF. I've used getURL in action script to link the product URLs but it doesn't work in FF. It works fine in IE though (go figure).

    I've tried different page parameters: "_self" and "_parent" but that didn't seem to make a difference.

    Any help would be greatly appreciated. You can view my cart at http://www.fuzzy-ink.com

    Thanks

  4. #4
    Join Date
    Jan 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Flash Embed For Explorer Tutorial

    Alright, it turns out that it is working find in Firefox if and only if, the window parameter is "_blank". But this launches a new window.. not ideal.

    Anyone come across this before?

  5. #5
    Join Date
    Mar 2009
    Posts
    58
    Plugin Contributions
    0

    Default Re: Flash Embed For Explorer Tutorial

    I've been working on the same thing.
    I had the same problem with links and found that I could only use the getURL function in flash if the URL had no 'www' in it (to link from). I still don't understand why.

    Thanks to the above script, it works fine in FireFox.

    But.

    It won't loop in IE.!?

    I have changed the params to loop in the .js file, made sure it was looping in flash publish settings and even put a 'goto and play' frame 1 script but still to no avail. I can't figure it out and it is costing me much time and frustration.

    Can anyone help?

  6. #6
    Join Date
    Mar 2009
    Posts
    58
    Plugin Contributions
    0

    Default Re: Flash Embed For Explorer Tutorial

    Ok, so I think I have fixed it (but probably just have not found the other errors yet).

    I changed the embed script to match that of a youtube video (because they seem to work everywhere) and gave it a whirl (including object tags).

    document.write('<object width="590" height="200"><param name="movie" value="../images/endub.swf"></param><param name="allowFullScreen" value="false"></param><param name="allowscriptaccess" value="always"></param><embed src="../images/endub.swf" type="application/x-shockwave-flash"
    allowscriptaccess="always" allowfullscreen="false" width="590" height="200"></embed></object>');

    I'll keep you posted if there are any other problems.

  7. #7
    Join Date
    Jan 2010
    Posts
    1
    Plugin Contributions
    0

    Default Re: Flash Embed For Explorer Tutorial

    please hellp me. where i write <script src="includes/templates/blue_strip/jscript/paragone.js"></script>
    Please responde me.
    Thank you verry much

  8. #8
    Join Date
    Feb 2010
    Posts
    74
    Plugin Contributions
    0

    Default Re: Flash Embed For Explorer Tutorial

    I pretty much got it ...but it's not finding the swf.....I put it in the 'images' folder....here's my website....www.cavalryfiberglass.com

    I edited define_main_page.php

    what the heck am I doing wrong?

    thanks!

  9. #9
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Flash Embed For Explorer Tutorial

    Quote Originally Posted by lrfowler24 View Post
    I pretty much got it ...but it's not finding the swf.....I put it in the 'images' folder...
    You have an error in your coding...

    SecurityError: Error #2148: SWF file http://www.cavalryfibreglass.com/ima...ddlebags23.swf cannot access local resource C:\--your file structure--\saddlebags.flv. Only local-with-filesystem and trusted local SWF files may access local resources.
    Dave
    Always forward thinking... Lost my mind!

  10. #10
    Join Date
    Feb 2010
    Posts
    74
    Plugin Contributions
    0

    Default Re: Flash Embed For Explorer Tutorial

    where is the coding to tell the .swf to find the .flv?

    thanks!!!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Embed flash gallery into a new page
    By gazag in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 May 2014, 05:44 AM
  2. Embed a link in Flash Banner
    By Mike_Dean in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 Oct 2010, 11:59 AM
  3. Trying to Embed Flash
    By Leatris in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 31 Aug 2010, 11:51 PM
  4. How to EMBED a flash movie
    By philw in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 12 Jan 2007, 05:48 AM

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