PDA

View Full Version : sending mail from another level


lorddrago
05-10-2002, 03:50 PM
ok, here is my problem. I have a simple little email movie, works great when I test it in flash works great when I do a publish preview but when I load it up it does not work?? here is the script I have used on my send button.

on (release) {
loadVariablesNum ("http://www.myaddress.com/cgi-bin/quickemail.pl", 0, "POST");
gotoAndPlay (10);
}

this is being sent to a perl script in my cgi bin. Now the movie that contains the email part is loaded on level 27 and I have changed the level from 0 to 27 but it still will not work right. No I can not place this in level 0 either. Also this swf is downloaded into a projector file. I have run this in a Html page and it works fine but when I bring it into my standalone it does not work.

Ok so what am I doing wrong today

Jesse
05-11-2002, 05:43 AM
The first thing in this situation is to cahnge your loadVariables to getURL with GET instead of POST and see if it is passing your variables properly. Also note that it might be a domain security issue. You may be better off using a relative path like /cgi-bin/file.cgi because if your movie is loaded from mydomain.com instead of www.mydomain.com the CGI will be considerred to be in another external domain and is therefor inaccesible to Flash. Read the post in the General Chat forum called "Flash MX Security Whitepaper Discussion"

lorddrago
05-11-2002, 05:55 AM
sorry should have stated this was being done in flash 5, but your statement was true as soon as I changed it from post to get it worked fine.

Jesse
05-11-2002, 05:58 AM
The issues discussed in the whitepaper are relevant to all versions of Flash really. They are restrictions on the player not the composer.