Slideshow with variable times

I've got an audio track (spoken) that I'd like to combine with photos at appropriate times. I do not want an approach with n seconds per picture. I may have a photo for a minute or two, followed by several very quickly.
Is iDVD the right tool for this? (If not, what is the better tool?)
Dave P

First of all, you should NEVER use nested functions - they are a recipe for disaster.
To start you with, the following code should accomplish the same thing as your original one. It will not do everything you intend but, again, it is something to begin with (code is more compact and more manageable):
myLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loading);
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded);
prev_btn.addEventListener(MouseEvent.CLICK, imageProgression);
next_btn.addEventListener(MouseEvent.CLICK, imageProgression);
function imageProgression(e:MouseEvent):void
     clickSound.play();
     preLoader.visible = true;
     if (e.currentTarget == prev_btn) {
          imageCount--;
     else {
          imageCount++;
     myLoader.load(new URLRequest(imageCount + ".jpg"));
function loading(e:ProgressEvent):void
     var loaded:Number = e.bytesLoaded / e.bytesTotal;
     preLoader.SetProgress(loaded);
function loaded(e:Event):void
     close_btn.visible = true;
     preLoader.visible = false;
     var tweenAlpha:Tween = new Tween(myLoader, "alpha", None.easeOut, 0, 1, 10, false);
     myLoader.x = 0;
     myLoader.y = 0;
     addChild(myLoader);

Similar Messages

  • Finite pulse-trai​n generation with variable time lapses with NiDAQmx

    Being a newby in Labview and NiDAQmx, I find it tedious to program the application I need to drive my experiment : I want to generate a finite pulse train, with variable delays between two consecutive pulses. These delays are known before the experiment starts, summurized in a table (element 0 decribes the time lapse between pulse 0 and 1, element 1 between pulse 1 and 2 ...). I would like to use NiDAQmx to program this. I had in mind the following scheme : two counters, first one counting time between pulses, the second one generating the pulse once "counter one" has finished his job. What I don't figure out is how to reprogram "counter one"'s register, without introducing unwanted delays in the time
    sequence of my finite pulse train. I am using a 6052E DAQ, and I want to generate delays in a same pulse train ranging from 1 microsecond up to 20 seconds.
    Thank you for ANY help :-)

    Hello !
    Well, I will try to be more precise while answering your questions. But first let me thank you very much for your help : your comments, questions and remarks are very helpful to help me shape my project, as you shed light on particular problems I strictly had no idea before !
    1) I can certainly get on well with digital output as my flash device is triggered by TTL signals.
    2) The lighting device is home-made, and I think it will be better for my needs to produce light throughout the duration of the input at the “on” level. In any case it will be driven by TTL-like signals. The intensity is manually set, so no analog control is required.
    3) I will use Labview to collect the experimental data. The signal will be sampled during the light pulse : the rising edge of the TTL-like output signal will trigger both the lighting device and the data acquisition, the latter being stopped on the falling edge. The light emitted by the lighting device is called a “probe” for the following reasons : the photons are absorbed by the photosynthetic sample and “immediately” re-emitted at a longer wavelength. A photodiode acts as a signal transducer, and I monitor the intensity of this fluorescence. Knowing precisely when light pulses occurred after the initial start excitation (which is also a brief pulse of light but of a much greater intensity than the “probe” light) and the intensity of light emitted during theses pulses, I can reconstruct the kinetic of fluorescence decay. This kinetic reflects the behaviour of my biological sample. Thus no continuous acquisition is required as between two light pulses there is nothing to monitor. And all the half-time reaction are timed relative to the same “start” excitation as they reflect a jump sequence of an electron extracted by the “start” excitation : first jumps are quick ones (half-time in the 10 �s range) and last jumps are slow ones (half-time in the 1 s range). With respect to these kinetics, I would like a 1 �s precision. If not achievable, I could skip the quickest jump (but it would be a pity) and focus on the second one which has a 10 ms half-time reaction and a 100 �s precision would then be enough. But as we say in French : “Qui peut le plus, peut le moins !” (roughly meaning that when you can achieve the best, you easily can do the least). This precision relates to the position of one flash with respect to the others. I don’t need to be very precise on the duration of each individual light pulse : a typical value is 100 �s duration, but I can get on well with 90 �s or 110 �s, my data being an average of the light intensity emitted during the light pulse). All I want to know precisely is when it is fired.
    4) Concerning the hardware, I already have a NI 6052E DAQ board, and unfortunately my laboratory cannot allow me to spend more money on this. I also have a fast acquisition board (IMTEC T3012) I intended to use to acquire my photodiode signal in place of the 6052E A/D converter. It has an old Labview driver, and I managed to upgrade it to suit my needs. It has an onboard segmented memory and can keep track precisely (it has a 60 MHz sample clock) of a trigger event. I am wondering if I can overcome the timing precision issue with this board, knowing that I strictly don’t care that flash n�1 is triggered at (t0 + 10 �s) or (t0 + 11 �s), provided that I know it, allowing me to place precisely my data point on the time scale. I can program the number of memory segments (i.e. the number of light pulses) and each one is filled with data coming from the photodiode upon receiving the rising edge triggering the light pulse. The precise date at which each triggered is received is stored in the board memory, allowing time reconstruction.
    I do hope this is much clearer than my previous attempts ! Believe me, it is quite hard to leave biology for a while and enter the cryptic world of data acquisition !
    Gritche

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

  • Recording Slideshow with Existing Narration...

    Greetings Support Discussion Members,
    Is there any way to record a slideshow using an existing narration? What I want is to use a narrative recorded at a studio, sync to slides with variable times [not fixed timing] and have this playback in sync with audio and slides playing back timings with the mouse or direction arrow? And export this to Quicktime. Read completely through the manual and there is no clear way to do this. Anyway you can instruct on how to accomplish or workaround would be appreciated. Thanks! DD

    Tulse,
    Thank you for your suggestion. It works! I found that you have to be careful in setting up Soundflower precisely. Or else it won't work. Very interesting indeed! I tried it with one slide to see if I can get the audio in there. It really works! I'm quite surprised that Keynote does not allow you to do this easily? Hopefully this will be included in an update or subsequent version. Because you're using TWO applications now, you need to give yourself time switching between the two. You could put a tone, click or short space with a beep/audio ID to tell you when to start recording in Keynote. The Apple Discussions community is awesome! Thank you all for sharing and caring! Best wishes for all in 2009. Donnie D.

  • Problem with currency translation and variable time ref. with 0FISCPER

    Hello,
    We have a problem with a currency conversion with a variable time reference (as iobject we use 0fiscper)
    We created a currency conversion for several key fig:
    Our settings:
    Exchange rate Type: EURX
    dynamic ex rate determination
    Source cur from datarecord
    Fixed Target Curr (EUR)
    Variable time ref.: End of Period
    Special Infoobject: 0fiscper
    When we run the DTP we get the following error:
    <i>Enter rate GBP / EUR rate type EURX for 00.00.0000 in the system settings.</i>
    ending the DTP in a message type X.
    In table TCURR and T009/T009B all necessary information is available.
    After debugging the function module, it looks like the created date (created from the FISCPER) is set to 00.00.0000. This results in the error above.
    Does anybody have experience with this error and more important know how to solve it?
    We also have a 0FISCYEAR available but in the TCURR table al rates are defined per end of the month. When trying to use 0FISCYEAR as InfoObject in the variable time reference, a diffrent error occurs:  Enter rate GBP / EUR rate type EURX for 01.01.1001 in the system settings. While  the 0FISCPER is 2001001.
    Is there a bug in the function module? (couldn't find a SAP note)
    We are working with BI 7.0 and SP12
    Best regards
    Steven

    Please can you give more detail on how you were able to resolve this issue?  How did you add 0fiscper to the transformation?  I am on BW 3.5, how do I fix this same issue on it?  Please help, this is urgent.

  • Creating Slideshow with audio

    Hello!
    I'm working on a Flash CS3 file (with Actionscript 3.0) and
    I'm trying to create a slideshow with an audio track. I have 12
    slide images and a 12 minute long audio presentation. I want to
    pause the images for variable times during the presentation - 20
    seconds during the first slide, 60 seconds for the second slide, 80
    seconds for the third, etc. I've been able to write a script that
    loops along the timeline for the given time over the image then
    moves on to the next slide image. It works great if I don't want to
    pause and restart the movie, but I'd like to do that.
    I've been able to create a single button that pauses and
    plays the sound. Here's the tutorial I used to create this:
    http://twf23.wordpress.com/2008/02/06/start-and-stop-sound-with-actionscript-30/
    But, I cannot get it to pause the timeline at the same time.
    I can create a separate button that stops and starts the timeline.
    I want one button to do both. It seems like I should be able attach
    a function to the play_mc clip that also pause the timeline.
    Eventually this will be a template for other such
    presentations - where I can swap out the images and the audio thus
    creating a PowerPoint-like slideshow for distribution on the
    Internet.
    Any thoughts?
    Thanks!

    Welcome to the Apple Discussions.
    iMovie is a very straightforward way to do this.
    Import your sound and your images, stitch them together and then export them in an iPod compatible format.
    Job done.
    Regards
    TD

  • Auto slideshow with progressive image load

    Hello everyone,
    Does anyone know of a good autoplay slideshow script that
    starts with the
    first image on page load and then downloads the additional
    images when
    called? In other words, if there are 20 images in the
    slideshow, it doesn't
    load all 20 images before displaying the first.
    I have just a couple of specific requirements.
    I don't need any controls (pause, forward, etc) on it.
    Most of the javascript slideshows I've looked at in Google or
    have in my
    snippet list have the image name hardcoded in the script.
    Image1.jpg, image2.jpg, etc, which won't work.
    I'll be feeding the images dynamically depending on the
    category the user
    chooses and the image names are variable.
    I'm currently using javascript that automatically shows and
    hides divs with
    the same class name by changing the display style from none
    to block and
    back to none as it loops through them.
    This works well as I can dynamically write as many divs as
    needed by looping
    through all the items in a category.
    But alas, this one still doesn't start to run until all the
    images are
    downloaded.
    You can see it here:
    http://www.onelongfellowsquare.com/
    There's actually 3 "slideshows", stacked one on top of the
    next, using this
    in the "Featured" section.
    Thank you for any help or ideas.
    Take care,
    Tim

    Thanks, Jeff.
    That's the functionality I was looking for.
    I just need to figure out the best way to dynamically fill
    the array with
    image names from a database.
    Take care,
    Tim
    "Jeff" <[email protected]> wrote in message
    news:[email protected]...
    > <head>
    > <script language="JavaScript1.1">
    > <!--
    > var slidespeed=3000
    > var slideimages=new
    >
    Array("image1.JPG","image2.JPG","image3.jpg","image4.jpg","image5.jpg","image6.jpg")
    >
    > var slidelinks=new Array("")
    >
    > var newwindow=0
    >
    > var imageholder=new Array()
    > var ie=document.all
    > for (i=0;i<slideimages.length;i++){
    > imageholder
    =new Image()
    > imageholder.src=slideimages
    > }
    >
    > function gotoshow(){
    > if (newwindow)
    > window.open(slidelinks[whichlink])
    > else
    > window.location=slidelinks[whichlink]
    > }
    > //-->
    > </script>
    > </head>
    >
    > <body>
    > <a href="javascript:gotoshow()"><img
    src="image1.JPG" alt="" name="slide"
    > width="400" height="271" border=0
    style="filter:blendTrans(duration=3)">
    >
    > <script language="JavaScript1.1">
    > <!--
    > var whichlink=0
    > var whichimage=0
    > var blenddelay=(ie)?
    document.images.slide.filters[0].duration*1000 : 0
    > function slideit(){
    > if (!document.images) return
    > if (ie) document.images.slide.filters[0].apply()
    > document.images.slide.src=imageholder[whichimage].src
    > if (ie) document.images.slide.filters[0].play()
    > whichlink=whichimage
    > whichimage=(whichimage<slideimages.length-1)?
    whichimage+1 : 0
    > setTimeout("slideit()",slidespeed+blenddelay)
    > }
    > slideit()
    > //-->
    > </script>
    > </body>
    >
    > Jeff
    >
    >
    >
    > ----- Original Message -----
    > From: "TC2112" <[email protected]>
    > Newsgroups: macromedia.dreamweaver
    > Sent: Saturday, January 31, 2009 7:04 PM
    > Subject: Auto slideshow with progressive image load
    >
    >
    >> Hello everyone,
    >>
    >> Does anyone know of a good autoplay slideshow script
    that starts with the
    >> first image on page load and then downloads the
    additional images when
    >> called? In other words, if there are 20 images in
    the slideshow, it
    >> doesn't load all 20 images before displaying the
    first.
    >>
    >> I have just a couple of specific requirements.
    >> I don't need any controls (pause, forward, etc) on
    it.
    >> Most of the javascript slideshows I've looked at in
    Google or have in my
    >> snippet list have the image name hardcoded in the
    script.
    >> Image1.jpg, image2.jpg, etc, which won't work.
    >> I'll be feeding the images dynamically depending on
    the category the user
    >> chooses and the image names are variable.
    >>
    >>
    >> I'm currently using javascript that automatically
    shows and hides divs
    >> with the same class name by changing the display
    style from none to block
    >> and back to none as it loops through them.
    >> This works well as I can dynamically write as many
    divs as needed by
    >> looping through all the items in a category.
    >> But alas, this one still doesn't start to run until
    all the images are
    >> downloaded.
    >> You can see it here:
    >>
    http://www.onelongfellowsquare.com/
    >> There's actually 3 "slideshows", stacked one on top
    of the next, using
    >> this in the "Featured" section.
    >>
    >> Thank you for any help or ideas.
    >>
    >>
    >> Take care,
    >>
    >> Tim
    >>
    >>
    >
    > "TC2112" <[email protected]> wrote in message
    > news:[email protected]...
    >> Hello everyone,
    >>
    >> Does anyone know of a good autoplay slideshow script
    that starts with the
    >> first image on page load and then downloads the
    additional images when
    >> called? In other words, if there are 20 images in
    the slideshow, it
    >> doesn't load all 20 images before displaying the
    first.
    >>
    >> I have just a couple of specific requirements.
    >> I don't need any controls (pause, forward, etc) on
    it.
    >> Most of the javascript slideshows I've looked at in
    Google or have in my
    >> snippet list have the image name hardcoded in the
    script.
    >> Image1.jpg, image2.jpg, etc, which won't work.
    >> I'll be feeding the images dynamically depending on
    the category the user
    >> chooses and the image names are variable.
    >>
    >>
    >> I'm currently using javascript that automatically
    shows and hides divs
    >> with the same class name by changing the display
    style from none to block
    >> and back to none as it loops through them.
    >> This works well as I can dynamically write as many
    divs as needed by
    >> looping through all the items in a category.
    >> But alas, this one still doesn't start to run until
    all the images are
    >> downloaded.
    >> You can see it here:
    >>
    http://www.onelongfellowsquare.com/
    >> There's actually 3 "slideshows", stacked one on top
    of the next, using
    >> this in the "Featured" section.
    >>
    >> Thank you for any help or ideas.
    >>
    >>
    >> Take care,
    >>
    >> Tim
    >>
    >>
    >
    >

  • Error in Looping with variable

    Dear All,
    Please help me. i want to loop of record. i have two scheme. First, i make without variable and not error. Second, i make with variable and error occurs. as below my syntax:
    First:
    declare
    x varchar(50);
    begin
    --x:='select dummy from dual';
    for c1 in (select dummy from dual) loop
    dbms_output.put_line(c1.dummy);
    end loop;
    end;
    result:
    X
    Second:
    declare
    x varchar(50);
    begin
    x:='select dummy from dual';
    for c1 in (x) loop
    dbms_output.put_line(c1.dummy);
    end loop;
    end;
    result:
    Encountered the symbol 'LOOP' when expecting one...

    Billy  Verreynne  wrote:
    Why? For what purpose?
    A cursor fetch loop is not the ideal processing structure.
    It is slow. It requires data to travel from the buffer cache of the database into PL/SQL variables (in the PGA). It requires context switching between the PL/SQL and SQL engines.
    It does not scale. More rows means more data to travel that path from the SQL engine to the PL/SQL engine. More loop iterations in PL/SQL. If a single loop iteration (for processing a row) is 1ms, then a 100,000 rows will take a 100 seconds. 200,000 rows 200 seconds. Etc. This clearly does not scale with an increase in data volume.
    Also keep in mind that DBMS_OUTPUT does not write to screen or display anything. It is incapable of accessing a client device as it executes inside a server process. So each call to DBMS_OUTPUT stores that line of text in very expensive server memory. When the database call is done, the client (e.g. TOAD or SQL*Plus) can read those lines from the database and the client can display it.
    So if your loop is for a 1000 rows, it means writing a 1000 lines of text into very expensive server memory - and then expecting the client to read that afterwards and display it. Why? This is not a standard client-server method. It also does not scale. It can actually crash the server when this method is abused.
    The standard method would be to create a SQL cursor using PL/SQL code, and then return a reference handle (pointer) to the client. This allows the client the ability to fetch data directly from the cursor - in an optimal way that does not consume expensive server memory.I have to say it: I sincerely appreciate you taking the time to write this whenever it needs to be written rather than just giving up and letting people stumble along with bad design - it must take a lot of mental stamina to keep doing it. One day it will sink into my head also :-)

  • Problem with variables in formulas when using CrystalReportViewer

    Post Author: Aksu
    CA Forum: Formula
    Hi! I have a problem with variables in Crystal Reports formulas, when using CrystalDecisions.Windows.Forms.CrystalReportViewer class from VS2005-project. ReportViewer always gives error:*************Crystal Report Windows Forms ViewerThis field name is not known.Details: errorKindError in File C:\{dir&#93;}\{file}.rpt:Error in formula <mCustomerAttributes>.'Dim result As String'This field name is not known.Details: errorKind ************* Report without variables works fine with Viewer and in Crystal Reports Designer report with variables works also fine. I have tried with both "formula-syntaxes" - basic and crystal. But Viewer always gives error when trying to define new variable.I think the problem might be with CR -versions, because VS-project has formerly been designed to VS2003 and CR9 or 10. Now I'm using VS2005 and CR11. Though I have changed all references to new CrystalDecisions-asseblies (Ver.11.0.3300.0), when I debug the project and checkout the Viewers ReportSources FormatEngine Shows version CR9_2.... I have no idea where it gets this version...***************DEBUG-view when Viewer is created *******************CrystalReportViewer    |_        ReportSourceClassFactoryName ... , Version=11.0.3300.0 , ...    |_            ReportSource            |_                FormatEngine    {CrystalDecisions.CrystalReports.Engine.FormatEngine}                        |_                        ClientVersionHeader    {CrystalDecisions.Shared.ReportServiceVersionHeader}                            |_                            |    version = 920     (int)                            |_                                Static members                                            |_                                        VER_CR9    = 920    (int)**************************************** Could anyone have any answers or tips for this problem? I'd really appreciate it... ---Aksu

    Has anyone been able to answer this question?
    I am having the same problem:
    I am designing a report in Crystal Reports XI Developer that contains parameters, which are passed to a stored procedure and are also used within formulas ( in Crystal Syntax ie. {?FORMAT_ID} ) in the report itself.
    I can run the report successfully in CRXI Developer.  The formulas use the correct values from the parameters entered during execution and everything looks good.
    I then deploy the report to Business Objects Enterprise XI.  I do all of the things necessary to manage the report including setting up the proper database connection information and default parameter values.
    When I run the report using the Crystal Report Viewer, I get the following error message:
    Error in File Forecasting.rpt:
    Error in formula <Report Format>.
    'if (not isNull({?FORMAT_ID} ) ) then
    This field name is not known.
    Details: errorKind
    This happens when I press the "Preview" button in the Manage Object dialog from Crystal or when I run the report using InfoView.
    I have changed the formulas and it doesn't seem to matter what the specific content of the formula is; other than the existence of a parameter reference in the formula.  If I comment out the parameter and replace it with a hard-coded value, it gets through the formula fine.
    Does Business Objects Enterprise XI support crystal reports with parameter references in the formulas?
    Thanks,
    Tim H.
    Edited by: Tim Haley on Nov 25, 2008 11:11 PM
    Edited by: Tim Haley on Nov 25, 2008 11:12 PM

  • Issue with Variable Personalisation in Bex Report

    Hi Gurus,
    I'm facing a typical problem with Variable presonalisation in the Report.
    I've executed a BEX Report and filtered data on some characteristics and used SAVE AS Button on the Portal to save the resultset. When I'm trying to use the variants, again say after  2 or 3 days i couldn't find updated data for particular variants upon using the same variants rather its refelecting the old data. Further more when I execute the report and try filtering on the same criteria altogether, I'm able to see updated result set.
    Is there any setting to be enabled when we personalise variants or variants are dependent on the data or the date on which they are created. Not sure why the reports are behaving this way. Or Do I need to create variants time and again.
    Any pointers would be of great help.
    Regard,
    Yaseen

    Hello,
    In the BEx report, when you get the variable selection screen there input your selection and at the bottom you have the option of saving them as a variant.
    Now in future when you run the report simply use this variant and execute the report. It should work fine.
    Also remember date selection can be tricky. If you input todays date in the variant, it wil consider the same date in further references. So do a check on that too.
    Regards,
    Shashank

  • Is there a way to automatically change tabs with different times set for each tab?

    I found a few add-ons that will automatically change tabs based on a configurable time. But all the tabs use the same time setting. What I need is the ability to have tabs displayed for different amounts of time. Ex, Tab 1 for 30 seconds, Tab 2 for 10 seconds, Tab 3 and 4 for 5 seconds. Ideally, I will have the ability to modify these settings as the amount of tabs and the content will change a couple times a week.
    Currently I'm using Tab Slideshow with each tab displayed for 15 seconds. But it sounds like Tab Rotate and Auto Toggle Tabs essentially do the same. If there is already a solution that would be great but if not is there someone available for hire to help modify one of the existing add-ons? Thank you in advance for your time.
    John

    Currently Firefox don't have any options like that.
    You can ask the Addon developers
    *http://addons.mozilla.org/

  • Sequence will not validate with run time prompts in business rules

    I am in Hyperion Planning v 1.1.1.3, with Workforce initialized. I am creating a sequence of business rules. The rules use run time prompts within them and validate when used on their own. However, when I insert them in a sequence the sequence will not validate, apparently due to the run time prompts.
    The sequence returns the error: Cannot calculate. Essbase Error(1200323): Error parsing formula for [FIX STATEMENT] (line 7): expression expected after [(].
    Line 7 in the business rule is as follows:
    FIX ([rtpYear],[rtpScenario],[rtpVer],[rtpCC],[rtpBU],[rtpEmp])
    The problem is not isolated to this business rule, it occurs with any rule I try.
    Can sequences function with run time prompts in the included business rules?
    Stephen

    I have figured out that if any rtp is hidden in the business rule, the sequence will not validate. Is this expected behavior for sequences?
    Additionally, hiding the variables in the sequence has no effect if the variables are not hidden in the rule. When launched from a menu in a web form, the user is prompted for values for all variables (except for the Execution Database Name) although they are prepopulated based on the members in the POV, Page, etc. Is this also expected behavior?
    I also find that it won't validate if "Merge launch variables" is selected (I have included rules associated with different plan types and with different dimensionality, so this may be expected). The user is prompted to provide values for every variable in each rule in the sequence, many of them duplicates (though, again, they are prepopulated based on members in the form).
    Stephen

  • Problem in calling of stored procedure with variable parameters

    Hello!
    When we try to call our stored procudure with variable parameter (year and month) we receive various errors.
    Here's the dynamic package script code:
    DEBUG(ON)
    PROMPT(SELECTINPUT,,,"Please select time for restatement",%TIME_DIM%)
    TASK(Execute formulas,USER,%USER%)
    TASK(Execute formulas,APPSET,%APPSET%)
    TASK(Execute formulas,APP,%APP%)
    TASK(Execute formulas,SELECTION,%SELECTIONFILE%)
    TASK(Execute formulas,LOGICFILE,%APPPATH%\..\AdminApp\%APP%\zbpc_to_fm.lgx)
    TASK(Execute formulas,RUNMODE,1)
    TASK(Execute formulas,LOGICMODE,1)
    TASK(Execute formulas,SIMULATION,1)
    TASK(Execute formulas,CHECKLCK,0)
    Our logic script file (zbpc_to_fm.lgx) code is:
    *RUN_STORED_PROCEDURE=ztest('%TIME_SET%')
    *commit
    The problem occures while transferring the variable parameter %TIME_SET% value.
    How can we correctly transfer the selected value of TIME_SET into the procedure?

    Everything in the debug log looks correct -- the most important lines are the ones indicating the values passed from the user's response to the PROMPT(SELECTINPUT...)
    INFO(%CATEGORY_SET%, BUDGET)
    INFO(%ENTITY_SET%, 1733)
    INFO(%FUND_SET%, )
    INFO(%PROJECT_SET%, )
    INFO(%TIME_SET%, 2008.NOV)
    Are you certain that the stored proc is processing the input parameter for time correctly, when you run it directly in MS Mgmt Studio?
    What error messages do you see running it from BPC?
    By "customized user authorities" do you mean that the time dimension is secured, and this user has access only to 2008.total and its descendants? If that's the case, the user should be able to see only those members in the action pane / current view, but the SELECTINPUT prompt should only show the base members (and not the year total and quarters). I'm still confused as to why all 12 + 4 + 1 members are passed through to the stored proc.

  • Problem with variable in scheduled job

    I'm trying to get the following scheduled job to run:
    switch(config)# scheduler job name backup_job
    switch(config-job)# cli var name timestamp $(TIMESTAMP) ; copy running-config bootflash:/$(SWITCHNAME)-cfg.$(timestamp) ; copy bootflash:/$(SWITCHNAME)-cfg.$(timestamp) tftp://1.2.3.4/
    switch(config-job)# exit
    switch(config)# scheduler schedule name backup_timetable
    switch(config-schedule)# job name backup_job
    switch(config-schedule)# time daily 1:23
    switch(config-schedule)# exit
    switch(config)# exit
    This job is taken directly from multiple Cisco MDS and Nexus documents. From what I can tell, the purpose of this job is to save the running configuration to a file on bootflash with date & time in the file name and then to copy the file from bootflash to tftp server.
    I can create the job and schedule successfully:
    switch(config)#show scheduler job name backup_job
    Job Name: backup_job
    cli var name timestamp $(TIMESTAMP)
    copy running-config bootflash:/$(SWITCHNAME)-cfg.$(timestamp)
    copy bootflash:/$(SWITCHNAME)-cfg.$(timestamp) tftp://1.2.3.4
    ==============================================================================
    switch(config)#show scheduler schedule name backup_timetable
    Schedule Name       : backup_timetable
    User Name           : admin
    Schedule Type       : Run every day at 10 Hrs 48 Mins
    Last Execution Time : Tue Mar  6 10:48:00 2012
    Last Completion Time: Tue Mar  6 10:48:00 2012
    Execution count     : 1
         Job Name            Last Execution Status
    backup_job                        Success (0)
    ==============================================================================
    The scheduled job runs successfully but the files that are created have the variable $(TIMESTAMP) in the file name instead of the actual date and time e.g. switch-cfg.$(TIMESTAMP)
    The logfile contains the following:
    Schedule Name  : backup_timetable                  User Name : admin
    Completion time: Tue Mar  6 10:59:26 2012
    --------------------------------- Job Output ---------------------------------
    `cli var name timestamp $(TIMESTAMP)`
    `copy running-config bootflash:/PEN-9509-2-cfg.$(TIMESTAMP) `
    Copy complete, now saving to disk (please wait)...
    `copy bootflash:/PEN-9509-2-cfg.$(TIMESTAMP) tftp://1.2.3.4 `
    Trying to connect to tftp server......
    Connection to server Established. Copying Started.....
    It looks to me that the $(timestamp) variable is being created successfully and is being replaced with the $(TIMESTAMP) variable but this is not being replaced with the actual date and time.
    The thing I don't get is that this looks to me that we're trying to nest variables and the same Cisco documents from which I get this configuration also state that nested variables are not allowed.
    I have tried this on different hardware - MDS9500, MDS9100, Nexus 5000, Nexus 7000 and different software - SAN-OS 3.3, NX-OS 4.1, NX-OS 5.2 but cannot get it to work. I have also tried to put the commands in a script and run with the run-script command but it still does not work.
    There is probably another method to achieve what this configuration is trying to achieve (and I would like to know if there is) but I want to know if this particular configuration will work.
    Can anyone tell me if they have got this working or can see what I'm doing wrong or can try running this in a lab please?

    I managed to get this resolved with a bit of a workaround. If I put the copy commands in a script and pass the variable to the run-script command as part of the scheduled job then it works ok. Trying to create the variable within the script (or as a separate scheduled job command) still doesn’t work.
    So, creating a script file (script) as follows:
    copy running-config bootflash:/$(SWITCHNAME)-cfg.$(timestamp)
    copy bootflash:/$(SWITCHNAME)-cfg.$(timestamp) tftp://1.2.3.4
    and creating a scheduled job with the following command:
    run-script bootflash:script timestamp=”$(TIMESTAMP)”
    achieves the desired result.

  • Problem with variable

    Hi. I'm making a form for work for people to book places on
    training courses. Having an annoying problem with variables that
    i'm hoping has a simple solution. Any help with this will be much
    appreciated.
    All the info is held in an external text file which looks
    like this (but much longer):
    &totalcourses=2&
    &course0=Please choose a course&
    &course1=my course one&
    &totaldates1=3&
    &c1date0=Select a date...&
    &c1date1=15 September 2006&
    &c1time1=Time: 10:00 to 16:00&
    &c1date2=23 January 2006&
    &c1time2=Time: 11:00 to 16:00&
    &c1date3=28 February 2007&
    &c1time3=Time: 12:00 to 16:00&
    &course2=my course 2&
    &totaldates2=3&
    &c2date0=Select a date...&
    &c2date1=15 September 2006&
    &c2time1=Time: 11:00 to 16:00&
    &c2date2=08 January 2007&
    &c2time2=Time: 9:00 to 16:00 &
    &c2date3=15 February 2007
    &c2time3=Time: 12:00 to 16:00&
    The course titles are loaded into an array and then into a
    combobox. When a course is chosen a second combobox loads the
    relevant dates array for that course. When a date is chosen the
    time is shown in a dynamic text box.
    Problem is - if more than one course is on the same date it
    will show the time for the latest course with that date. For
    example - course 1 is on 15 sept at time 10:00 to 16:00, course 2
    is also on 15 sept at time 11:00 to 16:00. When 15 Sept is chosen
    for course one it displays the time for course 2 on this date -
    presumably because it comes later in the text file.
    I've attached the actionscript for this - Can anyone help me
    sort this out??

    Hi. I'm making a form for work for people to book places on
    training courses. Having an annoying problem with variables that
    i'm hoping has a simple solution. Any help with this will be much
    appreciated.
    All the info is held in an external text file which looks
    like this (but much longer):
    &totalcourses=2&
    &course0=Please choose a course&
    &course1=my course one&
    &totaldates1=3&
    &c1date0=Select a date...&
    &c1date1=15 September 2006&
    &c1time1=Time: 10:00 to 16:00&
    &c1date2=23 January 2006&
    &c1time2=Time: 11:00 to 16:00&
    &c1date3=28 February 2007&
    &c1time3=Time: 12:00 to 16:00&
    &course2=my course 2&
    &totaldates2=3&
    &c2date0=Select a date...&
    &c2date1=15 September 2006&
    &c2time1=Time: 11:00 to 16:00&
    &c2date2=08 January 2007&
    &c2time2=Time: 9:00 to 16:00 &
    &c2date3=15 February 2007
    &c2time3=Time: 12:00 to 16:00&
    The course titles are loaded into an array and then into a
    combobox. When a course is chosen a second combobox loads the
    relevant dates array for that course. When a date is chosen the
    time is shown in a dynamic text box.
    Problem is - if more than one course is on the same date it
    will show the time for the latest course with that date. For
    example - course 1 is on 15 sept at time 10:00 to 16:00, course 2
    is also on 15 sept at time 11:00 to 16:00. When 15 Sept is chosen
    for course one it displays the time for course 2 on this date -
    presumably because it comes later in the text file.
    I've attached the actionscript for this - Can anyone help me
    sort this out??

Maybe you are looking for

  • Wheel of iPod Shuffle no longer works

    The wheel on my iPod shuffle no longer works (forward and reverse music, volume, etc). Music plays, but otherwise have no control. Reset device, but problem persists. Anyone have a suggestions?

  • Slow scanning of SFX RAR files

    We have been lately have issues with SCEP 2012 when accessing SFX RAR files. There is a long delay before the file can be access and the CPU% on the MsMpEng.exe service is very high. Simply right-clicking on the file to view properties will result in

  • Publication with BO XI 3

    Hi experts, I am currently creating PDF publication based on WebI reports. My client refuse to use the standard access to publication files (right click on publication -> History -> left click on the instance -> access to the PDF) because he thinks t

  • I am trying to open my itunes and it says itunes has stopped working, problem event says APPCRASH???

    ITUNES OPENS AND  THEN ERROR MESSAGE COMES UP SAYING ITUNES HAS STOPPED WORKING AND THE PREBLEM EVENT NAME SAYS APPCRASH WITH A LOAD OF OTHR INFO UPDATED QUICKTIME BUT ITS STILL THE SAME, CANT UPGRADE ANY NEW VERSIONS AS IT WONT LET ME GET THAT FAR A

  • Oracle ETL Tool

    Hi, I have some data in Oracle table, which contains a column 'address'. I want to extract the values in this 'address' , transform the values, and then load it into another oracle table. During transformation, I want to standardize the values in the