Photo gallery (using Loader with no xml)

Hello, currently I'm doing a photo gallery.
Inside .fla, only 2 frame:
1st is for my 3 category: A, B, C.
stop();
A.addEventListener(MouseEvent.CLICK, clickSection);
B.addEventListener(MouseEvent.CLICK, clickSection);
C.addEventListener(MouseEvent.CLICK, clickSection);
function clickSection(evt:MouseEvent):void{
    gotoAndStop("gallery");
    loader.unload();
    req = new URLRequest(evt.target.name + "_gallery.swf");
    createLoader();
    loader.load(req);
2nd is to load the swf externally.
var req:URLRequest
var container_mc:MovieClip
var loader:Loader = new Loader();
req = new URLRequest("A.swf");
createLoader();
loader.load(req);
function createLoader():void{
    loader = new Loader();
    loader.contentLoaderInfo.addEventListener(Event.INIT, initListener);
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, fileLoaded);
function initListener(evt:Event):void{
    addChildAt(loader,1);
function fileLoaded(evt:Event):void{
    container_mc = MovieClip(loader.content);
debug (click the button and it pop this):
RangeError: Error #2006: The supplied index is out of bounds.
    at flash.display::DisplayObjectContainer/addChildAt()
    at main_gallery_fla::MainTimeline/initListener()
any ideas why?

Yes, two... the first being the most important...
1) Learn how to use the help documentation (and Google).  If you look up addChild in the help documents it will define what you need to know to be able to use it.  The same goes for any other element of the AS3 language.  The help documents are a primary tool in learning/using AS3 (or any language).
2) use:  addChild(loader);
I couldn't really follow your description in the first posting, but I would almost expect a flurry of other errors unless I am misinterpretting what you described.  Very often errors get reported in sequence, not all at once.

Similar Messages

  • Help with Photo Gallery using XML file

    I am creating a photo gallery using Spry.  I used the Photo Gallery Demo (Photo Gallery Version 2) on the labs.adobe.com website.  I was successful in creating my site, and having the layout I want.  However I would like to display a caption with each photo that is in the large view.
    As this example uses XML, I updated my file to look like this:
    <photos id="images">
                <photo path="aff2010_01.jpg" width="263" height="350" thumbpath="aff2010_01.jpg" thumbwidth="56"
                   thumbheight="75" pcaption="CaptionHere01"></photo>
                <photo path="aff2010_02.jpg" width="350" height="263" thumbpath="aff2010_02.jpg" thumbwidth="75"
                   thumbheight="56" pcaption="CaptionHere02"></photo>
                <photo path="aff2010_03.jpg" width="350" height="263" thumbpath="aff2010_03.jpg" thumbwidth="75"
                   thumbheight="56" pcaption="CaptionHere03"></photo>
    </photos>
    The images when read into the main file (index.asp) show the images in the thumbnail area and display the correct image in the picture pain.  Since I added the pcaption field to the XML file, how do I get it to display?  The code in my index.html file looks like this:

    rest of the code here:
            <div id="previews">
                <div id="controls">
                    <ul id="transport">
                        <li><a href="#" class="previousBtn" title="Previous">Previous</a></li>
                        <li><a href="#" class="playBtn" title="Play/Pause" id="playLabel"><span class="playLabel">Play</span><span class="pauseLabel">Pause</span></a></li>
                        <li><a href="#" class="nextBtn" title="Next">Next</a></li>
                    </ul>
                </div>
                <div id="thumbnails" spry:region="dsPhotos" class="SpryHiddenRegion">
                    <div class="thumbnail" spry:repeat="dsPhotos"><a href="{path}"><img alt="" src="{thumbpath}"/></a><br /></div>
                    <p class="ClearAll"></p>
                </div>
            </div>
            <div id="picture">
                <div id="mainImageOutline"><img id="mainImage" alt="main image" src=""/><br /> Caption:  {pcaption}</div>
            </div>
            <p class="clear"></p>
        </div>
    Any help with getting the caption to display would be greatly appreciated.  The Caption {pcaption} does not work,

  • I need a flash tutorial on Iphone style Scrolling Photo Gallery using Next/previous Buttons

    Here i have attached two sample Fla files of  iphone style scrolling photo gallery using next Previous buttons. Smoothscroller.fla is the  original file download from internet and thumbscroll.fla is the one i m trying to make. But i m getting the actionscript error in the movieclip symbol 2 frame 2 actionscript frame. Can anyone work out on my file & send me the easiest tutorial of flash so that i can complete my portfolio project.
    Mail me ur tutorials at : [email protected]

    Just Google for the Spry photo gallery and you might find
    http://cates-associates.net/tutorials/Tutorial-CS3-Spry.html
    or even a few others.
    Happy Sprying
    Ben

  • Advanced photo gallery - need help with MCs

    Hello all. I have a photo gallery I am creating that can
    contain up to 120 images. Rather than create buttons and movie
    clips for each, I am hoping to dynamically build it with 1 movie
    clip. But I am having trouble with my code. Here's what I am trying
    to do:
    Duplicate a movie clip on the stage with an instance name of
    e1, giving each successive MC an instance name of e[i+1]
    load external images into each movie clip representing images
    e1 through e120
    set the alpha of the movie clip to 50%
    then onRollOver:
    Set alpha to 100%, resetting to 50% onRollOut
    onPress
    assign a variable equal to the image loaded (e1 - e120)
    pop up a box and pass the variable into it, which will then
    load a larger version of the same image being called from a
    different folder.
    That being said, here's my flawed code
    var i:Number;
    for (i = 0; i < 119; i++) {
    this.holder.duplicateMovieClip; //duplicates the MC holder
    already on the stage
    this._name = "e"+i;
    this["e"+i]_x = _x + 50;
    this["e"+i]._alpha = 50;
    this.loadMovie("images/thumbnails/e" + i + ".jpg");
    This code is not working on anything other than the first MC.
    Here is the code for mouseover functions:
    var i:Number;
    for (i = 0; i < 119; i++) {
    this["e"+i].onRollOver=function() {this["e"+i]._alpha=100};
    this["e"+i].onRollOut=function() {this["e"+i]._alpha=50};
    this["e"+i].onPress=function() {
    _root.myVar = ["e"+i];
    _root.myLargeImage.gotoAndPlay(2)
    The problem with this section of code is that the dynamically
    loaded movie clips do not accept any event commands (onRollOver,
    onPress, etc). It is fine before I load external jpegs, but not
    noce they are loaded
    Any help would be GREATLY appreciated.
    Thanks

    You rollover code doesn't work because you are assigning the
    functions
    before you load the images. The loaded images remove your
    code. You should
    not use loadMovie and use the MovieClipLoader class instead.
    Then, in its
    onLoadInit method you can assign your functions - so that
    they are assigned
    after the clip is loaded. Also, I'd either just create empty
    clips, on the
    fly, to load into or attach from the library. And
    duplicateMovieClip is not
    a property it is a method - calling like you are doing will
    not work. If
    you'd look in the Help you'll see that duplicateMovieClip can
    accept an init
    object, and also returns a ref to the new clip... So your
    code can be much
    simplified:
    this.holder.duplicateMovieClip; //duplicates the MC holder
    already on the
    stage
    this._name = "e"+i;
    this["e"+i]_x = _x + 50;
    this["e"+i]._alpha = 50;
    To:
    this.holder.duplicateMovieClip("e" + i,
    this.getNextHighestDepth(),
    {_x:theX, _alpha:50});
    And you can't set _x to _x + 50 like that... for one you'd
    need to use more
    like this._x = this._x + 50 or this._x += 50. But it still
    won't work here
    since all the new clips are going to be created at x=0. You
    need to
    increment a variable... or base the spacing on your loop
    variable, i - like
    i *50.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Trying to create a photo gallery... with little knowledge of Flex

    Hey Guys,
    I am trying build a photo gallery and I am having the hardest time.
    Is there anything out there that helps people from scratch ?
    I need help learning where to store the images... IE... jpegs
    and the right syntax to call up the code...
    Path info etc...
    I tried to hack two of the following programs but in the case below the program could not find the files...
    I am looking for an easy way to get started any help would be great
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" verticalScrollPolicy="off" horizontalScrollPolicy="off"   initialize="init()"  applicationComplete="startitup()" backgroundGradientColors="[0xffffff, 0x00808C]"  >
    <mx:HTTPService id="movieRequest" url="data/otrdata.xml" result="movieHandler(event)"/>
    <mx:Glow id="glowImage" duration="200"
            alphaFrom="1.0" alphaTo="0.5"
            blurXFrom="0.0" blurXTo="15.0"
            blurYFrom="0.0" blurYTo="15.0"
            color="0x00FF00"/>
        <mx:Glow id="unglowImage" duration="200"
            alphaFrom="0.3" alphaTo="1.0"
            blurXFrom="15.0" blurXTo="0.0"
            blurYFrom="15.0" blurYTo="0.0"
            color="0x0000FF"/>
    <mx:Fade
        id="fade"
        target="{myImage}"
        duration="400"
        alphaFrom="0"
        alphaTo="1"/>
    <mx:TextArea x="463" y="156" height="326" width="387" id="myText" fontSize="14" editable="false"/>
        <mx:Image x="23" y="157" width="432" height="325" id="myImage" scaleContent="true"   complete="fade.play()"/>
    <mx:Tile direction="horizontal" borderStyle="inset"
                horizontalGap="10" verticalGap="15"
                paddingLeft="10" paddingTop="10" paddingBottom="10" paddingRight="10" x="62" y="70" width="750" height="77">
                <mx:Repeater id="rp" dataProvider="{movieData}">
                    <mx:Image height="49" width="50" rollOverEffect="{glowImage}"  rollOutEffect="{unglowImage}"   mouseUpEffect="{unglowImage}" toolTip="{rp.currentItem.subtitle}" source="{rp.currentItem.icon}" click="mygothere(event.currentTarget.getRepeaterItem ())" />
                </mx:Repeater>   
                </mx:Tile>
                                        <mx:Label x="78" y="485" id="sourceTag0" width="333" textAlign="center" fontSize="14"/>
    <mx:Label x="23" y="24" id="sourceTag1" fontSize="18" fontWeight="bold" width="281"/>
    <mx:Image x="801" y="14" id="navimage1" source="@Embed(source='images/icons/Urbm.jpg')"  rollOverEffect="{glowImage}"  rollOutEffect="{unglowImage}"   mouseUpEffect="{unglowImage}" width="43" height="32" click="myMainget('All'),myNumfind(0)"/>
    <mx:Label id="labelall" x="813" y="50" text="All" rollOverEffect="{glowImage}"  rollOutEffect="{unglowImage}"   mouseUpEffect="{unglowImage}" width="43" height="18" click="myMainget('All'),myNumfind(0)" />
    <mx:Image x="383" y="14" rollOverEffect="{glowImage}"  rollOutEffect="{unglowImage}"   mouseUpEffect="{unglowImage}" source="@Embed(source='images/icons/Buddy.jpg')" width="38" height="32" id="navimage2" click="myMainget('Home'),myNumfind(0)"/>
    <mx:Label x="382" y="49" text="Home" rollOverEffect="{glowImage}"  rollOutEffect="{unglowImage}" click="myMainget('Home'),myNumfind(0)"/>
    <mx:Image x="435" y="14" rollOverEffect="{glowImage}"  rollOutEffect="{unglowImage}"   mouseUpEffect="{unglowImage}" source="@Embed(source='images/icons/buildingjob.jpg')" width="45" height="32" id="navimage3"  click="myMainget('City Life and Rhetoric'), myNumfind(0)"/>
    <mx:Label x="430" y="49" text="Rhetoric" rollOverEffect="{glowImage}"  rollOutEffect="{unglowImage}"   mouseUpEffect="{unglowImage}"  width="56" height="19"   click="myMainget('City Life and Rhetoric'), myNumfind(0)"/>
    <mx:Image x="491" y="14" rollOverEffect="{glowImage}"  rollOutEffect="{unglowImage}"   mouseUpEffect="{unglowImage}" source="@Embed(source='images/icons/slums.jpg')" width="46" height="32" id="navimage4"  click="myMainget('3 Perspectives'), myNumfind(0)" />
    <mx:Label x="494" y="49" text="3 Pers" rollOverEffect="{glowImage}"  rollOutEffect="{unglowImage}"   mouseUpEffect="{unglowImage}"  width="46" height="19"   click="myMainget('3 Perspectives'), myNumfind(0)"/>
    <mx:Image x="550" y="14" source="@Embed(source='images/icons/Buddy.jpg')" width="38" height="32" id="navimage5"/>
    <mx:Label x="547" y="49" text="History"/>
    <mx:Image x="602" y="14" source="@Embed(source='images/icons/Buddy.jpg')" width="38" height="32" id="navimage6"/>
    <mx:Label x="601" y="49" text="Today"/>
    <mx:Image x="650" y="14" source="@Embed(source='images/icons/Buddy.jpg')" width="38" height="32" id="navimage7"/>
    <mx:Label x="648" y="50" text="Future"/>
    <mx:Image x="700" y="14" source="@Embed(source='images/icons/Buddy.jpg')" width="38" height="32" id="navimage8"/>
    <mx:Label x="693" y="50" text="Opinions"/>
    <mx:Image x="751" y="14" source="@Embed(source='images/icons/Buddy.jpg')" width="38" height="32" id="navimage9"/>
    <mx:Label x="746" y="50" text="Builders"/>
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.ResultEvent;
    import mx.collections.ArrayCollection;
    import flash.events.Event;
            import mx.events.DropdownEvent;
            public var mynewnum:String="Home";
             private function changeEvt(event:Event):void {
             mynewnum=event.currentTarget.selectedItem.label;
             trace(mynewnum);
                   filterByCategory2();
    public function startitup():void{
    myImage.source ="images/Buddy.jpg";
    myText.htmlText="<b>Over-the-Rhine</b> is not only at the center of the Cincinnati community, but it is also at the center of a lot of controversies. This area has become a breeding ground for social issues. Issues of equality, crime, affordible housing, poverty, violence, and economic growth have recently been argued. Although these topics are the current issues facing Over-the-Rhine, this is not the first time many of these issues have been see by Over-the-Rhine. It seems that history is repeating itself once again. So where does the community go from here? Are there any answers. The questions one must consider are simple. Will Over-the-Rhine be in the same position thirty years from now? Is the current Over-the-Rhine community being treated fairly by the city? Do the urbanist movement, the people's movement, and the CDC have the best interests of the community in mind? How can the city deal with these issues without causing a fight within the community? Can Over-the-Rhine become a community where everyone is happy?";
    sourceTag1.text = "Home";
    sourceTag0.text ="A Look into the Over-the-Rhine Community";
    public function myNumfind(num:Number):void{
    myImage.source =movieData[num].image;
    myText.htmlText=movieData[num].text;
    sourceTag1.text = movieData[num].title;
    sourceTag0.text =movieData[num].subtitle;
    public function mygothere(event:Object):void{
    myImage.source =event.image;
    myText.htmlText=event.text;
    sourceTag1.text = event.title;
    sourceTag0.text = event.subtitle;
    public function myMainget(myhere:String):void{
    mynewnum=myhere;
    filterByCategory2();
    public function filterByCategory2():void
    movieData.filterFunction = catFilter2;
    movieData.refresh();
    public function catFilter2(item:Object):Boolean
    if(mynewnum=="All"){
    return true;
    }else{
    return item.cat == mynewnum;
    [Bindable]
    private var movie:String;
    [Bindable]
        public var selectedItem:Object; 
    [Bindable]
    public var movieData:ArrayCollection;
    private function init():void
    movieRequest.send();
    private function movieHandler(event:ResultEvent):void
    movieData = event.result.otrdata.mydata;
    filterByCategory2();
    private function formatPositionToolTip(value:int):String{
    var result:String = (value % 60).toString();
            if (result.length == 1){
                result = Math.floor(value / 60).toString() + ":0" + result;
            } else {
                result = Math.floor(value / 60).toString() + ":" + result;
            return result;
    ]]>
    </mx:Script>
    <mx:Label x="316" y="39" text="Menu" fontSize="12" fontWeight="bold" fontStyle="italic" color="#000000"/>
    <mx:HRule x="364" y="49" width="480" strokeWidth="2" strokeColor="#000000"/>
    </mx:Application>

    I'd recommend linking your flex app to a PHP file, it'll automatically handle all the photos for you without you having to embed them all. Keeps the app size small and lets you add more pictures without having to alter any code. Here's the example code of a very simply image gallery that i'd build on if i was making a photogallery.
    Flex:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="getPictures.send()">
        <mx:HTTPService id="getPictures" url="getPictures.php" method="POST" showBusyCursor="true"/>
        <mx:TileList dataProvider="{getPictures.lastResult.Pictures}" width="500" height="500" x="349" y="129">
            <mx:itemRenderer>
                <mx:Component>
                    <mx:Image width="200" height="200" source="{data.imagePath}"/>
                </mx:Component>
            </mx:itemRenderer>
        </mx:TileList>
    </mx:Application>
    PHP:
    <?php
        foreach (glob("*.png") as $filename)
            print "<Pictures><imagePath>".$filename."</imagePath></Pictures>";
    ?>

  • Photo gallery using SlidingPanel SpryData

    I want to build a horizontal photo gallery with Sliding
    Panels and getting the data from an xml file. SoI read carefully
    the example of Building a Sliding Panels widget with Spry Data but
    i cannot understand how to get 5 or 6 panels at once.
    My idea is to get 5-6 images at once and each time i click
    next i want to get next 6 images.
    Anybody can help :-)

    Than just put 5 / 6 images in each panel instead of creating
    a new panel for them

  • Creating a photo gallery using behaviors?

    I am re-designing a website, and I'm a little stuck on how to re-create the photo gallery presentation of the original web site. Here is the original gallery:
    http://www.sarahegeller.com/photos
    What I'd specifically like to reproduce is the ability to click on a thumbnail, which would bring up the larger image, but with the original window remaining behind, greyed out. I assume this is something I can do with behaviors, but there doesn't seem to be a behavior that addresses this, at least among the behaviors dreamweaver CS 3 comes with. I assume a behavior that would give me the effect I want exists on the dreamweaver exchange, but I couldn't find one. Am I even correct in assuming I could achieve the effect I'm looking for using a behavior?
    I'm using dreamweaver CS 3, on a mac.
    Thanks for taking the time to read this query.
    Yours,
    Nick

    The effect you're aiming for is a currently popular one known as a Lightbox.
    There is no in built Dreamweaver behaviour for this. You'll need to look for 3rd party solutions such as jQuery.
    From the page code:
    <script type="text/javascript" src="/sites/all/modules/lightbox2/js/auto_image_handling.js"></script>
    <script type="text/javascript" src="/sites/all/modules/lightbox2/js/lightbox.js"></script>
    The effect on that particular site is created with a Drupal module: Lightbox2
    http://drupal.org/project/lightbox2
    You may be able to use:
    http://www.lokeshdhakar.com/projects/lightbox2/

  • Photo Gallery using Bridge CS4 - trying to follow instructions, but no luck

    I'm running Photoshop CS4 Extended, and am trying to figure out how to create a Photo Gallery.
    Adobe instructions for using Bridge to create a photo gallery say this:
    Adobe Output Module provides a variety of templates for your gallery, which you can select using the Output panel. Each template has one or more style options, which you can select and customize to suit your needs.
    Important: Though gallery previews display a maximum of 10 files, your complete gallery will appear when you save or upload it.
    Select the files or the collection or folder that contains the images you want to include in the web gallery.
    Choose Window > Workspace > Output.
    If the Output workspace is not listed, select Adobe Output Module in Startup Scripts preferences.
    PROBLEMS:
    (1)In Bridge, there is no such item as Output under Window > Workspace.
    (2)In Photoshop, there is no such item as "Startup Scripts" in Edit  > Preferences.
    (3)In the Adobe CS4 Sample Scripts/JavaScript directory, there is no such item as Adobe Output Module.
    There must be some other secret that the instructions forgot to mention... but what IS it???

    Finally noticed I was running Bridge CS3 --- my old shortcut apparently still pointed to that version, even though I do have CS4 installed.
    When I launch Bridge from within Photoshop, version CS4 does come up.
    Will now go explore further, using the proper release...

  • Photo Gallery problem issue with explorer browser

    Hi there,
    I made a personal website with a photo gallery from iweb and everything run cool in a Mac system but when I visualize my photogallery from my website in an Explorer Browser from windows, my pictures doesn´t appear, we cannot see anything.
    Is anything to do to fix this problem?
    Thanks,
    Marco
    the site is this www.marcoluz.com

    There are three patches to fix iweb photos page for FF3 posted in this forum:
    http://discussions.apple.com/thread.jspa?threadID=1563823
    http://discussions.apple.com/thread.jspa?messageID=7418611

  • Creating short photo gallery using previous and next frame A3.0

    I'm creating a simple photo gallery.
    Can someone tell me the right code this is what I'm remember. I forgot.
    next_btn.addEventListener(MouseEvent.CLICK, goNext);
    previous_btn.addEventListener(MouseEvent.CLICK, goBack);
    function goNext(e:MouseEvent):void {
    gotoAndStop("nextFrame");
    function goBack(e:MouseEvent):void {
    gotoAndStop("previoudFrame");
    I know it's wrong can someone help me out?
    Thanks

    inside your functions use just
    nextFrame();
    and
    prevFrame();
    and get rid of those gotoAndStop and it should work...

  • How to generate reportdesign dynamically using java with out xml file

    hi
    how can i generate a reportdesign dynamically using java with out passing xml file to jasperDesign , i want to create my reportdesign with out xml file
    how can i ,please help
    thanks

    LiveCycle does provide a Java API to forms; LiveCycle is in fact a suite of programs, mostly enterprise level for running on server (next to which the cost of the master suite is a drop in the ocean). LiveCycle Designer is perhaps the only end user tool, and it is not for server use and doesn't have an API.
    Are you looking for a server solution? If so, nothing in the master suite can help, it isn't for server use.

  • Web Photo Gallery using PSE10?

    In previous versions of Elements, I was able to create a web photo gallery which created thumbnails and web pages, and the folders within those files were contained...... how do I do that in Elements 10?

    In recent versions of PSE the old HTML web galleries have been replaced by the online albums in the organizer. You can export the completed album to your hard drive and then FTP it to your website.

  • Kirupa  Photo Gallery using XML and Flash

    I learn best by using tutes and figuring out how to make
    changes effectively. i finished the one at
    http://www.kirupa.com/developer/mx2004/thumbnails3.htm
    and managed to change sizes etc but i wanted to change it to a
    symbol to insert it in another flash file. i got that part done
    though the thumbs show up (number 3 to 5) and they do not scroll. i
    figure it has to do with the hit left and hit right and that the
    "path" not sure if i used the term in the right way changes when it
    turns from a scene all by itself to being inserted into a frame in
    a layer. i am not sure if i am explaining this right but i would
    really appreciate any help and I am sorry if this is a duplicate
    post, i have been searching for a long time and cannot find it or
    figure it out.
    jmontyman

    I learn best by using tutes and figuring out how to make
    changes effectively. i finished the one at
    http://www.kirupa.com/developer/mx2004/thumbnails3.htm
    and managed to change sizes etc but i wanted to change it to a
    symbol to insert it in another flash file. i got that part done
    though the thumbs show up (number 3 to 5) and they do not scroll. i
    figure it has to do with the hit left and hit right and that the
    "path" not sure if i used the term in the right way changes when it
    turns from a scene all by itself to being inserted into a frame in
    a layer. i am not sure if i am explaining this right but i would
    really appreciate any help and I am sorry if this is a duplicate
    post, i have been searching for a long time and cannot find it or
    figure it out.
    jmontyman

  • Photo gallery using parallax scrolling?

    hey  i have been testing out each of the slide show widgets in adobe muse.  some of them are okay. the light box for once. is a challenge,  but heres something i want to learn how to do. and its parallax scrolling with photos for a gallery. i think for what i am wanting to do i think its the best layout for me.  heres a web site that hass it i think. http://album.alexflueras.ro/galleries/people.html#a1.
    see i shows both landscape and portrait mode of photos. and thats been a challenge from the get go. so there i am thinking of using parallax scrolling . now how do i do this? is it done in photo shop and adobe muse. bec i do want to change out my i mages when needed?
    now i am a tad bit curious. it looks good on desktop, but what about mobile devies. most phone. would it work great.?
    so what are the steps for making this?
    the other key thing i noticed. is that the photos are large. and thats what i like.
    thanks

    Hi
    You can use composition on page where you can insert the images with scroll effect applied.
    Check this video , its not exact design but will help to make images scroll page :
    http://www.youtube.com/watch?v=BDgERSf2a5k
    Thanks,
    Sanjit

  • Save/Load with Serializable XML XStream

    I'm working on a simulation model. The first step is the user fills out multiple screens of a wizard-like format with required data. Right now, I have a user create a "site" where all of the wizard information is stored. The Site is independent of the GUI portion. So if something is changed via the wizard, when the user clicks next, the site is updated with the data from the wizard. Likewise, if the site is updated due to a calculation, the wizard must be updated to match the site. Right now, for each panel of the wizard, I have an updateToSite method, and an updateFromSite method for accomplishing these two tasks. So, to save, I call the updateToSite for every panel, and then tell XStream to write the site out. Likewise for loading, I load the site with XStream and then call updateFromSite on every panel.
    If I load an incomplete Site, I get an error and it stops loading any of the information after that error. What would be a good way to make it continue updating the panels with whatever information the site does contain?

    Sch104 wrote:
    If I load an incomplete Site, I get an error and it stops loading any of the information after that error. What would be a good way to make it continue updating the panels with whatever information the site does contain?Stop using XML.
    The reason I say that is, compliant XML parsers are required to stop processing when they encounter the first instance of malformed XML. So if you have a requirement that your site parser should make a best effort to continue in the face of bad data, then using a compliant XML parser is not a good choice. You might find a non-compliant XML parser which tries to paper over malformed data but I haven't heard of such a thing.
    Unless possibly "incomplete" doesn't imply malformed XML but means something else. In which case that analysis doesn't apply and you should just change your code to deal with it, whatever it does mean.

Maybe you are looking for