Re: [Flashcoders] regexp question

2008-07-04 Thread Allandt Bik-Elliott (Receptacle)
wow - i have no idea what that means at all time to hit the books - thanks :) On 4 Jul 2008, at 01:09, Claudius Ceteras wrote: Hi, is there a way of counting back from the end of the number and inserting the comma (even without a regular expression)? if i use the g modifier in the regexp

Re: [Flashcoders] regexp question

2008-07-04 Thread Allandt Bik-Elliott (Receptacle)
hi again i've been trying different things and it seems that the [^0] or [^\d] is stopping it working. (I needed to use $1 rather than \1 to reference the first group in the String.replace statement) here is what i've got so far var sYear:String = 1234567; var pattern:RegExp =

Re: [Flashcoders] regexp question

2008-07-04 Thread Sidney de Koning
Hi Allandt, Have you found this tool already? http://www.gskinner.com/blog/archives/2008/03/regexr_free_onl.html It allows you to test your regex pattern expecially for AS And you can find a cheatsheat on RegEx on www.ilovejackdaniels.com and there is ofcourse alot on

[Flashcoders] Re: AS3 events framework ...

2008-07-04 Thread [EMAIL PROTECTED]
Thanks all. Rich that is my problem, you've said: You can dispatch from one instance and listen from another So the second instance has to be instantiated somewhere else in the application? What if the handler for the event isn't in the same class where I instantiate the event?

Re: [Flashcoders] regexp question

2008-07-04 Thread Allandt Bik-Elliott (Receptacle)
hey that's great sid - thanks a On 4 Jul 2008, at 12:26, Sidney de Koning wrote: Hi Allandt, Have you found this tool already? http://www.gskinner.com/blog/ archives/2008/03/regexr_free_onl.html It allows you to test your regex pattern expecially for AS And you can find a cheatsheat on

[Flashcoders] Sounds loaded - but is silent

2008-07-04 Thread Martin Klasson
This is a dilemma that is a tough case. I am having cross-domain loading issue. I am having an loadPolicyFile which makes my swf to LOAD the mp3's from the other server. -without the policyFIle it wouldnt load the mp3's at all. but, now they are being loaded. But they are not played. no sound.

RE: [Flashcoders] regexp question

2008-07-04 Thread Claudius Ceteras
Hi, var sYear:String = 1234567; var pattern:RegExp = /(\d\d\d)(?=(?:\d\d\d)*[^\d])/g; sYear = sYear.replace(pattern, ,$1); //traces 1234567 That's because [^\d] expects a non-digit after the number Try this: var sYear:String = The year when all happened was 1234567 indeed // :) To get

RE: [Flashcoders] regexp question

2008-07-04 Thread Claudius Ceteras
To get this to also work with just the year you may replace [^\d] with (?:[^\d]|$) which expects a non-digit or the end of the string Or even better Replace [^\d] with \b which should also work. regards Claudius ___ Flashcoders mailing list

Re: [Flashcoders] regexp question

2008-07-04 Thread Allandt Bik-Elliott (Receptacle)
the \b boundary worked a treat - i'm just researching why it worked now thanks for all your help guys a On 4 Jul 2008, at 13:17, Claudius Ceteras wrote: To get this to also work with just the year you may replace [^\d] with (?:[^\d]|$) which expects a non-digit or the end of the string

RE: [Flashcoders] regexp question

2008-07-04 Thread Claudius Ceteras
the \b boundary worked a treat - i'm just researching why it worked now /(\d\d\d)(?=(?:\d\d\d)*\b)/g Find all groups of three digits (\d\d\d) , which are followed by positive lookahead: (?= ) 0, 3, 6, 9, ... Digits, followed by a word boundary (?:\d\d\d)*\b Word boundaries match

Re: [Flashcoders] regexp question

2008-07-04 Thread Allandt Bik-Elliott (Receptacle)
wow - that's really helpful - thanks a lot for your time claudius best a On 4 Jul 2008, at 14:56, Claudius Ceteras wrote: the \b boundary worked a treat - i'm just researching why it worked now /(\d\d\d)(?=(?:\d\d\d)*\b)/g Find all groups of three digits (\d\d\d) , which are

Re: [Flashcoders] drag and rotate, where do I begin?

2008-07-04 Thread Leandro Ferreira
Downloaded, but the code is not quite readable... I'm studying it tho. Thanks for your help. On Thu, Jul 3, 2008 at 4:52 AM, jonathan howe [EMAIL PROTECTED] wrote: I see a link into the place where they got the physics right in the project description:

Re: [Flashcoders] Sounds loaded - but is silent

2008-07-04 Thread ben gomez farrell
Maybe it is a cross domain issue - but also consider that there was an error uploading to whatever domain you're using. Grab the file and make sure it plays - one quirk with the sound player (in Flash 9 at lease), is that it'll say its loading and playing anything. It's easily fooled - pass