# Find() fuction is as?

**URL:** <https://forum.kirupa.com/t/find-fuction-is-as/193540>\
**Category:** Uncategorized\
**Created:** [July 13, 2006, 11:29pm UTC](https://forum.kirupa.com/t/find-fuction-is-as/193540 "2006-07-13T23:29:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NaughtyPine](https://avatars.discourse-cdn.com/v4/letter/n/e9a140/32.png) [@NaughtyPine](https://forum.kirupa.com/u/NaughtyPine)\
**Post date:** [July 13, 2006, 11:29pm UTC](https://forum.kirupa.com/t/find-fuction-is-as/193540/1 "2006-07-13T23:29:10Z")

</div>

EDIT: forgive my typo in the subject…:disco:

* * *

I need to know if actionscript has a find() fuction:

The function needs to remove anything after the ? in a url (including itself) if a ? is present.

Kind of like:  
index = Find(\_root.page, “?”)  
if (index \> false) {  
thePage = left(\_root.page, index)  
} else {  
thePage = \_root.page  
}

Can anyone help?
