# Yet another AS2 to AS3 problem. Please help

**URL:** <https://forum.kirupa.com/t/yet-another-as2-to-as3-problem-please-help/259926>\
**Category:** flash\
**Created:** [May 10, 2008, 9:16am UTC](https://forum.kirupa.com/t/yet-another-as2-to-as3-problem-please-help/259926 "2008-05-10T09:16:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yell](https://avatars.discourse-cdn.com/v4/letter/y/f4b2a3/32.png) [@yell](https://forum.kirupa.com/u/yell)\
**Post date:** [May 10, 2008, 9:16am UTC](https://forum.kirupa.com/t/yet-another-as2-to-as3-problem-please-help/259926/1 "2008-05-10T09:16:44Z")

</div>

[FONT=Courier New]Hi guys [/FONT]  
[FONT=Courier New]what i want to achive in as3 looked like this in as2:[/FONT]

```auto

on (release) {
    getURL(link1);
}

```

[FONT=Courier New]the link1 was an expression. And in html I could change the url to whatever I wanted without having to go back to flash.[/FONT]

```auto

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

```

[FONT=Courier New]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.[/FONT]  
[FONT=Courier New]But can I send a variable to html/php that I can change in there? [/FONT]  
[FONT=Courier New][/FONT]  
[FONT=Courier New]Thanks.[/FONT]

[FONT=Courier New]Lennart[/FONT]
