to the stage • Add actions for the button on(release){ //Goto Webpage Behavior getURL("schedule.html","_blank"); //End Behavior } – getURL is a predefined method in actionscript – Opens webpage in “_blank”, “_self”, “_parent”
image • Add next and previous buttons • Add ActionScript to the buttons – Next on(release){ nextFrame(); } – Previous on(release){ prevFrame(); } //loop around gotoAndStop(5);
Array(); function showLinks() { classlinktext.htmlText = ""; numi.text = i; nm = this.n; for (i=0; i<this.n; i++) { allclasses[i] = this["bio"+i]; classlinktext.htmlText += "<a href= \"asfunction:showDesc,"+i+"\">"+this["name"+i]+"</a><br>"; } } function showDesc(dc){classdesctext.htmlText = allclasses[dc];} // Create new load vars object c for data transfer var c = new LoadVars(); c.onLoad = showLinks; c.sendAndLoad("files/cdb_classes.php", c, "POST"); stop();