nfg_day12

code PImage[] frame = new PImage[23]; int counter = 0; boolean go = false; int alphaNum = 0; int alphaDelta = 5;
 * Ex.3 PImage array review**

void setup{ for(int i=0;i255){ alphaNum=255; } } }

void mousePressed{ go = true; } code

code stop;
 * Ex.2 Basic timeline navigation in Flash**

button.addEventListener("click",doStuff);

function doStuff(event){ gotoAndPlay(2); } code

code  $(document).ready(function{   $("div.box").hover(function(event){ event.preventDefault; $(this).delay(10).fadeOut("slow"); });
 * Ex.1 Two ways of working in jQuery**

$("div.rox").hover(function(event){        $("div.box").fadeIn("slow");   });

$("#clicky").click(function{        $(".box").animate({"top": "+=50px"}, "fast")         });

});

 function setup{ $("div.box").hover(boxHandler); $("div.rox").hover(roxHandler); $("#clicky").click(clickHandler); }

function boxHandler{ $(this).delay(10).fadeOut("slow"); }

function roxHandler{ $("div.box").fadeIn("slow"); }

function clickHandler{ $(".box").animate({"top": "+=50px"}, "fast"); }

$(setup); code