Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 05:59
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Flash MX 2004 (Moderators: Flash-db, Musicman, vesa kortelainen, Ronald Wernecke, Andresss, papachan)
| | |-+  Sending a url as a var
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Sending a url as a var  (Read 3023 times)
Joe Roe
Jr. Programmer
**
Posts: 79


View Profile WWW
« on: 06/14/08, 14:26 »

I have an input text field named youtube. I want to open a url and send the youtube var as post. Here is what I have:

Code:
getURL("http://www.downloader9.com/youtube.php", "_blank", "POST");

When i populate my text field with
Code:
http://youtube.com/watch?v=ayzhJKy8H_A

The var ends up being sent like this:

Code:
http%3A%2F%2Fyoutube%2Ecom%2Fwatch%3Fv%3DayzhJKy8H%5FA

any help here?
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #1 on: 06/15/08, 01:55 »

This is exactly the way it works - it is URL-encoded.
If this is the right URL, it should be working.

BTW: if you would like to add the parameter to the URL-Address, use GET Wink
Logged

happy flashing
Cool
Ronald
Joe Roe
Jr. Programmer
**
Posts: 79


View Profile WWW
« Reply #2 on: 06/15/08, 12:30 »

It does not work when the flash movie is saved as a projector, and it does not work when the flash movie is opened with the flash player, but it does work when the swf is opened with a browser. Is there any way to make it work when the movie is saved as a projector?
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #3 on: 06/16/08, 01:59 »

SANDBOX SECURITY

You cannot open foreign sources from a local swf movie.

If you want to communicate with your server, put the swf to the server, and it will work.
This is the purpose of the sandbox - no foreign code.
Logged

happy flashing
Cool
Ronald
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything