Unit 08 - External Links

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");
}

Array Access Notation [ ]

Operators

Hosting/Domain

Publishing

Flash Detection Kit

Homework

1.Create a link in your page

or

2. Make your character into a preloader.