# Change URL by clicking on the button (Flash/aspx)

**URL:** <https://forum.kirupa.com/t/change-url-by-clicking-on-the-button-flash-aspx/329174>\
**Category:** flash\
**Created:** [July 28, 2012, 2:18pm UTC](https://forum.kirupa.com/t/change-url-by-clicking-on-the-button-flash-aspx/329174 "2012-07-28T14:18:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![YehiaFarag](https://avatars.discourse-cdn.com/v4/letter/y/ecb155/32.png) [@YehiaFarag](https://forum.kirupa.com/u/YehiaFarag)\
**Post date:** [July 28, 2012, 2:18pm UTC](https://forum.kirupa.com/t/change-url-by-clicking-on-the-button-flash-aspx/329174/1 "2012-07-28T14:18:42Z")

</div>

Hi all,

I have a question which i hope to find it’s answer here as usual ![](http://forum.kirupa.com/uploads/kirupa/798/c985a958819d8917.gif)

I’m attaching a file which is so basic, it includes just a button

What i want to do is when i click on this button it change the URL of an aspx page

For example : The URL of the current page is  
http(remove this)://localhost:1030/Account/Game1.aspx  
when i click on the button i want the URL to be changed to  
http(remove this)://localhost:1030/Account/Game5.aspx

I use AS3 and [ASP.NET](http://ASP.NET) C#

Anybody can help me with the Actionscript and the aspx code please, or is there a tutorial that i can follow to sort this out ?
