# Split is not a function? =)

**URL:** https://forum.kirupa.com/t/split-is-not-a-function/297110
**Category:** Uncategorized
**Created:** [September 25, 2009, 5:45pm UTC](https://forum.kirupa.com/t/split-is-not-a-function/297110 "2009-09-25T17:45:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![grass](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@grass](https://forum.kirupa.com/u/grass)
#### Post date: [September 25, 2009, 5:45pm UTC](https://forum.kirupa.com/t/split-is-not-a-function/297110/1 "2009-09-25T17:45:08Z")

</div>

ok - this is what happened…

building a php/swf project… somewhere in the code it downloads data (which aint XML but my own syntax of variables…) and splits them…

the code crashed on this line:  
ActionScript Code:  
[LEFT][COLOR=#0000FF]for[/COLOR][COLOR=#000000]([/COLOR]i [COLOR=#0000FF]in[/COLOR] dat[COLOR=#000000])[/COLOR] dat[COLOR=#000000][[/COLOR]i[COLOR=#000000]][/COLOR] = dat[COLOR=#000000][[/COLOR]i[COLOR=#000000]][/COLOR].[COLOR=#0000FF]split[/COLOR]COLOR=#000000[/COLOR];  
[/LEFT]

dat is an array, so I’m creating a nested array here…

now, I just happened to switch on “permit debugging” from publish settings… and it didn’t crash anymore…  
scrap thatone: it’s just randomly giving the error and working…

in local runtime debugging I got this error:

TypeError: Error #1006: split is not a function.

can anyone plz explain me wtf is it with these idiotic error messages in cs4? (ok, thisone might make sense…if “split” actually wasn’t a function… however the ones like “error: you have an error in your script” etc. are even cooler)
