SlideShow AS issue??

OK I have this flash based slideshow that generally did what
I wanted but I then I needed to tweak it to add some nav elements
and a Button to launch a URL (see second AS code) - OK at first the
AS works Slideshow wise - if I use the folowing:
delay = 3000;
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image
= xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
description
= xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
firstImage();
} else {
content = "file not loaded!";
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
slideshow();
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
slideshow();
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
function slideshow() {
myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {
clearInterval(myInterval);
if (p == (total-1)) {
p = 0;
firstImage();
} else {
nextImage();
But then when I put other code into the AS with help from
another developer - my slideshow stops functioning (Automatically,
the slide show has to be manually navigated to get to the next
slide instead of it after a delay going to the next slide - the
code I have that does that is:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
header = [];
caption = [];
url = [];
delay = [];
slideNumber = [];
slideTotal = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image
= xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
header
= xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
caption
= xmlNode.childNodes.childNodes[2].firstChild.nodeValue;
url
= xmlNode.childNodes.childNodes[3].firstChild.nodeValue;
delay
= xmlNode.childNodes.childNodes[4].firstChild.nodeValue;
slideNumber
= xmlNode.childNodes.childNodes[5].firstChild.nodeValue;
slideTotal
= xmlNode.childNodes.childNodes.length;
trace(slideTotal);
firstImage();
} else {
content = "file not loaded!";
my_Date = new Date();
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
listen = new Object();
Key.addListener(listen);
previous_btn.onRelease = function() {
clearInterval(myInterval);
prevImage();
next_btn.onRelease = function() {
clearInterval(myInterval);
nextImage();
play_btn._visible = 0;
p = 0;
pause_btn.onRelease = function() {
clearInterval(myInterval);
pause_btn._visible = 0;
play_btn._visible = 100;
play_btn.onRelease = function() {
myInterval = setInterval(pause_slideshow, delay[p]);
pause_btn._visible = 100;
play_btn._visible = 0;
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 5;
function nextImage() {
pause_btn._visible = 100;
play_btn._visible = 0;
previous_btn._visible = 100;
next_btn._visible = 100;
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
head_txt.text = header[p];
capt_txt.text = caption[p];
num_txt.text = slideNumber[p];
url_btn = url[p];
go_btn = url[p];
picture_num();
slideshow();
}else{
p = 0;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
head_txt.text = header[p];
capt_txt.text = caption[p];
num_txt.text = number[p];
url_btn = url[p];
go_btn = url[p];
picture_num();
slideshow();
function prevImage() {
pause_btn._visible = 100;
play_btn._visible = 0;
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
head_txt.text = header[p];
capt_txt.text = caption[p];
num_txt.text = slideNumber[p];
url_btn = url[p];
go_btn = url[p];
picture_num();
}else{
p = total - 1;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
head_txt.text = header[p];
capt_txt.text = caption[p];
picture_num();
function firstImage() {
previous_btn._visible = 0;
next_btn._visible = 100;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
head_txt.text = header[0];
capt_txt.text = caption[0];
url_btn = url[0];
go_btn = url[0];
picture_num();
slideshow();
function picture_num() {
current_pos = slideNumber[p];
pos_txt.text = current_pos +"/" +slideTotal;
function slideshow() {
myInterval = setInterval(pause_slideshow, delay[p]);
function pause_slideshow() {
clearInterval(myInterval);
if (p == (total-1)) {
p = 0;
firstImage();
} else {
nextImage();
*** this is the AS for the button that lanches the URL:
on (release) {
getURL(url_btn, "_self");
In any case can anyone help me figure out what I messed up so
I can get this running again?
if you go to :
http://www.ruf.rice.edu/~jestrada/CSS/slideshow.zip
you can download all o fthe files needed to view the page with the
flash including the XML and photos...

In the following function p is undefined because you didn't
provide p as a parameter to the function. As a result delay[p] is
undefined.
function slideshow() {
myInterval = setInterval(pause_slideshow, delay[p]);
trace(delay[p]);//will return undefined
If you hardcode the delay, the slideshow autoplays
function slideshow() {
myInterval = setInterval(pause_slideshow, 3000);
}

Similar Messages

  • Slideshow Song Issue

    Quick question. I am making a slideshow and the audio is having problems. I have 4 songs that play throughout the entire slideshow one after the other. None of them are DRM so that's not the issue, but when I export it, the first song does not export at all. The first 1.5 minutes of the video are silent with nothing playing where the music should be. After that song, the rest play normally. The entire slideshow plays as normal in the preview mode of Aperture.
    I have tested the video in two different video playing programs.
    Any help would be appreciated. Is this a known issue?

    I had the same issue. I used one song for the entire slide show. It is my understanding that you can put your music track in either way. When I put the music track in as a bar on the bottom it would not export the audio. When I put it in as a solid green background it worked fine. So, when do you put the audio track in as a green bar at the bottom? Are there certain circumstances that you use this method? I haven't played around with putting two or more tracks of music on a slide show yet, but it appears the originator of this thread did that without success. Any answers to this dilemma?
    Amended: After experimenting with it some more, it appears that you should put the first track down so that the entire background is green and the subsequent tracks in as green bars on the bottom. Is this right? Is this how it is supposed to work? That is not clear in the manual.
    Message was edited by: FiftytoOne

  • Lightroom 4.1 Slideshow Skipping Issue

    I have tried creating a slideshow in Lightroom 4.1 and followed all of the necessary steps Adobe has provided. On computer the slideshow seems fine but ufortunately, when I burn the slideshow to a DVD for Television, the slides skip. I think it may have something to do with the rendering of the slides as they are moving from one picture to the next. anyone have any tips for making the files smaller or another way around this problem? I heard something about Blu-Ray disks are better for Television slideshows compared to regular DVDS. Does anyone know if this is accurate? Also I use Garageband to link songs together and bring that into Lightroom and fit to music. Any help would be greatly appreciated.

    Cabrini,
    We haven't got any issues reporting aruond the issue like this.
    Could you please try to export the slideshow file to the drive i.e. Desktop and check the file.
    If the file doesnt have anything  missing then if you use any software to write the files over to DVD it shouldnt miss any data.
    You can follow the link below to make sure the workflow followed by you is fine.
    http://tv.adobe.com/watch/getting-started-with-adobe-photoshop-lightroom-4/lightroom-4-pub lish-a-slideshow/
    Mandhir

  • IPhoto 11 - slideshow music issue on manual picture change

    Hi community,
    do you experience the same behaviour?
    When navigating through the pictures in an iPhoto 11 slideshow manually e.g. by using forward and backward arrow keys, then the music always stutters or let's say "jumps" a little bit. Very annoying!
    Does anybody have the same issue? Does anybody know a solution for this?
    Thanks in advance,
    Flo

    Yes.  iPhoto is jumping to the music synced to that slide when you use the advanced arrow key.  That's normal.   The only solution is to let the slideshow play itself out.
    OT

  • Slideshow Decoder issue

    I've seen a few people having this problem but haven't seen a solution that works. Spece/tech details are...
    Windows 8 Pro 64Bit
    32Gb Ram
    1TB+ free space
    Intel I7 3820CPU
    Nvidia GTX 560Ti GPU
    Master Suite CS6
    All Software/OS updates applied.
    I am trying to make a DVD slideshow.  I used the Photoshop actions to resize save as TIFF's all images as well using the actions to remove the flicker.
    When I try to use the "Import As/Slideshow" fucntion in Encore I get the attached dialog box.  I have created a standard  Encore  project using only default settings.  I have re-run all alctions and created new Encore projects, same result every time.
    I have installed quicktime/VLC/Codec Pak to ensure the the H 264 codec is installed and working, it is.
    I stall get this problem, and Encore refuses to import any of my files.
    Any help would be great.

    I work with 16-bit Images too, and Scale to match my Project (am always doing this in PrPro, but it's the same). I always include a line in my Action to change the Bit-Depth to 8-bit, before doing the Save_As.
    It would be the same, if I was working with CMYK Images (only do those for delivery to a printer), in that I would have a line in the Action to change Color Mode to RGB.
    Glad that you found the issue and good luck,
    Hunt

  • Encore 2.0 mpeg i-frame slideshow compatibility issue

    I suspect this is more a glitch report than a question but just in case someone else encounters it only to become completely baffled, it may save them much time and frustration.
    Most of the technical information is from Adobe Support Knowledgebase Article Document 332456 "Troubleshoot preview and playback issues (Adobe Encore DVD 2.0) http://www.adobe.com/support/techdocs/332456.html
    My problem was as follows; I created many slideshows consisting of 60 bmps each. Encore imported/scaled and swapped to png's/and previewed them fine. Each slideshow had a 6 second duration for each slide with no transitions or pan and zoom enabled. It was only when I had burnt to a DVD-R and played them using my Philips DVD player that "occasionaly" the 2nd slide of "some" (not all) slideshows would only appear for a split second before progressing. And so ignorning the 6 second duration set for the slideshow as a whole. If I would then go back to the root menu and play it again, most times the 2nd slide would hold for the 6 seconds. Similarily even when the 2nd slide was skipped if I did chapter back to it, it would then display for the intended 6 seconds. So you can see why I was completely baffled by "why only the second slide" and "why only occasionally" (as after all this is hardware and logically should behave the same under the same circumstances each time).
    This then led me to the above mentioned Adobe support article which I will quote from; "Many DVD players, both set-top and software, handle playback of slideshows differently. To conserve disc space, Encore DVD creates an MPEG I frame for each slide then assigns a duration for that frame based on the slide's duration. Many players cannot accurately display these and will instead display only a single frame of the image before reverting to a black screen for the duration of the slide."
    The article then goes on to propose a work around which essentially involves using pan/zoom or even Premiere Pro to create a video version of the slideshow. All which would avoid using the mpeg i-frame method.
    My only guess as to the cause of my problem is that maybe Encore's method of encoding mpeg i-frames may not strictly adhere to what is defined by the mpeg-2 specification. This claim is based mainly on two pieces of evidence:
    1) On the same Philips LX3000D player I can play without problems other i-frame based slideshows created using other DVD authoring software (mainly tested with Ulead)
    2) If I burn any Encore project with slideshows to a DVD folder and play that folder, my version of Cyberlink PowerDVD XP 4.0 (or Windows Media Player which would use the same mpeg decoder anyway) will completely ignore any set slideshow duration or other settings and simply display each slide for about 1 second.
    As there appears to be no mention of a similar problem in all the forums I realise that it must work fine for other users. But just in case someone else has come across it I would be most interested to hear any conflicting/co-oberative evidence you might have.

    Yes when I compare the size of the VOBs they are of similiar size. Maybe this is another clue as two slideshows made exactly the same way using two authoring programs (one being Encore) produce slightly different size vob files. I assume they might be using different data rates but again the mpeg specification for i-frames stipulates that their data rate is defined at something like 2.0 mbps.

  • Slideshow export issues

    I'm running Yosemite 10.10 & iPhoto 9.6.  I've created a  28 minute slideshow using the Scrapbook theme. The Slideshow plays fine in iPhoto. I export the Movie 1080p without error using the export button. The resulting file starts to play fine, and then after a minute the video continues to play but reverts to the  first frame picture. At 10 minutes the video plays normally  for 1 minute and then the same thing happens. At 20 minutes the same thing again. When I imported the file into iMovie I can see that the video has been made that way by iPhoto export (this is not a playback issue). This is totally different to how it plays within iPhoto itself. Any Ideas?

    Bill,
    It looks like they are all 400x300.
    I can increase or decrease that in Photoshop if need be.
    Thanks.

  • Exported Slideshow Colour Issues

    Hello,
    I've created a slideshow, and managed to export it without any problems, but when I viewed the exported slideshow, the colours had changed dramatically. Vivid oranges and reds seemed blown-out, skin tones didn't look right, etc.
    Any advice would be greatly appreciated. Thank you!

    I would like to add my issue to that of Jacqueline's. I have exported a number of pictures from iPhoto to flash drives, CD, and a show in DVD. As with the color issue referenced by Jacqueline, I also see images coming out a bit darker, with more contrast, than I see on my MacBookPro in iPhoto.
    I would also appreciate help if it could that something with my MacBookPro screen settings or if I am doing something wrong in the transfer process.
    Thanks.

  • Slideshow view issue

    I created a presentation, but when I view the slideshow, it doesn't fill the screen. I tried zooming "fit to screen" but it doesn't change it. Help!

    In the following function p is undefined because you didn't
    provide p as a parameter to the function. As a result delay[p] is
    undefined.
    function slideshow() {
    myInterval = setInterval(pause_slideshow, delay[p]);
    trace(delay[p]);//will return undefined
    If you hardcode the delay, the slideshow autoplays
    function slideshow() {
    myInterval = setInterval(pause_slideshow, 3000);
    }

  • LR5 Slideshow export issue - small images

    I've been having quite the difficulty exporting 1080p slideshows from Lightroom 5. After exporting to a 1080p slideshow, some images will fill the screen correctly, while others appear much smaller. I rendered full 1:1 previews to try and fix it but that didnt help. Im at a total loss. Has anyone else experienced this and/or know of a solution?
    The first image is one that exports correctly, while the second is whats happening with the other smaller ones.

    If you Zoom to Fill the Frame you risk loosing part of your image (the Slideshow module works in a similar way to the print module but doesn't allow you to maximise space).
    This slide is Zoomed to Fill Frame (and is wrong)
    This slide is not Zoomed to Fill Frame (and is right, the full photo is shown, the derelict road marker is visible and the whole sky is visible)
    endeguia wrote:
    I've made a slideshow using a white background, zoomed to fill frame and used identity plates. It turned out exactly how I needed it to be. Now I'm making a second slideshow using all the same intro and ending screens and identity plates but with different pictures (same size as the first slideshow) and it's not the right size when exported. I feel like there is some sort of glich happening...
    Are you a 100% sure you are using the same settings and the exactly the same version of LR (2 slideshows with LR5.7 for example and the same settings)?

  • Slideshow export issue

    I have 2 slideshows that export just fine. BUT when i combine them and then export them as a single slideshow aperture produces a file that will not open (only 4k, no alert boxes pop up to tell me anything went wrong).
    Is there a maximum length or size to a slideshow?????

    I was with the same problem and followed the instructions from another discussion in this forum.
    Try this:
    . Do a simple file search (via spotlight) on the files related to "3ivx" codec.
    . Remove the files or uninstall this codec
    . Try to export from iPhoto again.
    That should work.
    Hope this helps.

  • Adobe elements 9 slideshow-codec issue

    I am new to this slideshow process, but have successfully created a 24 min video, have added my pictures and transitions into the slideshow.  Now I was about to add audio to it.  However, I have been able to get anything to work.  My I-tunes songs weren't working, so then I tried purchasing mp3 songs from Amazon.  I have those songs loaded on my computer.  When I go to add the audio, I get this message:  "unable to add audio file...mp3.  The selected file cannot be played because your system does not have the required compresser/decompresser (codec) installed."
    What do I do?  I need to have this video for an end of season party in two days!  I don't know how to fix this.  Thanks.  Panic-ed-Volleyball Team Mom

    volleyball22
    Take the problem audio into the free audio editor Audacity and convert the .mp3 to .wav. Then import the .wav into Premiere Elements with its Add Media/Files and Folders.
    http://audacity.sourceforge.net/
    What computer operating system is your Premiere Elements 9.0/9.0.1 running on?
    We will be watching for your results.
    Thank you.
    ATR

  • IPhoto slideshow export issue

    Greetings,
    I am runnng iPhoto 11 v9.4.1 and cannot export a 100 picture slideshow. I have a MacBook Pro runing 10.7.5.  After creating the slideshow, I click on the export button, select the display option of 1280 x 800 and then click OK.  iPhoto starts the export and then will quit, finder will come up with an error message: The operation can’t be completed because the item can’t be found.  The slideshow QT movie does not get created.  I also created a new iPhoto database, imported 5 pictures, created a new slideshow and then exported - I got the same error message.  I am stumped, any ideas or suggestions?
    Thank you,
    Matt

    I was with the same problem and followed the instructions from another discussion in this forum.
    Try this:
    . Do a simple file search (via spotlight) on the files related to "3ivx" codec.
    . Remove the files or uninstall this codec
    . Try to export from iPhoto again.
    That should work.
    Hope this helps.

  • Slideshow Ipad2 issues

    I have noticed since upgrading to the new operating system that when I select slideshow from my pictures and got to use the Oragami effect, nothing happens.  I am able to view slideshow via other effects... this feature worked prior to the upgrade.. any suggestions for me ???

    You've wandered into the forum for AppleWorks, Apple's defunct office suite. The best place to ask your question would be in the iPad forum.

  • Slideshow  Titles Issues

    I am making a slideshow and would like to some how make the titles sizes bigger or move them to the bottom. Is that even possible... I am able to have big titles using I DVD 08 or the latest but then the effects of the transtition are all the same not diffrence so all 100 photos would do the dissolve effect unless their is a download somewhere.. So basically make the titles biger in iphoto 08 using some sort of iphoto 08 menu hidden button or a program that allows that or a change to allow the idvd to support random slide transitions effects... Thanks again so much for this crazyingly difficult quest for PHOTOGRAPHY

    Welcome to the Apple Discussions. You can't change the type of title in iPhoto. You'll need to use iMovie to have more control over the titles in the slideshow. I suggest you download and use iMovie HD 6 as it's much better for this type of work and is still available for iLife 08 users.
    You can make feature requests here:
    http://www.apple.com/feedback/iphoto.html
    http://www.apple.com/feedback/idvd.html
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

Maybe you are looking for

  • Using lightroom on multiple monitors-Mac

    Can one split off the side panels to keep them on a second monitor, while keeping the center on the primary monitor?

  • Adobe Media Encoder Update for Mac not working?

    Hey! My Premiere says that there is an update available for the AME. When i open the PatchInstaller it says: "This Patch is not suitable for you." In a normal case AME is installed together with Adobe Premiere, isn't it?

  • Certain resolutions make jobs fail w/ watermark on in Compressor 3

    Compressor FCS3 on OSX 10.6.8 - turns out that certain frame sizes can prevent jobs from running along with a watermark filter. I had an H.264 setting with resize to 854x480 (essentially 480p 16:9 with square pixels). Whenever I tried to add a waterm

  • 5D Mark III issues

    Why cant I view my RAW files from my canon 5D Mark III, even after installing the 7.1 Raw update? last week an Adobe phone rep said it was because CS5 doesn't support my camera. Now that I'm getting the same message with CS6 I'm confused.

  • Computer won't POST on cold starts

    When I turn on the computer after not having used it for over an hour or so, it won't post. Everything turns on, except the monitor. The only way I can turn off my system after it posts, and the monitor is still off, is by turning off the power suppl