getURL window not working

Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default getURL window not working

    Ok, I am still pretty new to Macromedia Flash MX. I have created a few flash
    movies using an easier program, Coffee Cup Firestarter 6.5.

    Anywho, I am writing a new website, and I use frames. I have the Macromedia
    Flash on top, which is my menu bar, and the content on the bottom.

    Here is my script:
    on (release) {
    getURL("content.htm", "_content");
    }

    I want to make it so when somebody clicks on something on the Flash menu, it
    will open on the bottom frame, which is named content.
    I've tried just about everything, and either it opens in the same window
    (where the flash menu was), or it will open a new window.

    Am I doing something wrong?

    PS- I'm running Macromedia Flash MX 6.0

    Thanks You!

    bcmorgue Guest

  2. Similar Questions and Discussions

    1. How to close blank window after getURL
      I am using flex 1.5 fulfilling download function. If use _blank in getURL() to download a file, a new window is created. Is there method to close...
    2. I need help please with the getURL() it is not working.
      I was able to make this work in the earler ver. of Flash. But when the movie ends it will not goto the url that I am telling it to goto. Is there...
    3. getURL() not working as expected
      Hello, We have a requirement where homepage of the site will be specific to a country. When a first time user navigates to the site(say,...
    4. getURL to load all links in same browser window
      Hi all - I am attempting to launch website URL's from a self running cd-rom, and have no trouble doing it with a simple getURL action. What I...
    5. GetURL window sizes
      Hey, i've been trying to create a pop-up window of a fixed size, to display photos but i didn't know how to do it. I looked through these forums, and...
  3. #2

    Default Re: getURL window not working



    bcmorgue wrote:
     

    Just small mistake , let me elaborate .

    First make sure you give your frames some names , than while setting up
    get url type the name in "window" window .....

    Sample of naming frames :

    <frame name="main_frame_name" src="XX.html">
    <frame name="top_frame_name" src="XXX.html">

    Sample of calling up pages in predefine frames :

    on (release) {
    getURL ("page_1.html", "main_frame_name");
    }


    NOTE !
    try to avoid names like window or main , DO NOT use underscore in your frame names, these are
    reserved words which may cause some of the action to fail , use unique personal naming conventions
    and it will assure across browser and cross OS compatibility.


    --



    Regards


    urami_*

    <hol>
    http://flashfugitive.com/
    </hol>


    urami_ Guest

  4. #3

    Default Re: getURL window not working

    Wow!

    Sure enough, that did it!

    Thank you very much!

    I have one other question, if you don't mind.

    I want to have a button on the flash menu, that when you press it, it will run
    this code:

    "javascript:window.external.addFavorite('http://www.bcmorgue.com/index.htm','The
    BC Morgue - Were All Dead And This Is Hell');

    It's a javascript to allow a user to quicky add the site as a favorite.

    Is there a way to do this?

    bcmorgue Guest

  5. #4

    Default Re: getURL window not working

     

    no problem :)
     

    sure there is

    on(release){
    getURL("javascript:window.external.AddFavorite('ht tp://www.bcmorgue.com/','FLASH');");
    }

    I put flash and short url because did not want the news reader to wrap it in multiple lines.
    Just edit in whatever way you need :)


    Regards


    urami_*

    <hol>
    http://flashfugitive.com/
    </hol>


    urami_ Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139