Connecting Tech Pros Worldwide Help | Site Map

changing window title from parent window

Luis
Guest
 
Posts: n/a
#1: Jul 23 '05
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

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
Guest
 
Posts: n/a
#2: Jul 23 '05

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.
Luis
Guest
 
Posts: n/a
#3: Jul 23 '05

re: changing window title from parent window



"Randy Webb" <HikksNotAtHome@aol.com> escribió en el mensaje
news:rPmdnZoIcrsoWJjcRVn-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


Lee
Guest
 
Posts: n/a
#4: Jul 23 '05

re: changing window title from parent window


Luis said:[color=blue]
>
>
>"Randy Webb" <HikksNotAtHome@aol.com> escribió en el mensaje
>news:rPmdnZoIcrsoWJjcRVn-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,title) {
globalHTML = "<html><head><title>"
+title+"</title></head><body>"
+"<iframe width='100%' height='100%' "
+"frameborder='0' src='"+URL
+"'></iframe></body></html>";
myWin=window.open("javascript:opener.globalHTML");
}

Closed Thread