PDA

View Full Version : Yet another AS2 to AS3 problem. Please help



yell
May 10th, 2008, 05:16 AM
Hi guys
what i want to achive in as3 looked like this in as2:


on (release) {
getURL(link1);
}

the link1 was an expression. And in html I could change the url to whatever I wanted without having to go back to flash.


<script>insertFlash('/flash/my_movie.swf?link1=http%3A%2F%2Fwww.example.com', 300, 300);</script>

I have looked for hours and I cant find what I need. Most of the articles of "getUrl" in As3 are focusing adding the url straight in the flash with NavigateToUrl and opening it in new window (_blank) etc.
But can I send a variable to html/php that I can change in there?

Thanks.

Lennart