I am trying to create a link to my index page in my actionscript. All my other links work except for the link to the html page. Here is the code-
stop();
gal6s_btn.addEventListener(MouseEvent.CLICK, gal6);
function gal6(event:MouseEvent):void{
gotoAndStop(10);
};
gal7s_btn.addEventListener(MouseEvent.CLICK, gal7);
function gal7(event:MouseEvent):void{
gotoAndStop(20);
};
gal8s_btn.addEventListener(MouseEvent.CLICK, gal8);
function gal8(event:MouseEvent):void{
gotoAndStop(30);
};
gal9s_btn.addEventListener(MouseEvent.CLICK, gal9);
function gal9(event:MouseEvent):void{
gotoAndStop(40);
};
gal10s_btn.addEventListener(MouseEvent.CLICK, gal10);
function gal10(event:MouseEvent):void{
gotoAndStop(50);
};
gal11s_btn.addEventListener(MouseEvent.CLICK, gal11);
function gal11(event:MouseEvent):void{
gotoAndStop(60);
};
gal12s_btn.addEventListener(MouseEvent.CLICK, gal12);
function gal12(event:MouseEvent):void{
gotoAndStop(70);
};
gal13s_btn.addEventListener(MouseEvent.CLICK, gal13);
function gal13(event:MouseEvent):void{
gotoAndStop(80);
};
gal14s_btn.addEventListener(MouseEvent.CLICK, gal14);
function gal14(event:MouseEvent):void{
gotoAndStop(90);
};
var myLoader:Loader=new Loader ();
summer_btn.addEventListener(MouseEvent.CLICK, summercontent);
function summercontent(myevent:MouseEvent):void {
var myURL:URLRequest=new URLRequest("gallery3.swf");
myLoader.load(myURL);
addChild(myLoader);
};
chemical_btn.addEventListener(MouseEvent.CLICK, chemicalcontent);
function chemicalcontent(myevent:MouseEvent):void {
var myURL:URLRequest=new URLRequest("gallery4.swf");
myLoader.load(myURL);
addChild(myLoader);
};
cottage_btn.addEventListener(MouseEvent.CLICK, cottagecontent);
function cottagecontent(myevent:MouseEvent):void {
var myURL:URLRequest=new URLRequest("gallery2.swf");
myLoader.load(myURL);
addChild(myLoader);
};
misc_btn.addEventListener(MouseEvent.CLICK, misccontent);
function misccontent(myevent:MouseEvent):void {
var myURL:URLRequest=new URLRequest("gallery1.swf");
myLoader.load(myURL);
addChild(myLoader);
};
home_btn.addEventListener(MouseEvent.CLICK, homecontent);
function homecontent(myevent:MouseEvent):void {
var myURL:URLRequest=new URLRequest("index.html");
myLoader.load(myURL);
addChild(myLoader);
};
family_btn.addEventListener(MouseEvent.CLICK, familycontent);
function familycontent(myevent:MouseEvent):void {
var myURL:URLRequest=new URLRequest("gallery5.swf");
myLoader.load(myURL);
addChild(myLoader);
};
Is it possible that you can't link to an html document?
stop();
gal6s_btn.addEventListener(MouseEvent.CLICK, gal6);
function gal6(event:MouseEvent):void{
gotoAndStop(10);
};
gal7s_btn.addEventListener(MouseEvent.CLICK, gal7);
function gal7(event:MouseEvent):void{
gotoAndStop(20);
};
gal8s_btn.addEventListener(MouseEvent.CLICK, gal8);
function gal8(event:MouseEvent):void{
gotoAndStop(30);
};
gal9s_btn.addEventListener(MouseEvent.CLICK, gal9);
function gal9(event:MouseEvent):void{
gotoAndStop(40);
};
gal10s_btn.addEventListener(MouseEvent.CLICK, gal10);
function gal10(event:MouseEvent):void{
gotoAndStop(50);
};
gal11s_btn.addEventListener(MouseEvent.CLICK, gal11);
function gal11(event:MouseEvent):void{
gotoAndStop(60);
};
gal12s_btn.addEventListener(MouseEvent.CLICK, gal12);
function gal12(event:MouseEvent):void{
gotoAndStop(70);
};
gal13s_btn.addEventListener(MouseEvent.CLICK, gal13);
function gal13(event:MouseEvent):void{
gotoAndStop(80);
};
gal14s_btn.addEventListener(MouseEvent.CLICK, gal14);
function gal14(event:MouseEvent):void{
gotoAndStop(90);
};
var myLoader:Loader=new Loader ();
summer_btn.addEventListener(MouseEvent.CLICK, summercontent);
function summercontent(myevent:MouseEvent):void {
var myURL:URLRequest=new URLRequest("gallery3.swf");
myLoader.load(myURL);
addChild(myLoader);
};
chemical_btn.addEventListener(MouseEvent.CLICK, chemicalcontent);
function chemicalcontent(myevent:MouseEvent):void {
var myURL:URLRequest=new URLRequest("gallery4.swf");
myLoader.load(myURL);
addChild(myLoader);
};
cottage_btn.addEventListener(MouseEvent.CLICK, cottagecontent);
function cottagecontent(myevent:MouseEvent):void {
var myURL:URLRequest=new URLRequest("gallery2.swf");
myLoader.load(myURL);
addChild(myLoader);
};
misc_btn.addEventListener(MouseEvent.CLICK, misccontent);
function misccontent(myevent:MouseEvent):void {
var myURL:URLRequest=new URLRequest("gallery1.swf");
myLoader.load(myURL);
addChild(myLoader);
};
home_btn.addEventListener(MouseEvent.CLICK, homecontent);
function homecontent(myevent:MouseEvent):void {
var myURL:URLRequest=new URLRequest("index.html");
myLoader.load(myURL);
addChild(myLoader);
};
family_btn.addEventListener(MouseEvent.CLICK, familycontent);
function familycontent(myevent:MouseEvent):void {
var myURL:URLRequest=new URLRequest("gallery5.swf");
myLoader.load(myURL);
addChild(myLoader);
};
Is it possible that you can't link to an html document?