This might be totally wrong what I am saying, so bare with me... :)

Isn't this sufficient?

Switch(instanceOf(bla))
{
        case DivideSentenceStep2:
                Log(true);
}



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: woensdag 15 februari 2006 12:09
To: [email protected]; [email protected];
[EMAIL PROTECTED]
Subject: [Flashcoders] switch - case

Hey to ya all, 

 

I'm trying to do following, which obviously won't work, but is there
another way without having to use if else if else if else...

 

var model:Observable =
Observable(this._content.divideSentenceSteps.getById(indexCurrentAttempt
+2));

                                   

                                   

switch(model){

            case (instanceof DivideSentenceStep2) :

                        logger.debug("DivideSenteceStep2");

                        break;

            default : 

                        logger.debug("Not Known");

                        break;

            }

}

 

thx

 

Met vriendelijke groeten,
Lieven Cardoen
MULTIMEDIALOFT | POINT X
Engelse Wandeling 2 K18v | 8500 Kortrijk | T +32 (0)56/36.11.97

// communicatie bij voorkeur op [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 

 

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to