/***********************
* Adobe Edge Animate Composition Actions
*
* Edit this file with caution, being careful to preserve 
* function signatures and comments starting with 'Edge' to maintain the 
* ability to interact with these actions from within Adobe Edge Animate
*
***********************/
(function($, Edge, compId){
var Composition = Edge.Composition, Symbol = Edge.Symbol; // aliases for commonly used Edge classes

   //Edge symbol: 'stage'
   (function(symbolName) {
      
      
      

      Symbol.bindTimelineAction(compId, symbolName, "Default Timeline", "complete", function(sym, e) {
         
         // Play the timeline at a label or specific time. For example:
         // sym.play(500); or sym.play("myLabel");
         sym.getSymbol("baked_text").play("baked_start");
         
         // Play the timeline at a label or specific time. For example:
         // sym.play(500); or sym.play("myLabel");
         sym.play("Start");
         

      });
      //Edge binding end

      Symbol.bindElementAction(compId, symbolName, "${Stage}", "click", function(sym, e) {
         // insert code for mouse click here
         // Play the timeline at a label or specific time. For example:
         // sym.play(500); or sym.play("myLabel");
         sym.getSymbol("baked_text").play("baked_start");
         
         // Play the timeline at a label or specific time. For example:
         // sym.play(500); or sym.play("myLabel");
         sym.play("Start");
         

      });
      //Edge binding end

      

      Symbol.bindElementAction(compId, symbolName, "document", "keydown", function(sym, e) {
         // insert code to be run when the user presses a key.
         // The variable “e.which” tells you the key code of the key that was pressed, e.g. 32 = space
         if (e.which == 82) {
         // Show an element 
         sym.$("raccoon_emoji_bounce").show();
         
         
         // Set the volume of an audio track to 20% 
         sym.$("raccoon")[0].volume = 1;
         
         
         // Show an element 
         sym.$("RaccoonsActivatedText").show();
         
         // Show an element 
         sym.$("raccoon_transparent").show();
         
         // Show an element 
         sym.$("raccoon_transparent2").show();
         
         
         sym.getSymbol("RaccoonsActivatedText").play();
         
         
         	// do something
         }

      });
      //Edge binding end

   })("stage");
   //Edge symbol end:'stage'

   //=========================================================
   
   //Edge symbol: 'lavalamp_bg1'
   (function(symbolName) {   
   
   })("lavalamp_bg1");
   //Edge symbol end:'lavalamp_bg1'

   //=========================================================
   
   //Edge symbol: 'patarty_bounce'
   (function(symbolName) {   
   
      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 250, function(sym, e) {
         
         // Play the timeline at a label or specific time. For example:
         // sym.play(500); or sym.play("myLabel");
         sym.play(0);
         

      });
      //Edge binding end

   })("patarty_bounce");
   //Edge symbol end:'patarty_bounce'

   //=========================================================
   
   //Edge symbol: 'baked_text'
   (function(symbolName) {   
   
   })("baked_text");
   //Edge symbol end:'baked_text'

   //=========================================================
   
   //Edge symbol: 'raccoon_emoji_bounce'
   (function(symbolName) {   
   
      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 250, function(sym, e) {
         // Play the timeline at a label or specific time. For example:
         // sym.play(500); or sym.play("myLabel");
         sym.play(0);

      });
      //Edge binding end

   })("raccoon_emoji_bounce");
   //Edge symbol end:'raccoon_emoji_bounce'

   //=========================================================
   
   //Edge symbol: 'RaccoonsActivatedText'
   (function(symbolName) {   
   
   })("RaccoonsActivatedText");
   //Edge symbol end:'RaccoonsActivatedText'

})(window.jQuery || AdobeEdge.$, AdobeEdge, "PATARTY5");