Kimili Flash Embed
pass complex php in flashvars (1 post)

  1. brasofilo
    Posted 5 years ago #

    really cool the arbitrary Javascript and PHP code in the shortcode

    to pass complex php is necessary to write a function inside your functions.php

    so, this is the embed shortcode

    [kml_flashembed movie="movie.swf" width="360" height="240" fvars="myVar=?{getFlashVar('urlVar');}" /]

    this is the function

    function getFlashVar($fvar)
    	$song = $_GET[$fvar];
    	return $song;

    and the URL you're embeding your swf should be

    http ://yoursite.com/pages/pagename/?urlVar=YOUR COMPLETE FLASHVAR

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Kimili Flash Embed
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 5 years ago by brasofilo
  • This topic is not a support question
  • WordPress version: 3.1