Topic: Problem with flash embedded and HTML

Hello,
I'm designing my new web but i have a problem.
The web is designed simpleviewer 2.1.3, it have a principal flash that when is opened in on the center of the screen, but when i want to open simpleviewer embedded, the principal flash go to the top-left of the screen.

thanks for any help and regards,
Santi

Re: Problem with flash embedded and HTML

If you are embedding SimpleViewer into an HTML page, then please see here: http://simpleviewer.net/simpleviewer/su … html#embed
If you are embedding SimpleViewer Pro into a Flash container movie, then please see here: http://simpleviewer.net/simpleviewer/pr … html#flash

If you continue to experience difficulties, then please post the URL to your gallery so that we can take a look.

Steven Speirs
SimpleViewer Support Team.

Re: Problem with flash embedded and HTML

Hi,
Thanks for your response.

It do the same.

here is the web page:

www.santibedoya.com/test

You have to pick on peope button to se the error.

Thanks and regards

Re: Problem with flash embedded and HTML

Would you be able to upload or email me (via the forum) the .fla file for your container movie so that I can take a look?
There must be something (possibly in the loadGallery or onGalleryLoaded functions) that is causing this shift.

Steven Speirs
SimpleViewer Support Team.

Re: Problem with flash embedded and HTML

Hi,

here is the .fla

http://www.santibedoya.com/test/Pagina-WEB.fla

Again, Thanks,
Santi

Re: Problem with flash embedded and HTML

Here's a quote from this page: http://simpleviewer.net/simpleviewer/pr … html#flash

SimpleViewer uses StageScaleMode.NO_SCALE and StageAlign.TOP_LEFT. Check the resize code in the example FLA to see how to handle resizing with these parameters set.

When you embed SimpleViewer Pro, it will override the stage properties of the container movie. Check the resize code in the 'simpleviewer_pro_213/examples/flash_embed/simpleviewer_flash_embed.fla' file from the SimpleViewer Pro download package to see how to handle resizing with these parameters set.

Steven Speirs
SimpleViewer Support Team.

Re: Problem with flash embedded and HTML

Do the same.

You can do the prove with the simpleviewer_flash_embed.fla.

Put the principal window on Botton of the Screen:
stage.align = StageAlign.BOTTOM_LEFT;       

It ups because it call loadgallery at the begining, but you can see the move, or erase the loadGallery("gallery_1.xml"); an pick the gallery 1 or gallery 2 and you will see tha it happend.!

Regards and thanks,
Santi

Re: Problem with flash embedded and HTML

I've done some more searching in the forum and I found this thread: http://www.simpleviewer.net/forum/viewt … p?id=11286

SimpleViewer requires StageScaleMode.NO_SCALE and StageAlign.TOP_LEFT. If you want to embed it you have to modify the loading SWF to work with those parameters.

SimpleViewer requires (not just uses) these parameters and the workaround is for your container movie to also use those parameters.

Steven Speirs
SimpleViewer Support Team.

Re: Problem with flash embedded and HTML

Hi Again,
I tried but is very difficult to modify the SWF to work in every Screen, i have tried on tree differents but i don't have the same result.

If  you want can see in my example:

www.santibedoya.com/new2

Prove it in two differents width screen to see the result.

Is not possible to change the code, to work like Simpleviewer 1.9?

Regars,
Santi

Last edited by santiagobf (2011-07-19 18:29:57)

Re: Problem with flash embedded and HTML

I realise you are looking to center your Flash presentation, but are you able to get a working gallery that resizes correctly when using StageScaleMode.NO_SCALE and StageAlign.TOP_LEFT for your container movie?

Steven Speirs
SimpleViewer Support Team.