vandergeek
Technical User
Hi,
I have a form set up in flash (flash 5) that lets a user enter some values and then it gets mailed to me. There is also a dynamic text box that acts as a status display to let the user know that the mail has been sent to me. However, I can't get the perl script to return a variable to that text box.
eg. I have a text box whose variable is "myStatus". When the user clicks a button, it uses the getURL actionscript to post the variables to the cgi that is then emailed to me, but then in the script I need to return the value "email sent" to the variable "myStatus".
I have had a look at several tutorials, and some use the print command in perl to return it to flash using the path to the variable eg. "_root.myMovieClip.myStatus = complete", but that doesn't work for me, it just replaces the html page with a new one displaying that as a line of text. I have seen other tutorials that write a variable to a text file and then have that read into the flash file, but this seems a long way of doing it.
I would use php to do this, but the server I have to upload to doesn't have php on it so I have to use cgi.
Thanks in advance,
Ben.
ps. Is there perhaps a way to make perl tell flash to advance to the next frame?
I have a form set up in flash (flash 5) that lets a user enter some values and then it gets mailed to me. There is also a dynamic text box that acts as a status display to let the user know that the mail has been sent to me. However, I can't get the perl script to return a variable to that text box.
eg. I have a text box whose variable is "myStatus". When the user clicks a button, it uses the getURL actionscript to post the variables to the cgi that is then emailed to me, but then in the script I need to return the value "email sent" to the variable "myStatus".
I have had a look at several tutorials, and some use the print command in perl to return it to flash using the path to the variable eg. "_root.myMovieClip.myStatus = complete", but that doesn't work for me, it just replaces the html page with a new one displaying that as a line of text. I have seen other tutorials that write a variable to a text file and then have that read into the flash file, but this seems a long way of doing it.
I would use php to do this, but the server I have to upload to doesn't have php on it so I have to use cgi.
Thanks in advance,
Ben.
ps. Is there perhaps a way to make perl tell flash to advance to the next frame?