XML Slideshow Help!

Well, I'm new to action scripting and have a simple question,
I'm looking to make an image scroller with "Pause" "Forward" and
"Previous" buttons, I also want this animation to loop. Would
anyone be able to point me into the direction for designing an
image scroller similar to this one
BSU.edu?
I'm working on a project for my company, using Flash 8
Professional and they wanted something similar to this. Any help
would be greatly appreciated. Thanks in advance!

that's not really a scroller. the only thing that happens
when you click forward or back arrows is the next or previous image
pair fade-in.
create an array of your image pairs and two target
movieclips. initialize an array index (assign it zero) and if the
next button is pressed, increment the index, check if it exceeds
the array length (and, if so, re-assign to zero) and load the
corresponding pair of images listed in your array. when they both
complete loading, fade them in. similarly with the back
button.

Similar Messages

  • 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/

  • Flash XML Slideshow - Load next image after set amount of time

    I'm creating flash xml slideshow and have managed to get the
    images to load from the XML file. What I want to do now is have a
    timer that loads the next image after x amount of seconds. Any help
    would be great.
    Code sample
    stop();
    // Create XML Object
    slideshow_xml = new XML();
    // Start slideshow once XML file is loaded
    slideshow_xml.onLoad = startSlideShow;
    //Load XML file
    slideshow_xml.load("slideshow.xml");
    //Ignore Whitespace in XML Document
    slideshow_xml.ignoreWhite = true;
    //Create Function for Slideshow - Shows first slide and
    initalises variables
    function startSlideShow(success) {
    if (success == true) {
    rootNode = slideshow_xml.firstChild;
    totalSlides = rootNode.childNodes.length;
    firstSlideNode = rootNode.firstChild;
    currentSlideNode = firstSlideNode;
    currentIndex = 1;
    updateSlide(firstSlideNode);
    function updateSlide(newSlideNode) {
    imagePath = newSlideNode.attributes.jpgURL;
    slideText = newSlideNode.firstChild.nodeValue;
    loadMovie(imagePath, loadTarget);
    }

    Ok I've managed to get most of this working including the
    alpha fade in. I haven't been able to get the images to fade out
    (fadeImageOut function) so if someone can tell me what I'm doing
    wrong. Also should I have some sort of preloader function for when
    each image loads? and if so any pointers, then it should be done
    except that I might need to add some text for each image in the XML
    file.
    stop();
    var container:MovieClip =
    this.createEmptyMovieClip("container", this.getNextHighestDepth());
    var loader1:MovieClip = this.createEmptyMovieClip("loader1",
    this.getNextHighestDepth());
    var loader2:MovieClip = this.createEmptyMovieClip("loader2",
    this.getNextHighestDepth());
    container._x = 0;
    container._y = 0;
    function fadeImageIn() {
    var fadeTween = new mx.transitions.Tween(loader1, "_alpha",
    mx.transitions.easing.Regular.easeIn, 0, 100, 1.5, true);
    loadmovie(imagePath, loader1);
    function fadeImageOut(loader1) {
    var fadeTween = new mx.transitions.Tween(loader1, "_alpha",
    mx.transitions.easing.Regular.easeOut, 100, 0, 1.5, true);
    unloadMovie(loader1);
    // Create XML Object
    slideshow_xml = new XML();
    // Find out what this does
    slideshow_xml.onLoad = startSlideShow;
    //Load XML file
    slideshow_xml.load("slideshow.xml");
    //Ignore Whitespace in XML Document
    slideshow_xml.ignoreWhite = true;
    //Create Function for Slideshow - Shows first slide and
    initalises variables
    function startSlideShow(success) {
    if (success == true) {
    rootNode = slideshow_xml.firstChild;
    totalSlides = rootNode.childNodes.length;
    firstSlideNode = rootNode.firstChild;
    currentSlideNode = firstSlideNode;
    currentIndex = 1;
    updateSlide(firstSlideNode);
    function updateSlide(newSlideNode) {
    imagePath = newSlideNode.attributes.jpgURL;
    slideText = newSlideNode.firstChild.nodeValue;
    //loadMovie(imagePath, loader1);
    fadeImageIn();
    function nextSlideImage() {
    nextSlideNode = currentSlideNode.nextSibling;
    if (nextSlideNode == null) {
    rootNode = slideshow_xml.firstChild;
    totalSlides = rootNode.childNodes.length;
    firstSlideNode = rootNode.firstChild;
    currentSlideNode = firstSlideNode;
    currentIndex = 1;
    updateSlide(firstSlideNode);
    } else {
    currentIndex++;
    updateSlide(nextSlideNode);
    currentSlideNode = nextSlideNode;
    slideTimer = setInterval(nextSlideImage, 5000);

  • XML Slideshow a bit rough around the edges

    Hey there,
    I'm supposed to be wrapping up another xml slideshow and
    could use some help ironing out some of the problems.
    1. The transitions between sections is a bit harsh, I'd like
    to smooth it out some by fading from 1 color to the next or
    something.
    2. The captions don't sync up with the pictures the first
    time around until the pics are cached.
    3. When you click on the button of the section you are in,
    the slideshow stops.
    Just click on main.swf and you'll see what I'm working with.
    Thanks a lot. Here's a link to all the files.
    http://www.dynodealz.com/slideshow.zip

    Few suggestions to sharpen it up, add a fade out to the last
    graphic shown, especially when changing catagories, and there wait
    for the first graphic to load before fading the last.
    With the colour tabs you could quickly have flash do the
    colour change for you by putting all the colours in one movieclip
    and having shape tweens between them which you can simply call when
    changing catagory i.e label frame redToGreen and have it simply
    shape tween red to green.
    You could also fade in the text as well if you used embeded
    fonts. Change the description copy font as well. Podium Sans
    perhaps.
    Other than that looks good, a little tweak of the style and i
    think you've got it, nice clean simple

  • 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>   

  • Xml slideshow controls, need help!

    Hello,
    I am new to actionscript and am trying to make a slideshow
    with next and previous controls. The info for the slideshow is
    coming via xml. I have it up and running but there are two issues.
    When clicking on the next or previous buttons the new image will
    load but the first image will be present under the new image. So if
    you are navigating from image 2 to 3, while image 3 loads, image 1
    is visible. The next problem I am having is I would like for the
    slideshow to repeat itself once it gets to the end.

    Sorry 2 more things.
    In the above link to get to the slideshow, click america,
    then new england.
    And it appears that on the initial load the first image loads
    17 times, which is the total number of images in the slideshow.
    Thanks again

  • Xml slideshow playback controls issue

    Hi, I'm trying to create a picture slideshow which can be controled by the user with play / stop / next buttons. I've managed to program the play / stop events with success, but I'm stuck trying to create the next button event since it doesn´t work properly. The first time I hit the next button it takes me to the same picture that has been currently loaded, the second time I hit the next button it works as expected, takes me to the next image.
    I appreciate your help, thank you in advance.
    Here's the Code:
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    stop();
    //Escondo botones navegación
    navigation.visible = false;
    //Declaro/inicio variables
    var loadernike:loadercreditos = new loadercreditos();
    var my_speed:Number;
    var my_total:Number;
    var my_images:XMLList;
    var my_loaders_array:Array = [];
    var my_labels_array:Array = [];
    var my_success_counter:Number = 0;
    var my_playback_counter:Number = 0;
    var my_contador_next:Number = 0;
    var my_slideshow:Sprite = new Sprite();
    var my_image_slides:Sprite = new Sprite();
    var my_label_slides:Sprite = new Sprite();
    var my_preloader:TextField;
    var my_timer:Timer;
    var my_prev_tween:Tween;
    var my_tweens_array:Array = [];
    var my_xml_loader:URLLoader = new URLLoader();
    //Precarga xml
    my_xml_loader.load(new URLRequest("images/interior/NIKE/slideshow.xml"));
    my_xml_loader.addEventListener(Event.COMPLETE, processXML);
    var htmlContent:TextField;
    function processXML(e:Event):void
        var my_xml:XML = new XML(e.target.data);
        my_xml.ignoreWhitespace = true;
        //htmlContent = my_xml.title.text();
        my_speed = my_xml. @ SPEED;
        my_images = my_xml.IMAGE;
        my_total = my_images.length();
        loadImages();
        trace("imag", my_images);
        my_xml_loader.removeEventListener(Event.COMPLETE, processXML);
        my_xml_loader = null;
    function loadImages():void
        for (var i:Number = 0; i < my_total; i++)
            var my_url:String = my_images[i]. @ URL;
            var my_loader:Loader = new Loader();
            my_loader.load(new URLRequest(my_url));
            my_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
            my_loaders_array.push(my_loader);
            //formateo texto;
            var myFont = new Font1();
            var myFormat:TextFormat = new TextFormat();
            myFormat.align = TextFormatAlign.RIGHT;
            myFormat.font = myFont.fontName;
            var my_label:TextField = new TextField();
            my_label.textColor = 0xffffff;
            my_label.embedFonts = true;
            my_label.antiAliasType = AntiAliasType.ADVANCED;
            my_label.defaultTextFormat = myFormat;
            my_label.text = my_images[i]. @ TITLE;
            //my_label.autoSize = TextFieldAutoSize.LEFT;
            my_label.width = 450;
            my_label.background = true;
            my_label.border = true;
            my_label.backgroundColor = 0x000000;
            //my_label.htmlText = htmlContent;// Assign the HTML content to the text field*/
            my_labels_array.push(my_label);
            //preloader;
            addChild(loadernike);
            loadernike.x = (stage.stageWidth - loadernike.width)/2;
            loadernike.y = (stage.stageHeight - loadernike.height)/2 + 50;
    function onComplete(e:Event):void
        my_success_counter++;
        if (my_success_counter == my_total)
            startShow();
        var my_loaderInfo:LoaderInfo = LoaderInfo(e.target);
        my_loaderInfo.removeEventListener(Event.COMPLETE, onComplete);
    function startShow():void
        removeChild(loadernike);
        loadernike = null;
        //muestro botones navegacion
        navigation.navintback.visible = false;
        navigation.visible = true;
        addChild(my_slideshow);
        my_slideshow.addChild(my_image_slides);
        my_slideshow.addChild(my_label_slides);
        my_slideshow.x = 30;
        my_slideshow.y = 160;
        nextImage();
        my_timer = new Timer(my_speed * 1000);
        my_timer.addEventListener(TimerEvent.TIMER, timerListener);
        my_timer.start();
        //boton stop;
        function clickstopboton(event:MouseEvent):void
            navigation.navintnext.gotoAndStop(1);
            if (MisGlobales.vars.i == 0 && MisGlobales.vars.h != 1)
                navigation.navint.gotoAndPlay(2);
                my_timer.stop();
            else if (MisGlobales.vars.i==1 && MisGlobales.vars.h != 1)
                //play
                navigation.navint.gotoAndPlay(1);
                my_timer.start();
            if (MisGlobales.vars.h == 1 && MisGlobales.vars.i == 0)
                navigation.navint.gotoAndStop(2);
                my_timer.stop();
            else if ( MisGlobales.vars.h == 1 && MisGlobales.vars.i == 1 )
                navigation.navint.gotoAndStop(1);
        navigation.navint.addEventListener(MouseEvent.CLICK, clickstopboton);
        navigation.navint.buttonMode = true;
        //boton next;
        function clicknextboton(event:MouseEvent):void
            my_timer.stop();
            navigation.navint.gotoAndStop(2);
            nextImage();
            my_playback_counter++;
            trace("playback_counter_next",my_playback_counter);
            if (my_playback_counter == my_total)
                my_playback_counter = 0;
        navigation.navintnext.addEventListener(MouseEvent.CLICK, clicknextboton);
        navigation.navintnext.buttonMode = true;
        //boton back;
        function clickbackboton(event:MouseEvent):void
            my_timer.stop();
            nextImage();
            my_playback_counter--;
            if (my_playback_counter == 0)
                my_playback_counter = my_total;
                my_timer.stop();
        navigation.navintback.addEventListener(MouseEvent.CLICK, clickbackboton);
        navigation.navintback.buttonMode = true;
        //slide auto
        function nextImage():void
            var my_image:Loader = Loader(my_loaders_array[my_playback_counter]);
            my_image_slides.addChild(my_image);
            my_tweens_array[0] = new Tween(my_image,"alpha",Strong.easeOut,0,1,1,true);
            var my_label:TextField = TextField(my_labels_array[my_playback_counter]);
            my_label_slides.addChild(my_label);
            my_label.x=(stage.stageWidth - 63) - my_label.width;
            my_label.y=(my_image.y+my_image.height)+7;
            my_tweens_array[1] = new Tween(my_label,"alpha",Strong.easeOut,0,1,1,true);
        function timerListener(e:TimerEvent):void
            hidePrev();
            my_playback_counter++;
            if (my_playback_counter == my_total)
                my_playback_counter = 0;
            nextImage();
            trace("playback_counter_play",my_playback_counter);
        function hidePrev():void
            var my_image:Loader = Loader(my_image_slides.getChildAt(0));
            my_prev_tween = new Tween(my_image,"alpha",Strong.easeOut,1,0,1,true);
            my_prev_tween.addEventListener(TweenEvent.MOTION_FINISH, onFadeOut);
            var my_label:TextField = TextField(my_label_slides.getChildAt(0));
            my_tweens_array[2] = new Tween(my_label,"alpha",Strong.easeOut,1,0,1,true);
        function onFadeOut(e:TweenEvent):void
            my_image_slides.removeChildAt(0);
            my_label_slides.removeChildAt(0);
        function clickbotonskb(event:MouseEvent):void
            my_timer.removeEventListener(TimerEvent.TIMER, timerListener);
            gotoAndPlay(10);
            MovieClip(root).main.main_bar.seccinteriors.my_playback_counter_sk = 0;
        skunkfunk_btn.addEventListener(MouseEvent.CLICK, clickbotonskb);
        skunkfunk_btn.buttonMode = true;
    See example at:
    http://www.neoconfort.com/neoconfort/Neoconfort.html

    I did a workaround by using the slideshow component shown in
    http://flashotaku.com/blog/slideshow-component-as3-documentation/
    Thank you to FlashOtaku

  • Non-XML slideshow with AS3?

    Hello,
    I am looking for a way to run a slideshow without using XML, but controlling the entire show with AS3. I have all of the resources and code to run a dynamic show, but I am attempting to build this on Oracle's Content Management System – Stellent. Stellent does not allow us to access our external XML files or external assets such as images, js, swf, etc.
    The best way to go about building our slideshows for use with this CMS is to make them fully integrated in themselves. The downside, obviously is a larger filesize, but does anybody know how I would go about building this into itself, instead of externally?
    I would like to keep all functionality of the XML (specifically the links and timer)
    I would also like to keep the automatic button generation.
    If anybody can help me out with this it would be greatly appreciated. I have attached a file enclosing all of my working dynamic elements.
    Thank you!!
    Nick
    I am unable to load a zip file, but within the parent directory there should be an assets folder with an images folder inside.

    there must be some way to use external data to feed applications or that wouldn't be much of a cms.
    but if you want to keep all the data in swf, just hardcode all the data in your swf.  actually, with as3, you can copy and paste the contents of an xml file into flash and assign it to an xml instance.

  • Convert AS2 to AS3 (XML / Slideshow)

    Hi everyone,
    I've created a slideshow in AS2 (with some help from a
    tutorial) but it is in AS2 unfortunately. I need it to be in AS3
    and I've tried to read some online tutorials and other online
    materials on AS3 and the difference, but I just seem to run my head
    against the wall every time.
    I don't know if it's a comprehensive task to ask but I take
    my chances and try anyway. Please let me know if this is way too
    much to convert / translate
    I've attached my AS2 code
    I short it has to load images from a XML file where a tag
    with caption (image title) and a tag with the delay settings.
    So far I’ve discovered that the XML loading in the very
    beginning is completely different in AS3 so I founded a tutorial on
    how to load XML data into flash. That is working alright but my
    next problem is to reset all the other variables (like caption,
    delay etc.) and I’ve read that XML in AS3 has a much faster
    and smarter way to load the tags. Now I just have to found out how
    that’s done :-)
    Thanks in advance
    eDevantie

    Are you using external .as files and classes or are you using frame scripts directly in the timeline? Are you used to any other object oriented programming languages? Knowing more about other languages you might know would help a lot.
    AS2 very informal and specialized to Flash. It relates to pretty much no other language out there, like JavaScript seldom relates. They're c-esque but only in a very distant 3rd cousin style.
    AS3 is much more OOP oriented and typed versus the less formal, error-prone loose dynamic nature of AS2. While your game would benefit greatly from the speed increases and error reduction, I think you're really swinging for the fence on this one. While some classes may resemble their AS2 counterpart and the core global functions work the same, everything else is different. Starting off trying to convert 4,000 lines of code is a little steep.
    As mentioned, the resources to learn AS3 are excessive and plentiful from video training to tutorials to the API reference itself. Google has it all.
    I think you really should lower your target and just try some really simple, basic things. Draw a shape, add a listener, do something basic when clicked, etc. You'll get a good idea of how different things are with the new display list rather than tearing your hair out converting your as2 game.

  • Xml slideshow with random PICTS and mx.transitions

    Hi All,
    I am building a web banner with a slideshow with random picts via xml,
    but i want to use a iris transition to fade in while getting the pict, and fade out with the iris transition, the last action works but when getting i cannot get the transition to work below is a piece of the code:
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    pauseTime = 2000;
    xmlImages = new XML();
    xmlImages.ignoreWhite = true;
    xmlImages.onLoad = loadImages;
    xmlImages.load("images.xml");
    function loadImages(loaded) {
        if (loaded) {
            xmlFirstChild = this.firstChild;
            imageFileName = [];
            totalImages = xmlFirstChild.childNodes[0].childNodes.length;
            for (i=0; i<totalImages; i++) {
                imageFileName[i] = xmlFirstChild.childNodes[0].childNodes[i].attributes.title;
            randomImage();
    function randomImage() {
        if (loaded == filesize) {
            var ran = Math.round(Math.random() * (totalImages - 1));
            picture_mc._alpha = 0;  // Start image clip as invisible
            picture_mc.loadMovie(imageFileName[ran], 1);  //Load random image from xml
            var pictureTweenIn:Tween = new Tween(picture_mc, "_alpha", Normal.easeIn, 0, 100, 4, true); //WORKS!
            mx.transitions.TransitionManager.start(picture_mc, {type:mx.transitions.Iris, direction:mx.transitions.Transition.OUT, duration:3, easing:mx.transitions.easing.Regular.easeInOut});   // DOES NOT WORK?   
            pictureTweenIn.onMotionFinished = function () { // When done fading
            _root.pause();  // Start pause() function
    function pause() {
        myInterval = setInterval(pause_slideshow, pauseTime);
        function pause_slideshow() {
            clearInterval(myInterval);
            var pictureTweenOut:Tween = new Tween (picture_mc,"_alpha",Normal.easeOut,100,0,5,true);//WORKS!
            mx.transitions.TransitionManager.start(picture_mc, {type:mx.transitions.Iris, direction:mx.transitions.Transition.OUT, duration:3, easing:mx.transitions.easing.Regular.easeInOut});  //WORKS!     
            pictureTweenOut.onMotionFinished = function() {
                _root.randomImage();  // Call next randomImage()
    If anyone can help me out this would be great!
    Mikki65

    Good question. Not sure about iDVD. But I know for a fact I can use random transitions within DVDSP. However, if I'm not mistaken in iDVD I may be limited to the same transition within any given slideshow. I know it's possible to bring in an album into iDvd. And I know it's possible to use KB effects. But let me do some more searching for you because I forgot the exact procedure/s. I'll post back here later.
    In the meantime you may also wish to review these slideshow apps as well:
    http://www.lqgraphics.com/software/phototomovie.php
    http://www.boinx.com/fotomagico/overview/

  • Reg: XML PUBLISHER HELP

    Hi all,
    I am building report using xml publisher. Problem i facing was ,
    1. I created the template in RTF and attached to data definition
    for eg: my rtf is
    sno item quantity price ( I created this field in table structure and mapped to xml data)
    Total Price ( this also i am getting from data definition)
    The below is sample constant sentence for my client and typed just below Total Price ( field i mentioned above)
    Inspected By Approved By
    1)
    ________________________________ 1)________________________________ Store Incharge : ______________________
    2)
    ________________________________ 2) ________________________________ Received : _______________________
    3)
    ________________________________ 3 ________________________________ Prepared By : _______________________
    NOTE : ABOVE MENTIONED LINES ARE CONSTANT ONE.
    2. When i ran the report, if my data definition return 5 lines means , i am getting PDF output Correctly in single page (1st page)
    3) If my data definition returns lines more than 8 lines means, I am getting PDF output with Table structure values with item, in 1 st page and Constant sentence in 2nd page of PDF
    4) If my data definition returns lines between 5 and 8 means, I am getting PDf output with table structure values with item and some of Constant sentence of my client in 1 st page and few of the constanst sentence in 2nd page.
    Actually my need
    Even if the data definitions exceeds more than 5 lines the constant sentence should be placed either in the first page or in the next page based on the no. of lines in the data definition.
    How to resolve this... any approach most welcome. Wat changes i have to make.

    Hi Shruti,
    You can start with the BI publisher page on OTN http://www.oracle.com/technology/products/xml-publisher/index.html.
    Check out the tutorials (Oracle by Example). There's lot of good information out there. Check out the BI publisher guide here:http://www.oracle.com/technology/products/xml-publisher/xmlpdocs.html
    Search the forum or post questions about any specific questions you may have about formatting numbers and dates.
    Hope this helps.
    Thanks!

  • XML Publisher Help

    Hi,
    We currently have a payslip report that has been developed using Oracle reports, but for this to run we have to change our NLS_LANG setting from UTF8 to WE8ISO8859P1.
    The problem with this is to apply patches Oracle have told us we need to have the NLS_LANG set to UTF8.
    As a result Oracle have said that:
    The only available workaround for generating PDF on a UTF8 character set instance is to install and utilize the XML Publisher product or upgrade to E-Business Suite to Release 12.
    We don't have any plans to upgrade to Release 12, so I am looking to use XML Publisher. I have a couple of questions:
    Is this an add-on?
    Where is the best place to obtain navigation guides and tutorials to teach myself this?
    I have had a look at some of the pre-defined templates already and I am not sure how to create my own rtf file so that my required fields are passed to the template.
    Any help would be greatly appreciated
    Many Thanks
    Martin

    Hi Shruti,
    You can start with the BI publisher page on OTN http://www.oracle.com/technology/products/xml-publisher/index.html.
    Check out the tutorials (Oracle by Example). There's lot of good information out there. Check out the BI publisher guide here:http://www.oracle.com/technology/products/xml-publisher/xmlpdocs.html
    Search the forum or post questions about any specific questions you may have about formatting numbers and dates.
    Hope this helps.
    Thanks!

  • Error in my build.xml file (help with spotting syntax error requested)

    Hi
    I have written an XML file called build.xml for one of my applications. My XML editor complains that there is an error at the last line of the XML file, but I simply find it unable to correct the errror.
    It says:
    Fatal error:Build.xml[76:3-9]: End-Tag without start-tag
    The XML file itself:
    <project basedir="." default="deploy" name="concepts">
    <property name="src.dir" value="src"></property>
    <property name="build.dir" value="${basedir}/build"></property>
    <property name="build.lib" value="${build.dir}/lib"></property>
    <property name="dist.dir" value="dist"></property>
    <property name="classes.dir" value="${build.dir}/classes"></property>
    <property name="build.etc" value="${src.dir}/etc"></property>
    <property name="build.resources" value="${src.dir}/resources"></property>
    <property name="lib.dir" value="lib"></property>
    <property name="web-inf.dir" value="WEB-INF"></property>
    <property name="war.name" value="concepts"></property>
    <property file="../common.properties"></property>
    <target name="init">
    <mkdir dir="${build.dir}"></mkdir>
    <mkdir dir="${classes.dir}"></mkdir>
    <mkdir dir="${dist.dir}"></mkdir>
    </target>
    <target name="deploy" depends="clover-yes, clover-no">
    <javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${libs}" debug="off" optimize="on" deprecation="on" compiler="${compiler}">
    <include name="org/apache/commons/fileupload/**/*.java" />
    <include name="com/portalbook/portlets/**/*.java" />
    <include name="com/portalbook/portlets/content/**/*.java" />
    </javac>
    <target depends="init" name="compile">
    <javac debug="true" deprecation="true" destdir="${classes.dir}" optimize="false">
    <src>
    <pathelement location="${src.dir}"></pathelement>
    </src>
    <classpath>
    <fileset dir="${lib.dir}">
    <include name="*.jar">
    </include>
    </fileset>
    </classpath>
    </javac>
    </target>
    <target depends="compile" name="war">
    <war destfile="${dist.dir}/${war.name}.war" webxml="WEB-INF/web.xml">
    <classes dir="${classes.dir}"></classes>
    <lib dir="${lib.dir}"></lib>
    <webinf dir="${web-inf.dir}"></webinf>
    </war>
    </target>
    <!-- create the portal-concepts-lib.jar -->
    <jar jarfile="${build.lib}/concepts-lib.jar">
    <fileset dir="${classes.dir}"></fileset>
    </jar>
    <jar jarfile="${build.lib}/concepts.war" manifest="${build.etc}/concepts-war.mf">
    <fileset dir="${build.resources}/concepts-war"></fileset>
    </jar>
    <!-- concepts.ear -->
    <copy todir="${build.resources}/concepts-ear">
    <fileset dir="${build.lib}" includes="concepts.war,concepts-lib.jar"></fileset>
    </copy>
    <jar jarfile="${build.lib}/concepts.ear">
    <fileset dir="${build.resources}/concepts-ear" includes="concepts.war,concepts-lib.jar">
    </fileset>
    </jar>
    <target depends="deploy" name="explode">
    <taskdef classname="org.jboss.nukes.common.ant.Explode" classpath="${libs}" name="explode"></taskdef>
    <explode file="${build.lib}/concepts.ear" name="concepts.ear" todir="${build.lib}/exploded"></explode>
    </target>
    <target depends="war" name="all"></target>
    <target name="clean">
    <delete dir="${build.dir}">
    </delete>
    <delete dir="${dist.dir}">
    </delete>
    </target>
    </project>
    I am a little inexperienced in XML files. So I am unable to spot the error.
    I would greatly appreciate it, if some kind soul were to help me out.
    thanks a lot

    The tag
    <target name="deploy" depends="clover-yes, clover-no">...is never closed.
    close that tag:
    <target name="deploy" depends="clover-yes, clover-no">
         <javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${libs}" debug="off" optimize="on" deprecation="on" compiler="${compiler}">
              <include name="org/apache/commons/fileupload/**/*.java" />
              <include name="com/portalbook/portlets/**/*.java" />
              <include name="com/portalbook/portlets/content/**/*.java" />
         </javac>
    </target>Second error is that the depends in there (clover-yes, clover-no) are not existing as targets in your xml.

  • Error while rendering menus/slideshows--HELP!!

    Ok. I've done my homework on this forum and the Mac help pages and nothing fixes this problem.
    Initial issue: I have an iDVD project with pictures in drop zones, audio in the background, two menu pages each with 3-4 movies (both .dv and .mpg4), and a menu page with nothing but background audio and text.
    While trying to create a disk image I received the (familiar to this board) error that there was an "Error while rendering menus/slideshows" and that burning was to be aborted.
    What I tried:
    I cleared 41 gigs of free space on my boot drive.
    I transfered all of my media files onto the boot drive.
    I verified and repaired permissions. (until I did these last two items, the program wouldn't just fail, it would crash my computer, giving me the multilanguage *you must restart* greyed out page).
    I downloaded the most recent quicktime, iTunes, and Mac OS updates.
    I created a new iDVD project with only one video file (sepearately tried just a .dv and .mpg4 file).
    I removed all quicktime extensions from my 'library/quicktime' and '~library/quicktime' folders.
    I changed from 'higher quality' to 'better performance'.
    I told it to process in the background.
    I told it to delete the rendered files when it was done.
    I ran the apple hardware Test from my Apple CD.
    I turned off the hard drive/screen 'sleep' settings.
    I switched the video format from NTSC to PAL.
    I swore and came up with multiple comically profane file names for the disk images.
    Nothing. It always gives the error following the 'processing menus' portion of the rendering.
    Facts:
    iBook G4
    1.2 GHz Power PC
    1.25 GB Ram
    41.77 Gigs of free hard drive on boot disk.
    iDVD v5.0.1 (625)
    iMovie HD v5.0.2 (111)
    Quicktime v7.1.5
    Mac OSX v10.4.9
    I'm running into a deadline and need to have this burned!!
    *** Mac?
    iBook G4   Mac OS X (10.4.9)   1.2 G Ram

    I switched the video format from NTSC to PAL.
    Why in the world would you do this? You are in the
    NTSC area. You must change the NTSC/PAL setting
    BEFORE you start a project.
    Mostly because I don't know what it means and wanted to try anything.
    All the video and audio is original content.
    I ended up going to the Mac genius bar today. They said that it was a corrupted encoding file solved by a reinstall of iDvd. Sounds like a lot of people run into this problem?
    On the topic of file formats... do you know why my titles look great in iMovie, but look like crap once I export them? Even if I export at "Full Quality". And is .dv better than .mpg4? I need a good primer.
    thanks,
    Ian
    I suspect the problem lies in your mpg-4 content.
    iMovie/iDVD have very spotty mpg-4 support. Try
    using something like VisualHub (
    http://www.techspansion.com/visualhub/ ) to convert
    your mpg-4 files to DV format. (You may also be
    having problems with the music used in your menus.
    Where does it come from?)
    F Shippey

  • Methods in XML--pL help

    I have string...as
    String xstr="<?xml version=\"1.0\"?>\n"+
    "<UserGroups>\n<u_bit><![CDATA[1]]></u_bit>\n"+
    "<u_title><![CDATA[public]]></u_title>\n<u_description><![CDATA[Pages are available to all visitors - no restrictions are applied]]></u_description>\n"+
    "<u_used><![CDATA[1]]></u_used>\n<u_fromname/>\n<u_fromemail/>\n<pw_email/>\n<u_user/>\n<u_password/>\n</UserGroups>"+
    I am trying to form a xmlDoc using String Reader as follows..
    java.io.Reader reader = new java.io.StringReader(xstr);
         org.xml.sax.InputSource source = new org.xml.sax.InputSource(reader);
         org.w3c.dom.Document xmlDoc=null;
         DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
         DocumentBuilder builder = factory.newDocumentBuilder();
         xmlDoc = builder.parse(source);           
         Element xmlRoot=xmlDoc.getDocumentElement();
         Table_Name=xmlRoot.getNodeName();
         NodeList oNodeList = xmlRoot.getChildNodes();
         Node PNode=oNodeList.item(0);
         But at the end...ONodeList.item(0)...does not give anything...Am I doing anything wrong...Pl help if possible soon
    smita

    since Value is within the CDATA tag...You see a "CDATA tag", as you call it, in your XML, but the parser strips that all off and normalizes it to an ordinary string. So writing
    <![CDATA[public]]>
    is exactly the same as writing
    public
    and the parser treats them identically. So identically, in fact, that there is no way for you to find out whether CDATA was used at all.
    Sorry, that doesn't answer your actual question, but hopefully it prevents you looking in the wrong direction.

Maybe you are looking for

  • Sql Query (updateable Report) returning ORA-06502: PL/SQL: numeric or value

    Hi I have a Sql Query Report Region as defined below. On the report attributes I am not using any "Row Selector". In a After submit process I try to print out the results of the value I have entered in as a value in updatable report and i get the err

  • CSV Redirected status is not displayed in cluster MMC

    I've seen a strange behaviour in the cluster's MMC I have created a cluster with 2 Windows Server 2012 R2 and a HP MSA FC storage. 2 LUNs were created : one for quorum and the other for VHDX storage configured as CSV. In order to test redirected acce

  • How to generate report with dynamic variable number of columns?

    How to generate report with dynamic variable number of columns? I need to generate a report with varying column names (state names) as follows: SELECT AK, AL, AR,... FROM States ; I get these column names from the result of another query. In order to

  • Compare a varchar2 segment column with a date column

    Dear All , i have a segment column with datatype varchar2 with data sample like '2013/06/09 00:00:00' , i want to compare this column with date column i tried many ways of conversion but not working like select to_date(TO_NCHAR(substr('2013/06/09 00:

  • VAT  Returns in SAP

    Hi Gurus, Can anybody explain how to do VAT returns in SAP ECC 5.0.  Is there any report in SAP, to check the VAT paid and Payable amount. Please help me in this regard Thanks in Advance, Ganesh