A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Help! open new windows from external text file.

  1. #1
    Junior Member
    Join Date
    Jun 2000
    Posts
    5
    I can't seems to get the below script to work. I need to open a new window from the text loaded through an external text file into a flash text panel.

    This part is in the HTML under the <HEAD> tag:

    <SCRIPT LANGUAGE="JavaScript">
    function newbrowser(url){
    window=window.open("url"," ","height=400,width=500")
    }
    // --></SCRIPT>

    This part is in the text file:

    <a href="javascript:newbrowser(www.yahoo.com)">www.ya hoo.com</a>

    It just does not load.

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Seoul, South Korea
    Posts
    1,310
    Hi there,
    For starters you don't need javascript to open your new browser window. If you have successfully loaded a txt. file into a swf. file all you need to do is edit the txt. file itself. (bearing in mind you have ticked the HTML box within the "Text Options" panel within Flash)
    Place this in the txt. file:
    <a href="http://yoursite.com">Click Here</a>

  3. #3
    Junior Member
    Join Date
    Jun 2000
    Posts
    5
    I have already tried that before but that couldn't open a new window, it only load the url onto the existing window.

    sigh....


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