PDA

View Full Version : Targeting Frames from Flash


dizarter
03-27-2008, 06:01 PM
Ok, I have this weird problem

My HTML pages consist of frames and main.html is main frameset.

Among other code, main.html have this code for defining two frames


<frameset rows="130,*" cols="*" framespacing="0" frameborder="no" border="0">
<frame src="p_header.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
<frame src="p_home.html" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>



Buttons in flash menu, which is in topFrame embedded in p_header.html, have this code attached


getURL("p_home.html","mainFrame")
getURL("p_contact.html","mainFrame")
getURL("p_about.html","mainFrame")
etc



Frames open correctly in Avant Browser (which is based on IE) in mainFrame.
However, when testing in FireFox or in IE7, frames open in new window.
Anyone have idea why this is happening, and how to overcome this?

atomic
03-27-2008, 06:26 PM
Are you testing online?

dizarter
03-27-2008, 06:36 PM
No, i'm testing localy.

Previously i was using IFrames, but there was another problem, also
with cross-browser differences. In IE and Avant, IFrames were
displayed centered, as they should, while in Firefox and Safari
IFrames were centered right and left, respectively.

I thought maybe i can solve this by using standard frames instead
of IFrames. Now pages are centered correctly in all browsers i'm
testing with, but got this other problem, regarding new windows.

I can upload files somewhere, if you are willing to have a look at this
and give me an expert advice.

Thanks

atomic
03-27-2008, 07:45 PM
Try it online...

I've had a similar issue in the past... If published for higher than Flash 7, you can no longer test it locally (security issues), you need to test it online...

dizarter
03-28-2008, 02:49 AM
Thanks a bunch...

I thought I was doing something wrong, but it's ok when online.

I put those pages in xampp/htdocs, and tried it quickly through localhost

Everything works fine...

Once again, thanks a lot

atomic
03-28-2008, 07:32 AM
Grrrrrrreat! ;)