lingo-l js syntax weirdness

2005-12-23 Thread Mendelsohn, Michael
Hi list... In js syntax, I can't get the following to work: if(pVidSprite.member.type == symbol(VisibleLightOnStageMedia)){ //do stuff } When I trace(pVidSprite.member.type); // #VisibleLightOnStageMedia pVidSprite is always correctly sprite(21). The result I am experiencing when

Re: lingo-l js syntax weirdness

2005-12-23 Thread mjonkman
try the following: if (pVidSprite.member.type.toString().toLowerCase() == #visiblelightonstagemedia){ //do stuff here } rationale: in JS syntax, I believe there is a difference in terms of how symbols are handled. They become actual object instances (I believe, Tom slap me upside the head