Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorMonokai
    • CommentTimeSep 20th 2006
     permalink
    Sometimes, when you want to implement Monoslideshow on your page, you'll have to tell Monoslideshow where its "base path" is. This base path tells Monoslideshow to what folder its links in the .XML file are relative to. For example, if your site is structured as follows:

    /index.html
    /slideshow/ (folder)
    /slideshow/monoslideshow.swf
    /slideshow/monoslideshow.xml
    /slideshow/albums (folder)
    /slideshow/albums/image1.jpg
    /slideshow/thumbnails/(folder)
    /slideshow/thumbnails/image1.jpg

    You'll have to add this to your index.html:

    var so = new SWFObject("/slideshow/monoslideshow.swf", "SOmonoslideshow", 480, 360, "7", "#ffffff");
    so.addParam("base", "/slideshow/");
    so.write("monoSlideShowIndex");

    (using Deconcept SWFObject)

    The magic is in the extra Flash parameter "base". It tells Monoslideshow which folder to consider as the base folder, so it can find the location of "monoslideshow.xml" and the link to the images in the .XML file.
    • CommentAuthoryello
    • CommentTimeMar 25th 2007
     permalink
    How and where would I set this base path, when I embed the monoslideshow within another .swf (since while making a publishing preview in Flash everything seems to work fine, but as soon as I put the whole thing within a html page monoslideshow stays black and shows no error message either )

    Thx

    Yel
    •  
      CommentAuthorMonokai
    • CommentTimeMar 25th 2007
     permalink
    You could perhaps provide a "base" parameter to your other .swf file, but it all depends on your folder structure.
    • CommentAuthoryello
    • CommentTimeMar 26th 2007
     permalink
    ok my folder structure as follows:

    /index.htm

    /SWF/ (folder)

    /SWF/parent.swf
    /SWF/monoslideshow.swf
    /SWF/monoslideshow.xml

    /SWF/album/ (folder)

    /SWF/album/images
    /SWF/album/thumbnails

    in my parent.swf movie I have an empty movie clip called "diashow", that I drag on the stage at the timeline where I need it

    NOW: if I put the following code on the first frame of the 'diashow' in publishing preview mode everything works perfect:

    __________________________________________________________________________

    function loadingFinished(target:MovieClip):Void {
    var monoslideshow:Object = new Monoslideshow(target, "monoslideshow.xml");
    monoslideshow.start(700, 480, false);
    }

    var listener:Object = new Object();
    var movieClipLoader:MovieClipLoader = new MovieClipLoader();
    listener.onLoadInit = loadingFinished;
    movieClipLoader.addListener(listener);
    this.createEmptyMovieClip("holder", this.getNextHighestDepth());
    movieClipLoader.loadClip("monoslideshow.swf", this.holder);

    __________________________________________________________________________


    BUT IF I CALL IT VIA 'index.htm' file just black screen !!



    I tried many variations (putting the 'function' code on the first frame of the parent main movie, etc , etc.), but nothing seems to work. What can I do ?? I just don't seem to get it right !!

    All help would be highly appreciated !!

    thx

    Yel
    •  
      CommentAuthorMonokai
    • CommentTimeMar 26th 2007
     permalink
    Does this work?

    var so = new SWFObject("/SWF/parent.swf", "SOparent", 480, 360, "7", "#ffffff");
    so.addParam("base", "/SWF/");
    so.write("parentIndex");
    • CommentAuthoryello
    • CommentTimeApr 6th 2007
     permalink
    thanks a lot. This seems to have done the trick. I have another small problem though. If I go from a single image view to thumbnail view and there choose a picture to see in single view, I always see for half a second the 'old' image before it switches to the freshly chosen one (I think I have set all parameters to noTransition). Is there a way to elliminate the quick flashing of the 'older picture' ?

    thx Yel
    • CommentAuthorflemmens
    • CommentTimeMay 6th 2008
     permalink
    Hello,

    I made several tries but it doesn't work :'-(

    I have the classic default structure in / and an exact copy in /sub/

    This code works well (but it takes the monoslideshow.xml in / and not in /sub/) :
    <script type='text/javascript'>
    var so = new SWFObject("/sub/monoslideshow.swf", "SOmonoSlideshow", "930.00", "655.00", "7", "#000000");
    so.write("flashcontent");
    </script>

    But this one doesn't (I have a black screen) :
    <script type='text/javascript'>
    var so = new SWFObject("/sub/monoslideshow.swf", "SOmonoSlideshow", "930.00", "655.00", "7", "#000000");
    so.addVariable("base", "/sub/");
    so.write("monoSlideShowIndex");
    so.write("flashcontent");
    </script>

    Actually I can put "/", "" or anything in the base variable, it never works, I always get a black screen... what is wrong ?

    Thanks for help
    • CommentAuthorflemmens
    • CommentTimeMay 6th 2008
     permalink
    Ok, I solved the problem by using the version 2.0 of SWFObject (http://code.google.com/p/swfobject) and customize the code.