# getURL class

**URL:** <https://forum.kirupa.com/t/geturl-class/300789>\
**Category:** flash\
**Created:** [November 27, 2009, 1:08pm UTC](https://forum.kirupa.com/t/geturl-class/300789 "2009-11-27T13:08:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eses1979](https://avatars.discourse-cdn.com/v4/letter/e/67e7ee/32.png) [@eses1979](https://forum.kirupa.com/u/eses1979)\
**Post date:** [November 27, 2009, 1:08pm UTC](https://forum.kirupa.com/t/geturl-class/300789/1 "2009-11-27T13:08:03Z")

</div>

OK,

I had a website that had lots of ‘navigateToURL’ MovieClips in it and I was tired to write seperate eventListeners and functions for each of them…  
They took time to write and took a lot of space in the script.

So I’ve written this gotoURL class which makes things much more easier.  
Just use it like this;

import com.gungoril.utils.goURL;  
goURL.gotoURL(MovieClip, URL, target);

Example:  
goURL.gotoURL(button\_mc, “[http://www.google.com](http://www.google.com)”, “\_blank”);

Hope this will help many others 🙂
