Forum Moderators: open
JAVASCRIPT CODE
var myInt = 7;
function call(myInt) {
document.box.goto(myInt); //box is the id attribute for the embedded
}//flash video
ACTIONSCRIPT 3.0 CODE
import flash.external.*;
import flash.events.Event;
ExternalInterface.call("call");
ExternalInterface.addCallback("goto", gotoFrame);
function gotoFrame(num:int) {
gotoAndStop(num);
}
import flash.external.*;
import flash.events.Event;
ExternalInterface.call("call");
ExternalInterface.addCallback("goto", gotoFrame);
function gotoFrame(num:int) {
ExternalInterface.call("call");
gotoAndStop(num);
}
stop(); //I dont think the rest of the code matters but i pasted it anyways
homepagePlus.addEventListener('click', closeAnimation);
function closeAnimation(evt:MouseEvent) {
gotoAndStop(2);
}
homepage.addEventListener('click', openhomepage);
function openhomepage(evt:MouseEvent) {
var request:URLRequest = new URLRequest("http://www.example.com");
navigateToURL(request, "_self");
}