Re: [Flashcoders] design pattern diagrams...

2009-01-08 Thread Ian Thomas
I'd second Ron's recommendation there...

Ian

On Wed, Jan 7, 2009 at 10:57 PM, Ron Wheeler
rwhee...@artifact-software.com wrote:
 Head First Design Patterns is very easy to pick up. No typos, lots and lots
 of pictures, illustrations and code examples.
 http://oreilly.com/catalog/9780596007126/?CMP=AFC-ak_bookATT=Head+First+Design+Patterns

 http://www.headfirstlabs.com/books/hfdp/ for a quick overview and a typical
 illustration

 http://oreilly.com/catalog/9780596007126/toc.pdf  Read the section on the
 Observer Pattern. It might be what you are looking for.

 Merrill, Jason wrote:

 I think just a quick answer to your questions which may help a lot is to
 check into understanding MVC - the Model-View-Controller design pattern.
  Probably one of the most common pattern used and one that other coding
 design frameworks use as well for part of their operations.

 So there are also frameworks like Cairngorm which takes MVC and other
 patterns together and go a lot further, it has things like Commands to
 facilitate communication.  But simple MVC using event listeners and
 dispatchers is probably the best place to start to get what you want to do
 going.


 Jason Merrill
 Bank of America Instructional Technology  Media   ·   GCIB  Staff
 Support LLD

 Interested in Flash Platform technologies?  Join the Bank of America Flash
 Platform Developer Community Interested in innovative ideas in Learning?
  Check out the Innovative Learning Blog and subscribe.






 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Anthony Pace
 Sent: Wednesday, January 07, 2009 3:48 PM
 To: Flash Coders List
 Subject: [Flashcoders] design pattern diagrams...

 I am looking to get more info on the composition of design patterns and
 which ones are used most often in the corporate world.

 Diagrams accompanied by code examples would be awesome.  I have been able
 to find stuff in the past; yet, I really want to know what is generally
 preferred?

 I like to try and make things black box; however, it just seems illogical
 that things be black boxes all the time.

 when a person talks to another person the environment that they are in has
 to facilitate the communication; thus, if I have two objects instantiated in
 the same class and I want them to communicate with each other, I have to
 have a function in the main class or somewhere globally that allows those
 objects to communicate.

 How do I accomplish this without calling to the function in the parent?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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



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


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


[Flashcoders] multi-touch directly in flash...

2009-01-08 Thread Anthony Pace
I have figured out how to make flash work as a multi-touch system... I 
am coding it now...


it is so darn simple... 

it just came to me after watching a video on how to make your own 
multi-touch input device using a webcam a piece of white paper and a box 
to block most of the light so the cam only sees light and dark.


Since it is all based on blobs, and processing the image through a 
filter to break down the logic, and flash has access to web cams, I can 
just convert the image to black and white, threshold the image to find 
the blobs, average out a hit test area based on the finger positions, 
and all that would come after is putting together the finger gesturing 
logic.


for instance if two blobs exist around their averaged points and have 
not moved too much or at all, yet there is a third blob that is moving a 
significant amount, perform a specific function based on its direction 
(directional logic through tracking input fed into basic physics 
equations and Pythagorean concepts)


If someone has beaten me to it, I would love to know; however, if you 
beat me to it, after reading my post, tell me about it and show me your 
source so my life is made easier.

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


Re: [Flashcoders] multi-touch directly in flash...

2009-01-08 Thread Glen Pike

Hi,

   Mario Klingemann demo'd something like this at FlashOnTheBeach 2007 
- have a look at quasimondo.com to see the 2D or not 2D lecture - not 
sure if he released any code though?


   http://lectures.quasimondo.com/

   Glen

Anthony Pace wrote:
I have figured out how to make flash work as a multi-touch system... I 
am coding it now...


it is so darn simple...
it just came to me after watching a video on how to make your own 
multi-touch input device using a webcam a piece of white paper and a 
box to block most of the light so the cam only sees light and dark.


Since it is all based on blobs, and processing the image through a 
filter to break down the logic, and flash has access to web cams, I 
can just convert the image to black and white, threshold the image to 
find the blobs, average out a hit test area based on the finger 
positions, and all that would come after is putting together the 
finger gesturing logic.


for instance if two blobs exist around their averaged points and have 
not moved too much or at all, yet there is a third blob that is moving 
a significant amount, perform a specific function based on its 
direction (directional logic through tracking input fed into basic 
physics equations and Pythagorean concepts)


If someone has beaten me to it, I would love to know; however, if you 
beat me to it, after reading my post, tell me about it and show me 
your source so my life is made easier.

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




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


Re: [Flashcoders] multi-touch directly in flash...

2009-01-08 Thread Ian Thomas
I was actually thinking of Mario's lecture at FoTB 2008 where he used
very similar algorithms to read square barcodes (whatever those things
are called) from a webcam. Not multitouch, but there's a lot of
similar code (spotting areas of colour, eliminating noise).

Worth a look, Anthony.

Funnily enough we were talking about exactly the same system for
multitouch here yesterday - spotting areas of colour. One of our
developers had seen some demo of a similar system on TV over the
weekend...

Ian

On Thu, Jan 8, 2009 at 9:12 AM, Glen Pike g...@engineeredarts.co.uk wrote:
 Hi,

   Mario Klingemann demo'd something like this at FlashOnTheBeach 2007 - have
 a look at quasimondo.com to see the 2D or not 2D lecture - not sure if he
 released any code though?

   http://lectures.quasimondo.com/

   Glen

 Anthony Pace wrote:

 I have figured out how to make flash work as a multi-touch system... I am
 coding it now...

 it is so darn simple...
 it just came to me after watching a video on how to make your own
 multi-touch input device using a webcam a piece of white paper and a box to
 block most of the light so the cam only sees light and dark.

 Since it is all based on blobs, and processing the image through a filter
 to break down the logic, and flash has access to web cams, I can just
 convert the image to black and white, threshold the image to find the blobs,
 average out a hit test area based on the finger positions, and all that
 would come after is putting together the finger gesturing logic.

 for instance if two blobs exist around their averaged points and have not
 moved too much or at all, yet there is a third blob that is moving a
 significant amount, perform a specific function based on its direction
 (directional logic through tracking input fed into basic physics equations
 and Pythagorean concepts)

 If someone has beaten me to it, I would love to know; however, if you beat
 me to it, after reading my post, tell me about it and show me your source so
 my life is made easier.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



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

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


Re: [Flashcoders] NativeMenuItem keyModifier with function key (AIR)

2009-01-08 Thread Sidney de Koning

Hi Zeh,

Maybe these resources can help you?

http://livedocs.adobe.com/air/1/devappsflex/dev_guide_flex.pdf
“Using multi-platform key equivalent menu commands” in the PDF on page  
57 (64 in PDF)



http://extjs.com/forum/showthread.php?t=41615
This one is for JS but it can help you

Hope this helps you,

Sid

On Jan 8, 2009, at 1:46 AM, Zeh Fernando wrote:


Hey list,

Do people here work with AIR? Or is there any better-aligned mailing  
list?


Anyway. I'm using AIR 1.5's NativeMenuItem's .keyEquivalent and
.keyEquivalentModifier. That feature is pretty cool and works like
this:

   var item:NativeMenuItem = new NativeMenuItem(Do Whatever);
   item.keyEquivalent = d;
   item.keyEquivalentModifiers = [Keyboard.CONTROL];

Then when the user presses CTRL+D, the menu item is executed.

(More information at
http://livedocs.adobe.com/flex/3/html/help.html?content=Menus_2.html)

I'm having a problem setting the .keyEquivalent, though. It accepts
strings, so you can't set them to things like Enter, Tab, Del, F1,
etc.

You can try doing this:

   var item:NativeMenuItem = new NativeMenuItem(Do Whatever);
   item.keyEquivalent = F1;
   item.keyEquivalentModifiers = [Keyboard.CONTROL];

And then, funny enough, the menu item will display CTRL+F1 as the
shortcut; but it won't work. The actual shortcut will be CTRL+F - that
is, it only takes the first character of the string as the activation
key (!). The documentation seems to completely ignore the problem,
very briefly mentioning that .keyEquivalent accepts a string. In fact,
you can write *anything* as the .keyEquivalent and it'll be shown
there on the menu, but only the first char matters.

I tried a lot of different things, like adding Keyboard.F1 to the
keyEquivalentModifiers array, using Keyboard.F1's key code as a
keyEquivalent char, using AIR's new .STRING_F1 or KEYNAME_F1
constants, and things like that. Nothing seems to work though.

Has somebody ran into that and found a solution that works? Or am I
imagining things? It seems odd to me that I'm able to create a menu in
Flash which responds to F1 while I can't do that in AIR using its
(great) native menus. Of course I can always add the shortcuts as some
keyboard event listener hidden somewhere, but it'd be less than
optimal (and wouldn't display the shortcut on the menu).


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


Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical writer @ www.insideria.com




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


Re: [Flashcoders] NativeMenuItem keyModifier with function key (AIR)

2009-01-08 Thread Sidney de Koning

Oh one more link for you:

Function key can't be used as keyEquivalents
http://bugs.adobe.com/jira/browse/SDK-17901

Good luck,

Sid


On Jan 8, 2009, at 1:46 AM, Zeh Fernando wrote:


Hey list,

Do people here work with AIR? Or is there any better-aligned mailing  
list?


Anyway. I'm using AIR 1.5's NativeMenuItem's .keyEquivalent and
.keyEquivalentModifier. That feature is pretty cool and works like
this:

   var item:NativeMenuItem = new NativeMenuItem(Do Whatever);
   item.keyEquivalent = d;
   item.keyEquivalentModifiers = [Keyboard.CONTROL];

Then when the user presses CTRL+D, the menu item is executed.

(More information at
http://livedocs.adobe.com/flex/3/html/help.html?content=Menus_2.html)

I'm having a problem setting the .keyEquivalent, though. It accepts
strings, so you can't set them to things like Enter, Tab, Del, F1,
etc.

You can try doing this:

   var item:NativeMenuItem = new NativeMenuItem(Do Whatever);
   item.keyEquivalent = F1;
   item.keyEquivalentModifiers = [Keyboard.CONTROL];

And then, funny enough, the menu item will display CTRL+F1 as the
shortcut; but it won't work. The actual shortcut will be CTRL+F - that
is, it only takes the first character of the string as the activation
key (!). The documentation seems to completely ignore the problem,
very briefly mentioning that .keyEquivalent accepts a string. In fact,
you can write *anything* as the .keyEquivalent and it'll be shown
there on the menu, but only the first char matters.

I tried a lot of different things, like adding Keyboard.F1 to the
keyEquivalentModifiers array, using Keyboard.F1's key code as a
keyEquivalent char, using AIR's new .STRING_F1 or KEYNAME_F1
constants, and things like that. Nothing seems to work though.

Has somebody ran into that and found a solution that works? Or am I
imagining things? It seems odd to me that I'm able to create a menu in
Flash which responds to F1 while I can't do that in AIR using its
(great) native menus. Of course I can always add the shortcuts as some
keyboard event listener hidden somewhere, but it'd be less than
optimal (and wouldn't display the shortcut on the menu).


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


Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical writer @ www.insideria.com




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


Re: [Flashcoders] design pattern diagrams...

2009-01-08 Thread John McCormack

It's a good book.

Although I go back and forth between books I own the following books and 
they have benefited me in this order:


1. ActionScript3 with Design Patterns - isbn: 0-321-42656-8 - Adobe Press
Joey Lott and Danny Patterson

Joint 2. Head First Design Patterns - O'Reilly - isbn: 0-596-00712-4
Freeman  Freeman. Uses Java.

Joint 2. Design Patterns - Addison Wesley - isbn:13 978-0-201-63361-0
By the gang of four. Uses C++ - similar to AS3.

4. ActionScript3.0 Design Patterns - isbn-13: 978-0-596-52846-1 - O'Reilly
William Sanders and Chahndima Cumaranatunge

5. Object-Oriented ActionScript 3.0 - isbn-13: 978-1-59059-845-0 
-friends of Ed

Peter Elst, Sas Jacobs and Todd yard. More on OOP than Design Patterns.

On http://www.dofactory.com/Patterns/Patterns.aspx
you can find patterns here but the code they sell is for c# and/or VB.
I suspect these really are in use by companies.

John



Are you talking about the Joey Lott book on AS3 design patterns?  Just curious 
as I was thinking of picking that one up.
  



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


Re: [Flashcoders] multi-touch directly in flash...

2009-01-08 Thread Anthony Pace
To my knowledge all flash integration for multi-touch has been made 
possible by using flosc by ben chun, or with OpenCV and touchLib; 
however, what I am proposing is that it is possible directly through the 
use of the flash player and a simple cam rig.  I think that it should be 
possible, and at least somewhat comparably fast, considering the player 
doesn't have to parse xml socket data on a continuous basis, and all 
image conversions are done by the player.  I do concede that doing in 
c++ will most likely prove to be faster; however, I figure why not try 
it out.


Since I know c++ somewhat I figure I will probably look at their 
libraries if I get stuck; yet, in the meanwhile, this is a nifty experiment.


Here is the video that sparked it...
http://www.youtube.com/watch?v=pQpr3W-YmcQ

Colour tracking would be efficient in a system where you have multi 
coloured thimbles or reflective tape, which is what I was thinking of 
when I came up with this idea. 
http://anthony-pace.deviantart.com/art/add-VR-to-current-FPS-GAMES-91091960


Ian Thomas wrote:

I was actually thinking of Mario's lecture at FoTB 2008 where he used
very similar algorithms to read square barcodes (whatever those things
are called) from a webcam. Not multitouch, but there's a lot of
similar code (spotting areas of colour, eliminating noise).

Worth a look, Anthony.

Funnily enough we were talking about exactly the same system for
multitouch here yesterday - spotting areas of colour. One of our
developers had seen some demo of a similar system on TV over the
weekend...

Ian

On Thu, Jan 8, 2009 at 9:12 AM, Glen Pike g...@engineeredarts.co.uk wrote:
  

Hi,

  Mario Klingemann demo'd something like this at FlashOnTheBeach 2007 - have
a look at quasimondo.com to see the 2D or not 2D lecture - not sure if he
released any code though?

  http://lectures.quasimondo.com/

  Glen

Anthony Pace wrote:


I have figured out how to make flash work as a multi-touch system... I am
coding it now...

it is so darn simple...
it just came to me after watching a video on how to make your own
multi-touch input device using a webcam a piece of white paper and a box to
block most of the light so the cam only sees light and dark.

Since it is all based on blobs, and processing the image through a filter
to break down the logic, and flash has access to web cams, I can just
convert the image to black and white, threshold the image to find the blobs,
average out a hit test area based on the finger positions, and all that
would come after is putting together the finger gesturing logic.

for instance if two blobs exist around their averaged points and have not
moved too much or at all, yet there is a third blob that is moving a
significant amount, perform a specific function based on its direction
(directional logic through tracking input fed into basic physics equations
and Pythagorean concepts)

If someone has beaten me to it, I would love to know; however, if you beat
me to it, after reading my post, tell me about it and show me your source so
my life is made easier.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  

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



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

  


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


Re: [Flashcoders] multi-touch directly in flash...

2009-01-08 Thread Ian Thomas
Yeah, I absolutely get the idea (as I said, we were discussing it
yesterday - with reference to an infra-red camera, but same
principle). Check out Mario's stuff, there are areas-of-colour
recognition algorithms there which will be of help, I think.

Cheers,
  Ian

On Thu, Jan 8, 2009 at 10:08 AM, Anthony Pace anthony.p...@utoronto.ca wrote:
 To my knowledge all flash integration for multi-touch has been made possible
 by using flosc by ben chun, or with OpenCV and touchLib; however, what I am
 proposing is that it is possible directly through the use of the flash
 player and a simple cam rig.  I think that it should be possible, and at
 least somewhat comparably fast, considering the player doesn't have to parse
 xml socket data on a continuous basis, and all image conversions are done by
 the player.  I do concede that doing in c++ will most likely prove to be
 faster; however, I figure why not try it out.

 Since I know c++ somewhat I figure I will probably look at their libraries
 if I get stuck; yet, in the meanwhile, this is a nifty experiment.

 Here is the video that sparked it...
 http://www.youtube.com/watch?v=pQpr3W-YmcQ

 Colour tracking would be efficient in a system where you have multi coloured
 thimbles or reflective tape, which is what I was thinking of when I came up
 with this idea.
 http://anthony-pace.deviantart.com/art/add-VR-to-current-FPS-GAMES-91091960

 Ian Thomas wrote:

 I was actually thinking of Mario's lecture at FoTB 2008 where he used
 very similar algorithms to read square barcodes (whatever those things
 are called) from a webcam. Not multitouch, but there's a lot of
 similar code (spotting areas of colour, eliminating noise).

 Worth a look, Anthony.

 Funnily enough we were talking about exactly the same system for
 multitouch here yesterday - spotting areas of colour. One of our
 developers had seen some demo of a similar system on TV over the
 weekend...

 Ian

 On Thu, Jan 8, 2009 at 9:12 AM, Glen Pike g...@engineeredarts.co.uk
 wrote:


 Hi,

  Mario Klingemann demo'd something like this at FlashOnTheBeach 2007 -
 have
 a look at quasimondo.com to see the 2D or not 2D lecture - not sure if
 he
 released any code though?

  http://lectures.quasimondo.com/

  Glen

 Anthony Pace wrote:


 I have figured out how to make flash work as a multi-touch system... I
 am
 coding it now...

 it is so darn simple...
 it just came to me after watching a video on how to make your own
 multi-touch input device using a webcam a piece of white paper and a box
 to
 block most of the light so the cam only sees light and dark.

 Since it is all based on blobs, and processing the image through a
 filter
 to break down the logic, and flash has access to web cams, I can just
 convert the image to black and white, threshold the image to find the
 blobs,
 average out a hit test area based on the finger positions, and all that
 would come after is putting together the finger gesturing logic.

 for instance if two blobs exist around their averaged points and have
 not
 moved too much or at all, yet there is a third blob that is moving a
 significant amount, perform a specific function based on its direction
 (directional logic through tracking input fed into basic physics
 equations
 and Pythagorean concepts)

 If someone has beaten me to it, I would love to know; however, if you
 beat
 me to it, after reading my post, tell me about it and show me your
 source so
 my life is made easier.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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



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



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

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


Re: [Flashcoders] multi-touch directly in flash...

2009-01-08 Thread Ian Thomas
That's a great tip. :-)

Pocket change? Definitely not... we're not made of money either!

Ian

On Thu, Jan 8, 2009 at 10:43 AM, Anthony Pace anthony.p...@utoronto.ca wrote:
 thanks for the tip...

 I think IR is definitely the way to go; yet, you can just open up a web cam,
 and replace its filter with a piece of blank exposed negative... saves you
 from actually having to buy an IR camera.

 For me purchasing new equipment is not an option; yet, for you it might be
 pocket change.

 http://www.instructables.com/id/Infrared-IR-Webcam/


 Ian Thomas wrote:

 Yeah, I absolutely get the idea (as I said, we were discussing it
 yesterday - with reference to an infra-red camera, but same
 principle). Check out Mario's stuff, there are areas-of-colour
 recognition algorithms there which will be of help, I think.

 Cheers,
  Ian

 On Thu, Jan 8, 2009 at 10:08 AM, Anthony Pace anthony.p...@utoronto.ca
 wrote:


 To my knowledge all flash integration for multi-touch has been made
 possible
 by using flosc by ben chun, or with OpenCV and touchLib; however, what I
 am
 proposing is that it is possible directly through the use of the flash
 player and a simple cam rig.  I think that it should be possible, and at
 least somewhat comparably fast, considering the player doesn't have to
 parse
 xml socket data on a continuous basis, and all image conversions are done
 by
 the player.  I do concede that doing in c++ will most likely prove to be
 faster; however, I figure why not try it out.

 Since I know c++ somewhat I figure I will probably look at their
 libraries
 if I get stuck; yet, in the meanwhile, this is a nifty experiment.

 Here is the video that sparked it...
 http://www.youtube.com/watch?v=pQpr3W-YmcQ

 Colour tracking would be efficient in a system where you have multi
 coloured
 thimbles or reflective tape, which is what I was thinking of when I came
 up
 with this idea.

 http://anthony-pace.deviantart.com/art/add-VR-to-current-FPS-GAMES-91091960

 Ian Thomas wrote:


 I was actually thinking of Mario's lecture at FoTB 2008 where he used
 very similar algorithms to read square barcodes (whatever those things
 are called) from a webcam. Not multitouch, but there's a lot of
 similar code (spotting areas of colour, eliminating noise).

 Worth a look, Anthony.

 Funnily enough we were talking about exactly the same system for
 multitouch here yesterday - spotting areas of colour. One of our
 developers had seen some demo of a similar system on TV over the
 weekend...

 Ian

 On Thu, Jan 8, 2009 at 9:12 AM, Glen Pike g...@engineeredarts.co.uk
 wrote:



 Hi,

  Mario Klingemann demo'd something like this at FlashOnTheBeach 2007 -
 have
 a look at quasimondo.com to see the 2D or not 2D lecture - not sure
 if
 he
 released any code though?

  http://lectures.quasimondo.com/

  Glen

 Anthony Pace wrote:



 I have figured out how to make flash work as a multi-touch system... I
 am
 coding it now...

 it is so darn simple...
 it just came to me after watching a video on how to make your own
 multi-touch input device using a webcam a piece of white paper and a
 box
 to
 block most of the light so the cam only sees light and dark.

 Since it is all based on blobs, and processing the image through a
 filter
 to break down the logic, and flash has access to web cams, I can just
 convert the image to black and white, threshold the image to find the
 blobs,
 average out a hit test area based on the finger positions, and all
 that
 would come after is putting together the finger gesturing logic.

 for instance if two blobs exist around their averaged points and have
 not
 moved too much or at all, yet there is a third blob that is moving a
 significant amount, perform a specific function based on its direction
 (directional logic through tracking input fed into basic physics
 equations
 and Pythagorean concepts)

 If someone has beaten me to it, I would love to know; however, if you
 beat
 me to it, after reading my post, tell me about it and show me your
 source so
 my life is made easier.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





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




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




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



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



 ___
 Flashcoders mailing list
 

Re: [Flashcoders] multi-touch directly in flash...

2009-01-08 Thread Anthony Pace

thanks for the tip...

I think IR is definitely the way to go; yet, you can just open up a web 
cam, and replace its filter with a piece of blank exposed negative... 
saves you from actually having to buy an IR camera.


For me purchasing new equipment is not an option; yet, for you it might 
be pocket change.


http://www.instructables.com/id/Infrared-IR-Webcam/


Ian Thomas wrote:

Yeah, I absolutely get the idea (as I said, we were discussing it
yesterday - with reference to an infra-red camera, but same
principle). Check out Mario's stuff, there are areas-of-colour
recognition algorithms there which will be of help, I think.

Cheers,
  Ian

On Thu, Jan 8, 2009 at 10:08 AM, Anthony Pace anthony.p...@utoronto.ca wrote:
  

To my knowledge all flash integration for multi-touch has been made possible
by using flosc by ben chun, or with OpenCV and touchLib; however, what I am
proposing is that it is possible directly through the use of the flash
player and a simple cam rig.  I think that it should be possible, and at
least somewhat comparably fast, considering the player doesn't have to parse
xml socket data on a continuous basis, and all image conversions are done by
the player.  I do concede that doing in c++ will most likely prove to be
faster; however, I figure why not try it out.

Since I know c++ somewhat I figure I will probably look at their libraries
if I get stuck; yet, in the meanwhile, this is a nifty experiment.

Here is the video that sparked it...
http://www.youtube.com/watch?v=pQpr3W-YmcQ

Colour tracking would be efficient in a system where you have multi coloured
thimbles or reflective tape, which is what I was thinking of when I came up
with this idea.
http://anthony-pace.deviantart.com/art/add-VR-to-current-FPS-GAMES-91091960

Ian Thomas wrote:


I was actually thinking of Mario's lecture at FoTB 2008 where he used
very similar algorithms to read square barcodes (whatever those things
are called) from a webcam. Not multitouch, but there's a lot of
similar code (spotting areas of colour, eliminating noise).

Worth a look, Anthony.

Funnily enough we were talking about exactly the same system for
multitouch here yesterday - spotting areas of colour. One of our
developers had seen some demo of a similar system on TV over the
weekend...

Ian

On Thu, Jan 8, 2009 at 9:12 AM, Glen Pike g...@engineeredarts.co.uk
wrote:

  

Hi,

 Mario Klingemann demo'd something like this at FlashOnTheBeach 2007 -
have
a look at quasimondo.com to see the 2D or not 2D lecture - not sure if
he
released any code though?

 http://lectures.quasimondo.com/

 Glen

Anthony Pace wrote:



I have figured out how to make flash work as a multi-touch system... I
am
coding it now...

it is so darn simple...
it just came to me after watching a video on how to make your own
multi-touch input device using a webcam a piece of white paper and a box
to
block most of the light so the cam only sees light and dark.

Since it is all based on blobs, and processing the image through a
filter
to break down the logic, and flash has access to web cams, I can just
convert the image to black and white, threshold the image to find the
blobs,
average out a hit test area based on the finger positions, and all that
would come after is putting together the finger gesturing logic.

for instance if two blobs exist around their averaged points and have
not
moved too much or at all, yet there is a third blob that is moving a
significant amount, perform a specific function based on its direction
(directional logic through tracking input fed into basic physics
equations
and Pythagorean concepts)

If someone has beaten me to it, I would love to know; however, if you
beat
me to it, after reading my post, tell me about it and show me your
source so
my life is made easier.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



  

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




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


  

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



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

  


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


Re: [Flashcoders] multi-touch directly in flash...

2009-01-08 Thread Piers Cowburn

There's good stuff by Grant Skinner too: 
http://incomplet.gskinner.com/index2.html#camwriter

Piers


On 8 Jan 2009, at 10:35, Ian Thomas wrote:


Yeah, I absolutely get the idea (as I said, we were discussing it
yesterday - with reference to an infra-red camera, but same
principle). Check out Mario's stuff, there are areas-of-colour
recognition algorithms there which will be of help, I think.

Cheers,
 Ian

On Thu, Jan 8, 2009 at 10:08 AM, Anthony Pace anthony.p...@utoronto.ca 
 wrote:
To my knowledge all flash integration for multi-touch has been made  
possible
by using flosc by ben chun, or with OpenCV and touchLib; however,  
what I am
proposing is that it is possible directly through the use of the  
flash
player and a simple cam rig.  I think that it should be possible,  
and at
least somewhat comparably fast, considering the player doesn't have  
to parse
xml socket data on a continuous basis, and all image conversions  
are done by
the player.  I do concede that doing in c++ will most likely prove  
to be

faster; however, I figure why not try it out.

Since I know c++ somewhat I figure I will probably look at their  
libraries

if I get stuck; yet, in the meanwhile, this is a nifty experiment.

Here is the video that sparked it...
http://www.youtube.com/watch?v=pQpr3W-YmcQ

Colour tracking would be efficient in a system where you have multi  
coloured
thimbles or reflective tape, which is what I was thinking of when I  
came up

with this idea.
http://anthony-pace.deviantart.com/art/add-VR-to-current-FPS-GAMES-91091960

Ian Thomas wrote:


I was actually thinking of Mario's lecture at FoTB 2008 where he  
used
very similar algorithms to read square barcodes (whatever those  
things

are called) from a webcam. Not multitouch, but there's a lot of
similar code (spotting areas of colour, eliminating noise).

Worth a look, Anthony.

Funnily enough we were talking about exactly the same system for
multitouch here yesterday - spotting areas of colour. One of our
developers had seen some demo of a similar system on TV over the
weekend...

Ian

On Thu, Jan 8, 2009 at 9:12 AM, Glen Pike  
g...@engineeredarts.co.uk

wrote:



Hi,

Mario Klingemann demo'd something like this at FlashOnTheBeach  
2007 -

have
a look at quasimondo.com to see the 2D or not 2D lecture - not  
sure if

he
released any code though?

http://lectures.quasimondo.com/

Glen

Anthony Pace wrote:



I have figured out how to make flash work as a multi-touch  
system... I

am
coding it now...

it is so darn simple...
it just came to me after watching a video on how to make your own
multi-touch input device using a webcam a piece of white paper  
and a box

to
block most of the light so the cam only sees light and dark.

Since it is all based on blobs, and processing the image through a
filter
to break down the logic, and flash has access to web cams, I can  
just
convert the image to black and white, threshold the image to  
find the

blobs,
average out a hit test area based on the finger positions, and  
all that

would come after is putting together the finger gesturing logic.

for instance if two blobs exist around their averaged points and  
have

not
moved too much or at all, yet there is a third blob that is  
moving a
significant amount, perform a specific function based on its  
direction

(directional logic through tracking input fed into basic physics
equations
and Pythagorean concepts)

If someone has beaten me to it, I would love to know; however,  
if you

beat
me to it, after reading my post, tell me about it and show me your
source so
my life is made easier.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





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




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




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


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


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


RE: [Flashcoders] ActionScript syntax enhancements?

2009-01-08 Thread Merrill, Jason
I agree along the lines of Mark. 

From a developer perspective, I'm always cautious of different flavors of 
languages which require special compilers, or alternative languages and 
compilers, like haxe.  Several reasons:

1.  What happens when you leave the project/company and the next developer has 
to pick it up and make changes?  He/she has to learn the non-standard language 
and install some other compiler and learn to use it as well.  That's if he/she 
even knows what you used in the first place.
2.  Time it can take to learn something like haxe doesn't seem to give you 
enough ROI - at least my impression having looked at haxe as an alternative.
3.  Explaining and justifying to your boss why you used non-standard approaches 
can be hard, even if you understand the benefits.  Sourcecode is now in a form 
that very few people understand.  

Anyway, just my thoughts - not to discourage you, I think what you're doing is 
really cool - just thought maybe you's want to know what challenges you may 
face selling it to developers - in FOSS form or not.


Jason Merrill
Bank of America Instructional Technology  Media   ·   GCIB  Staff Support 
LLD

Interested in Flash Platform technologies?  Join the Bank of America Flash 
Platform Developer Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning 
Blog and subscribe.






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


RE: [Flashcoders] design pattern diagrams...

2009-01-08 Thread Merrill, Jason
 Also, MVC's are made up Observer, Strategy, and Composite patterns. Those
need to be understood first.

There are many ways to use MVC, and you certainly don't have to understand 
those other patterns first.  Maybe how you use MVC.  You can use simpler forms 
of MVC without those patterns. 

 But I am trying to understand why you would go through all that trouble, 
 when calling the function in the parent, if it is a very small application 
 unlikely to be expanded upon, is so much simpler?

Anthony - for very small applications, no, you wouldn't use a framework, and 
maybe not even a design pattern  - perhaps just a simple one.   You could call 
the funciton in the parent, sure, but know that it's not a good habit to get 
into, and will cause headaches in larger applications because you're doing what 
is known as tight coupling.  Loose coupled architecture, when possible without 
over-coding an app, is the way to go in most projects. Event dispatching and 
event listening is simple to implement anyway IMO.


Jason Merrill
Bank of America Instructional Technology  Media   ·   GCIB  Staff Support 
LLD

Interested in Flash Platform technologies?  Join the Bank of America Flash 
Platform Developer Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning 
Blog and subscribe.






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Joel Stransky
Sent: Wednesday, January 07, 2009 6:38 PM
To: Flash Coders List
Subject: Re: [Flashcoders] design pattern diagrams...

@Jason
I'm talking about the oreilly book Actionscript 3.0 Design Patterns by
William Sanders and Chandima Cumaranatunge. Enter chapters are shifted off
the page but there are addendum on the site.

Also, MVC's are made up Observer, Strategy, and Composite patterns. Those
need to be understood first.


@Anthony,
From what I've understood, if you aren't going to need to go back an
edit/extend the app frequently or work on a team, there really isn't much
benefit to using design patterns. They do however lend to re-using old
classes in new apps so you that you don't have to start from scratch each
time.

On Wed, Jan 7, 2009 at 6:16 PM, Anthony Pace anthony.p...@utoronto.cawrote:

 But I am trying to understand why you would go through all that trouble,
 when calling the function in the parent, if it is a very small application
 unlikely to be expanded upon, is so much simpler?  maybe for code re-use in
 a bigger application sure; however, doesn't it seem weird that tightly woven
 and fast executing code is not prized anymore, and there is a preference for
 bloated object oriented frameworks?  All in the name of making the
 development cycle smaller and thus less costly; yet, what about increased
 file size issues and decreased performance?

 More objects and more event listeners == less performance and higher memory
 usage in my understanding.




 Ron Wheeler wrote:

 Head First Design Patterns is very easy to pick up. No typos, lots and
 lots of pictures, illustrations and code examples.

 http://oreilly.com/catalog/9780596007126/?CMP=AFC-ak_bookATT=Head+First+Design+Patterns

 http://www.headfirstlabs.com/books/hfdp/ for a quick overview and a
 typical illustration

 http://oreilly.com/catalog/9780596007126/toc.pdf  Read the section on the
 Observer Pattern. It might be what you are looking for.

 Merrill, Jason wrote:

 I think just a quick answer to your questions which may help a lot is to
 check into understanding MVC - the Model-View-Controller design pattern.
  Probably one of the most common pattern used and one that other coding
 design frameworks use as well for part of their operations.

 So there are also frameworks like Cairngorm which takes MVC and other
 patterns together and go a lot further, it has things like Commands to
 facilitate communication.  But simple MVC using event listeners and
 dispatchers is probably the best place to start to get what you want to do
 going.


 Jason Merrill
 Bank of America Instructional Technology  Media   ·   GCIB  Staff
 Support LLD

 Interested in Flash Platform technologies?  Join the Bank of America
 Flash Platform Developer Community Interested in innovative ideas in
 Learning?  Check out the Innovative Learning Blog and subscribe.






 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Anthony Pace
 Sent: Wednesday, January 07, 2009 3:48 PM
 To: Flash Coders List
 Subject: [Flashcoders] design pattern diagrams...

 I am looking to get more info on the composition of design patterns and
 which ones are used most often in the corporate world.

 Diagrams accompanied by code examples would be awesome.  I have been able
 to find stuff in the past; yet, I really want to know what is generally
 preferred?

 I like to try and make things black box; however, it just seems illogical
 

Re: [Flashcoders] NativeMenuItem keyModifier with function key (AIR)

2009-01-08 Thread Zeh Fernando
Hey Sydney,

Thanks for the links. The first two didn't do anything for me - they
basically repeat what's in the documentation and provide no
information about the advanced keys - but the last one stating it is a
bug is at least a relief as it means it's known and should (hopefully)
be fixed soon.

Thanks again,
Zeh

On Thu, Jan 8, 2009 at 6:25 AM, Sidney de Koning sid...@funky-monkey.nl wrote:
 Oh one more link for you:

 Function key can't be used as keyEquivalents
 http://bugs.adobe.com/jira/browse/SDK-17901

 Good luck,

 Sid


 On Jan 8, 2009, at 1:46 AM, Zeh Fernando wrote:

 Hey list,

 Do people here work with AIR? Or is there any better-aligned mailing list?

 Anyway. I'm using AIR 1.5's NativeMenuItem's .keyEquivalent and
 .keyEquivalentModifier. That feature is pretty cool and works like
 this:

   var item:NativeMenuItem = new NativeMenuItem(Do Whatever);
   item.keyEquivalent = d;
   item.keyEquivalentModifiers = [Keyboard.CONTROL];

 Then when the user presses CTRL+D, the menu item is executed.

 (More information at
 http://livedocs.adobe.com/flex/3/html/help.html?content=Menus_2.html)

 I'm having a problem setting the .keyEquivalent, though. It accepts
 strings, so you can't set them to things like Enter, Tab, Del, F1,
 etc.

 You can try doing this:

   var item:NativeMenuItem = new NativeMenuItem(Do Whatever);
   item.keyEquivalent = F1;
   item.keyEquivalentModifiers = [Keyboard.CONTROL];

 And then, funny enough, the menu item will display CTRL+F1 as the
 shortcut; but it won't work. The actual shortcut will be CTRL+F - that
 is, it only takes the first character of the string as the activation
 key (!). The documentation seems to completely ignore the problem,
 very briefly mentioning that .keyEquivalent accepts a string. In fact,
 you can write *anything* as the .keyEquivalent and it'll be shown
 there on the menu, but only the first char matters.

 I tried a lot of different things, like adding Keyboard.F1 to the
 keyEquivalentModifiers array, using Keyboard.F1's key code as a
 keyEquivalent char, using AIR's new .STRING_F1 or KEYNAME_F1
 constants, and things like that. Nothing seems to work though.

 Has somebody ran into that and found a solution that works? Or am I
 imagining things? It seems odd to me that I'm able to create a menu in
 Flash which responds to F1 while I can't do that in AIR using its
 (great) native menus. Of course I can always add the shortcuts as some
 keyboard event listener hidden somewhere, but it'd be less than
 optimal (and wouldn't display the shortcut on the menu).


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

 Sidney de Koning
 Flash / AIR Developer @ www.funky-monkey.nl
 Technical writer @ www.insideria.com




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

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


Re: [Flashcoders] ActionScript syntax enhancements?

2009-01-08 Thread Mark Winterhalder
On Thu, Jan 8, 2009 at 1:35 PM, Merrill, Jason
jason.merr...@bankofamerica.com wrote:
 2.  Time it can take to learn something like haxe doesn't seem to give you 
 enough ROI - at least my impression having looked at haxe as an alternative.

I have to disagree here -- learning haXe has definitely payed off for
me, and I very much enjoy using it. There are several reasons, from
performance over convenience to features like generics that helped me
to learn to think differently.
The difference is that haXe has some radical improvements that (IMHO)
outweigh the disadvantages of breaking compatibility with the sources
the rest of the community produces. Also, as I already mentioned, it
can generate AS3, and you can still use third-party libraries (it
automatically generates the headers for you).

The problem I'm having is with minor changes for convenience, for the
reasons you listed. But, if there's no lock-in and sources can be
standardized easily, then it could be a valuable alternative.
Otherwise, yeah, those would be the roadblocks that would slow or even
limit acceptance.

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


Re: [Flashcoders] ActionScript syntax enhancements?

2009-01-08 Thread Anthony Pace
The only thing that I would suggest, is that he tighten the compiler 
code and perhaps expose low level features if it is possible to do so 
just through an edit of the p code.  It is still compiled into pcode 
right? or am I out of date...



Merrill, Jason wrote:
I agree along the lines of Mark. 


From a developer perspective, I'm always cautious of different flavors of 
languages which require special compilers, or alternative languages and compilers, 
like haxe.  Several reasons:

1.  What happens when you leave the project/company and the next developer has 
to pick it up and make changes?  He/she has to learn the non-standard language 
and install some other compiler and learn to use it as well.  That's if he/she 
even knows what you used in the first place.
2.  Time it can take to learn something like haxe doesn't seem to give you 
enough ROI - at least my impression having looked at haxe as an alternative.
3.  Explaining and justifying to your boss why you used non-standard approaches can be hard, even if you understand the benefits.  Sourcecode is now in a form that very few people understand.  


Anyway, just my thoughts - not to discourage you, I think what you're doing is really 
cool - just thought maybe you's want to know what challenges you may face selling 
it to developers - in FOSS form or not.


Jason Merrill
Bank of America Instructional Technology  Media   ·   GCIB  Staff Support 
LLD

Interested in Flash Platform technologies?  Join the Bank of America Flash Platform Developer Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning Blog and subscribe.







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

  


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


Re: [Flashcoders] NativeMenuItem keyModifier with function key (AIR)

2009-01-08 Thread Sidney de Koning

No problem :)

Sid

On Jan 8, 2009, at 2:04 PM, Zeh Fernando wrote:


Hey Sydney,

Thanks for the links. The first two didn't do anything for me - they
basically repeat what's in the documentation and provide no
information about the advanced keys - but the last one stating it is a
bug is at least a relief as it means it's known and should (hopefully)
be fixed soon.

Thanks again,
Zeh

On Thu, Jan 8, 2009 at 6:25 AM, Sidney de Koning sid...@funky-monkey.nl 
 wrote:

Oh one more link for you:

Function key can't be used as keyEquivalents
http://bugs.adobe.com/jira/browse/SDK-17901

Good luck,

Sid


On Jan 8, 2009, at 1:46 AM, Zeh Fernando wrote:


Hey list,

Do people here work with AIR? Or is there any better-aligned  
mailing list?


Anyway. I'm using AIR 1.5's NativeMenuItem's .keyEquivalent and
.keyEquivalentModifier. That feature is pretty cool and works like
this:

 var item:NativeMenuItem = new NativeMenuItem(Do Whatever);
 item.keyEquivalent = d;
 item.keyEquivalentModifiers = [Keyboard.CONTROL];

Then when the user presses CTRL+D, the menu item is executed.

(More information at
http://livedocs.adobe.com/flex/3/html/help.html? 
content=Menus_2.html)


I'm having a problem setting the .keyEquivalent, though. It accepts
strings, so you can't set them to things like Enter, Tab, Del, F1,
etc.

You can try doing this:

 var item:NativeMenuItem = new NativeMenuItem(Do Whatever);
 item.keyEquivalent = F1;
 item.keyEquivalentModifiers = [Keyboard.CONTROL];

And then, funny enough, the menu item will display CTRL+F1 as the
shortcut; but it won't work. The actual shortcut will be CTRL+F -  
that
is, it only takes the first character of the string as the  
activation

key (!). The documentation seems to completely ignore the problem,
very briefly mentioning that .keyEquivalent accepts a string. In  
fact,

you can write *anything* as the .keyEquivalent and it'll be shown
there on the menu, but only the first char matters.

I tried a lot of different things, like adding Keyboard.F1 to the
keyEquivalentModifiers array, using Keyboard.F1's key code as a
keyEquivalent char, using AIR's new .STRING_F1 or KEYNAME_F1
constants, and things like that. Nothing seems to work though.

Has somebody ran into that and found a solution that works? Or am I
imagining things? It seems odd to me that I'm able to create a  
menu in

Flash which responds to F1 while I can't do that in AIR using its
(great) native menus. Of course I can always add the shortcuts as  
some

keyboard event listener hidden somewhere, but it'd be less than
optimal (and wouldn't display the shortcut on the menu).


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


Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical writer @ www.insideria.com




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


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


Sidney de Koning
Flash / AIR Developer @ www.funky-monkey.nl
Technical writer @ www.insideria.com




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


[Flashcoders] Auto Reply: Flashcoders Digest, Vol 16, Issue 9

2009-01-08 Thread jk
Vielen Dank für Ihre Nachricht.

Ich bin bis einschließlich 9. Januar 2009 nicht erreichbar. In dringenden 
Fällen wenden Sie sich bitte an Herrn Peer Schmidt-Soltau 
(p...@masterkitchen.de) oder Frau Hannah Witopil (han...@masterkitchen.de).

Vielen Dank
Johannes Killinger

Master Kitchen GmbH
Audiovisuelle Medienentwicklung
Schorndorfer Straße 42/2 • 71638 Ludwigsburg

Telefon (07141) 4 88 89-12
Telefax (07141) 4 88 89-19

http://www.masterkitchen.de



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


Re: [Flashcoders] multi-touch directly in flash...

2009-01-08 Thread Andrei Thomaz
hello,
I've ported a blob detection Processing library, blobDetection, to AS3. It
is slow, but maybe you can optimise it.
http://andreithomaz.com/labs/?p=8

Using BitmapData.getBoundsRect(), I started BitmapBlobDetection. It works
faster:
http://andreithomaz.com/labs/?cat=4

I've also developed a kind of register of visual objects to be affected by
blobs movements. I need to make some examples before publishing it, but feel
free to ask me the files privately. I have used the register in the
touchscreen jukebox (http://andreithomaz.com/labs/?p=21).


best,
andrei



On Thu, Jan 8, 2009 at 8:58 AM, Piers Cowburn m...@pierscowburn.com wrote:

 There's good stuff by Grant Skinner too:
 http://incomplet.gskinner.com/index2.html#camwriter

 Piers



 On 8 Jan 2009, at 10:35, Ian Thomas wrote:

  Yeah, I absolutely get the idea (as I said, we were discussing it
 yesterday - with reference to an infra-red camera, but same
 principle). Check out Mario's stuff, there are areas-of-colour
 recognition algorithms there which will be of help, I think.

 Cheers,
  Ian

 On Thu, Jan 8, 2009 at 10:08 AM, Anthony Pace anthony.p...@utoronto.ca
 wrote:

 To my knowledge all flash integration for multi-touch has been made
 possible
 by using flosc by ben chun, or with OpenCV and touchLib; however, what I
 am
 proposing is that it is possible directly through the use of the flash
 player and a simple cam rig.  I think that it should be possible, and at
 least somewhat comparably fast, considering the player doesn't have to
 parse
 xml socket data on a continuous basis, and all image conversions are done
 by
 the player.  I do concede that doing in c++ will most likely prove to be
 faster; however, I figure why not try it out.

 Since I know c++ somewhat I figure I will probably look at their
 libraries
 if I get stuck; yet, in the meanwhile, this is a nifty experiment.

 Here is the video that sparked it...
 http://www.youtube.com/watch?v=pQpr3W-YmcQ

 Colour tracking would be efficient in a system where you have multi
 coloured
 thimbles or reflective tape, which is what I was thinking of when I came
 up
 with this idea.

 http://anthony-pace.deviantart.com/art/add-VR-to-current-FPS-GAMES-91091960

 Ian Thomas wrote:


 I was actually thinking of Mario's lecture at FoTB 2008 where he used
 very similar algorithms to read square barcodes (whatever those things
 are called) from a webcam. Not multitouch, but there's a lot of
 similar code (spotting areas of colour, eliminating noise).

 Worth a look, Anthony.

 Funnily enough we were talking about exactly the same system for
 multitouch here yesterday - spotting areas of colour. One of our
 developers had seen some demo of a similar system on TV over the
 weekend...

 Ian

 On Thu, Jan 8, 2009 at 9:12 AM, Glen Pike g...@engineeredarts.co.uk
 wrote:


 Hi,

 Mario Klingemann demo'd something like this at FlashOnTheBeach 2007 -
 have
 a look at quasimondo.com to see the 2D or not 2D lecture - not sure
 if
 he
 released any code though?

 http://lectures.quasimondo.com/

 Glen

 Anthony Pace wrote:


 I have figured out how to make flash work as a multi-touch system... I
 am
 coding it now...

 it is so darn simple...
 it just came to me after watching a video on how to make your own
 multi-touch input device using a webcam a piece of white paper and a
 box
 to
 block most of the light so the cam only sees light and dark.

 Since it is all based on blobs, and processing the image through a
 filter
 to break down the logic, and flash has access to web cams, I can just
 convert the image to black and white, threshold the image to find the
 blobs,
 average out a hit test area based on the finger positions, and all
 that
 would come after is putting together the finger gesturing logic.

 for instance if two blobs exist around their averaged points and have
 not
 moved too much or at all, yet there is a third blob that is moving a
 significant amount, perform a specific function based on its direction
 (directional logic through tracking input fed into basic physics
 equations
 and Pythagorean concepts)

 If someone has beaten me to it, I would love to know; however, if you
 beat
 me to it, after reading my post, tell me about it and show me your
 source so
 my life is made easier.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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



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



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

  

Re: [Flashcoders] multi-touch directly in flash...

2009-01-08 Thread Andrei Thomaz
and, of course, don't miss the NUI group forum:
http://nuigroup.com/forums/viewforum/33/

and the original version of blobDetection
http://v3ga.net/processing/BlobDetection/


best,
andrei


On Thu, Jan 8, 2009 at 12:10 PM, Andrei Thomaz andreitho...@gmail.comwrote:

 hello,
 I've ported a blob detection Processing library, blobDetection, to AS3. It
 is slow, but maybe you can optimise it.
 http://andreithomaz.com/labs/?p=8

 Using BitmapData.getBoundsRect(), I started BitmapBlobDetection. It works
 faster:
 http://andreithomaz.com/labs/?cat=4

 I've also developed a kind of register of visual objects to be affected by
 blobs movements. I need to make some examples before publishing it, but feel
 free to ask me the files privately. I have used the register in the
 touchscreen jukebox (http://andreithomaz.com/labs/?p=21).


 best,
 andrei



 On Thu, Jan 8, 2009 at 8:58 AM, Piers Cowburn m...@pierscowburn.com wrote:

 There's good stuff by Grant Skinner too:
 http://incomplet.gskinner.com/index2.html#camwriter

 Piers



 On 8 Jan 2009, at 10:35, Ian Thomas wrote:

  Yeah, I absolutely get the idea (as I said, we were discussing it
 yesterday - with reference to an infra-red camera, but same
 principle). Check out Mario's stuff, there are areas-of-colour
 recognition algorithms there which will be of help, I think.

 Cheers,
  Ian

 On Thu, Jan 8, 2009 at 10:08 AM, Anthony Pace anthony.p...@utoronto.ca
 wrote:

 To my knowledge all flash integration for multi-touch has been made
 possible
 by using flosc by ben chun, or with OpenCV and touchLib; however, what I
 am
 proposing is that it is possible directly through the use of the flash
 player and a simple cam rig.  I think that it should be possible, and at
 least somewhat comparably fast, considering the player doesn't have to
 parse
 xml socket data on a continuous basis, and all image conversions are
 done by
 the player.  I do concede that doing in c++ will most likely prove to be
 faster; however, I figure why not try it out.

 Since I know c++ somewhat I figure I will probably look at their
 libraries
 if I get stuck; yet, in the meanwhile, this is a nifty experiment.

 Here is the video that sparked it...
 http://www.youtube.com/watch?v=pQpr3W-YmcQ

 Colour tracking would be efficient in a system where you have multi
 coloured
 thimbles or reflective tape, which is what I was thinking of when I came
 up
 with this idea.

 http://anthony-pace.deviantart.com/art/add-VR-to-current-FPS-GAMES-91091960

 Ian Thomas wrote:


 I was actually thinking of Mario's lecture at FoTB 2008 where he used
 very similar algorithms to read square barcodes (whatever those things
 are called) from a webcam. Not multitouch, but there's a lot of
 similar code (spotting areas of colour, eliminating noise).

 Worth a look, Anthony.

 Funnily enough we were talking about exactly the same system for
 multitouch here yesterday - spotting areas of colour. One of our
 developers had seen some demo of a similar system on TV over the
 weekend...

 Ian

 On Thu, Jan 8, 2009 at 9:12 AM, Glen Pike g...@engineeredarts.co.uk
 wrote:


 Hi,

 Mario Klingemann demo'd something like this at FlashOnTheBeach 2007 -
 have
 a look at quasimondo.com to see the 2D or not 2D lecture - not sure
 if
 he
 released any code though?

 http://lectures.quasimondo.com/

 Glen

 Anthony Pace wrote:


 I have figured out how to make flash work as a multi-touch system...
 I
 am
 coding it now...

 it is so darn simple...
 it just came to me after watching a video on how to make your own
 multi-touch input device using a webcam a piece of white paper and a
 box
 to
 block most of the light so the cam only sees light and dark.

 Since it is all based on blobs, and processing the image through a
 filter
 to break down the logic, and flash has access to web cams, I can just
 convert the image to black and white, threshold the image to find the
 blobs,
 average out a hit test area based on the finger positions, and all
 that
 would come after is putting together the finger gesturing logic.

 for instance if two blobs exist around their averaged points and have
 not
 moved too much or at all, yet there is a third blob that is moving a
 significant amount, perform a specific function based on its
 direction
 (directional logic through tracking input fed into basic physics
 equations
 and Pythagorean concepts)

 If someone has beaten me to it, I would love to know; however, if you
 beat
 me to it, after reading my post, tell me about it and show me your
 source so
 my life is made easier.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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



 ___
 Flashcoders mailing list
 

Re: [Flashcoders] multi-touch directly in flash...

2009-01-08 Thread Anthony Pace

great info...

Before I peruse through your library, I have a few questions.  Do you 
test for the largest circle or rectangle that can fit in the blob?  Or 
for the centre point of the blob? or do you look for a circle or 
rectangle that encapsulates the blob, and then possibly locate an 
approximate centre.


I would think just locating the centre point of a rectangle or circle 
would be faster to track than looking for edges.  What happens when the 
fingers are placed together? do you count them as one finger and then 
add a size restriction? Do you restrict actions based on the size of a 
blob?  if so how has that worked out?


I am definitely going to pick through it; yet, I would love some insight.

Andrei Thomaz wrote:

and, of course, don't miss the NUI group forum:
http://nuigroup.com/forums/viewforum/33/

and the original version of blobDetection
http://v3ga.net/processing/BlobDetection/


best,
andrei


On Thu, Jan 8, 2009 at 12:10 PM, Andrei Thomaz andreitho...@gmail.comwrote:

  

hello,
I've ported a blob detection Processing library, blobDetection, to AS3. It
is slow, but maybe you can optimise it.
http://andreithomaz.com/labs/?p=8

Using BitmapData.getBoundsRect(), I started BitmapBlobDetection. It works
faster:
http://andreithomaz.com/labs/?cat=4

I've also developed a kind of register of visual objects to be affected by
blobs movements. I need to make some examples before publishing it, but feel
free to ask me the files privately. I have used the register in the
touchscreen jukebox (http://andreithomaz.com/labs/?p=21).


best,
andrei



On Thu, Jan 8, 2009 at 8:58 AM, Piers Cowburn m...@pierscowburn.com wrote:



There's good stuff by Grant Skinner too:
http://incomplet.gskinner.com/index2.html#camwriter

Piers



On 8 Jan 2009, at 10:35, Ian Thomas wrote:

 Yeah, I absolutely get the idea (as I said, we were discussing it
  

yesterday - with reference to an infra-red camera, but same
principle). Check out Mario's stuff, there are areas-of-colour
recognition algorithms there which will be of help, I think.

Cheers,
 Ian

On Thu, Jan 8, 2009 at 10:08 AM, Anthony Pace anthony.p...@utoronto.ca
wrote:



To my knowledge all flash integration for multi-touch has been made
possible
by using flosc by ben chun, or with OpenCV and touchLib; however, what I
am
proposing is that it is possible directly through the use of the flash
player and a simple cam rig.  I think that it should be possible, and at
least somewhat comparably fast, considering the player doesn't have to
parse
xml socket data on a continuous basis, and all image conversions are
done by
the player.  I do concede that doing in c++ will most likely prove to be
faster; however, I figure why not try it out.

Since I know c++ somewhat I figure I will probably look at their
libraries
if I get stuck; yet, in the meanwhile, this is a nifty experiment.

Here is the video that sparked it...
http://www.youtube.com/watch?v=pQpr3W-YmcQ

Colour tracking would be efficient in a system where you have multi
coloured
thimbles or reflective tape, which is what I was thinking of when I came
up
with this idea.

http://anthony-pace.deviantart.com/art/add-VR-to-current-FPS-GAMES-91091960

Ian Thomas wrote:

  

I was actually thinking of Mario's lecture at FoTB 2008 where he used
very similar algorithms to read square barcodes (whatever those things
are called) from a webcam. Not multitouch, but there's a lot of
similar code (spotting areas of colour, eliminating noise).

Worth a look, Anthony.

Funnily enough we were talking about exactly the same system for
multitouch here yesterday - spotting areas of colour. One of our
developers had seen some demo of a similar system on TV over the
weekend...

Ian

On Thu, Jan 8, 2009 at 9:12 AM, Glen Pike g...@engineeredarts.co.uk
wrote:




Hi,

Mario Klingemann demo'd something like this at FlashOnTheBeach 2007 -
have
a look at quasimondo.com to see the 2D or not 2D lecture - not sure
if
he
released any code though?

http://lectures.quasimondo.com/

Glen

Anthony Pace wrote:


  

I have figured out how to make flash work as a multi-touch system...
I
am
coding it now...

it is so darn simple...
it just came to me after watching a video on how to make your own
multi-touch input device using a webcam a piece of white paper and a
box
to
block most of the light so the cam only sees light and dark.

Since it is all based on blobs, and processing the image through a
filter
to break down the logic, and flash has access to web cams, I can just
convert the image to black and white, threshold the image to find the
blobs,
average out a hit test area based on the finger positions, and all
that
would come after is putting together the finger gesturing logic.

for instance if two blobs exist around their averaged points and have
not
moved too much or at all, yet there is a third blob that is moving a
significant amount, perform a specific function based on its
direction

Re: [Flashcoders] multi-touch directly in flash...

2009-01-08 Thread Andrei Thomaz
hello Anthony,
you can set some parameters when using the library, to get what you want.
For example:

- you can set what will be the maximum size of a blob. If the blob is
greater than the maximum size, the algorithm checks if there is really a
large blob, or several small blobs. If the blob is smaller them maximum
size, the algorithm stops there. Of course, smaller the maximum size, slower
the blob detection will run;
- you can set if you want edges or just the bounding rectangles;

So, the library can see fingers as several blobs, or as just one blob, based
on parameters given.


I've also written some classes to make blob tracking, but I haven't
published them in my blog yet because I want to write some docs and
examples. But I think they can be useful for you, so you can grab them here:
http://www.andreithomaz.com/arquivos/blob_tracking.zip

best,
andrei




On Thu, Jan 8, 2009 at 12:47 PM, Anthony Pace anthony.p...@utoronto.cawrote:

 great info...

 Before I peruse through your library, I have a few questions.  Do you test
 for the largest circle or rectangle that can fit in the blob?  Or for the
 centre point of the blob? or do you look for a circle or rectangle that
 encapsulates the blob, and then possibly locate an approximate centre.

 I would think just locating the centre point of a rectangle or circle would
 be faster to track than looking for edges.  What happens when the fingers
 are placed together? do you count them as one finger and then add a size
 restriction? Do you restrict actions based on the size of a blob?  if so how
 has that worked out?

 I am definitely going to pick through it; yet, I would love some insight.


 Andrei Thomaz wrote:

 and, of course, don't miss the NUI group forum:
 http://nuigroup.com/forums/viewforum/33/

 and the original version of blobDetection
 http://v3ga.net/processing/BlobDetection/


 best,
 andrei


 On Thu, Jan 8, 2009 at 12:10 PM, Andrei Thomaz andreitho...@gmail.com
 wrote:



 hello,
 I've ported a blob detection Processing library, blobDetection, to AS3.
 It
 is slow, but maybe you can optimise it.
 http://andreithomaz.com/labs/?p=8

 Using BitmapData.getBoundsRect(), I started BitmapBlobDetection. It works
 faster:
 http://andreithomaz.com/labs/?cat=4

 I've also developed a kind of register of visual objects to be affected
 by
 blobs movements. I need to make some examples before publishing it, but
 feel
 free to ask me the files privately. I have used the register in the
 touchscreen jukebox (http://andreithomaz.com/labs/?p=21).


 best,
 andrei



 On Thu, Jan 8, 2009 at 8:58 AM, Piers Cowburn m...@pierscowburn.com
 wrote:



 There's good stuff by Grant Skinner too:
 http://incomplet.gskinner.com/index2.html#camwriter

 Piers



 On 8 Jan 2009, at 10:35, Ian Thomas wrote:

  Yeah, I absolutely get the idea (as I said, we were discussing it


 yesterday - with reference to an infra-red camera, but same
 principle). Check out Mario's stuff, there are areas-of-colour
 recognition algorithms there which will be of help, I think.

 Cheers,
  Ian

 On Thu, Jan 8, 2009 at 10:08 AM, Anthony Pace 
 anthony.p...@utoronto.ca
 wrote:



 To my knowledge all flash integration for multi-touch has been made
 possible
 by using flosc by ben chun, or with OpenCV and touchLib; however, what
 I
 am
 proposing is that it is possible directly through the use of the flash
 player and a simple cam rig.  I think that it should be possible, and
 at
 least somewhat comparably fast, considering the player doesn't have to
 parse
 xml socket data on a continuous basis, and all image conversions are
 done by
 the player.  I do concede that doing in c++ will most likely prove to
 be
 faster; however, I figure why not try it out.

 Since I know c++ somewhat I figure I will probably look at their
 libraries
 if I get stuck; yet, in the meanwhile, this is a nifty experiment.

 Here is the video that sparked it...
 http://www.youtube.com/watch?v=pQpr3W-YmcQ

 Colour tracking would be efficient in a system where you have multi
 coloured
 thimbles or reflective tape, which is what I was thinking of when I
 came
 up
 with this idea.


 http://anthony-pace.deviantart.com/art/add-VR-to-current-FPS-GAMES-91091960

 Ian Thomas wrote:



 I was actually thinking of Mario's lecture at FoTB 2008 where he used
 very similar algorithms to read square barcodes (whatever those
 things
 are called) from a webcam. Not multitouch, but there's a lot of
 similar code (spotting areas of colour, eliminating noise).

 Worth a look, Anthony.

 Funnily enough we were talking about exactly the same system for
 multitouch here yesterday - spotting areas of colour. One of our
 developers had seen some demo of a similar system on TV over the
 weekend...

 Ian

 On Thu, Jan 8, 2009 at 9:12 AM, Glen Pike g...@engineeredarts.co.uk
 
 wrote:




 Hi,

 Mario Klingemann demo'd something like this at FlashOnTheBeach 2007
 -
 have
 a look at quasimondo.com to see the 2D or not 2D lecture - not
 sure
 if
 

Re: [Flashcoders] multi-touch directly in flash...

2009-01-08 Thread Anthony Pace

Thank you very much for the zip... I look forward to nosing through it.

Andrei Thomaz wrote:

hello Anthony,
you can set some parameters when using the library, to get what you want.
For example:

- you can set what will be the maximum size of a blob. If the blob is
greater than the maximum size, the algorithm checks if there is really a
large blob, or several small blobs. If the blob is smaller them maximum
size, the algorithm stops there. Of course, smaller the maximum size, slower
the blob detection will run;
- you can set if you want edges or just the bounding rectangles;

So, the library can see fingers as several blobs, or as just one blob, based
on parameters given.


I've also written some classes to make blob tracking, but I haven't
published them in my blog yet because I want to write some docs and
examples. But I think they can be useful for you, so you can grab them here:
http://www.andreithomaz.com/arquivos/blob_tracking.zip

best,
andrei




On Thu, Jan 8, 2009 at 12:47 PM, Anthony Pace anthony.p...@utoronto.cawrote:

  

great info...

Before I peruse through your library, I have a few questions.  Do you test
for the largest circle or rectangle that can fit in the blob?  Or for the
centre point of the blob? or do you look for a circle or rectangle that
encapsulates the blob, and then possibly locate an approximate centre.

I would think just locating the centre point of a rectangle or circle would
be faster to track than looking for edges.  What happens when the fingers
are placed together? do you count them as one finger and then add a size
restriction? Do you restrict actions based on the size of a blob?  if so how
has that worked out?

I am definitely going to pick through it; yet, I would love some insight.


Andrei Thomaz wrote:



and, of course, don't miss the NUI group forum:
http://nuigroup.com/forums/viewforum/33/

and the original version of blobDetection
http://v3ga.net/processing/BlobDetection/


best,
andrei


On Thu, Jan 8, 2009 at 12:10 PM, Andrei Thomaz andreitho...@gmail.com
  

wrote:



  

hello,
I've ported a blob detection Processing library, blobDetection, to AS3.
It
is slow, but maybe you can optimise it.
http://andreithomaz.com/labs/?p=8

Using BitmapData.getBoundsRect(), I started BitmapBlobDetection. It works
faster:
http://andreithomaz.com/labs/?cat=4

I've also developed a kind of register of visual objects to be affected
by
blobs movements. I need to make some examples before publishing it, but
feel
free to ask me the files privately. I have used the register in the
touchscreen jukebox (http://andreithomaz.com/labs/?p=21).


best,
andrei



On Thu, Jan 8, 2009 at 8:58 AM, Piers Cowburn m...@pierscowburn.com
wrote:





There's good stuff by Grant Skinner too:
http://incomplet.gskinner.com/index2.html#camwriter

Piers



On 8 Jan 2009, at 10:35, Ian Thomas wrote:

 Yeah, I absolutely get the idea (as I said, we were discussing it


  

yesterday - with reference to an infra-red camera, but same
principle). Check out Mario's stuff, there are areas-of-colour
recognition algorithms there which will be of help, I think.

Cheers,
 Ian

On Thu, Jan 8, 2009 at 10:08 AM, Anthony Pace 
anthony.p...@utoronto.ca
wrote:





To my knowledge all flash integration for multi-touch has been made
possible
by using flosc by ben chun, or with OpenCV and touchLib; however, what
I
am
proposing is that it is possible directly through the use of the flash
player and a simple cam rig.  I think that it should be possible, and
at
least somewhat comparably fast, considering the player doesn't have to
parse
xml socket data on a continuous basis, and all image conversions are
done by
the player.  I do concede that doing in c++ will most likely prove to
be
faster; however, I figure why not try it out.

Since I know c++ somewhat I figure I will probably look at their
libraries
if I get stuck; yet, in the meanwhile, this is a nifty experiment.

Here is the video that sparked it...
http://www.youtube.com/watch?v=pQpr3W-YmcQ

Colour tracking would be efficient in a system where you have multi
coloured
thimbles or reflective tape, which is what I was thinking of when I
came
up
with this idea.


http://anthony-pace.deviantart.com/art/add-VR-to-current-FPS-GAMES-91091960

Ian Thomas wrote:



  

I was actually thinking of Mario's lecture at FoTB 2008 where he used
very similar algorithms to read square barcodes (whatever those
things
are called) from a webcam. Not multitouch, but there's a lot of
similar code (spotting areas of colour, eliminating noise).

Worth a look, Anthony.

Funnily enough we were talking about exactly the same system for
multitouch here yesterday - spotting areas of colour. One of our
developers had seen some demo of a similar system on TV over the
weekend...

Ian

On Thu, Jan 8, 2009 at 9:12 AM, Glen Pike g...@engineeredarts.co.uk

wrote:







Hi,

Mario Klingemann demo'd 

Re: A message from the list admin: YOU ARE DOING IT WRONG (was: Re: [Flashcoders] Hi Flash Coders List, you were invited to join the gamer's social network)

2009-01-08 Thread Steve Mathews
So how about unsubscribing this jk (j...@masterkitchen.d) guy as his
auto-reply is quite old already.
Thanks,
Steve

On Wed, Jan 7, 2009 at 4:10 PM, Dave Watts dwa...@figleaf.com wrote:

 Please don't send invitations to these sorts of things to the list. If
 you can't apply the good sense to do that, I will unsubscribe you.

 On Wed, Jan 7, 2009 at 5:54 PM, jdgiotta notificati...@playfire.com
 wrote:
  Hey Flash Coders List,
 
  Your friend jdgio...@gmail.com (jdgiotta) has invited you
  to join the new social network for gamers, Playfire.com.
 
  Click here to check it out: http://www.playfire.com/?rc=48b6b6387783ecc9
 
  At Playfire.com, you can:
 
  Create a killer profile to show off all your games
   (we have over 40,000 games in the database!)
  Add your friends and follow what they're playing
  Stay up to date with news, videos and sceenshots for the games you track
  Hang out with other gamers and have fun!
  It only takes a few minutes to sign up, so have a look now.
 
  Warm regards,
 
  Playfire Team
 
 
  UUMC Ltd., 19 Greek St., 1st Floor, London, UK, W1D 4DT
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/

 Fig Leaf Software provides the highest caliber vendor-authorized
 instruction at our training centers in Washington DC, Atlanta,
 Chicago, Baltimore, Northern Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more information!
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] [AS2] Set the default value of a ComboBox

2009-01-08 Thread FlashDev

Hi Guys, happy new year to you all!

I have a combobox added to the stage in the flash IDE and it is 
populated via Actionscript 2 from an external XML file. The trouble is I 
want to automatically select a label in the combobox rather than showing 
the first label which is the current default.


I populate my combobox like this:

combobox1.addItem({data:data1, label:lable1});
combobox1.addItem({data:data2, label:lable2});

Now I have a combobox with 2 labels, label1 and label2. I want label2 to 
display as the default instead of label1, now I understand I could do:


combobox1.selectedIndex = 1;

but I actually want to loop through the combobox labels and match if 
label2 = label2 then select that index, so is there any way I can read 
the labels / data of a combobox? I have tried combobox1.data and 
combobox1.labels, but it just returns undefined?


Thanks in advance
SJM
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] [AS2] Set the default value of a ComboBox

2009-01-08 Thread Eric E. Dolecki
populate with an array, and then go through the array, and use the matching
index.

On Thu, Jan 8, 2009 at 11:29 AM, FlashDev fl...@funkdaweb.com wrote:

 Hi Guys, happy new year to you all!

 I have a combobox added to the stage in the flash IDE and it is populated
 via Actionscript 2 from an external XML file. The trouble is I want to
 automatically select a label in the combobox rather than showing the first
 label which is the current default.

 I populate my combobox like this:

 combobox1.addItem({data:data1, label:lable1});
 combobox1.addItem({data:data2, label:lable2});

 Now I have a combobox with 2 labels, label1 and label2. I want label2 to
 display as the default instead of label1, now I understand I could do:

 combobox1.selectedIndex = 1;

 but I actually want to loop through the combobox labels and match if label2
 = label2 then select that index, so is there any way I can read the labels /
 data of a combobox? I have tried combobox1.data and combobox1.labels, but it
 just returns undefined?

 Thanks in advance
 SJM
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How do you access this mailing list ...

2009-01-08 Thread Bob Wohl
If I remember correctly, we used to have a public archive for this at
chattyfigs but people started fishing emails from it(4 years ago maybe)
and Dave had some issues and maybe even got fed up with the
constant maintenance. This was before the days of google groups.
But being a developer my memory is pretty cloudy ;)
B.

On Wed, Jan 7, 2009 at 9:06 PM, SJF sjf...@gmail.com wrote:

 I find the flashcoders mailing list very helpful and often pick up new
 ideas/techniques from what people post.

 Just wondering how people access this mailing list.

 It would be great if you could configure the SearchCoders Dashboard (which
 is a nice little air app - see link http://www.searchcoders.com/) for this
 FlashCoders list. I'll send them an email (searchcoders) and see if this is
 possible.

 Any thoughts on this.

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

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


Re: [Flashcoders] How do you access this mailing list ...

2009-01-08 Thread Joel Stransky
You might find this helpful but it sure isn't as convenient as a forum
archive would be...
http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com/index.html#45599

On Thu, Jan 8, 2009 at 12:17 PM, Bob Wohl bob.w...@gmail.com wrote:

 If I remember correctly, we used to have a public archive for this at
 chattyfigs but people started fishing emails from it(4 years ago maybe)
 and Dave had some issues and maybe even got fed up with the
 constant maintenance. This was before the days of google groups.
 But being a developer my memory is pretty cloudy ;)
 B.

 On Wed, Jan 7, 2009 at 9:06 PM, SJF sjf...@gmail.com wrote:

  I find the flashcoders mailing list very helpful and often pick up new
  ideas/techniques from what people post.
 
  Just wondering how people access this mailing list.
 
  It would be great if you could configure the SearchCoders Dashboard
 (which
  is a nice little air app - see link http://www.searchcoders.com/) for
 this
  FlashCoders list. I'll send them an email (searchcoders) and see if this
 is
  possible.
 
  Any thoughts on this.
 
  Cheers.
  SF.
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
--Joel Stransky
stranskydesign.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How do you access this mailing list ...

2009-01-08 Thread Glen Pike

Hi,

   There is an online website that shows all the threads from the 
FlashCoders list, but I can't remember it's name.


   I found it when Googling, so try searching for a specific sentence 
from one of the list emails that maybe a month or so old - so Google has 
had time to spider it - the website sorts by thread and stuff, so you 
can walk backwards and forwards.
  
   Also, one of the guys on the list - maybe muzak - had a page on 
their site where you could search the archives, but not sure if that's 
there any more.


   HTH

   Glen

Bob Wohl wrote:

If I remember correctly, we used to have a public archive for this at
chattyfigs but people started fishing emails from it(4 years ago maybe)
and Dave had some issues and maybe even got fed up with the
constant maintenance. This was before the days of google groups.
But being a developer my memory is pretty cloudy ;)
B.

On Wed, Jan 7, 2009 at 9:06 PM, SJF sjf...@gmail.com wrote:

  

I find the flashcoders mailing list very helpful and often pick up new
ideas/techniques from what people post.

Just wondering how people access this mailing list.

It would be great if you could configure the SearchCoders Dashboard (which
is a nice little air app - see link http://www.searchcoders.com/) for this
FlashCoders list. I'll send them an email (searchcoders) and see if this is
possible.

Any thoughts on this.

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



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


  


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


Re: [Flashcoders] [AS2] Set the default value of a ComboBox

2009-01-08 Thread jonathan howe
That sounds like a potential for unneeded redundancy/potential sync errors
if things change later.. Better to use the ComboBox.getItemAt() method,
right?

trace(myBox.getItemAt(4).label);
-jonathan



On Thu, Jan 8, 2009 at 12:12 PM, Eric E. Dolecki edole...@gmail.com wrote:

 populate with an array, and then go through the array, and use the matching
 index.

 On Thu, Jan 8, 2009 at 11:29 AM, FlashDev fl...@funkdaweb.com wrote:

  Hi Guys, happy new year to you all!
 
  I have a combobox added to the stage in the flash IDE and it is populated
  via Actionscript 2 from an external XML file. The trouble is I want to
  automatically select a label in the combobox rather than showing the
 first
  label which is the current default.
 
  I populate my combobox like this:
 
  combobox1.addItem({data:data1, label:lable1});
  combobox1.addItem({data:data2, label:lable2});
 
  Now I have a combobox with 2 labels, label1 and label2. I want label2 to
  display as the default instead of label1, now I understand I could do:
 
  combobox1.selectedIndex = 1;
 
  but I actually want to loop through the combobox labels and match if
 label2
  = label2 then select that index, so is there any way I can read the
 labels /
  data of a combobox? I have tried combobox1.data and combobox1.labels, but
 it
  just returns undefined?
 
  Thanks in advance
  SJM
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 http://ericd.net
 Interactive design and development
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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


Re: [Flashcoders] [AS2] Set the default value of a ComboBox

2009-01-08 Thread FlashDev

Thanks Jonathan, Sorted the problem basically i had to use this code...

function setValue (pValue:String):Void
{
for (var i:Number = 0; i  comboBox.length; i++)
{
if (comboBox.getItemAt(i).data == pValue)
{
comboBox.selectedIndex = i;
break;
}
}
}

setValue (MyVariable);


Regards
SJM


jonathan howe wrote:

That sounds like a potential for unneeded redundancy/potential sync errors
if things change later.. Better to use the ComboBox.getItemAt() method,
right?

trace(myBox.getItemAt(4).label);
-jonathan



On Thu, Jan 8, 2009 at 12:12 PM, Eric E. Dolecki edole...@gmail.com wrote:

  

populate with an array, and then go through the array, and use the matching
index.

On Thu, Jan 8, 2009 at 11:29 AM, FlashDev fl...@funkdaweb.com wrote:



Hi Guys, happy new year to you all!

I have a combobox added to the stage in the flash IDE and it is populated
via Actionscript 2 from an external XML file. The trouble is I want to
automatically select a label in the combobox rather than showing the
  

first


label which is the current default.

I populate my combobox like this:

combobox1.addItem({data:data1, label:lable1});
combobox1.addItem({data:data2, label:lable2});

Now I have a combobox with 2 labels, label1 and label2. I want label2 to
display as the default instead of label1, now I understand I could do:

combobox1.selectedIndex = 1;

but I actually want to loop through the combobox labels and match if
  

label2


= label2 then select that index, so is there any way I can read the
  

labels /


data of a combobox? I have tried combobox1.data and combobox1.labels, but
  

it


just returns undefined?

Thanks in advance
SJM
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


--
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders






  

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


[Flashcoders] Looking for actionscript video code

2009-01-08 Thread Bill Jones
This my first email here. I hope I am posting this to the right area. My
apologies if not.

I want to take a QT.mov and create an flv with event cue points that can
then be controlled using actionscript to stop the video at a specific time
and execute another event, all without end user input.

I have very little experience in working with actionscript 2.0 (sorry, but I
need to do this in 2.0). Can anyone direct me to a book or online tutorial
that covers this in detail?



_
Bill Jones
Interface Developer
Backe Digital Brand Marketing
35 Cricket Terrace Center
Ardmore, PA 19003
Voice: 610-896-9260 x280
Fax: 610-896-9242
bjo...@backemarketing.com

If you want to go forward, click Backe.

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


Re: [Flashcoders] Looking for actionscript video code

2009-01-08 Thread Ruben Quintana
go http://www.gotoandlearn.com

see Flash Video Basics 1 to 8



On Thu, Jan 8, 2009 at 4:38 PM, Bill Jones bjo...@backemarketing.comwrote:

 This my first email here. I hope I am posting this to the right area. My
 apologies if not.

 I want to take a QT.mov and create an flv with event cue points that can
 then be controlled using actionscript to stop the video at a specific time
 and execute another event, all without end user input.

 I have very little experience in working with actionscript 2.0 (sorry, but
 I
 need to do this in 2.0). Can anyone direct me to a book or online tutorial
 that covers this in detail?



 _
 Bill Jones
 Interface Developer
 Backe Digital Brand Marketing
 35 Cricket Terrace Center
 Ardmore, PA 19003
 Voice: 610-896-9260 x280
 Fax: 610-896-9242
 bjo...@backemarketing.com

 If you want to go forward, click Backe.

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

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


Re: [Flashcoders] Looking for actionscript video code

2009-01-08 Thread Nate Beck
Also, using the Adobe Media Encoder (
http://www.communitymx.com/content/article.cfm?cid=77EE2) which installs
with CS3 and CS4 is an extremely easy way to work with video files, adding
cue points, etc...

Cheers,
Nate

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


[Flashcoders] create object with getDefinition and pass parameters using apply ?

2009-01-08 Thread Patrick Matte | BLITZ
I need to create objects using getDefinition and pass parameter to the 
constructor but the problem is that the number of parameters can be different. 
I tried using apply like this but I can't make it work.

var classReference:Object = getDefinitionByName(className);
var object:Object = new classReference.apply(this, array);

Is there any way to do this ?

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


RE: [Flashcoders] create object with getDefinition and pass parameters using apply ?

2009-01-08 Thread Patrick Matte | BLITZ
Well for now I've done this which supports up to 5 arguments but if anyone's 
got a better suggestion please tell me...

var classReference:Object = getDefinitionByName(className);
var object:Object;
switch(array.length) {
case 0:
object = new classReference();
break;
case 1:
object = new classReference(array[0]);
break;
case 2:
object = new classReference(array[0],array[1]);
break;
case 3:
object = new classReference(array[0],array[1],array[2]);
break;
case 4:
object = new 
classReference(array[0],array[1],array[2],array[3]);
break;
case 5:
object = new 
classReference(array[0],array[1],array[2],array[3],array[4]);
break;
}

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Patrick 
Matte|BLITZ
Sent: Thursday, January 08, 2009 7:19 PM
To: Flash Coders List
Subject: [Flashcoders] create object with getDefinition and pass parameters 
using apply ?

I need to create objects using getDefinition and pass parameter to the 
constructor but the problem is that the number of parameters can be different. 
I tried using apply like this but I can't make it work.

var classReference:Object = getDefinitionByName(className);
var object:Object = new classReference.apply(this, array);

Is there any way to do this ?

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

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


Re: [Flashcoders] create object with getDefinition and pass parameters using apply ?

2009-01-08 Thread Joel Stransky
Why not predefine the params as null?

class myClass{
  public function myClass(param1 = null, param2 = null, ... param6 = null){
  }
}

or just use the rest (...) parameter

class myClass{
  public function myClass(...args){
for(var i:uint = 0; i  args.length; i++){
  trace(args[i]);
}
  }
}

On Thu, Jan 8, 2009 at 10:36 PM, Patrick Matte | BLITZ 
pma...@blitzagency.com wrote:

 Well for now I've done this which supports up to 5 arguments but if
 anyone's got a better suggestion please tell me...

 var classReference:Object = getDefinitionByName(className);
 var object:Object;
 switch(array.length) {
case 0:
object = new classReference();
break;
case 1:
object = new classReference(array[0]);
break;
case 2:
object = new classReference(array[0],array[1]);
break;
case 3:
object = new classReference(array[0],array[1],array[2]);
break;
case 4:
object = new
 classReference(array[0],array[1],array[2],array[3]);
break;
case 5:
object = new
 classReference(array[0],array[1],array[2],array[3],array[4]);
break;
 }

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Patrick
 Matte|BLITZ
 Sent: Thursday, January 08, 2009 7:19 PM
 To: Flash Coders List
 Subject: [Flashcoders] create object with getDefinition and pass parameters
 using apply ?

 I need to create objects using getDefinition and pass parameter to the
 constructor but the problem is that the number of parameters can be
 different. I tried using apply like this but I can't make it work.

 var classReference:Object = getDefinitionByName(className);
 var object:Object = new classReference.apply(this, array);

 Is there any way to do this ?

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

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




-- 
--Joel Stransky
stranskydesign.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Flex UI ...

2009-01-08 Thread SJF
I'm using Flex 3 when working on pure actionscript projects.

I often have issues with numerous dialog boxes and parts of the interface
within Flex (see images below):
http://img339.imageshack.us/img339/512/60793305bx2.gif
http://img224.imageshack.us/img224/7996/64384807bn2.gif

Tabs and controls within these boxes don't appear correctly. This is not a
memory issue as my laptop is a high spec machine and Flex is the only thing
running.

Anyone advise or have the same issue?

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


RE : [Flashcoders] create object with getDefinition and pass parameters using apply ?

2009-01-08 Thread Patrick Matte | BLITZ
That wouldn't help, I'm writing a class that can create any kind of objects and 
pass any number of argument to that object at instantiation.


De : flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] de la part de Joel Stransky 
[stranskydes...@gmail.com]
Date d'envoi : 8 janvier 2009 20:28
À : Flash Coders List
Objet : Re: [Flashcoders] create object with getDefinition and pass 
parameters using apply ?

Why not predefine the params as null?

class myClass{
  public function myClass(param1 = null, param2 = null, ... param6 = null){
  }
}

or just use the rest (...) parameter

class myClass{
  public function myClass(...args){
for(var i:uint = 0; i  args.length; i++){
  trace(args[i]);
}
  }
}

On Thu, Jan 8, 2009 at 10:36 PM, Patrick Matte | BLITZ 
pma...@blitzagency.com wrote:

 Well for now I've done this which supports up to 5 arguments but if
 anyone's got a better suggestion please tell me...

 var classReference:Object = getDefinitionByName(className);
 var object:Object;
 switch(array.length) {
case 0:
object = new classReference();
break;
case 1:
object = new classReference(array[0]);
break;
case 2:
object = new classReference(array[0],array[1]);
break;
case 3:
object = new classReference(array[0],array[1],array[2]);
break;
case 4:
object = new
 classReference(array[0],array[1],array[2],array[3]);
break;
case 5:
object = new
 classReference(array[0],array[1],array[2],array[3],array[4]);
break;
 }

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Patrick
 Matte|BLITZ
 Sent: Thursday, January 08, 2009 7:19 PM
 To: Flash Coders List
 Subject: [Flashcoders] create object with getDefinition and pass parameters
 using apply ?

 I need to create objects using getDefinition and pass parameter to the
 constructor but the problem is that the number of parameters can be
 different. I tried using apply like this but I can't make it work.

 var classReference:Object = getDefinitionByName(className);
 var object:Object = new classReference.apply(this, array);

 Is there any way to do this ?

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

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




--
--Joel Stransky
stranskydesign.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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