1 (edited by chalger 2010-06-07 14:14:00)

Topic: CD presentation. Fullscreen on autostart (etc :] )

Hello all :)
Is it possible to run simpleviewer in fulscreen mode when it's loaded into the browser? (and browser closes when one exits the fullscreen?)

What I'd like to do is simply create a simple web page containing SV gallery. Then all files get burnt onto a CD containing also an autorun script that runs the index.html using system default browser. When the browser opens I'd like it to show up gallery right in the fullscreen mode and when a user exits the fullscreen the browser also closes.

Is it possible to do it?

Or maybe there's someone that could enlighten me with a way to run gallery as a standalone version (exe) in the fullscreen mode at start.

I wrote couple of scripts in ActionScript and know Adobe Flash enviroment quite well so I know that every flash movie  can be run as a standalone player.

Every help is apprieciated :)

Please note I also own SV PRO, maybe that will make a diffrence in features availability.,

Re: CD presentation. Fullscreen on autostart (etc :] )

Flash requires a user click to go FUllscreen. This is a security restriction.

You could load SimpleViewer-Pro into a Flash container movie and add a button at the start 'Click to Start' that triggers fullscreen mode.

Felix Turner
SimpleViewer Support Team.

Re: CD presentation. Fullscreen on autostart (etc :] )

Hi Felix, thanks for the answer :)
Could you transfer this thread to the PRO support section please...

In topic:
I believe in case of creating a CDROM presentation it is faster and more "professional" to create a simple exe projector in Flash.

I've slightly modified your code from  "how to embed" section and a resizing from *.fla sample and got this :

/* fires the playback in fullscreen (works in projector only) */
fscommand("fullscreen", "true"); 

var svAPI:Object; //svAPI is the object to call API methods on
var svLoader:Loader = new Loader();
svLoader.contentLoaderInfo.addEventListener(Event.INIT, onViewerInit);
svLoader.load(new URLRequest("simpleviewer.swf"));

/* Fired when preloader is available Can set gallery flashvars at this point */
function onViewerInit(e:Event):void{
Object(svLoader.content).addEventListener("svComplete", onGalleryLoaded);
var options:Object = Object(svLoader.content).embedOptions;
options.galleryURL = "gallery.xml";

/* Fired when gallery has completely loaded */
function onGalleryLoaded(e:Event):void{
svAPI = Object(svLoader.content).api;
svAPI.setSize(Capabilities.screenResolutionX, Capabilities.screenResolutionY);


//called on stage resize
function onResize(e:Event){    
    //resize SV to match frame size
    if (svAPI != null ) svAPI.setSize(stage.stageWidth, stage.stageHeight);

It's very simple projector but does the job for me :) It should work with any SV gallery so if you (I mean reader) want to give it a go, here it is .
Felix maybe you should consider addind similar fullscreen projector to the SVPro package :)

Keep up good work. Regards.

Re: CD presentation. Fullscreen on autostart (etc :] )

Thanks for sharing.

Felix Turner
SimpleViewer Support Team.