Click to See Complete Forum and Search --> : Frame set problems
gusmus
11-08-2002, 05:31 AM
Hi there Bob, Johnie, Necro and folks, Help needed yet again, I'm having a problem with a flash menu in as such as I can't get the target to force into the designated frame, with a standard gif menu it'll force but with the flash menu it forces into the menu frame which ain't what I wants you see cos me menu sort of dissappears, any suggestions?? the target html file is coded as such
<SCRIPT LANGUAGE="JavaScript">
<!--
var u = window.self.location.href;
if( window.parent.location.href == u )
window.location.href = "index.html?row2col2=" + u.substring( u.lastIndexOf( '/' ) + 1 );
//-->
</SCRIPT>
which to my way of thinking should do the trick but it doesn't,
Cheers William
OwenAus
11-08-2002, 09:12 AM
Not sure if this is what you are after but ..
When you create buttons you can use properties .. behaviour .. actions .. + .. URL link (get url) and specify the target frame. There is a selection list with URL target where you type in the target frame name there. So if you had:
...
FRAME NAME="content" SRC="yourpage.html"
...
you would type content in the box.
Similarly, with Action Script, type in something like:
on(release){
getUrl("mypage.html","content");
}
With javascript use:
var wn=null;
function loadPage(pagename){
wn=window.open(pagename,'content');
}
and the call in AS would be:
getUrl("javascript:loadPage('mypage.html')");
Apologies in advance if I missed the point.
johnie
11-08-2002, 04:24 PM
Okay... I see your JS but if its on the Page how are you calling it from the SWF?
Like OwenAUS pointed out to force a URL change from a SWF using KoolMoves just use the standard Get URL with the target filled in as the frame you want. 0 Scripting involved. To be honest the same is true with Flash and almost all SWF Authoring tools that have GetURL avialable to them.
OwenAUS actually answered your question BTW.
necromanthus
11-08-2002, 06:42 PM
Originally posted by OwenAus
and the call in AS would be:
getUrl("javascript:loadPage('mypage.html')");
The best solution !
flashkit.com
Copyright WebMediaBrands Inc., All Rights Reserved.