Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Graphics, Flash and Multimedia _ Open New Window

Posted by: b_ginna Sep 5 2006, 05:46 PM

Hello everyone, I need some help opening a new window of a certian size with limited features.

Here's my scenario:

I have developed a page in Flash MX and I want to be able to click on a link in the flash movie which opens a new window on top that is limited to 600 x 500 pixels, no tollbar, no location, no directory etc.

I have worked out how to call a new window from Flash MX and I have worked out how to get a Javascript to make the window I want but I cant seem to be able to do it in one step.

Can anyoone help please?

Rgds,

b_ginna

Posted by: John Pozadzides Sep 5 2006, 08:28 PM

Sorry I can't answer this question. sad.gif

I am however moving it to the Flash and Multimedia forum as it seems you are looking for help with how to open a new window specifically using Flash.

John

Posted by: b_ginna Sep 5 2006, 08:33 PM

QUOTE(John Pozadzides @ Sep 5 2006, 08:28 PM) *

Sorry I can't answer this question. sad.gif

I am however moving it to the Flash and Multimedia forum as it seems you are looking for help with how to open a new window specifically using Flash.

John



Thanks John, you can see from my ambigious question that I am a newbie. All I really want to do it open a new window wiht pre-determined parameters.

Regards,

b_ginna

Posted by: pandy Sep 5 2006, 09:17 PM

We know how to do that, but not how to do it from Flash. Do you use normal JavaScript to do this from within Flash? In that case, see http://htmlhelp.com/faq/html/links.html#window-specify .

Posted by: mcmuffin Sep 27 2006, 03:39 PM

[color=#FF0000] if ur a biginer the best place to go for help is http://www.funky-chickens.com/ or aternatavbly go to http://www.freewebs.com


hope that helped ninja.gif

Posted by: Darin McGrew Sep 27 2006, 03:47 PM

QUOTE(mcmuffin @ Sep 27 2006, 01:39 PM) *
if ur a biginer the best place to go for help is http://www.funky-chickens.com/
http://allmyfaqs.net/faq.pl?Flavell's_Law applies:
http://www.htmlhelp.com/cgi-bin/validate.cgi?url=http%3A%2F%2Fwww.funky-chickens.com%2F&warnings=yes
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.funky-chickens.com%2F&usermedium=all

And I can't recommend the advice in the tutorial either.

Posted by: pandy Sep 27 2006, 03:50 PM

Isn't it freewebs that only allows a small number fo files? Odd restriction, that.

Posted by: jimlongo Sep 27 2006, 04:23 PM

QUOTE(b_ginna @ Sep 5 2006, 09:33 PM) *

Thanks John, you can see from my ambigious question that I am a newbie. All I really want to do it open a new window wiht pre-determined parameters.


Google leads me to believe it's something along the lines of http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14192.

Posted by: Kewley Oct 10 2006, 05:25 PM

Add this to the launch button in your flash file:

CODE
on (release) {
getURL("java script:launch('URL-HERE')");
}



Add the following to the html page that your flash movie is embedded in.

CODE
<script language="javascript">
function launch (page) {
openwin = this.open(page,"Javascript test",& #34;location=no,scrollbars=yes,toolbar=no,menubar=no,resizable=no,width=600,heig
ht=500,top=20,left=20");}
</script>


Note: This will only work if it is running on a server.

Posted by: Christian J Oct 11 2006, 05:55 AM

QUOTE(Kewley @ Oct 11 2006, 12:25 AM) *

CODE
on (release) {
getURL("java script:launch('URL-HERE')");
}



Note that there probably shouldn't be a space between "java" and "script", this is a bug in the forum software (even if you type "javascript" the space is sometimes added).

Posted by: Darin McGrew Oct 11 2006, 08:12 AM

QUOTE
Note that there probably shouldn't be a space between "java" and "script", this is a bug in the forum software (even if you type "javascript" the space is sometimes added).
I think it's supposed to be a security measure, but IMHO it serves as a good reminder that any time you're tempted to use java script:... pseudo-URLs, you should reconsider. It's better to use a real URL, and to put the JavaScript in an event handler. ;-)

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)