5 Replies Latest reply on Sep 27, 2012 1:01 PM by Comfunex

    New forum, New questions - Syntax changes??

    Comfunex Level 2

      Hoy!

       

      have you changed the rules regarding "/" sign in a string?

       

      strangely this works in pr7:

      specificly line 6.

       

       

      1     var newIndex = 2;

      2     sym.getComposition().getStage().setParameter("index", newIndex);

      3     sym.getSymbol("question_0").play(0);

      4     // question and answer place

      5     var cSymbol = "q" + newIndex;

      6     var cUrl = "url('images/q" + newIndex + "_on.png')";

      7     window.alert(cSymbol);

      8     sym.getComposition().getStage().$(cSymbol).css("background",cUrl);

       

      but not in an.1