-
Flash menu, iframe target horror and nightmares.
Hi. I'm really not hot on code, nor As3. I'm more of a designer really. So please somebody help!
I've got a Flash menu, with buttons set up to load different HTML files into an iframe that is centered in a div using css.
But it doesn't load them into the iframe!!! It just loads them into a new browser window.
I'm sure this is a simple problem to fix, but I've scoured the internet for an answer and still no cigar has been lit.
Here's the code I've managed to cobble together. I have some animations happening with the rollovers. Wondered if something there may be interfering. Or could it be a browser issue or a HTML design issue?
home.addEventListener(MouseEvent.ROLL_OVER, overF);
home.addEventListener(MouseEvent.ROLL_OUT, outF);
work.addEventListener(MouseEvent.ROLL_OVER, overF);
work.addEventListener(MouseEvent.ROLL_OUT, outF);
contact.addEventListener(MouseEvent.ROLL_OVER, overF);
contact.addEventListener(MouseEvent.ROLL_OUT, outF);
abjectpress.addEventListener(MouseEvent.ROLL_OVER, overF);
abjectpress.addEventListener(MouseEvent.ROLL_OUT, outF);
function overF(event:MouseEvent):void{
event.target.gotoAndPlay(2);
}
function outF(event:MouseEvent):void{
event.target.gotoAndPlay(6);
}
home.addEventListener(MouseEvent.CLICK, homeclick);
function homeclick(event:MouseEvent):void {
var url:String = "http//www.mywebshiite.com";
var request:URLRequest = new URLRequest("home.html");
try {
navigateToURL(request,"_maincontent");
} catch (e:Error) {
trace("Error occurred!");
}
}
Help!?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|