A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: flash navbar btns go to my html pgs..

  1. #1
    Junior Member
    Join Date
    Sep 2005
    Posts
    20

    flash navbar btns go to my html pgs..

    Having problems scripting with action script my navbar I created in flash mx 2004. I want these four btns I made in a navbar to link to each page with the same navbar. I put on (release){ getURL("main.htm"_blank) ;}... This doesn't open any windows. ANd the swf file is in the same folder Dreamweaver as the main.htm file. Each btn has a page scripted ie "main", "contact", etc... help...

    Mike

  2. #2
    Senior Member Big 'Un's Avatar
    Join Date
    Aug 2004
    Location
    NYC
    Posts
    231
    To use the swf as your nav on each html page, do what you did except leave out the "_blank". So your code would look like this:
    on (release){
    getURL("main.htm");
    }

    When you use the part that says "_blank", you are telling the browser to open the contents in a new window.
    If your html pages are all in the same directory together, the example I wrote should work for all of them.

  3. #3
    Junior Member
    Join Date
    Sep 2005
    Posts
    20
    Understand. So, for each page ie "main", "contact", htm page so each would open seperately upon click; I would just:

    on (release) on (release){
    getURL("main.htm"); getURL("contact.htm");
    } }

  4. #4
    Senior Member Big 'Un's Avatar
    Join Date
    Aug 2004
    Location
    NYC
    Posts
    231
    If you want each page to open in its own browser window, keep the "_blank" part in your code.
    If you want to use only one browser window but change the contents of the window for each button click, leave out the "_blank."

    _blank means "open a blank browser window."

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