Re: [Flashcoders] pureMVC, swfaddress and multiple proxies

2010-11-15 Thread allandt bik-elliott (thefieldcomic.com)
i've heard that some people use a mediator for their swfaddress needs so i think i'm going to try to implement something like that a On 14 November 2010 20:55, kris range krisra...@gmail.com wrote: From what it sounds like, I think you want to do something like this: When you receive your

[Flashcoders] Finda and Replace

2010-11-15 Thread Lehr, Theodore
Say you have the following string: var s:String = This is a test. Is this a test? Yes.; I am trying: var findAndReplace:RegExp = new RegExp(Is this a test?, gi); s=s.replace(findAndReplace,xxx); I would expect to get back: This is a test. xxx Yes. but there seem to be an issue with the ? -

Re: [Flashcoders] Finda and Replace

2010-11-15 Thread kindaian
Hi Ted, Not an expert on flash, but i would suppose you need to escape your ? in the regexp with something like \?. Otherwise you may end up with the result: xxx xxx Yes. Cheers, :) On 15/11/2010 17:26, Lehr, Theodore wrote: Say you have the following string: var s:String = This is a

[Flashcoders] Building ActionScript-Only State-of-the-Art Video Players -- An In-Depth How-To Code Walkthrough (Using Codebase of Open Source Strobe Media Playback)

2010-11-15 Thread greg h
Flash Player 10.1 introduced vital new video delivery options: - HTTP Dynamic Streaming (Live and VoD) - RTMFP Groups for Peer Assisted Multicasting (Live) - Flash Access DRM Support (Live and VoD) Each of these 3 new delivery options requires significant logic client-side in the video

Re: [Flashcoders] Finda and Replace

2010-11-15 Thread Glen Pike
Hi, For really simple replacements like single characters and strings, you are probably better off using s.replace(?, ); For RegExp grab a copy of Grant Skinners RegExr tool - it's invaluable: http://gskinner.com/RegExr/desktop/ HTH Glen On 15/11/2010 17:26, Lehr,

RE: [Flashcoders] Finda and Replace

2010-11-15 Thread Lehr, Theodore
OK - so what if I have multiple ? - s.replace(?, ); seems to just get the first one From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen Pike [postmas...@glenpike.co.uk] Sent: Monday, November

Re: [Flashcoders] Finda and Replace

2010-11-15 Thread Glen Pike
erm s.split(?).join(); is that any use? Glen On 15/11/2010 19:17, Lehr, Theodore wrote: OK - so what if I have multiple ? - s.replace(?, ); seems to just get the first one From: flashcoders-boun...@chattyfig.figleaf.com

Re: [Flashcoders] Calling a Static Function

2010-11-15 Thread Ktu
I'm curious if you solved the problem Kerry. Also, if the describeType helped you at all, and what your solution was. I'm doing a lot of swf loading nowadays and I will undoubtedly run into this same issue you are having/had. thanks Ktu On Wed, Nov 10, 2010 at 9:00 PM, Ktu

Re: [Flashcoders] Calling a Static Function

2010-11-15 Thread Kerry Thompson
Hi Ktu, I'm afraid I got pulled off that project on short notice--I'm doing a game for Shell with a short fuse, and had to set that aside for a couple of weeks. I'll report back as soon as I have a definitive answer. Cordially, Kerry Thompson On Mon, Nov 15, 2010 at 3:33 PM, Ktu

[Flashcoders] How to detect for modifier (alt/ctrl) keys

2010-11-15 Thread Benny
In an application I am building I need to detect whether the (right) alt-key was pressed in combination with another (letter) and make sure that the control key isn't being pressed at the same time. But it looks like the Keyboard events for both MOUSE_DOWN and MOUSE_UP always return true for

Re: [Flashcoders] How to detect for modifier (alt/ctrl) keys

2010-11-15 Thread Glen Pike
Hi, I would suggest using a keyboard manager class that tracks when various keys are pressed and sets a flag - this would effectively allow you to Poll such keys when you are checking others. There is a good example from Richard Lord here:

[Flashcoders] Sorry I know this is [OT] but i just swiched from CS3 to CS5 and have a UI question

2010-11-15 Thread Roger Persson
Hi, Again, sorry for the OT question. I've tried googling every combination of words i could think of without any luck. Is it possible to get the properties panel horizontal (like in CS3) in Flash Professional CS5? The vertical jumping up and down depending on what I select makes jack a

Re: [Flashcoders] Sorry I know this is [OT] but i just swiched from CS3 to CS5 and have a UI question

2010-11-15 Thread Glen Pike
Hi, I asked this question a while ago and I think the answer is no... http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com/msg54882.html You might want to put a request into Adobe to get them to use floating layouts so the properties panel works horizontally vertically.

RE: [Flashcoders] How to detect for modifier (alt/ctrl) keys

2010-11-15 Thread Benny
Thanks for the tip Glen. Unfortunately that class also shows the problem of Keyboard.CONTROL (keycode 17) being reported as being down (while it actual isn't) when the right alt key is being pressed. - Benny ___ Flashcoders mailing list

Re: [Flashcoders] How to detect for modifier (alt/ctrl) keys

2010-11-15 Thread Anthony Pace
Just thinking out loud, but I took a look at the code and I am wondering if this would this not be better implemented as a singleton? On 11/15/2010 6:01 PM, Glen Pike wrote: Hi, I would suggest using a keyboard manager class that tracks when various keys are pressed and sets a flag - this

Re: [Flashcoders] How to detect for modifier (alt/ctrl) keys

2010-11-15 Thread Glen Pike
Yes, but if you don't use keyEvent.ctrlKey in your event handler, but check for CTRL and set a flag: e.g. public static const CTRL_KEYCODE:int = 17; private var _ctrlKeyDown:Boolean = false; //etc function onKeyDownHandler(e:KeyboardEvent):void { switch(e.keyCode) {