+ Reply to Thread
Results 1 to 3 of 3

buttons open in new windows

This is a discussion on buttons open in new windows within the HELP free utilities forums, part of the Flash English category; I am very frustrated! This Flash Script is kicking my butt. I have many buttons on a page, each one ...

  1. #1
    Junior Member Settled In davidbanga is on a distinguished road
    Join Date
    Sep 2009
    Posts
    2
    Rep Power
    0

    buttons open in new windows

    I am very frustrated! This Flash Script is kicking my butt. I have many buttons on a page, each one has script like this:

    btn_home.addEventListener(MouseEvent.MOUSE_UP, goSubkirkeSite7);
    function goSubkirkeSite7(Event:MouseEvent):void {
    var layersURL:URLRequest = new
    URLRequest("http://subkirke.com/default.html");
    navigateToURL(layersURL);
    }

    (change btn_**** and SubkirkeSite* for each different button)

    I can not make the windows open in the same (_self) browser window, a new window opens for every button pressed.

    can anyone help? i'll be your new best friend!

  2. #2
    Moderator Moving My Stuff To The FlepStudio OrientExpress is on a distinguished road OrientExpress's Avatar
    Join Date
    Aug 2009
    Posts
    1,277
    Rep Power
    5

    Re: buttons open in new windows

    Hi,
    this is the right code:
    Code:
    btn_home.addEventListener(MouseEvent.MOUSE_UP, goSubkirkeSite7);
    function goSubkirkeSite7(Event:MouseEvent):void {
    var layersURL:URLRequest = new
    URLRequest("http://subkirke.com/default.html");
    navigateToURL(layersURL,"_self");
    }

  3. #3
    Junior Member Settled In davidbanga is on a distinguished road
    Join Date
    Sep 2009
    Posts
    2
    Rep Power
    0

    Re: buttons open in new windows

    That works perfectly. And, looking at it, it is pretty obvious. I don't know why I couldn't figure it out.

    Thanks so much! I am your new best friend.

+ Reply to Thread

Similar Threads

  1. Open A New SWF
    By lovex33 in forum Actionscript 3.0 newbies
    Replies: 3
    Last Post: 19-02-09, 01:57
  2. Fade open window.
    By andrei in forum Actionscript 3.0 newbies
    Replies: 0
    Last Post: 07-11-08, 06:46
  3. How to open link in same window
    By Alec2998 in forum Actionscript 3.0 newbies
    Replies: 1
    Last Post: 14-07-08, 15:41
  4. Help! problem eith buttons in windows browsers
    By asiul in forum Actionscript 3.0 newbies
    Replies: 3
    Last Post: 30-04-08, 14:40
  5. Open Source Flash Game
    By m2web in forum advanced Actionscript 3.0
    Replies: 1
    Last Post: 06-12-07, 06:01

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts