Topic: Add multi flash galleries (one flash file) in html/php

Hello everyone.

I m quite busy with the flash multi galleries.
I made a flash gallery that contains pictures from 2 xml files.
I tested the gallery in a flash player / flash 8 and it worked.
Now I want to add this multiple gallery flash file in my php file.

I called the new (multiple gallery flash file) kids.swf

When i navigate to my site to see if it works, the pictures wont come sad
I see the 2 buttons I made, but the flash gallery does not do a thing.


My php code:

    <div id="flashcontent">
<script type="text/javascript" src="java/swfobject.js"></script
    <div class="text">SimpleViewer requires JavaScript and the Flash Player. <a

href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
   
<script type="text/javascript">
   
        var fo = new SWFObject("flash/kids.swf", "viewer", "100%","100%", "0", "#B0A9AD");       
   
        fo.write("flashcontent");   
    </script></div>

also when i use the standard var fo functions, it wont work.
Does some one know how to embed these multi flash galleries into a php/html file?

Last edited by mike23 (2009-09-17 19:38:27)

Re: Add multi flash galleries (one flash file) in html/php

Please post the url for the gallery.

Mike Richards
SimpleViewer Support Team.

Re: Add multi flash galleries (one flash file) in html/php

alright,

        var fo = new SWFObject("flash/kids.swf", "viewer", "100%","100%", "0", "#B0A9AD");
       
    fo.addVariable("xmlDataPath", "flash/kidsoption1.xml");
        fo.addVariable("xmlDataPath", "flash/kidsoption2.xml");
    fo.addVariable("firstImageIndex", "0");   
    fo.addVariable("langOpenImage", "Afbeelding in nieuw venster openen");
    fo.addVariable("langAbout", "Over");       
    fo.addVariable("preloaderColor", "0x006600");
    fo.addVariable("frameColor", "0xB5E100");
   
        fo.write("flashcontent");

I tried also:

fo.addVariable("xmlDataPath", "flash/ gallid +".xml");


but that aint working wink

Re: Add multi flash galleries (one flash file) in html/php

If you are using multiple galleries embedded in flash you do not use xmlDataPath within your HTML doc, it should be in your flash. Did you follow the flash embedded example that came in the pro folder, simpleviewer-pro\simpleviewer_pro\examples\Flash Embed?

If I'm missunderstanding you and you are not trying to use a flash embed, but are embedding 2 galleries in an html page each gallery should be in it's own folder. You can find an example of that also in the pro download, simpleviewer-pro\simpleviewer_pro\examples\HTML Embed\multiple galleries example.

Mike Richards
SimpleViewer Support Team.

Re: Add multi flash galleries (one flash file) in html/php

Thnx.

Thats what I ment. Flash embedded.
Thanks for the tip, I asw, but think that I didn't read it well.
So I will try it with the example.

Re: Add multi flash galleries (one flash file) in html/php

I did open the kids.fla document.
And i saw that the path to the XML files weren t correct.

Stupid fault.

Thnx for the tip and sorry for this post !