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
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 ? -
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
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
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,
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
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
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
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
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
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:
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
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.
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
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
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) {
16 matches
Mail list logo