7 Replies Latest reply on May 15, 2013 11:14 AM by resdesign

    stop() overrides css that is applied via javascript

    a.jonesLargeAnimal

      I think I've found a bug via Adobe Edge.

       

      If you have a symbol that has some labels as such

       

      AdobeEdgeLabels.PNG

       

      then you add that symbol to stage and have the following code in document.compositionReady

       

       

      var mySymbolObject = sym.getSymbol("HoverExample");
      
      
      var targetElement = mySymbolObject.$("backing");
      
      
      targetElement.css({"background-color":"#111111"});
      
      

       

       

      where mySymbolObject is the symbol on the stage, backing is a rectangle div and the color is different than the original color in the symbol

       

      then you add the following code for hitbox (rectangle div that is alpha 0) under Hitbox.mouseover

       

       

      sym.stop("over");
      

       

      the end result is that the css from the project, in this case the red background color, gets reapplied on mouseover despite me changing the color on startup.

       

      Has anyone seen this before? Can anyone reproduce this? Does anyone know of a possible solution?