changing window title from parent window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Luis

    changing window title from parent window

    Hello

    I'm opening a window with a SWF inside (no HTML, just the SWF) but in the
    title bar appears something like



    i'd like to write something like "Wow!! look thos flash!!!".

    Could I do that from the function who launch it??? with something like this?

    myWin.title = 'Hello world!!!';

    Sorry about my English!!! O:-)

    thank you in advance!! bye!!

    Luis


  • Randy Webb

    #2
    Re: changing window title from parent window

    Luis wrote:[color=blue]
    > Hello
    >
    > I'm opening a window with a SWF inside (no HTML, just the SWF) but in the
    > title bar appears something like
    >
    > http://www.server.com/myDir/myWeb/Flash/myFlash.swf[/color]

    Yep, thats because you are attempting to open the .swf file itself.
    [color=blue]
    > i'd like to write something like "Wow!! look thos flash!!!".[/color]

    Then use an html page and the title attribute.
    [color=blue]
    > Could I do that from the function who launch it??? with something like this?[/color]

    [color=blue]
    > myWin.title = 'Hello world!!!';[/color]

    That depends on whether the .swf file allows the title to be set. Highly
    doubtful, see above.

    Comment

    • Luis

      #3
      Re: changing window title from parent window


      "Randy Webb" <HikksNotAtHome @aol.com> escribió en el mensaje
      news:rPmdnZoIcr soWJjcRVn-gg@comcast.com. ..[color=blue]
      > Luis wrote:[color=green]
      > > Hello
      > >
      > > I'm opening a window with a SWF inside (no HTML, just the SWF) but in[/color][/color]
      the[color=blue][color=green]
      > > title bar appears something like
      > >
      > > http://www.server.com/myDir/myWeb/Flash/myFlash.swf[/color]
      >
      > Yep, thats because you are attempting to open the .swf file itself.[/color]

      Yes, I know. I was just explaining the problem :-)
      [color=blue]
      >[color=green]
      > > i'd like to write something like "Wow!! look thos flash!!!".[/color]
      >
      > Then use an html page and the title attribute.[/color]


      [color=blue]
      >[color=green]
      > > Could I do that from the function who launch it??? with something like[/color][/color]
      this?[color=blue]
      >
      >[color=green]
      > > myWin.title = 'Hello world!!!';[/color]
      >
      > That depends on whether the .swf file allows the title to be set. Highly
      > doubtful, see above.[/color]

      I don't think the SWF control the title bar.....

      thank you anyway!!!

      bye


      Comment

      • Lee

        #4
        Re: changing window title from parent window

        Luis said:[color=blue]
        >
        >
        >"Randy Webb" <HikksNotAtHome @aol.com> escribió en el mensaje
        >news:rPmdnZoIc rsoWJjcRVn-gg@comcast.com. ..[color=green]
        >> Luis wrote:[color=darkred]
        >> > Hello
        >> >
        >> > I'm opening a window with a SWF inside (no HTML, just the SWF) but in[/color][/color]
        >the[color=green][color=darkred]
        >> > title bar appears something like
        >> >
        >> > http://www.server.com/myDir/myWeb/Flash/myFlash.swf[/color]
        >>
        >> Yep, thats because you are attempting to open the .swf file itself.[/color]
        >
        >Yes, I know. I was just explaining the problem :-)
        >[color=green]
        >>[color=darkred]
        >> > i'd like to write something like "Wow!! look thos flash!!!".[/color]
        >>
        >> Then use an html page and the title attribute.[/color]
        >
        >
        >[color=green]
        >>[color=darkred]
        >> > Could I do that from the function who launch it??? with something like[/color][/color]
        >this?[color=green]
        >>
        >>[color=darkred]
        >> > myWin.title = 'Hello world!!!';[/color]
        >>
        >> That depends on whether the .swf file allows the title to be set. Highly
        >> doubtful, see above.[/color]
        >
        >I don't think the SWF control the title bar.....[/color]

        That's right. What he's saying is that, since you're opening a SWF
        file, instead of an HTML file, there is no title attribute. If you
        want to set the title, you can open an HTML file that contains the
        SWF file, instead. One way would be:

        function openSWF(URL,tit le) {
        globalHTML = "<html><head><t itle>"
        +title+"</title></head><body>"
        +"<iframe width='100%' height='100%' "
        +"frameborder=' 0' src='"+URL
        +"'></iframe></body></html>";
        myWin=window.op en("javascript: opener.globalHT ML");
        }

        Comment

        Working...