[Flashcoders] multiple Key.isDown weird behaviour

2006-05-19 Thread _jan Guichelaar [woedend!]

Hi All

I have a weird problem with checking if multiple keys are down.
In the code example beneath, i check if the 4 arrow buttons (not on the 
numpad) are down or not.


All individual, work fine, 2 at the same time works fine as well, but 
the third button i press isn't noticed.

And even weirder sometime it does. It depends on the combination you make.

Anyone has a solution, or a clue?
thanx
jan

37 = left
38 = up
39 = right
40 = down

CODE:
this.onEnterFrame = function() {
  if(Key.isDown(37)) {
  trace('37 is down');
  } else {
  trace('37 is NOT down');
  }
if(Key.isDown(38)) {
  trace('38 is down');
  } else {
  trace('38 is NOT down');
  }
if(Key.isDown(39)) {
  trace('39 is down');
  } else {
  trace('39 is NOT down');
  }
if(Key.isDown(40)) {
  trace('40 is down');
  } else {
  trace('40 is NOT down');
  }
}




___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] multiple Key.isDown weird behaviour

2006-05-19 Thread _jan Guichelaar [woedend!]

I've found some information on the subject:

It seems that the limitation is the hardware, it depends on the keyboard 
you're using

:-(

jan



_jan Guichelaar [woedend!] wrote:

Hi All

I have a weird problem with checking if multiple keys are down.
In the code example beneath, i check if the 4 arrow buttons (not on 
the numpad) are down or not.


All individual, work fine, 2 at the same time works fine as well, but 
the third button i press isn't noticed.
And even weirder sometime it does. It depends on the combination you 
make.


Anyone has a solution, or a clue?
thanx
jan

37 = left
38 = up
39 = right
40 = down

CODE:
this.onEnterFrame = function() {
  if(Key.isDown(37)) {
  trace('37 is down');
  } else {
  trace('37 is NOT down');
  }
if(Key.isDown(38)) {
  trace('38 is down');
  } else {
  trace('38 is NOT down');
  }
if(Key.isDown(39)) {
  trace('39 is down');
  } else {
  trace('39 is NOT down');
  }
if(Key.isDown(40)) {
  trace('40 is down');
  } else {
  trace('40 is NOT down');
  }
}




___
Flashcoders@chattyfig.figleaf.com
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



--
Jan Guichelaar
---
[EMAIL PROTECTED]
http://www.woedend.nl
---
Woedend!
Magna Plaza
Spuistraat 139 J
1012 SV Amsterdam
---
tel +31 [0]20 6764999
fax +31 [0]20 4714446
---




___
Flashcoders@chattyfig.figleaf.com
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


[Flashcoders] flash 8 Masking blurred BitmapData

2006-01-05 Thread _jan Guichelaar [woedend]

Hi All
(I'm not new to the list but was away for over a year, so hi to you all 
again)


I am working with some new flash 8 features in actionscript, but ran 
into a problem (bug?)


I am taking a snapshot from a mc wtih :

snapshot = new BitmapData(200, 200);

Then draw this into an emty mc with :

mc.draw(snapshot ,new Matrix())

And apply a blur to the new mc with :

mc.filters=[new flash.filters.BlurFilter(80,0,30)];

This all works fine but when i want to mask this blurred mc with :

mc.setMask(_root.maskMc)
There is no mask applied to the mc

If i leave out the blur, the mask will show perfectly

Anybody any ideas?
Flash will be very limited when we can only use the one or two new 
methods etc. at the same time :-(


grtz
jan

--
Jan Guichelaar
---
[EMAIL PROTECTED]
http://www.woedend.nl
---
Woedend!
Magna Plaza
Spuistraat 139 J
1012 SV Amsterdam
---
tel +31 [0]20 6764999
fax +31 [0]20 4714446
---




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders