Xml slideshow example with thumbnails?

Without being a programmer, I'm trying to tweak the example
from the Flash site to include thumbnails.
Can this be done easily? Can someone help me or point me to a
resource that might explain (in foolishly simple language) how I
can do it? Thanks

you can add a large image attribute to your slide tags as
shown below. then if edit the code in updateSlide() and add
preloadF() (and a target movieclip for the large image), the code
shown below should allow your images to load the large image when
pressed:
<Slides>
<slideNode jpegURL="images/image1.jpg"
large_jpegURL="images/largeImage1.jpg">A sea
horse</slideNode>
<slideNode jpegURL="images/image2.jpg"
large_jpegURL="images/largeImage2.jpg">Sea
anemone</slideNode>
<slideNode
jpegURL="images/image3.jpg"
large_jpegURL="images/largeImage3.jpg">Sardines!</slideNode>
<slideNode
jpegURL="images/image4.jpg"
large_jpegURL="images/largeImage4.jpg">Another sea
horse</slideNode>
<slideNode
jpegURL="images/image5.jpg"
large_jpegURL="images/largeImage5.jpg">Some kind of
jellyfish</slideNode>
</Slides>

Similar Messages

  • XML Menu with thumbnail images

    Hello all,
    I am trying to create a dynamic menu for a video player. Much
    like the one found here (
    MTV OverDrive. )Obviously
    this is a Flash site and I can only assume the video list is being
    generated via XML. I am trying to accomplish the same thing, only I
    am not using FCS.
    I just want to create the buttons dynamically with thumbnail
    images and text via XML, and in turn load the video based on a
    button click. I have the video part working fine, using a video
    object, I just need to know how to create the buttons WITH THUMBS
    from an XML file. I can figure out how to load the video once the
    button is clicked. The problem is the menu itself and loading the
    different thumbnail with the button.
    I am sure it has something to do with "attachMovie,
    DuplicateMovie, or CreateEmptyMovieClip" but I am not sure how to
    do this with XML.
    I really want to stay away from using the pre-built
    components and want to code this myself so a list component is out
    of the question.
    I have search for many hours now and can not find anything
    that is like what I am looking for yet. So any help pointing me in
    the right direction would be much appreciated.
    From what I can gather it has something to do with creating
    what the button is going to look like (mainly the Background for
    mouse on and over states) and save it off as a MC then giving it a
    linkage ID. Within that MC I would think there would be another MC
    to hold the Thumbnail image with its own linkage ID and another MC
    that has a named dynamic text filed with it own linkage ID. Am I
    total off base here?
    Thanks

    Hi,
    On the same line I would suggest you to create an MC and put
    a button and a textField inside. Then using duplicate MC function,
    create instances of this MC according to the XML. For this, create
    XML nodes for each clip containing text, image to be displayed, URL
    for the video etc., and repeate the node for as many as you
    require. Then parse the XML in flash in an multi dimensional array.
    Then using length pf array duplicate your MC and populate the
    required menu. I guess this is enough for you.
    Anything else required do contact me!
    Cheers!!
    Shreeram

  • Is there TopLinkGrid examples with XML descriptor deployment?

    Hi,
    Oracle docs include examples of using Oracle Coherence (as shared cache) with TopLinkGrid, but with annotations.
    Is there somewhere examples/docs about using TopLinkGrid, but with XML descriptor deployment ?
    Thanks.
    Regards,
    Dominique

    With TopLink Grid usage configured per Entity using EclipseLink customizers, you can either use annotations or specify in in the eclipselink-orm.xml file.
    For example, the following ecilpselink-orm.xml could be used in the OTN GridCache example with all the Java annotations removed. Note the specification of:
    <customizer class="oracle.eclipselink.coherence.integrated.config.GridCacheCustomizer"/>--Shaun
    <?xml version="1.0" encoding="UTF-8"?>
    <entity-mappings version="1.1" xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eclipse.org/eclipselink/xsds/persistence/orm http://www.eclipse.org/eclipselink/xsds/eclipselink_orm_1_1.xsd">
         <persistence-unit-metadata>
              <persistence-unit-defaults>
                   <access>FIELD</access>
              </persistence-unit-defaults>
         </persistence-unit-metadata>
         <entity class="gridcache.model.Address">
              <customizer class="oracle.eclipselink.coherence.integrated.config.GridCacheCustomizer"/>
              <table name="GRIDCACHE_ADDRESS">
              </table>
              <attributes>
                   <id name="id">
                        <generated-value />
                   </id>
                   <version name="version">
                   </version>
              </attributes>
         </entity>
         <entity class="gridcache.model.Employee">
              <customizer class="oracle.eclipselink.coherence.integrated.config.GridCacheCustomizer"/>
              <table name="GRIDCACHE_EMPLOYEE">
              </table>
              <named-query name="Employee.findByLastNameLike">
                   <query>SELECT e FROM Employee e WHERE e.lastName LIKE :lastName</query>
              </named-query>
              <attributes>
                   <id name="id">
                        <generated-value />
                   </id>
                   <version name="version">
                   </version>
                   <one-to-many name="phoneNumbers" mapped-by="owner">
                        <cascade>
                             <cascade-all />
                        </cascade>
                   </one-to-many>
                   <one-to-one name="address" fetch="LAZY">
                        <cascade>
                             <cascade-all />
                        </cascade>
                   </one-to-one>
              </attributes>
         </entity>
         <entity class="gridcache.model.PhoneNumber">
              <customizer class="oracle.eclipselink.coherence.integrated.config.GridCacheCustomizer"/>
              <table name="GRIDCACHE_PHONE">
              </table>
              <attributes>
                   <id name="id">
                        <generated-value />
                   </id>
                   <basic name="number">
                        <column name="NUM"/>
                   </basic>
                   <version name="version">
                   </version>
                   <many-to-one name="owner" fetch="LAZY">
                   </many-to-one>
              </attributes>
         </entity>
    </entity-mappings>

  • Flash xml slideshow in iWeb not working

    Hallo
    I am really struggling to get a Flash xml slideshow to work.  I have used Flash Slideshow Maker app, which creates a slide.xml, .swf and .html file and everything is published in one folder "slideshow" on a local disk.
    I am using the following code and it works perfectly when viewed in iWeb:
    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0, 40,0"
    WIDTH="920" HEIGHT="400" id="Phambili">
    <PARAM NAME=movie VALUE="/Users/elsjevanzyl/Documents/Websites/Published Websites/Phambili/Slideshow/Phambili.swf?xml_path=slides.xml">
    <PARAM NAME=quality VALUE=high>
    <PARAM NAME="wmode" value="transparent">
    <PARAM NAME=base VALUE=".">
    <EMBED src="/Users/elsjevanzyl/Documents/Websites/Published Websites/Phambili/Slideshow/Phambili.swf?xml_path=slides.xml" quality=high  wmode="transparent" WIDTH="920" HEIGHT="400"
    NAME="Phambili" ALIGN="" TYPE="application/x-shockwave-flash"
    PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" base=".">
    </EMBED>
    </OBJECT>
    But as soon as I publish it to FTP with following code, it displays the slideshow but NOT the photos or thumbs:
    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0, 40,0"
    WIDTH="920" HEIGHT="400" id="Phambili">
    <PARAM NAME=movie VALUE="http://harmonieproteas.co.za/Slideshow/Phambili.swf?xml_path=slides.xml">
    <PARAM NAME=quality VALUE=high>
    <PARAM NAME="wmode" value="transparent">
    <PARAM NAME=base VALUE=".">
    <EMBED src="http://harmonieproteas.co.za/Slideshow/Phambili.swf?xml_path=slides.xml" quality=high  wmode="transparent" WIDTH="920" HEIGHT="400"
    NAME="Phambili" ALIGN="" TYPE="application/x-shockwave-flash"
    PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" base=".">
    </EMBED>
    </OBJECT>
    I have also tried iFrame code, but this is not working at all.
    Can anybody tell me what I am doing wrong when publishing the above code to FTP?
    Any help will be appreciated.

    Flash isn't my thing but, it appears that you are missing the images:
    <flash_parameters copyright="socusoftFSMTheme">
    <preferences> 
    <global> 
    <basic_property movieWidth="920" movieHeight="400" decoration="" html_title="Title" loadStyle="Pie" startAutoPlay="true" continuum="true" backgroundColor="0x00000000" hideAdobeMenu="true" photoDynamicShow="true" enableURL="true"transitionArray="" socusoftMenu="false"/> 
    <title_property showTitle="true" photoTitleColor="0x00000000" backgroundColor="0x00c0c0c0" alpha="30" autoHide="true"/>
    <music_property path="" stream="true" loop="true"/>
    <photo_property topPadding="2" bottomPadding="64" leftPadding="2" rightPadding="2"/>
    <properties enable="true" backgroundColor="0x00c0c0c0" backgroundAlpha="30" cssText="a:link{text-decoration: underline;} a:hover{color:#ff0000; text-decoration: none;} a:active{color:#0000ff;text-decoration: none;} .blue {color:#0000ff; font-size:15px; font-style:italic; text-decoration: underline;} .body{color:#ff5500;font-size:20px;}" align="top"/>
    </global>
    <thumbnail> 
    <basic_property width="40" height="40" thumBackColor="0x002c2c2c" borderColor="0x002c2c2c" thumborder="2" thumSpacing="4" shapeAlpha="60" buttonColor="0x00000000" currentbuttonColor="0x00ffffff"/> 
    </thumbnail>
    </preferences>
    <album> 
    <slide jpegURL="thumbs/mozzie tour 2.jpg" d_URL="slides/mozzie tour 2.jpg" transition="0" panzoom="1" URLTarget="0" phototime="2" url="" title="Mozzie Tour 2" width="916" height="334"/> 
    <slide jpegURL="thumbs/mozzie10.jpg" d_URL="slides/mozzie10.jpg" transition="0" panzoom="1" URLTarget="0" phototime="2" url="" title="Mozzie10" width="916" height="334"/>
    <slide jpegURL="thumbs/snow on hogsback.jpg" d_URL="slides/snow on hogsback.jpg" transition="0" panzoom="1" URLTarget="0" phototime="2" url="" title="Snow on Hogsback" width="916" height="334"/>
    <slide jpegURL="thumbs/tea time@santa maria.jpg" d_URL="slides/tea time@santa maria.jpg" transition="0" panzoom="1" URLTarget="0" phototime="2" url="" title="Tea Time@Santa Maria" width="916" height="334"/>
    <slide jpegURL="thumbs/western cape tour knersvlakte.jpg" d_URL="slides/western cape tour knersvlakte.jpg" transition="0" panzoom="1" URLTarget="0" phototime="2" url="" title="Western Cape Tour Knersvlakte" width="916" height="334"/>
    <slide jpegURL="thumbs/western cape tour[2].jpg" d_URL="slides/western cape tour[2].jpg" transition="0" panzoom="1" URLTarget="0" phototime="2" url="" title="Western Cape Tour[2]" width="916" height="334"/>
    <slide jpegURL="thumbs/bush camp in botswana[2].jpg" d_URL="slides/bush camp in botswana[2].jpg" transition="0" panzoom="1" URLTarget="0" phototime="2" url="" title="Bush Camp in Botswana[2]" width="916" height="334"/>
    <slide jpegURL="thumbs/eastern cape tour 2.jpg" d_URL="slides/eastern cape tour 2.jpg" transition="0" panzoom="1" URLTarget="0" phototime="2" url="" title="Eastern Cape tour 2" width="916" height="334"/>
    <slide jpegURL="thumbs/hogsback 2.jpg" d_URL="slides/hogsback 2.jpg" transition="0" panzoom="1" URLTarget="0" phototime="2" url="" title="Hogsback 2" width="916" height="334"/>
    <slide jpegURL="thumbs/mozzie tour.jpg" d_URL="slides/mozzie tour.jpg" transition="0" panzoom="1" URLTarget="0" phototime="2" url="" title="Mozzie Tour" width="916" height="334"/>
    <slide jpegURL="thumbs/western cape tour.jpg" d_URL="slides/western cape tour.jpg" transition="0" panzoom="1" URLTarget="0" phototime="2" url="" title="Western Cape Tour" width="916" height="334"/>
    </album>
    </flash_parameters>
    http://harmonieproteas.co.za/Slideshow/

  • Positioning XML slideshow images on Stage

    Hello!
    I have a xml slideshow that is working fine. The problem I am having is all of the images load in at x=0 and y=0. I would like to have the images load at a specific x coodinate and y coordinate on the stage. I have been looking at other code examples to see how to fit this in to mine but I keep breaking it. IF it's not too much trouble could someone help me out with the code or point me to an example that would help place it in the correct place?
    Thanks! Sandra
    Here is my code:
    import fl.transitions.Tween;
    import fl.transitions.TweenEvent;
    var transition_time:Number = 3;
    var displaying_time:Number = 5;
    var timer_tween:Tween;
    var alpha_tween:Tween;
    var index:int = 0;
    var is_picture_loaded:Boolean;
    var is_next_transition_ready:Boolean = true;
    var picture_holder:Sprite = new Sprite();
    addChild(picture_holder);
    var xml_data:XML;
    var array_of_picture:Array = new Array();
    var request_xml:URLRequest = new URLRequest("setup_sss.xml");
    var loader:URLLoader = new URLLoader();
    var request_picture:URLRequest;
    var picture_loader:Loader;
    loader.addEventListener(Event.COMPLETE, completeHandler);
    function completeHandler(e:Event):void{
        xml_data = new XML(loader.data);
        for(var i:int = 0; i<xml_data.children().length(); i++){
            array_of_picture.push(xml_data.child(i));
            request_xml = null;
            loader = null;
            start_slide_show();
    loader.load(request_xml);
    function start_slide_show():void{   
        if(index == array_of_picture.length){index = 0;}
        request_picture = new URLRequest(array_of_picture[index]);
        picture_loader = new Loader();
        picture_loader.contentLoaderInfo.addEventListener(Event.INIT, loader_Handler);
        picture_loader.load(request_picture);   
        index++;
    function loader_Handler(e:Event):void{
        e.target.content.visible = false;
        picture_holder.addChild(e.target.content);
        is_picture_loaded = true;
        if(is_next_transition_ready){
            var last_child:int = picture_holder.numChildren-1;
            start_transition(picture_holder.getChildAt(last_child));
    function start_transition(target:DisplayObject):void{
        is_next_transition_ready = false;
        is_picture_loaded = false;
        target.visible = true;
        target.alpha = 0;
        start_slide_show();
        alpha_tween = new Tween(target, "alpha", null, 0, 1, transition_time, true)
        alpha_tween.addEventListener(TweenEvent.MOTION_FINISH, start_timer);
    function start_timer(e:TweenEvent):void{   
        var count:Number = 0;
        timer_tween = new Tween(this, "count", null, 0, 1, displaying_time, true)
        timer_tween.addEventListener(TweenEvent.MOTION_FINISH, remove_picture);
    function remove_picture(e:TweenEvent):void{   
        if(picture_holder.numChildren>2){picture_holder.removeChildAt(0)}   
        timer_tween.removeEventListener(TweenEvent.MOTION_FINISH, remove_picture);
        is_next_transition_ready = true;
            if(is_picture_loaded){           
            var last_child:int = picture_holder.numChildren-1;       
            start_transition(picture_holder.getChildAt(last_child))

    I new I had to move it but I couldn't find out a sample of how to write it, but I figured it out!! So that is now working... BUt now I have another problem which doesn't make any sense at all. When I test my movie locally everything works fine all of my movies pull in correctly in the correct place But when I upload them on the server some of the movies don't show up... specifically some of the ones I worked on this afternoon. My html pages I update load but anything swf doesn't seem to.
    I have taken the whole folder and moved it somewhere else and again checked it locally and worked but uploaded not there!! I check on the server files appear to be there. I am posting this xml file... can you tell if  the syntax appears correct? I am really at a loss and checked all of the obvious things. Some of the swfs that are not updating are really simple swfs with no scripts so I dont know why???
    Your good at pointing out the obvious and maybe I am too braindead to see.  I am so close I just want to upload and be done!!
    Thanks!  Sandra
    xml code:
    <?xml version="1.0" encoding="utf-8"?>
    <SLIDE_SHOW>
        <PICTURE>intro/1.JPG</PICTURE>
        <PICTURE>intro/2.JPG</PICTURE>
        <PICTURE>intro/3.JPG</PICTURE>
        <PICTURE>intro/4.JPG</PICTURE>
        <PICTURE>intro/5.JPG</PICTURE>
    </SLIDE_SHOW>   

  • How to develope a XML-RPC client with PL/SQL

    Anyone know how to develop a XML-RPC client with PL/SQL?
    I've oracle 8i.
    Have you some example of code?
    Thanks
    Paolo

    So, you actually want to create the physical directory using JAVA?
    Then see:
    http://www.oracle-base.com/articles/8i/shell-commands-from-plsql.php

  • XML Data Set with Spry Slides - Please Help

    Hi, I'm trying to combine XML Data Set with sliding tabs.
    I've created two keys responsible for sliding the tabs:
    <a id="previous" href="#"
    onclick="sp1.showPreviousPanel();">Previous</a>
    <a id="next" href="#"
    onclick="sp1.showNextPanel();">Next</a>
    Then XML Data Set is used to populate the tabs, but only a
    single tab remains visible, and a "Next/Previous" buttons are used
    to move to the next tab. And this is where the problem arises.
    The problem is that, every time I refreash the gallery or
    load it for the first time, I have to press TWICE the "Next" button
    to move to the next image. After that, its all fine, and slides
    well. It's only the FIRST time when loaded.
    Please help.
    Here's the full code:
    <div id="images_gal" >
    ///////////////////////////////////////// The menu - the
    culprit///////////////////////////////////////////
    <div id="menu_next">
    <a id="previous" href="#"
    onclick="sp1.showPreviousPanel();">Previous</a>
    <a id="next" href="#"
    onclick="sp1.showNextPanel();">Next</a>
    </div>
    //////////////////////////////////////// The Sliding Panels
    Gallery ////////////////////////////////////////////////////
    <div id="example2" class="SlidingPanels" tabindex="0" >
    <div class="SlidingPanelsContentGroup"
    spry:region="dsSpecials">
    <div spry:repeat="dsSpecials" id="{first}"
    class="SlidingPanelsContent{second}"><div class="top_gal"
    ></div><div class="main_gal"><img
    src="images/Galery/{third}" alt="Digital_Signage" width="600"
    height="304" />
    <p class="screen_gal"><a href="#"
    onclick="MM_openBrWindow('film1.html','Coloris','width=340,height=260,
    top=250, left=250')">CLICK TO VIEW</a></p>
    </div><div
    class="bottom_gal"></div></div>
    </div>
    </div>

    Anyone has any idea why I need a DOUBLE Click to start moving
    the sliding panels?
    I've just completed two tutorials by Don Booth.
    1/Building a Spry Sliding Panels widget
    2/Building a photo album with the Spry framework
    But what I try to COMBINE them - display the photos in
    sliding panels, I also need to DOUBLE click the "next" buton before
    it starts scrolling.
    Why is that Double Click needed? Help Please.
    Here's my code for the combined version:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    a {
    position:relative;
    left:23px;
    top:127px;
    z-index:10000;
    color: #FF0000;
    </style>
    <script type="text/javascript"
    src="photo_album_samples/includes/xpath.js"></script>
    <script type="text/javascript"
    src="photo_album_samples/includes/sprydata.js"></script>
    <script type="text/javascript"
    src="Spry/SprySlidingPanels.js"></script>
    <link type="text/css" rel="stylesheet"
    href="Spry/SprySlidingPanels.css">
    </head>
    <body>
    <div >
    <a href="#" onclick="sp1.showPreviousPanel();">Previous
    Panel</a>
    <a href="#" onclick="sp1.showNextPanel();" >Next
    Panel</a>
    </div>
    <div id="panelwidget" class="SlidingPanels" >
    <div class="SlidingPanelsContentGroup"
    spry:region="dsGallery" >
    <div spry:repeat="dsGallery" class="SlidingPanelsContent"
    id="p1"><img
    src="photo_album_samples/thumbnails/{@thumbpath}"/></div>
    </div>
    </div>
    <script type="text/javascript">
    var dsGallery = new
    Spry.Data.XMLDataSet("photo_album_samples/photos.xml",
    "gallery/photos/photo");
    </script>
    <script type="text/javascript">
    var sp1 = new Spry.Widget.SlidingPanels("panelwidget");
    </script>
    </body>
    </html>

  • ZIndex issue with thumbnails in spry gallery

    I am seeing problems with the z-index (zIndex) of the
    thumbnails for the gallery demo in IE browsers (IE6 XP and IE7
    Vista)... works fine in Firefox and others, of course. If you
    reduce the margin around the thumbnails div... the image is "under"
    the image to the right or below (when more than one line of
    thumbs).
    You can see this in your demo, but it's more pronounced if
    you change the dimensions of the thumbs and/or reduce the margin in
    the #thumbnails div rule.
    Any solutions for fixing IE? If it's not possible to fix the
    zIndex issue, is it possible to modify how the thumbnail images
    are"grown"? so, rather than center out, perhaps grow them from the
    bottom right corner, so that they never attempt to overlap other
    thumbs to the right or below?
    Help appreciated!

    "n2dreamweaver" <[email protected]> wrote in
    message
    news:gplv2b$21i$[email protected]..
    >
    quote:
    > Look for a post from me on this forum a year or so ago.
    I believe I gave
    > Adobe the fix for that - or at least drew a comparison
    to the techniques
    > we
    > use in LSM:
    >
    >
    http://www.projectseven.com/products/galleries/lightshow/tweaks/lsm-tpm/index.ht
    > m
    >
    > Al Sparber - PVII
    >
    >
    > Searching doesn't seem to come up with anything without
    knowing the
    > subject or
    > keyword to use. I tried a search on Al Sparber - PVII as
    author for the
    > past 14
    > months and the results were zero. Tried a search with
    "thumbnails" as a
    > keyword
    > for the same time period and got the same zero results.
    >
    > Here's hoping that the coming "improvements" for these
    forums include
    > working
    > search results!
    >
    > I will continue to search.... thanks for the hints...
    hopefully, I'll find
    > the
    > solution.
    I'll try to find it.
    In the meantime, I tweaked the script on this LSM example
    page so that the
    thumbnail rollovers are overlapping the little thumbnails.
    That gives you a
    clearer picture of them "not going under".
    http://www.projectseven.com/products/galleries/lightshow/tweaks/lsm-apm/index.htm

  • Slideshow issues with variable time for each picture

    Hi all,
    I've migrated from AS1 to AS3, and boy, a lot has changed...
    Anyhow, to learn and understand AS3, I'm modifying a slideshow I found through thetechlabs. I want it to play SWF as well as JPG. These files are passed through an XML file. I added an element called <delaytime> to the XML file that replaces the standard time a photo is shown in the slideshow.
    I modified the onSlideFadeIn() function as follows:
    function onSlideFadeIn():void {
         slideTimer.removeEventListener(TimerEvent.TIMER, nextSlide);
         slideTimer = new Timer(xmlSlideshow..file[intCurrentSlide].@time);
         slideTimer.addEventListener(TimerEvent.TIMER, nextSlide);
         if(bolPlaying && !slideTimer.running)
         slideTimer.start();
    However, when I run it, I get this error message:
    ## [Tweener] Error: [object Sprite] raised an error while executing the 'onComplete'handler.
    TypeError: Error #1010: A term is undefined and has no properties.
    at slideshow_fla::MainTimeline/onSlideFadeIn()
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at caurina.transitions::Tweener$/::updateTweenByIndex()
    at caurina.transitions::Tweener$/::updateTweens()
    at caurina.transitions::Tweener$/onEnterFrame()
    It stops at the first picture of my slideshow. When I push the 'next' button it displays the next pic, but I get the same error message again.
    When I comment out this line:
    slideTimer = new Timer(xmlSlideshow..file[intCurrentSlide].@time);
    the slideshow runs OK, but without the delaytime specified in the XML file.
    I'm lost here, what am I missing?
    Any help to get me back on track is highly appreciated!
    Thanks a bunch in advance,
    Dirk
    Here is the complete AS, should you need it:
    // import tweener
    import caurina.transitions.Tweener;
    // delay between slides
    const TIMER_DELAY:int = 5000;
    // fade time between slides
    const FADE_TIME:Number = 1;
    // flag for knowing if slideshow is playing
    var bolPlaying:Boolean = true;
    // reference to the current slider container
    var currentContainer:Sprite;
    // index of the current slide
    var intCurrentSlide:int = -1;
    // total slides
    var intSlideCount:int;
    // timer for switching slides
    var slideTimer:Timer;
    // slides holder
    var sprContainer1:Sprite;
    var sprContainer2:Sprite;
    // slides loader
    var slideLoader:Loader;
    // current slide link
    var strLink:String = "";
    // current slide link target
    var strTarget:String = "";
    // url to slideshow xml
    var strXMLPath:String = "slideshow-data2.xml";
    // slideshow xml loader
    var xmlLoader:URLLoader;
    // slideshow xml
    var xmlSlideshow:XML;
    function initSlideshow():void {
         // hide buttons, labels and link
         mcInfo.visible = false;
         btnLink.visible = false;
         // create new urlloader for xml file
         xmlLoader = new URLLoader();
         // add listener for complete event
         xmlLoader.addEventListener(Event.COMPLETE, onXMLLoadComplete);
         // load xml file
         xmlLoader.load(new URLRequest(strXMLPath));
         // create new timer with delay from constant
         slideTimer = new Timer(TIMER_DELAY);
         // add event listener for timer event
         slideTimer.addEventListener(TimerEvent.TIMER, nextSlide);
         // create 2 container sprite which will hold the slides and
         // add them to the masked movieclip
         sprContainer1 = new Sprite();
         sprContainer2 = new Sprite();
         mcSlideHolder.addChild(sprContainer1);
         mcSlideHolder.addChild(sprContainer2);
         // keep a reference of the container which is currently
         // in the front
         currentContainer = sprContainer2;
         // add event listeners for buttons
         btnLink.addEventListener(MouseEvent.CLICK, goToWebsite);
         btnLink.addEventListener(MouseEvent.ROLL_OVER, showDescription);
         btnLink.addEventListener(MouseEvent.ROLL_OUT, hideDescription);
         mcInfo.btnPlay.addEventListener(MouseEvent.CLICK, togglePause);
         mcInfo.btnPause.addEventListener(MouseEvent.CLICK, togglePause);
         mcInfo.btnNext.addEventListener(MouseEvent.CLICK, nextSlide);
         mcInfo.btnPrevious.addEventListener(MouseEvent.CLICK, previousSlide);
         // hide play button
         mcInfo.btnPlay.visible = false;
    function onXMLLoadComplete(e:Event):void {
         // show buttons, labels and link
         mcInfo.visible = true;
         btnLink.visible = true;
         // create new xml with the received data
         xmlSlideshow = new XML(e.target.data);
         // get total slide count
         intSlideCount = xmlSlideshow..image.length();
         // switch the first slide without a delay
         switchSlide(0);
    function fadeSlideIn(e:Event):void {
         // add loaded slide from slide loader to the
         // current container
         addSlideContent();
         // clear preloader text
         mcInfo.lbl_loading.text = "";
         // check if the slideshow is currently playing
         // if so, show time to the next slide. If not, show
         // a status message
         if(bolPlaying) {
              mcInfo.lbl_loading.text = "Next slide in " + TIMER_DELAY / 1000 + " sec.";
         } else {
              mcInfo.lbl_loading.text = "Slideshow paused";
         // fade the current container in and start the slide timer
         // when the tween is finished
         Tweener.addTween(currentContainer, {alpha:1, time:FADE_TIME, onComplete:onSlideFadeIn});
    function onSlideFadeIn():void {
         slideTimer.removeEventListener(TimerEvent.TIMER, nextSlide);
         slideTimer = new Timer(xmlSlideshow..file[intCurrentSlide].@time);
         slideTimer.addEventListener(TimerEvent.TIMER, nextSlide);
         if(bolPlaying && !slideTimer.running)
         slideTimer.start();
    function togglePause(e:MouseEvent):void {
         // check if the slideshow is currently playing
         if(bolPlaying) {
              // show play button
              mcInfo.btnPlay.visible = true;
              mcInfo.btnPause.visible = false;
              // set playing flag to false
              bolPlaying = false;
              // set status message
              mcInfo.lbl_loading.text = "Slideshow paused";
              // stop the timer
              slideTimer.stop();
         } else {
              // show pause button
              mcInfo.btnPlay.visible = false;
              mcInfo.btnPause.visible = true;
              // set playing flag to true
              bolPlaying = true;
              // show time to next slide
              mcInfo.lbl_loading.text = "Next slide in " + TIMER_DELAY / 1000 + " sec.";
              // reset and start timer
              slideTimer.reset();
              slideTimer.start();
    function switchSlide(intSlide:int):void {
         // check if the last slide is still fading in
         if(!Tweener.isTweening(currentContainer)) {
              // check, if the timer is running (needed for the
              // very first switch of the slide)
              if(slideTimer.running)
              slideTimer.stop();
              // change slide index
              intCurrentSlide = intSlide;
              // check which container is currently in the front and
              // assign currentContainer to the one that's in the back with
              // the old slide
              if(currentContainer == sprContainer2)
              currentContainer = sprContainer1;
              else
              currentContainer = sprContainer2;
              // hide the old slide
              currentContainer.alpha = 0;
              // bring the old slide to the front
              mcSlideHolder.swapChildren(sprContainer2, sprContainer1);
              //Van hier
              if (currentContainer.numChildren > 0) {
                   var slideObjRef:DisplayObject = currentContainer.getChildAt(0);
                   currentContainer.removeChildAt(0);
                   slideObjRef = null;
              //Tot hier
              // delete loaded content
              clearLoader();
              // create a new loader for the slide
              slideLoader = new Loader();
              // add event listener when slide is loaded
              slideLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, fadeSlideIn);
              // add event listener for the progress
              slideLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, showProgress);
              // load the next slide
              slideLoader.load(new URLRequest(xmlSlideshow..image[intCurrentSlide].@src));
              // show description of the next slide
              mcInfo.lbl_description.text = xmlSlideshow..image[intCurrentSlide].@title;
              // set link and link target variable of the slide
              strLink = xmlSlideshow..image[intCurrentSlide].@link;
              strTarget = xmlSlideshow..image[intCurrentSlide].@target;
              mcInfo.mcDescription.lbl_description.htmlText = xmlSlideshow..image[intCurrentSlide].@desc;
              // show current slide and total slides
              mcInfo.lbl_count.text = (intCurrentSlide + 1) + " / " + intSlideCount + " Slides";
    function showProgress(e:ProgressEvent):void {
         // show percentage of the bytes loaded from the current slide
         mcInfo.lbl_loading.text = "Loading..." + Math.ceil(e.bytesLoaded * 100 / e.bytesTotal) + "%";
    function goToWebsite(e:MouseEvent):void {
         // check if the strLink is not empty and open the link in the
         // defined target window
         if(strLink != "" && strLink != null) {
              navigateToURL(new URLRequest(strLink), strTarget);
    function nextSlide(e:Event = null):void {
         // check, if there are any slides left, if so, increment slide
         // index
         if(intCurrentSlide + 1 < intSlideCount)
         switchSlide(intCurrentSlide + 1);
         // if not, start slideshow from beginning
         else
         switchSlide(0);
    function previousSlide(e:Event = null):void {
         // check, if there are any slides left, if so, decrement slide
         // index
         if(intCurrentSlide - 1 >= 0)
         switchSlide(intCurrentSlide - 1);
         // if not, start slideshow from the last slide
         else
         switchSlide(intSlideCount - 1);
    function showDescription(e:MouseEvent):void {
         // remove tweens
         Tweener.removeTweens(mcInfo.mcDescription);
         // fade in the description
         Tweener.addTween(mcInfo

    Thanks, but no luck so far...
    With the debugging publish setting on, I get the following error message:
    TypeError: Error #1009: Cannot access a property  or method of a null object reference.
    at  slideshow_fla::MainTimeline/slideshow_fla::frame1()[slideshow_fla.MainTimeline::frame1:12 3]
    Line 123 says:
    trace(xmlSlideshow..file[intCurrentSlide].@time);
    However, when I comment out the trace() line it gives another error  message:
    ## [Tweener] Error: [object Sprite] raised an  error while executing the 'onComplete'handler.
    TypeError: Error #1010: A  term is undefined and has no properties.
    at  slideshow_fla::MainTimeline/onSlideFadeIn()[slideshow_fla.MainTimeline::frame1:118]
    Where line 118 is:
    slideTimer = new  Timer(Number(xmlSlideshow..file[intCurrentSlide].@time));
    Now, according to my Flash manual I bought, I need to 'instanciate' things.  Did I forget this?
    Just can't get my head around this OOP stuff...
    Thanks a bunch for helping me!

  • XML and binary with field separator stock quote

    Hi All,
    I'm doing a comparison of data transmission between XML and binary with field separator.
    Example of XML
    <nasdaq>
    <high>100.00</high>
    <low>90.00</low>
    </nasdaq>
    Example of binary with field separator
    100.00|90.00
    Of course, using XML will consume of much resources and processing power but with easier maintenance and development.
    I'm doing some data feed with high transaction like Nasdaq, NYSE, etc. How you think about it...?
    Any web site does the comparison of the above? I have googled but not much information found.
    Cheers,
    Wikey

    XML is, of course, more flexible. For B2B transactions you should >>consider using gzip compression (avaiable in java.util.zip) if there's a >>fair bit of data in the message. That will reduced the effect of all the >>repetative XML furniture.yah, agreed but still not to a comfort level to proceed this technology. File size still big if compared to compressed non-XML data.
    Btw, I'm seeking for some efficient data feed product able to handle XML effectively and did some comparison with all other standard data formating mechanism of data transmission. Therefore, i can see the whole picture of it. Still trying my R&D luck on google...
    Cheers,

  • Slideshow compatible with FC CS5 website

    Hi there,
    I've built a website using FC CS5, (by the way, what a dream for a graphic designer with no coding skills!). I want to add a slideshow gallery to the site, but would prefer not to build one from scratch. I've learned that XML slideshows don't work with FC. Any suggestions? I'll pay for it if I have to. I just don't want to create it from nothing.
    Currently, I'm running a FC swf inside of a FC project. It works, but it worries me. It loads slow and I also need more than 20 frames. Please help!
    Soph

    I used Wondershare's Flash Gallery to create a video slideshow of stained glass that I then wanted to import into Flash Catalyst...similar to the Marcus Glass Portfolio project used in Adobe's tut.  Various options are given for output/published file format, so I first published as a .swf file.  This file plays wonderfully using Adobe Flash Player 10 but won't import into FC.  I went back & republished another way Wondershare suggested & ended up with
    2 files: 1 is .swf & the other is .html.  This swf plays in Flash Player 10 & the .html plays fine in the browser, so 1)  would I have to use these 2 files in Dreamweaver somehow or do I have to convert the 1st .swf into flv to use in FC?  Any help is greatly appreciated!!

  • Error running A Simple MDB example with oc4j

    Hi All,
    I am new to OC4J, I am trying the example for MDB from OTN's site, A Simple MDB example with OC4J. When I start my OC4J on the command line > java -jar oc4j.jar
    I get the following exception:
    Error deploying file:/C:/unzipped/mdb_hello_world/build/mdb/mdb.jar homes: No lo
    cation set for Topic resource MessageDrivenBean MDB
    Error in application mdb: Error loading package at file:/C:/unzipped/mdb_hello_w
    orld/build/mdb/mdb.jar, Error deploying file:/C:/unzipped/mdb_hello_world/build/
    mdb/mdb.jar homes: No location set for Topic resource MessageDrivenBean MDB
    04/07/09 15:21:40 Error instantiating application 'mdb' at file:/C:/unzipped/mdb
    helloworld/build/mdb.ear: Error initializing ejb-module; Exception Error in ap
    plication mdb: Error loading package at file:/C:/unzipped/mdb_hello_world/build/
    mdb/mdb.jar, Error deploying file:/C:/unzipped/mdb_hello_world/build/mdb/mdb.jar
    homes: No location set for Topic resource MessageDrivenBean MDB
    04/07/09 15:21:41 Error starting HTTP-Server: Address already in use: JVM_Bind
    04/07/09 15:21:41 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
    initialized
    I have just followed all the steps provided to run the example exactly as given.
    I did add my Topic and TopicConnectionFatory entries in my jms.xml -
    <topic name="The Topic" location="jms/theTopic">
    <description>A MDB topic</description>
    </topic>
    <topic-connection-factory location="jms/theTopicConnectionFactory" />
    Here is the ejb-jar.xml given in the example:
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar>
    <ejb-jar>
    <enterprise-beans>
    <message-driven>
    <description>My message driven bean</description>
    <ejb-name>MDB</ejb-name>
    <ejb-class>MDB</ejb-class>
    <transaction-type>Container</transaction-type>
    <message-driven-destination>
    <destination-type>javax.jms.Topic</destination-type>
    <subscription-durability>NonDurable</subscription-durability>
    </message-driven-destination>
    <resource-ref>
    <description>The log topic where log events are broadcasted...</description>
    <res-ref-name>jms/theTopic</res-ref-name>
    <res-type>javax.jms.Topic</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <resource-ref>
    <description>The Factory used to produce connections to the log topic...</description>
    <res-ref-name>jms/theTopicConnectionFactory</res-ref-name>
    <res-type>javax.jms.TopicConnectionFactory</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </message-driven>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>MDB</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Supports</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    Here is my orion-ejb-jar.xml:
    <?xml version="1.0"?>
    <!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
    <orion-ejb-jar deployment-version="1.0.2.2" deployment-time="e7f5a3f42d">
    <enterprise-beans>
    <message-driven-deployment name="MDB" destination-location="jms/theTopic" connection-factory-location="jms/theTopicConnectionFactory">
    <resource-ref-mapping name="jms/theTopic" />
    <resource-ref-mapping name="jms/theTopicConnectionFactory" />
    </message-driven-deployment>
    </enterprise-beans>
    <assembly-descriptor>
    <default-method-access>
    <security-role-mapping name="&lt;default-ejb-caller-role&gt;" impliesAll="true" />
    </default-method-access>
    </assembly-descriptor>
    </orion-ejb-jar>
    I don't know what is wrong. Please help me.
    Rohini

    Hello,
    I guess that you didn't define the Topic and/or TopicConnectionFactory on your OC4J
    Inside $J2EE_HOME/config (see: subfolders .../j2ee/home/config e.g.)folder are several xml files appropriate for OC4J configuration. There's also jms.xml. Please, verify this one, it should have some entries for your settings.
    Just like in an example below:
    <topic-connection-factory name="TopicConnectionFactory" location="jms/TopicConnectionFactory"/>
    <topic name="theTopic" location="jms/theTopic"/>
    The names should be the same like in your MDB deployment descriptors. It works of course after next OC4J server restart.
    I hope helped you
    Krzysztof

  • Building J2EE examples with Ant 1.3 on WinXP

    I just installed J2EE 1.3.1 and set all environment variables according to J2EE/Ant documentation. I am trying to build the examples with Ant 1.3 and just before it tries to compile the first example, I get a "NTVDM.EXE Error while setting up environment" error window. This occurs every time I try this examples build. After I close this error window, the compiles fail mostly because the javax.ejb package classes cannot be found.
    Have I overlooked something here? Can anyone shed some insight on this problem?
    -Ryan

    Didn't think I'd be replying to so many of my own messages :-) ..., but anyway the problem with the NTVDM.EXE error message does not go away. I found that it's happens when Ant reads the system environment in the "property" task in build.xml under examples directory:
    <property environment="myenv" />
    <!--
    references to ${myenv.J2EE_HOME} and so on
    -->
    So I replaced occurences of ${myenv.<J2EE_HOME>} with the literal value, in my case, "C:\j2sdkee1.3.1" and now it works. Hope this helps.
    Cheers,
    Lakshmi.

  • App Files Saved as XML and Working with New Versions

    We work with app data in the form of array of large clusters and use LV Anything to XML conversion VIs to save to disk.
    The problem is when new app versions are developed and changes are made to the cluster format; we want the customer to be able to open the old version saved XML file format.
    Usually the saved cluster (in XML) has be changed by adding/removing a field or even changing the options of a ring control for example.
    The app name and version is stored in the XML.
    Question: Is there a way of easily working with XML file formats with slightly different fields?
    In the past we have worked with the raw XML text by searching for fields which are different and modifying them accordingly so they are accepted by the new file format.
    Any tips would be greatly appreciated.

    battler. wrote:
    I have written a software name and version cluster to XML.  How do you read the version field in the XML?  Do you use string search?  Is there a better way?
    Yes, I use String Search (because it is near the beginning of the XML string).  Depending on your XML "flavor", you should be able to uniquely-identify the Version information.
    I'm interested in how best to work with XML.  It seems cumbersome and prone to error to use string functions.  Is there a way or best practice of reading the XML fields directly without converting to cluster?
    XML is, after all, text with specific "tag" information, also text, identifying it.  String functions are pretty much "the way to go", but except in rare circumstances, you shouldn't necessarily "roll your own", but should try to use the utilities that come with your XML package that "know" how to do the mapping between the XML representation of a LabVIEW variable (and its value) and the Variable itself.
    Can you elaborate on these "mapping" and "reading/conversion" routines you're using?  How do they work and what functions do they use?
    An excellent question.  There are at least three XML packages out there for LabVIEW -- the "native" LabVIEW package that NI provides, EasyXML from JKI Software (distributed using VIPM), and GXML, also on the LabVIEW Package network.  I'm afraid that I'm slightly "abusing" XML, and have made some modifications to how I use EasyXML and GXML. 
    If you simply view an XML file in a "smart" editor, you'll see a series of text lines with Begin/End tags (like HTML).  Depending on the XML "flavor", embedded between the tags are data that describe the LabVIEW variable type (e.g. Dbl, Cluster, Array, etc.) and also the value(s) of the Variable.  The "ReadXML" (or similarly-named) function takes this description and (usually) returns a Variant that you can "turn into" the chosen variable (because you know the data type).  [You may need to tell the Reader, in advance, the type of LabVIEW variable to expect so that it "knows when to stop reading"].
    As to how they work, they just do String pattern matching and processing, usually of a pretty sophisticated level, but then you don't have to do the hard work yourself!
    Why do you use Private Project library?  Is your project based on OO?
    The reason I used a Project Library with the "messy details" in the Private parts has nothing to do with OO, but rather with "data hiding".  I actually developed this for my data processing routines.  I had a set of routines that collected and analyzed the data (about 700 VIs).  Let's call this Project "Version 1".
    For Version 2, I basically added a dozen variables to the main  Data Cluster (having over a hundred elements) that characterized the response.  As this Cluster was in a Type Def, I didn't have to change my code very much to accomodate this new data format, so most of my VIs kept the same name, but were "different" because the underlying TypeDefs were different.
    So I have a Version 1 program that can analyze Version 1 data, and a Version 2 program for Version 2 data.  What I want is a Version-independent program that can look at the data, and then call for Version 1 or Version 2 analysis.  By burying the Version 1 and Version 2 code inside of a Project Library, and only exposing the top-level "Analyze My Data" VI, my Analysis routine, which didn't know (and didn't care) about the two different Data TypeDefs, just figures out (from the XML) which Version of data I have and then calls either Lib1:Analyze My Data or Lib2:Analyze My Data.  If I ever change the Version again, I just need to copy the code in the Library to a new Lib3 Library, modify the TypeDef and related version-specific code as needed, and I'm done.
    I may have made this sound easy -- trust me, it was a definite learning experience.  While trying this out, the first thing I did was to "break" my installations of LabVIEW 2012, 2013, and 2014 (curiously, LabVIEW 2011 wasn't broken).  It stayed "broken" for about a week, then "cured" itself (I'd done something illegal, or maybe just immoral, with my Library, and it took a while to purge the badness).
    BS

  • Servlets & XML-RPC Example

    Since I am not having any luck on the Java & XML forum (http://forum.java.sun.com/thread.jsp?forum=34&thread=512728&tstart=0&trange=15)
    I thought I would try here. Does anyone know of a good example on the web they can point me to that shows XML-RPC with servlets as I cannot find any and the examples dir from the Apache distribution of XML-RPC (which is supposed to have such an example) is MIA. Thanks.

    hello,
    I am looking for the same servlet xml-rpc example, Have you found it ?
    nojkan

Maybe you are looking for