A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Frame set problems

  1. #1
    Can't Re- Member gusmus's Avatar
    Join Date
    Sep 2002
    Location
    España
    Posts
    663

    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

  2. #2
    Senior Member
    Join Date
    Jun 2001
    Posts
    289
    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.

  3. #3
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    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.

  4. #4
    undead creature necromanthus's Avatar
    Join Date
    Feb 2002
    Location
    ROM
    Posts
    1,890
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center