ActionScript + iFrame = Hours of Frustration

iStealVCRs

I made one post
Joined
Apr 18, 2008
Messages
23
So, I have quite the conundrum. I'm currently in the process of making an electronic portfolio for my web design class. I've got everything together, but the problem I'm having now, is the flash menu I've created, isn't linking to the iFrame within the page, instead it opens in a new window.

I've scoured the web, but none of the solutions seem to be helping at all. I'm using Flash CS3 Pro, and have the menu published for ActionScript 2.0.

Here's my following ActionScript code:
Code:
academicsButton_mc.onRelease = function () {
	getURL("academics.html", myframe);
}

And of course, the iFrame code:
Code:
<iframe src="exhib.html" name="myframe" FRAMEBORDER="0" width="450" height="350" scrolling=auto allowtransparency="true" background-color="transparent"></iframe>

*NOTE* Ignore the semicolons in the iFrame code, phpBB threw those in there...not sure why...
 
perhaps you should put a javascript wrapper in the source for academics.html that flash can access in order to correctly access the iFrame.
 
Flash cannot work with HTML IFRAMES (it's too primitive). You are limited to using a pop up, or cleverly opening up the frame INSIDE flash itself with a nice little XML include or HTML include.
 
Well, actually, I've gotten it to work using JavaScript like Flippy suggested, problem now, is that Ive got one button working, but the others don't seem to wanna link to the frame, instead, they simply just remove the frame the page...I'll do a little more investigating to see what I come up with.
 

Latest posts

Back
Top