Fandom

Scratchpad

Flash Embed Trigger with Flash Vars

215,906pages on
this wiki
Add New Page
Discuss this page0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

This is more or less the same as the Basic Flash Embed Trigger except that inserts flashvars into the HTML which can be used to pass data to the flash file.

You will need to download the Flash Embed Script.

Code

 $('.background').flash({ 
     src: '/frame-images/tesoro_com/flash/tesoro_frame.swf',
     width: 1000,
     height: 593,
     wmode: 'transparent'
   },
   {version: 8.0},
   function(htmlOptions) {
     $this = $(this);
     htmlOptions.flashvars.selectPAGE = parseInt(document.getElementById('navVar').innerHTML);
     $this.append($.fn.flash.transform(htmlOptions));	
     $(this).css('background-image', 'none');	
    }
 );

Also on Fandom

Random wikia