upuaut
November 23rd, 2002, 12:26 PM
Yeni wrote on 11-22-2002 03:47 AM:
Hi,
(1) Thank you for the tips on mouse, I've suceeded in converting the flash to a .gif ! So is it possible if you send me the javascipt?
ok. Let me take a look for that. I know it's pretty easy to find, but I don't have a copy of it off hand. I'll look for it today.
(2) Do u have any idea if flash can send and receive variables? Cos i need to call Database using php.. and i need to use variables to do that.. and my movie is in FLASH...
This is actually a little tricky. You need to use the loadVariables(); method in Flash. it's syntax is like this.
loadVariables("targetFile.php",targetClip);
or you can also use
loadVariablesNum("targetFile.php",level#);
a target clip is a movie clip instance name. If you do it using that method, the variables that the php script retrieves are placed in that target clip. They can then be accessed in Flash using that clip name as a reference. If you go with the loadVariablesNum method then the variables are all stored in a level. level0 is the root base level of your first swf loaded in the embeded player. (if you don't know anything about levels in Flash (not layers but levels) just use level0 or use the method that targets a clip.
The loadVariables(); and loadVariablesNum(); methods also send variables. Keep this in mind. If you have a second php script that writes information to a DB, then you still use these methods to contact that script as well.
Loading from DB's is great. If you need any simple actionscript for setting up arrays based upon tablular information, let me know. I have a couple of good loops.
Hi,
(1) Thank you for the tips on mouse, I've suceeded in converting the flash to a .gif ! So is it possible if you send me the javascipt?
ok. Let me take a look for that. I know it's pretty easy to find, but I don't have a copy of it off hand. I'll look for it today.
(2) Do u have any idea if flash can send and receive variables? Cos i need to call Database using php.. and i need to use variables to do that.. and my movie is in FLASH...
This is actually a little tricky. You need to use the loadVariables(); method in Flash. it's syntax is like this.
loadVariables("targetFile.php",targetClip);
or you can also use
loadVariablesNum("targetFile.php",level#);
a target clip is a movie clip instance name. If you do it using that method, the variables that the php script retrieves are placed in that target clip. They can then be accessed in Flash using that clip name as a reference. If you go with the loadVariablesNum method then the variables are all stored in a level. level0 is the root base level of your first swf loaded in the embeded player. (if you don't know anything about levels in Flash (not layers but levels) just use level0 or use the method that targets a clip.
The loadVariables(); and loadVariablesNum(); methods also send variables. Keep this in mind. If you have a second php script that writes information to a DB, then you still use these methods to contact that script as well.
Loading from DB's is great. If you need any simple actionscript for setting up arrays based upon tablular information, let me know. I have a couple of good loops.