View Full Version : HELP!!! Flash and PHP
Is it possible loading different movies in Flash by reading a variable from PHP? I have the following problem to get solved. I need to load into a flash movie, pictures of different people, at a time, in order to personalize it. I was thinking of setting a blank variable in Flash so it would load from PHP and then I would use IF's to load the specific swf's with the pictures. Is it possible? Please help me!!!
IFZen
05-06-2002, 08:21 PM
It seems to me you can do it. The scenario you describe looks ok.
First you load a variable from a PHP script,
Then you control the value you received and decide what movie you have to load.
A good thing would be to return directly from the PHP the name of the movie you want to load. Then, for instance, if your variable is called "load_that_mc", you will just have to write thet into Flash :
recipient_mc.loadMovie(load_that_mc);
Hope it helps,
BZen
PS : dunno if you're familiar with loadVaraible actions. If not, don't forget to wait for your wariable to be retrieved from the server before you try to load the movie. You can wait for that variable to be defined between two frames or you can use a load event on the mc that will receive the data. Keep post if you're lost.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.