Unit 08 - Midterm Presentation and Critiques
Final Portfolio Rough Presentations
Lecture
The video lecture covers how to create a link from your Flash file to an external URL.
There is a button on the stage with an instance name of bbCom_btn.
First create an EventListerner for the button.
bbCom_btn.addEventListener(MouseEvent.CLICK,gotoWebPage);
Now declare teh function, gotoWebPage and have it create a variable with a URLRequest value and use navigateToURL to finish the link.
// create gotoWebPage function to navigate to URL
function gotoWebPage(evtObj:MouseEvent){
var mySite:URLRequest = new URLRequest("http://brandonberman.com");
navigateToURL(mySite, "_blank");
}
Publishing
In class demonstration