# Get current URL and perform string operation on it?

**URL:** <https://forum.kirupa.com/t/get-current-url-and-perform-string-operation-on-it/48027>\
**Category:** Uncategorized\
**Created:** [April 9, 2004, 7:43am UTC](https://forum.kirupa.com/t/get-current-url-and-perform-string-operation-on-it/48027 "2004-04-09T07:43:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_Vulcan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/the_vulcan/32/145_2.png) [@The\_Vulcan](https://forum.kirupa.com/u/The_Vulcan)\
**Post date:** [April 9, 2004, 7:43am UTC](https://forum.kirupa.com/t/get-current-url-and-perform-string-operation-on-it/48027/1 "2004-04-09T07:43:46Z")

</div>

[font=Times New Roman][size=3]If it is possible could someone please point me in the right direction or provide any script they have.[/size][/font]

[font=Times New Roman][size=3]I need flash to get the url that it is opened in, and then perform a string check on it like so.[/size][/font]  
[[font=Times New Roman][size=3][color=#0000ff]www.adogslife.com/gallery[/color][/size][/font]](http://www.adogslife.com/gallery)  
[[font=Times New Roman][size=3][color=#0000ff]www.adogslife.com/forum[/color][/size][/font]](http://www.adogslife.com/forum)

[font=Times New Roman][size=3][color=darkorchid]if [/color][/size][/font]  
[font=Times New Roman][size=3][color=darkorchid]string(“gallery”)[/color][/size][/font]  
[font=Times New Roman][size=3][color=darkorchid]text = “Welcome to the gallery.”[/color][/size][/font]

[font=Times New Roman][size=3][color=darkorchid]Else if[/color][/size][/font]  
[font=Times New Roman][size=3][color=darkorchid]string(“forum”)[/color][/size][/font]  
[font=Times New Roman][size=3][color=darkorchid]text = “Welcome to the forum.”[/color][/size][/font]

[font=Times New Roman][size=3][color=black]thanks[/color][/size][/font]
