A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: How do I get links to open in a new window?

  1. #1
    Hey- I don't know a whole lot about Flash or Javascript yet. I have a Flash movie that I made for my Church's youth group, and I have it opening in a new window that has no toolbars, or scrollbars or anything. I did this because the movie comes up just the right size, and I don't want anybody resizing it. The problem is that when you click on a link to another website, it opens it in the same window. How do I make links to other sites open up in a new window? How do you add javascript to Flash? It's probably a stupid question, I know

    If you want to see what I'm talking about, click on the link and go to the "Links" section.

    http://www.rsyouth.homestead.com


    I appreciate all advice!!

  2. #2
    Junior Member
    Join Date
    Dec 2000
    Location
    london
    Posts
    14
    You have to make sure that your link's target is set to '_blank' this will open up each link on another browser window. It will probably be the size of you site!
    At the moment the links are set to load on to '_self'.

    As to using Javascript within Flash, I've seen a tutorial on the very site. Check out that section, you may have to search for it.

  3. #3
    FK Slacker
    Join Date
    Jun 2000
    Location
    vancouver
    Posts
    3,208

  4. #4
    Java in flash is easy this is what to do


    in flash place

    ON REALEASE
    GET URL javascript:whatever();
    end on


    and both html pages then one with the button and the one that will be opened


    <title>Links</title>


    <SCRIPT LANGUAGE="JavaScript">

    <!--

    function whatever(){

    window.open("whatever.html","cam","toolbar=0,locat ion=0, directories=0,status=0,member=0,scrollbars=0,resiz able=0,width=400,height=500");

    }




    //-->

    </SCRIPT>




    </head>

    if you change the function you MUST change it in flash

    to add scroolbars of anything change 0 to 1 and that it


    and change the size


    you can see an example of this on my web page for my web cam






  5. #5
    Thanks everybody- I really appreaciate the help!


  6. #6
    No problem
    (Pity noone would answer mine!!)

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