PDA

View Full Version : How to open website at a certain size?


nture
03-10-2008, 07:33 PM
I'm using Flash Professional 8 on Windows XP.

My Flash project opens up full screen to a menu with buttons to different websites, which open up in a new window. Using the fullscreen command, when I test the projector, the websites open up full screen behind the menu with one click, and in front of the menu with 2 clicks. Ideally, I'd like the website to open up at 800x600 in front of the menu with one click.

On frame 1 is an action script to open Flash at full screen:

fscommand("fullscreen", "true");

On frame 1 are buttons with action script to open different websites, one of which is:

on(release){
getURL("http://www.mvla.net");
}

My questions:

1) How to tell the websites to open in a new window at a specific size, say 800x600 pixels, instead of full screen?

2) Using the fullscreen command for my projectors, how to make the websites open _in front_ of the menu/flash projector instead of behind?

3) If this is not possible to do with fullscreen command, then I can keep my projector at 800x600 size. However, the website still opens in full screen, so still need answer to Question #1.

Thanks for any help!

nture
03-10-2008, 11:52 PM
Technical support at Adobe says its impossible to do for a standalone projector file.

northcode
03-11-2008, 02:28 AM
It's difficult, but it's not impossible.

It can be trivial with the right third party swf2exe tool. Here's an example of how to do it using SWF Studio (my product). This makes your browser window appear above your fullscreen projector and sets the size and position of the browser window as well.


ssCore.init();
ssDefaults.synchronousCommands = true;

fscommand("fullscreen", "true");

url_btn.onRelease = function()
{
ssCore.Shell.invoke({path:"http://www.northcode.com", x:100, y:100, width:800, height:600, openAs:"html", topmost:"true"});
}
This is harder to do from a Flash projector because you have to write a custom helper application that would replicate what SWF Studio is doing for you with the ssCore.Shell.invoke command.

atomic
03-11-2008, 02:34 AM
He! He!

What did I say!

http://www.actionscript.org/forums/showpost.php3?p=715921&postcount=5

northcode
03-11-2008, 06:04 AM
You called it atomic!

There's just way too much going on here for me to read everything so I try and stay focused here where I can help the most. I also avoid looking like an newb that way, since my knowledge of Flash and ActionScript is limited mostly to what I've had to pick up the get the job done.

Word usually gets around about where I hang out and people always seem to manage to find me eventually ;)

nture
03-11-2008, 05:46 PM
Thanks Atomic for sending me to these threads, and thanks Northcode for your answer.

Any chance that you'd want to part with the code that makes it work for a standalone projector?

northcode
03-11-2008, 07:56 PM
I don't have any code that makes it work with a regular standalone projector. I'd have to write it. It would probably take me a couple of hours to bang out something like that as a standalone utility, then a few more to test it and make sure it worked as advertised.

nture
03-12-2008, 01:51 AM
Got it! Sorry! Thought I'd ask :)

I'll try your free download of the SWF Studio and use the ssCore.Shell.invoke command that you shared below. Then, if I can convince my work, we'll get it.

Thanks!

atomic
03-12-2008, 03:32 AM
Ahhhhhhhh! I like happy endings! ;)