You are working on flex, right?
no other way, as far as I know, to use RegExp but to use it with flex.
so... you must be familiar with addcChild (). if not - check it out on the
Help panel.
Weird, I don't get any errors. are you sure the error come from this lines
of code?
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Flashcoders
mailing list
Sent: Tuesday, February 14, 2006 10:17
To: [email protected]
Subject: Re: [Flashcoders] regex needed
Importance: Low
matti bar zeev schrieb:
> How about this?
>
> import RegExp;
>
> var a:String = "äur*?ß123.png";
> var goodname:RegExp = new RegExp ("[^a-z0-9\\.]", "gi");
> var return_str:String = a.replace(goodname, "_");
>
> var output_txt:TextField = new TextField ();
> output_txt.text = return_str;
> addChild (output_txt)
>
>
nope ... same problem: type mismatch!
btw: what is addChild () ???
micha
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com