Hello Ken
A while ago I asked here about how to send an email from a Flash MX 2004 site.
My Flash form aims to 'speak' to an ASP script which I have on the server. I am not too concerned at this stage about displaying a 'Thank you' message in my Flash page or about returning any values from ASP to Flash; I am just focused on acutally getting Flash to 'see' the ASP script and sending the email (the ASP script is written in such a way that a copy of the email goes to the webmaster and another as a copy to the site visitor).
I thought the best way of doing this might be to add some code to the 'Submit' button, but you suggested this was bad practice. Instead, I should give an 'Instance Name' to the 'Submit' button and write the script in the main timeline by which, I take it, you mean the Actions Panel'.
I clicked on the button in the library, and then Edit. Layer 10 seemed to be highlighted and I clicked on each frame. The submit button appeared only in one frame along layer 10 and that was the first frame.
This, then, is what I have at the moment:
However, when I click on Ctrl + Enter, I get the following error msg:
**Error** Scene=Scene 1, layer=Layer 10, frame=1:Line 1: Statement must appear within on handler
submit.onRelease = function():Void{
Total ActionScript Errors: 1 Reported Errors: 1
Do you know what I am doing wrong?
Many thanks.
Steve
A while ago I asked here about how to send an email from a Flash MX 2004 site.
My Flash form aims to 'speak' to an ASP script which I have on the server. I am not too concerned at this stage about displaying a 'Thank you' message in my Flash page or about returning any values from ASP to Flash; I am just focused on acutally getting Flash to 'see' the ASP script and sending the email (the ASP script is written in such a way that a copy of the email goes to the webmaster and another as a copy to the site visitor).
I thought the best way of doing this might be to add some code to the 'Submit' button, but you suggested this was bad practice. Instead, I should give an 'Instance Name' to the 'Submit' button and write the script in the main timeline by which, I take it, you mean the Actions Panel'.
I clicked on the button in the library, and then Edit. Layer 10 seemed to be highlighted and I clicked on each frame. The submit button appeared only in one frame along layer 10 and that was the first frame.
This, then, is what I have at the moment:
However, when I click on Ctrl + Enter, I get the following error msg:
**Error** Scene=Scene 1, layer=Layer 10, frame=1:Line 1: Statement must appear within on handler
submit.onRelease = function():Void{
Total ActionScript Errors: 1 Reported Errors: 1
Do you know what I am doing wrong?
Many thanks.
Steve