[flexcoders] Re: Cairngorm Parallel Commands

2009-09-14 Thread Ryan Kruse
Looks like flex is in the clear.  The events are in fact firing.  My Jetty 6
server isn't handling the async requests though :(.

-Ryan

On Mon, Sep 14, 2009 at 1:07 AM, manuraj.dha...@gmail.com wrote:

 Looking at your posted code, I can't see any issue with the firing of the
 event.
 It would be great if you can post a piece of your code.

 BTW, If you are using same event with two different types, checkout the
 actual string that you are using to define type. Most of the times we just
 copy/paste the code and that causes this kinda issues.

 Regards,
 Manu.

 Ryan Kruse wrote:
 
  I posted this on the adobe forums but this list appears much more active
  so I'll try here.
 
  I'm using Cairngorm and I am trying to execute a set of commands in
  parallel.  One command doesn't depend on the completion of another so
 they
  don't fit the SequenceCommand idea.  Basically I create two events inside
  a function and dispatch them one after another (see code below).  I only
  see one event fire.  If I comment out the first one then the second one
  fires so I know my controller is setup fine, but I can never get them
 both
  to fire.
 
  Any ideas?
  -Ryan
 
 
var event1:MyFirstEvent = new MyFirstEvent();
event1.dispatch();
 
var event2:MySecondEvent = new MySecondEvent();
event2.dispatch();
 
 
 
 
 Quoted from:
 http://www.nabble.com/Cairngorm-Parallel-Commands-tp25419834p25419834.html




Re: [flexcoders] Cairngorm Parallel Commands

2009-09-13 Thread Ryan Kruse
I don't need threads, and the problem exists if my commands don't even hit a
remote server.  Firing the cairngorm events one after another just doesn't
seem to work reliably.

Ryan

On Sep 13, 2009 4:58 AM, Stephane Guyot stephane.guyo...@wanadoo.fr
wrote:


Ryan,

as far as I know, Flash Player does not offer public mutli-thraded APIs.
Server Side calls are asynchronous,  but I don't know if that's the case in
your Commands ?
You can also download Cairngorm source and debug.

See Alex Blog :
http://blogs.adobe.com/aharui/2008/01/threads_in_actionscript_3.html

HTH,
Stephane

Le 11 sept. 09 à 20:51, krusenet a écrit :

 I posted this on the adobe forums but this list appears much more
active so I'll try here

IBCM :  International Bank of Chatenay-Malabry
http://www.kiva.org/lender/stephane4127 - Click on Map View


Re: [flexcoders] How to tell if something is a Date

2009-09-13 Thread Ryan Kruse
Try out flex.utils.  I thing there is a getFullyQualifiedClassname method or
something like that.  That may work for null objects.

Ryan

On Sep 13, 2009 8:26 AM, Paul Andrews p...@ipauland.com wrote:



David Harris wrote:  Hi everyone,   I have a situation where I want to
tell a value is of type ...
No, and it doesn't make any sense to do so.

var b: Date;

Tells the compiler that variable b is to be used to reference a Date
object; It allows the compiler to make sure that you keep to that
contract. By not assingning the variable b, you leave it referencing
nothing - null;

( b is Date )

is now asking to check that a variable pointing at nothing (null) is a
Date. It is not a Date, so the result is false.

You ask about knowing the variables type - well you already do - you've
told the compiler that b will hold a Date.

For your purposes, the (something is Someclass) will always return false
when something is a null reference - it cannot be any other result.

Paul
 cheers

 David