|
-
Can't Re- Member
Frame set problems
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
humanus somes est divinitus in ipsum
Wiliiam Wallace
-
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.
-
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.
-
undead creature
Originally posted by OwenAus
and the call in AS would be:
getUrl("javascript:loadPage('mypage.html')");
The best solution !
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
|