Groups | Blog | Home
all groups > flash actionscript > march 2006 >

flash actionscript : How to load external movieclip from PHP-url


DatiDati
3/5/2006 8:58:37 PM
Hi all,

I've got a problem here ....
In my index.php are some buttons with the links:

- button 1: index.php?mod=shops
- button 2: index.php?mod=shops
- button 3: index.php?mod=global
- button 4: index.php?mod=gallery

When a button is clicked I want to load the relevant external swf in an empty
movieclip...
I'm a dummy and I tried several things ... Below is something of my
'amature-programming':

This is not working (of course) ... Can somebody help me out to get it
working??

var1="if(!isset($_GET['mod']))"
loadVariables("index.php?mod=" + var1, this, "POST");


if (var1=="shops") {
loadMovie("flash/banner_shops.swf","_root.leeg");
}

else if (var1=="sports") {
loadMovie("flash/banner_sports.swf","_root.leeg");
}

else {
loadMovie("etc. etc ...etc ...");
}
blemmo
3/6/2006 2:11:28 AM
Hi,
I'm not quite sure what you want to do here... Are the links to the movies
returned by the php or hardcoded in Flash? And why do you send php code?
If you want to use returned variables for the links, you should make sure they
are loaded. Look up LoadVars in the Flash Help or forum, this provides methods
to do this.

hth,
blemmo
AddThis Social Bookmark Button