1 Reply Latest reply on Nov 13, 2006 6:01 AM by Newsgroup_User

    JS syntax problem

    Level 7
      Hi,

      I am trying to find a flash member from the first 100 sprites. But
      somehow it does not work.

      My code never comes to the output of the "flash!!!" but in my message
      window i can find the symbol #flash.

      Any ideas what I am doing wrong here:

      for (n=1;n<100;n++){
      sp = sprite(n);
      if ((sp.member.type) != undefined){

      trace (sp.member.type + " " + n + " " + sp.member.type.ilk());
      t = sp.member.type;

      if ((sp.member.type) == symbol("flash")){
      fl = sprite(n);
      trace ("flash!!! ");
      }
      }
      }