Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Rollover If statement issue

$
0
0

I'm trying to use Edge for a rollover button menu.

So far I've only been able to get bits and pieces of it right. I think an if statement is what I need, but unsure what would be the if condition.

I basically want an if statement for when I mouseover one and mouseout of another, and vise versa, for different things to play within nested symbols. The colored areas that show when rolled over is just for content placement.I haven't added the graphics I plan to use but that is the dimensions I will be using for them. I haven't added the button links yet.

 

Heres the mouseover & mouseout code for the first one:

 

//compositionReady

sym.$("demoStage").mouseover(function(){

          if (sym.$("graphicsStage").mouseout = "true")

          {

          sym.getSymbol("demoStage").stop("demoStop");

          }

          else

          {

          sym.getSymbol("demoStage").play("demoPlay");

          sym.getSymbol("graphicsStage").play("graphClose");

          sym.getSymbol("d3Stage").play("d3Close");

          sym.getSymbol("wipStage").play("wipClose");

          }

 

 

});

sym.$("demoStage").mouseout(function(){

          if (sym.$("graphicsStage").mouseover = "true")

          {

          sym.getSymbol("demoStage").stop("demoStop")

          }

          else

          {

          sym.getSymbol("demoStage").playReverse();

          sym.getSymbol("graphicsStage").playReverse("graphClose");

          sym.getSymbol("d3Stage").playReverse("d3Close");

          sym.getSymbol("wipStage").playReverse("wipClose");

          }

 

I know for a fact some of the code is wrong but unsure what to put in its place and how to go about fixing some of the other issues.


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>