On Thursday 29 May 2003 14:31, César Aracena wrote:
> Hi all,
>
> I just made a pretty little flash banner with buttons and everything...
> Does anyone knows if I can make the flash buttons links with dynamic
> content? I need to fetch cartain common pages but with different
> variables.
>
> Thanks in advanced,
>

Hi,
I try to do same think a while ago, You have to pass variable into flash code. 
I think Flash 6.0  able to do this. Also I found that code. Which is work 
with flash 4.0.

<html>
<head>
<title>moock>> web>> flash>> importing a cookie using a query string</title>
</HEAD>

<BODY BGCOLOR="#006666">


<DIV ALIGN="CENTER">
<SCRIPT LANGUAGE="JavaScript1.2">

<!--

// name: flash cookie importer, query string version
// version: 1.0.1
// author: colin moock
// description: passes the value of the first variable in
//              a browser's cookie to a flash movie.

// last updated: june 2, 2000



window.document.cookie = "msg = Burak"

// if the cookie isn't empty
if (window.document.cookie != "") {
        // get the value of the cookie.
        var theCookie = document.cookie;

        // extract the value of our cookie variable from the cookie.
        // ! note that this example only handles a single-variable cookie.
        theCookie = 
theCookie.substring((theCookie.indexOf("=")+1),theCookie.length);
}
else {
        // if there's no cookie, then set the tracker to the default label.
        theCookie = null;
}

// write the object/embed tags with the cookie appended to the .swf file name
document.write(
        "<OBJECT"
        + "CLASSID=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        + "WIDTH=550"
        + "HEIGHT=400"
        + 
"CODEBASE=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0'>"
        + "<PARAM NAME=MOVIE VALUE=import-cookie.swf?cookie=" + theCookie + 
">"
        + "<PARAM NAME=PLAY VALUE=true>"
        + "<PARAM NAME=LOOP VALUE=false>"
        + "<PARAM NAME=QUALITY VALUE=high>"
        + "<PARAM NAME=MENU VALUE=false>"
        + "<EMBED"
        + " SRC=import-cookie.swf?cookie=" + theCookie
        + " WIDTH=550"
        + " HEIGHT=400"
        + " PLAY=true"
        + " LOOP=false"
        + " QUALITY=high"
        + " MENU=false"
        + " TYPE=application/x-shockwave-flash"
        + " 
PLUGINSPAGE=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash>"
        + "</EMBED>"
        + "</OBJECT>"
        );
// -->
</SCRIPT>

</DIV>

</BODY>
</HTML>


But I.m not sure work well with php
If you get workable solution, can you shared us?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to