[Flashcoders] Auto Webcam Detection

2009-11-04 Thread Ktu
So I've noticed that Facebook will automatically detect which Camera object
to use on your computer.
It seems on most if not all macs there are at least three (3) Camera objects
always available.
So, I've made a class that will automatically detect which webcam is active
and running.

Feedback anyone?

Download it here 

It's pretty simple to use:

import com.crp.utils.WebcamDetection;
import com.crp.events.WebcamEvent;

var wd:WebcamDetection = new WebcamDetection();
wd.addEventListener (WebcamEvent.RESOLVE, onResolve);
wd.begin();

function onResolve (e:WebcamEvent):void {
trace(e.code);
switch (e.code) {
case "success":
var myCamera:Camera = e.camera;
break;
case "noPermission":
// the user denied permission
break;
case "noCameras":
// no suitable camera's were found
break;
}
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Drag and drop from desktop to browser

2009-11-04 Thread Dave Watts
> If Google Wave, can do it, how can the rest of us pull it off =)

Get yourself a REALLY BIG company and influence the next version of HTML?

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


RE: [Flashcoders] OTish - CMS

2009-11-04 Thread Benny
www.dotnetnuke.com is a longstanding and leading ASP.net open source CMS

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


[Flashcoders] [SOLVED:] Multiple colors for text inside DataGrid-CellRenderer?

2009-11-04 Thread Roman Blöth
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dear Glen,


Glen Pike schrieb:
>I adapted the example on the following page to show you a quick test:
> 
> http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d118a9c65b32-7f4a.html
> 
> 
>I changed the drawLayout function to highlight the word "renderer" in
> red.  You need to import TextFormat and TextField classes too.
>  override protected function drawLayout():void {   
>textField.width = this.width;
>var text:String = textField.text;
>var tf:TextFormat = textField.getTextFormat();
>var redIdx:int = text.indexOf("renderer");
>if (-1 != redIdx) {
>tf.color = 0xff;
>}
>TextField(textField).setTextFormat(tf, redIdx, (redIdx + 8));
>super.drawLayout();
>}
> Try that...
Well, I'm flabbergasted. It works great and this really is the first
time I have the feeling to get some kind of real control on that whole
list component.


Thanks a 1000 times and best regards,
Roman.
- --

Tracks & Fields GmbH
Winsstraße 57
10405 Berlin
Germany

T:  +49- (0)30- 44 32 33 57
F:  +49- (0)30- 44 32 33 55
www.tracksandfields.com

Registergericht: Amtsgericht Charlottenburg, HRB 113924
Geschäftsführer: Christian Mix-Linzer
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJK8UtxAAoJEIy2NMFSBJ3cmVkH/i0EZOolJqxKlAvoQHIqZjZJ
P+qJP5l0hKfU7g/YIe9WD8OH32zhOZCBmvZTEmmgLRHf1GBnBte7UwDyt1i7V262
m2ldMAyh/K0XLEK59ZLMU2jH57/lvN2qXEiQfHYtOjGn+Iz1azx8/wnfI1SGc7Tl
oGnekyrC22dN9an3HN3f/lVSOAKdyIs9BPD1n3eCT42tTBYtwqM4ngitk+ZGx7hx
e8eXI/Yt1dgO4p3vRK1e0umWQ54jRMVHPs7mAxDoJUhscbJ/7FtU7+XKjR3RWPx+
ubN6HC9aNABlFf8s5sr2U79C6ZNPZwAQbPm6h0fMUsJjpVdVXRJ/viwTqIhHJ7c=
=+mti
-END PGP SIGNATURE-
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] [SOLVED:] Multiple colors for text inside DataGrid-CellRenderer?

2009-11-04 Thread Glen Pike

Hi,

   Glad to be of help :)

Glen


Well, I'm flabbergasted. It works great and this really is the first
time I have the feeling to get some kind of real control on that whole
list component.


Thanks a 1000 times and best regards,
Roman.
- --
  

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


Re: [Flashcoders] Auto Webcam Detection

2009-11-04 Thread Henrik Andersson

Ktu wrote:

So I've noticed that Facebook will automatically detect which Camera object
to use on your computer.
It seems on most if not all macs there are at least three (3) Camera objects
always available.
So, I've made a class that will automatically detect which webcam is active
and running.

Feedback anyone?

Download it here



So, the idea is to try each camera until you find one that has a moving 
image? I still think that it is better to just tell the user to properly 
select the default camera in the options.

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


Re: [Flashcoders] Auto Webcam Detection

2009-11-04 Thread Glen Pike




So, the idea is to try each camera until you find one that has a 
moving image? I still think that it is better to just tell the user to 
properly select the default camera in the options.

___

When you are using a 1280 x 1024 touchscreen, that's a bit difficult 
because the buttons are too small.


Also, if you have 2 cameras which are the same, then the user does not 
know which one to pick...


On our system, we use another program to capture the webcam output and 
then applications all load the stream / still images.  Flash, and other 
programs, don't share the webcam, so we have to do it this way to enable 
multiple applications to use the webcam at once.  It's a bit different 
from the "normal" PC setup, where you have one webcam for personal 
desktop use, so bit of an edge-case, but...


Glen

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


Re: [Flashcoders] Auto Webcam Detection

2009-11-04 Thread Ktu
Henrik,

The detection is based off of the activity level, so yes the moving image,
but its also based off of the fps of the Camera. That way, if my user is a
stiff and doesn't move much, but the Camera is good, the fps should be going
strong even though the activity is not.

Also, I know a lot of users are just too stupid to figure out this whole
webcam thing. Heck, I hadn't even used a webcam until I got one on my laptop
in April. One thing I have learned is that in your applications, do as much
for the user as possible while still making them feel like they have control
(but they really don't who are you kidding).

Ktu

On Wed, Nov 4, 2009 at 6:11 AM, Glen Pike  wrote:

>
>
>> So, the idea is to try each camera until you find one that has a moving
>> image? I still think that it is better to just tell the user to properly
>> select the default camera in the options.
>> ___
>>
>>  When you are using a 1280 x 1024 touchscreen, that's a bit difficult
> because the buttons are too small.
>
> Also, if you have 2 cameras which are the same, then the user does not know
> which one to pick...
>
> On our system, we use another program to capture the webcam output and then
> applications all load the stream / still images.  Flash, and other programs,
> don't share the webcam, so we have to do it this way to enable multiple
> applications to use the webcam at once.  It's a bit different from the
> "normal" PC setup, where you have one webcam for personal desktop use, so
> bit of an edge-case, but...
>
> Glen
>
>
> ___
> 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] Auto Webcam Detection

2009-11-04 Thread Juan Pablo Califano
The test code works fine for me (Win XP, FP 10).

I'll be working on a project that includes webcam soon and this could be
useful. I'll let you know how it goes if I use it. Thanks for sharing!

Cheers
Juan Pablo Califano

2009/11/4 Ktu 

> So I've noticed that Facebook will automatically detect which Camera object
> to use on your computer.
> It seems on most if not all macs there are at least three (3) Camera
> objects
> always available.
> So, I've made a class that will automatically detect which webcam is active
> and running.
>
> Feedback anyone?
>
> Download it here 
>
> It's pretty simple to use:
>
> import com.crp.utils.WebcamDetection;
> import com.crp.events.WebcamEvent;
>
> var wd:WebcamDetection = new WebcamDetection();
> wd.addEventListener (WebcamEvent.RESOLVE, onResolve);
> wd.begin();
>
> function onResolve (e:WebcamEvent):void {
> trace(e.code);
> switch (e.code) {
> case "success":
> var myCamera:Camera = e.camera;
> break;
> case "noPermission":
> // the user denied permission
> break;
> case "noCameras":
> // no suitable camera's were found
> break;
> }
> }
> ___
> 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] OTish - CMS

2009-11-04 Thread Paul Andrews

Benny wrote:

www.dotnetnuke.com is a longstanding and leading ASP.net open source CMS
  
Thanks Benny. In my searches www.dotnetnuke.com was about the only 
viable contender.

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


Re: [Flashcoders] as3 to iphone app

2009-11-04 Thread Kevin Newman
How about better warnings for non-strict compile (or runtime testing) 
mode? I'm talking about warnings (or a notice) that get kicked off when 
you do things like assign a value to a variable that has not been 
initialized, or to a class property that has not been defined on a 
dynamic object.


Kevin N.



On 11/2/09 1:44 PM, Henrik Andersson wrote:

Kevin Newman wrote:

What I'm really interested in is are there any other language
improvements/additions coming with the update (private constructors,
inline functions, structural typing, "let" keyword, etc.)? Or is is the
same version of Actionscrtip 3.0?


Other than new api stuff for the new hardware, there are no changes in 
the language as far as I know. Maybe a bugfix or two in the compiler, 
but no new features in the language itself.

___
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] as3 to iphone app

2009-11-04 Thread Kevin Newman

Bummer. :-(

I was hoping for some better dynamic stuff (duck typing), and some 
quicker ways to define (or at least instantiate) throw away static types 
(like a static version of an object literal - or some kind of structural 
data types). And maybe some performance tools like inline functions, or 
static (jit) constructors - or old favs from as2 like private 
constructors. C# has some of this kind of stuff. So does HaXe.


Maybe next time.

Kevin N.



On 11/2/09 7:50 PM, Mike Chambers wrote:

age changes, although there are some new APIs.

mike chambers 


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


RE: [Flashcoders] as3 to iphone app

2009-11-04 Thread Mike Chambers
Well, we do another level of optimizations via LLVM (so some of the performance 
stuff you mention is addressed).

mike chambers

m...@adobe.com


From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kevin Newman 
[capta...@unfocus.com]
Sent: Wednesday, November 04, 2009 10:13 AM
To: Flash Coders List
Subject: Re: [Flashcoders] as3 to iphone app

Bummer. :-(

I was hoping for some better dynamic stuff (duck typing), and some
quicker ways to define (or at least instantiate) throw away static types
(like a static version of an object literal - or some kind of structural
data types). And maybe some performance tools like inline functions, or
static (jit) constructors - or old favs from as2 like private
constructors. C# has some of this kind of stuff. So does HaXe.

Maybe next time.

Kevin N.



On 11/2/09 7:50 PM, Mike Chambers wrote:
> age changes, although there are some new APIs.
>
> mike chambers

___
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] as3 to iphone app

2009-11-04 Thread Kevin Newman
Hmmm, I had wondered about that - is LLVM being used in place of the old 
compiler?


The old compiler was Java based AS3 -> ABC bytecode.

Is the new one:

AS3 -> ABC bytecode -> LLVM -> bytecode (ARM, ABC, etc.)?

or

AS3 -> LLVM -> bytecode (ARM, ABC, etc.)  -  with a second path for SWC 
files - ABC bytecode -> LLVM -> bytecode (ARM, ABC, etc.).


With my meger understanding of how LLVM worksld , I've guessed that 
Adobe would be using LLVM in place of the old compiler since you already 
had at least one side of it working from Alchemy (LLVM to ABC) and LLVM 
is bidirectional (and plug-able - hence the ARM backend for iPhone) by 
design. It also makes sense to use something as robust and well 
supported as LLVM, and gain all of it's low level optimizations (does 
this obsolete Joa's work?).


I'm pretty sure what I've written is possible with LLVM, but I'm not 
certain Adobe is doing that with CS5, because there hasn't been a real 
clear post by anyone "official" saying exactly how it works (though 
there's been a lot of guessing on various blogs, and on the HaXe list in 
particular, as well as some slides in some slideshows that seem to 
suggest what I've written).


It's great to hear about compiler improvements either way (thanks!) - 
although, some language improvements would be welcome as well. ;-)


On a related note, will the underpinnings be exposed to LLVM to allow 
other languages to plugin to CS5 or at least the Flex compiler? 
(speaking of which, is the Flex compiler using LLVM yet?)


LOL Sorry for the barrage of questions and stream of thought reply! :-D

Thanks,

Kevin N.



On 11/4/09 1:36 PM, Mike Chambers wrote:

Well, we do another level of optimizations via LLVM (so some of the performance 
stuff you mention is addressed).

mike chambers

m...@adobe.com


From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kevin Newman 
[capta...@unfocus.com]
Sent: Wednesday, November 04, 2009 10:13 AM
To: Flash Coders List
Subject: Re: [Flashcoders] as3 to iphone app

Bummer. :-(

I was hoping for some better dynamic stuff (duck typing), and some
quicker ways to define (or at least instantiate) throw away static types
(like a static version of an object literal - or some kind of structural
data types). And maybe some performance tools like inline functions, or
static (jit) constructors - or old favs from as2 like private
constructors. C# has some of this kind of stuff. So does HaXe.

Maybe next time.

Kevin N.



On 11/2/09 7:50 PM, Mike Chambers wrote:
   

age changes, although there are some new APIs.

mike chambers
 

___
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] How to test URLVariables members

2009-11-04 Thread Alexander Farber
How do you test (without warnings and errors) if a

   var vars:URLVariables

contains something on an Event.COMPLETE?

For example if there is a vars.myname set?
(I.e. otherwise vars.myname would be undefined - according to
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/package.html#undefined )

Is the following correct:

  if (vars.myname != undefined)

Can you compare undefined to undefined?

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


Re: [Flashcoders] How to test URLVariables members

2009-11-04 Thread Bob Wohl
check for null maybe. If something doesn't exist it would throw a null.

B.

On Wed, Nov 4, 2009 at 4:08 PM, Alexander Farber  wrote:

> How do you test (without warnings and errors) if a
>
>   var vars:URLVariables
>
> contains something on an Event.COMPLETE?
>
> For example if there is a vars.myname set?
> (I.e. otherwise vars.myname would be undefined - according to
> http://help.adobe.com/en_US/AS3LCR/Flash_10.0/package.html#undefined )
>
> Is the following correct:
>
>  if (vars.myname != undefined)
>
> Can you compare undefined to undefined?
>
> Thank you
> Alex
> ___
> 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 to test URLVariables members

2009-11-04 Thread Chris Foster
Hi Alex,

You could use a 'try/catch' block...
e.g.



try {
if (vars.myname != undefined){
// do something
}
} catch (e:Error) {
trace("ERROR: your error info here");
}



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of
Alexander Farber
Sent: Thursday, 5 November 2009 10:08 AM
To: Flash Coders List
Subject: [Flashcoders] How to test URLVariables members

How do you test (without warnings and errors) if a

   var vars:URLVariables

contains something on an Event.COMPLETE?

For example if there is a vars.myname set?
(I.e. otherwise vars.myname would be undefined - according to
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/package.html#undefined )

Is the following correct:

  if (vars.myname != undefined)

Can you compare undefined to undefined?

Thank you
Alex
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.

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