![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
You can send data from a Flash application in various waysfor example, in this lesson you send data to a web server to load a web page in the browser. After the else
statement, you'll add the ActionScript to have Flash go to the URL the viewer enters in the input text field.
gotoAndStop("confirm")
. getURL
. getURL()
parentheses, type "http://"+url_txt.text
to specify the data that should pass from the SWF file. (Do not leave spaces in the code.)
Your script should look like the following:
stop(); this.submit_btn.onRelease = function(){ if (url_txt.text == null || url_txt.text ==""){ gotoAndStop("Error"); } else { getUrl ("http://"+url_txt.text); gotoAndStop("Confirm") } };
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |