Posts Tagged ‘SWF’

Joomla (1.5) Banner Manager, SWF Banners Click Throughs and Impressions aren’t been tracked

Monday, February 22nd, 2010

Recently came accross this problem a client was having. SWF Banners weren’t clicking through neither were impressions been tracked from the Joomla: Banner Manager module, If your have having this problem do the following..

Go to and edit:

/modules/mod_banners/helper.php

Replace:


         $html =   "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" border=\"0\" width=\"$width\" height=\"$height\">
                  <param name=\"movie\" value=\"$imageurl\"><embed src=\"$imageurl\" loop=\"false\" pluginspage=\"http://www.macromedia.com/go/get/flashplayer\" type=\"application/x-shockwave-flash\" width=\"$width\" height=\"$height\"></embed>
               </object>";

With:

         /*  Old Flash Code
         $html =   "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" border=\"0\" width=\"$width\" height=\"$height\">
                  <param name=\"movie\" value=\"$imageurl\"><embed src=\"$imageurl\" loop=\"false\" pluginspage=\"http://www.macromedia.com/go/get/flashplayer\" type=\"application/x-shockwave-flash\" width=\"$width\" height=\"$height\"></embed>
               </object>";
         */   

//HW: BOF New Flash Code that works with Clickthroughs, AND does not hide menus etc (WMODE)
         $clickurl = $item->clickurl;
         $html_flash =   "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" border=\"0\" width=\"$width\" height=\"$height\">
                  <param name=\"movie\" value=\"$imageurl\">
                  <param name=\"wmode\" value=\"opaque\">
               <embed src=\"$imageurl\" pluginspage=\"http://www.macromedia.com/go/get/flashplayer\" type=\"application/x-shockwave-flash\" width=\"$width\" height=\"$height\" wmode=\"opaque\"></embed>
               </object>";
         if ($clickurl != '') {  //Add a GIF based clickthrough IF there is a link supplied in the 'Click url' for this banner in the banner manager.
            $html = '<div style="position:relative;z-index:1;" style="background:#fff;">';  //Add the banner clickthrough
            $html .= $html_flash;
            $html .= '<a href="'.$link.'" target="_blank" style="display:block;position:absolute;width:'.$width.'px;height:'.$height.'px;z-index:9999;top:0px;left:0px;border:none;background:none;"><img src="images/spacer.gif" style="width:'.$width.'px;height:'.$height.'px;" alt="Banner Campaign" /></a>   '; //replace this with the path to your spacer.gif (needs to be a transparent PNG/GIF).
            $html .= '</div>';
         } else {  //Otherwise use the orignal code, so that the flash banner still goes to the right place... (instead of a blank page!)
            $html .= $html_flash;
         }
         //HW: EOF New Flash Code that works with Clickthroughs, AND does not hide menus etc (WMODE)

Now upload a transparent Spacer GIF/PNG to the following location, or point the above code to the desired location of choice:

images/spacer.gif

That’s it your good to go!

Vote in HexoSearch

Most simplest way to Embed Flash/SWFs into HTML

Monday, April 20th, 2009

This is the most simplest way to Embed Flash/SWFs into HTML its nice and easy for testing..

<object>
<param name="movie" value="http://DOMAIN/FILE.swf">
<embed src="http://DOMAIN/FILE.swf" width="300" height="250">
</object>

Its by noways the most robust or PC way of doing this more;
(Active Content JavaScript) http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_12701
(SWFOBject) http://blog.deconcept.com/swfobject/#examples

Vote in HexoSearch

Object Expected IE Bug

Wednesday, March 11th, 2009

I came accoss this bug while building a Flash Crossdomain Shared Objects project (more on that later).

If your getting “Object Expected” line error on Internet Explorer 6/7/8 while accessing .SWF/flash file’s directly from a remote domain with default IE settings you will need to embed that .SWF into a HTML page with either the js/objects tags and it will work :)

There are other fixes but this is an automatic fix that doesn’t involve changing any browser/registry settings.

Hope this helps someone.

Vote in HexoSearch

Protect your SWF files

Thursday, July 26th, 2007

About
This snippet prevents your swf from being played on another domain other than your own. If someone tries to run it on any other domain, they will be redirected to your domain. Put this code in the beginning of the first frame of your actions layer

//code start

var domain:String = “http://www.yourdomain.com” //enter your domain name here

if(_root._url.indexOf(domain) == -1 ){
getURL(domain, “_self”);
}

//code end

Explanation
_root._url retrieves the url from where the Flash movie is being played. Of course if the flash movie is being played on your website then part of this string returned will contain www.yourdomain.com. On the other hand if it is not being played on your website then the value returned by _root._url will NOT contain your domain name i.e _root._url.indexOf(domain) == -1 will evaluate to true, and hence flash will redirect the browser to your domain.

Exta Security
Of course the above method will not prevent the determined from decompiling your swf and altering the above code. That is where obfuscators will come to your rescue. Click one of the links below to find one which suits you.

www.kindisoft.com
www.amayeta.com

Vote in HexoSearch
  • Categories

  • Recent Comments

  • Recent Posts

  • Tumblr

  • Flickr Recent Photos

    cherry tree woodstonja_gravestonesPockey Chimp FlavourAUTO FTW! :)darkdaystayouttiger kittenbirdofpreyfirst photo i took with my 1000dself_portrait_02
  • XFIRE (wkly hrs pld)

  • Last.FM

  • Tags

    .MP4 Actionscript Action Script Advertising AS2 AS3 backtrack BT4 bug Call of Duty capcom centOS COD count down countdown crossdomain Eyeblaster eyeblaster HD f4v Flash h264 HD high definition Install internet explorer Linux loadMovie MIME MIME Types MW2 Nazi Zombies pc PHP ports preloader release date rich media shared objects SWF SWFOBJECT timer torrents Video video/mp4 win7