Skip to main content
Participant
March 19, 2007
Question

URL

  • March 19, 2007
  • 3 replies
  • 280 views
Hi

I have an URL: http://portal.com/teste.html?idLinha=1&idModelo=2
I need to write this variables inside flash. which command I must use?
I obtain to read of an file text but I want to read direct of the URL.
Please I need this urgent tip.

Regards
This topic has been closed for replies.

3 replies

flashcompAuthor
Participant
March 29, 2007
2m91_2
Inspiring
March 19, 2007
Hi,

there are two ways to do this, (probably more, but those are the fist that I can think of):

Use PHP (or any other server-side script) to transfer the date to Flash via flash-vars.
User Java-script to retrieve them and a) send them to Flash, or embed your swf with Java-Script and use flash-vars like with PHP.

No way (that I know of) to retrieve the Variable from inside the swf. The _url parameter only gives you the url of the swf file, not that of the page that is included in.
March 19, 2007
on (release) {
getURL(" http://portal.com/teste.htmlidLinha=1&idModelo=2");
}


this would be added for a button