# AS Puzzle

**URL:** <https://forum.kirupa.com/t/as-puzzle/225864>\
**Category:** flash\
**Created:** [May 16, 2007, 9:48am UTC](https://forum.kirupa.com/t/as-puzzle/225864 "2007-05-16T09:48:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Theofiel](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@Theofiel](https://forum.kirupa.com/u/Theofiel)\
**Post date:** [May 16, 2007, 9:48am UTC](https://forum.kirupa.com/t/as-puzzle/225864/1 "2007-05-16T09:48:52Z")

</div>

Hi,

I’m trying to unravel a piece of AS that i found, but untill now I’m not very succesfull in understanding it, maybe you guys can make sense of it (for me)

```auto
 function str_replace(str, char, replace)
{
 return (str.split(char).join(replace));
}

```

thanx :hurt:
