Topic: TiltViewer-Pro questions for flash projector

Greetings all,

To start off cool product!

Now on to my questions. 

I am embedding TiltViewer-pro within a projector (set to full screen) and I’m having a few problems with the action scripting settings.

Question 1:
When TiltViewer is embedded into the second scene of my presentation it moves all of my other flash elements to the upper left corner of the screen.  Is tere any way to prevent this from happening?

Question 2:
I am also attempting to use the mask feature in the action scripting:

[code]stage.addEventListener(Event.ENTER_FRAME,resizeTiltViewer);
function resizeTiltViewer(e:Event){       
    //example tiltViewer size and position values
    var tvWidth = stage.stageWidth/2;
    var tvHeight = stage.stageHeight/2;
    var tvX = stage.stageWidth/4;
    var tvY = stage.stageHeight/4;       
    ldr.x = tvX;
    ldr.y = tvY;
    var tiltviewer = Object(ldr.content)._app;
    if ( tiltviewer != null){
        tiltviewer.autoSize = false;
        tiltviewer.setSize(tvWidth,tvHeight);
    }   
}
[/code]

can you please provide further instruction in greater detail of how to accurately mask the TiltViewer?

Thanks in advance!

[/code]

Re: TiltViewer-Pro questions for flash projector

When TiltViewer is embedded into the second scene of my presentation it moves all of my other flash elements to the upper left corner of the scree

TiltViewer uses this code:

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;    

which will be causing the shift. Try adding that code in your container swf and center your content in your code.

can you please provide further instruction in greater detail of how to accurately mask the TiltViewer?

There is example masking code in the FLA, just uncomment it.

Felix Turner
SimpleViewer Support Team.

Re: TiltViewer-Pro questions for flash projector

Hello Felix,

Thanks for getting back to me.

Well I was successful in getting my content to be centered and scaled appropriately, by the way you recommended.  However, now tiltviewer itself then no longer appears.

Would you have any thoughts on the matter?

Thanks again.

Re: TiltViewer-Pro questions for flash projector

Well I was able to solve, for the most part, my first set of issues.  But now I have one final issue. It has to do with resizing the mcBkgnd movie clip which houses all of my stage elements.

The code:

stage.scaleMode = StageScaleMode.NO_SCALE;

and

//example background resizing code
stage.addEventListener(Event.RESIZE,onResize);
onResize(null);
//called on stage resize
function onResize(e:Event){    
    mcBkgnd.width = stage.stageWidth;
    mcBkgnd.height = stage.stageHeight;
}

Appears to affect the resize attributes.

The problem I'm having is when the stage resizes it doesn't maintain the aspect ratio.  To try and solve this I have reset the NO_SCLAE to SHOW_ALL which is supposed to fill the screen and maintain the ratio of the stage.

From what I can tell stageWidth and stageHeight are blocking this from happening.

My Actionscripting, needless to say, is very weak but I'm willing to experiment.  If anyone has any suggestions they will be Greatly Appreciated.


Thank you!

Re: TiltViewer-Pro questions for flash projector

Have you by chance figured this out?
I am having the same issue with SimpleViewer Pro. I can make my swf resize appropriately  by using the
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.scaleMode = StageScaleMode.SHOW_ALL;
but once i try to add my gallery, it resizes it.
Hoping you have had more success than I.