the idea is looking for number, so it would be break someone who's use "@" "_" "-" "." (and else) in frame name i think?...
if you didn't define "@" at 1st place, its time to blame exporter then ;p On 22 August 2010 02:50, Swingpants <[email protected]> wrote: > > I had a couple of models come though with an unexpected "@" in the > label. > > If the logic is to have only alphabetic characters in the name then > can I recommend restricting to just those characters: > (Actually I've added underscore to the list as it'll probably get > used) > > var _name:String = frame.name.replace(/[^a-zA-Z_]/g, ""); > > > [Pretty obviously I'm not a regexpert. Like most of us, I just google > it when needed.] > -- Regards ----------------------------------------------------------- Todsaporn Banjerdkit, katopz, http://sleepydesign.com Away3DLite and JigLibFlash Developer Team
