
Welcome Guest
|
#1
|
|||
|
|||
|
Flash to wait for user input outside Flash
Hi, I found this PHP script, then I made some changes to make it FEED the Flash user interface with online user input. The main concept of this script is WAITING for user input, so it shows the messages and then go to next line and so on. The user input go to directly to TEXT file which writes in lines, each line has a unique id = (mag_id). There "get_msge.php" which works as the middleware between FLASH and messages text file. The problem, its doesn’t show any data while there are data in the text file. Help here please, best regards. ![]() AS is: Code:
// create an object to store the variables
varReceiver = new LoadVars();
// load the variables from the text file
varReceiver.load("get_msg.php?file_id=1&msg_id=1", "POST");
// trigger something - when the variables finish loading
varReceiver.onLoad = function(){
//the variables have finished loading
if (this.msg_id == 1) {
_root.xmsg1_swf.text = this.msg;
_root.xmsg1_ch.text = this.msg;
gotoAndPlay("line2");
} else {WAIT }
}PHP is: PHP Code:
|
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| make flash wait between 2 animation in same MC | MarquisDeSade | Flash 8 |
0 | 04-05-2007 06:55 PM |
| RESUME: Senior Flash Designer / Developer - San Francisco | OSS | Work/Job Opportunities | 1 | 08-16-2006 10:01 PM |
| Talking to a device for Flash input. | lariat1997 | Flash MX 2004 |
3 | 08-30-2005 05:13 AM |
| +++ Flash Studio PRO v2 +++ | Gambini | New Softwares | 0 | 03-30-2004 05:24 PM |






