Need help with Flash Slide Show

Hello, Flash friends.
I recently put together a Flash photo album for a client of
mine. She wants to be able to upload new images, so I created it
with XML using the following action-script:
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");
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
next_btn.onRelease = function() {
nextImage();
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();
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();
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
As you can see, the images can only be viewed by clicking a
"next" or "previous" button.
Well, my client has since decided that she would like to drop
the buttons and have the images automatically change from one to
another while the user sits back and watches. This seems like such
an easy code to add, but I am a novice at this, and I cannot find
any forums or tutorials that give a proper code which I may copy
and paste into this pre-existing code.
Can anyone offer a suggestion?
Thank you!!!!!

Here's my quick suggestion:
Add a <link> child element to your <pic> elements
- each <link> would be a sibling of each <image>, like
this:
<pic>
<image>filename.jpg</image>
<link>
http://www.example.com</link>
</pic>
Then, in your loadXML function, add this:
link = []
for(...){
link
= xmlNode.childNodes.childNode[2].firstChild.nodeValue
Finally, in each function where you call picture.loadMovie(),
add a line below it:
picture.onRelease = function(){
getURL(link
Best,
Brian Driscoll
Owner
Driscoll Web Development
http://driscollwebdev.com

Similar Messages

  • Need help with image slide show using xml

    I have a flash document that pulls up images using xml but I
    would like for the images to also link to different urls and to be
    able to change these links in the XML document. I have included my
    code
    Also my xml file looks simular to this
    <images>
    <pic>
    <image>images/1.jpg</image>
    </pic>
    <images>
    Please if anyone can help me that would be great. Once again
    I would like for these images to be able to link to a url and to
    read the url in my XML document.

    Here's my quick suggestion:
    Add a <link> child element to your <pic> elements
    - each <link> would be a sibling of each <image>, like
    this:
    <pic>
    <image>filename.jpg</image>
    <link>
    http://www.example.com</link>
    </pic>
    Then, in your loadXML function, add this:
    link = []
    for(...){
    link
    = xmlNode.childNodes.childNode[2].firstChild.nodeValue
    Finally, in each function where you call picture.loadMovie(),
    add a line below it:
    picture.onRelease = function(){
    getURL(link
    Best,
    Brian Driscoll
    Owner
    Driscoll Web Development
    http://driscollwebdev.com

  • Need help with Flash CS4 buttons/can't get buttons to control anything

    Hello,
    I need help with Flash CS4. I am making a banner with an animation (Image change into movie clip "3D Spiral") and added buttons but I cannot get the buttons to control the animation. Please help I am frustrated! If someone could help I would be most appreciated.

    Thank you.
    Regards,
    Michael J. Sheehan  allelois
    Date: Mon, 17 Aug 2009 18:48:09 -0600
    From: [email protected]
    To: [email protected]
    Subject: Need help with Flash CS4 buttons/can't get buttons to control anything
    Hi there
    I'm not sure how you wound up where you did. But you wound up in the Adobe Captivate forums. Please stand by as I move your thread to the Flash forums.
    Cheers... Rick
    >

  • Still need help with flash player download

    I'm still having a problem with the flash player, please read my last post below:
    "I've tried everything here & still can't download the flash player. Anytime I try to download it asks me to install ADM add-on and then when I click on that, my computer freezes. How do I enable this add-on without my computer freezing? Can anyone help pls?"

    Thanks a lot for your help, it is truly appreciated.
    Date: Thu, 29 Oct 2009 18:52:38 -0600
    From: [email protected]
    To: [email protected]
    Subject: Still need help with flash player download
    You can set Flash Player to check for updates on the Global Settings Manager panel:
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager05.htm l
    >

  • Dreamweaver website with flash slide showing showing graphics poorly

    Hello,
    I put this problem up in Dreamweaver and Flash and got some questions from couple people but no answer yet. Adobe tech support is only available mon though fri so thhey are not available, so I thought I would try here.
    I have a flash slide show I built for a dreamweaver website  that contains vecctor images that are losing quality when I run my  domain site. I have tested the flash file in flash looks great. I have  previewed in live view in dreamweaver graphics look smooth but when I  load up my files to ftp to my host account and test from there the  quality of the edges of the vectors is not smooth. I see lots of jagged  edges and not sure why.
    I  test everything on my 24 inch monitor so the graphics are probably  enlarged but even when I test the flash file in flash and the html file  of my hard drive to a browser like firefox my graphics are smooth, so  not sure if its resolution problem.  also tested my website on my laptop  which is a smaller screen 15 inch  and the graphics look bad on the  website from there too. Soi f it were a  resolution problem I think the  15 inch screen would be showing the  graphics smoothly not jagged. ?????
    Does  anyone have any ideas or could assist me with this problem? I
    Johanna
    http://johannabresnahan.com
    please keep in mind when tested in flash, dreamweaver (live view and firefox browser from my hardrive html files the graphics all appear smooth and good quality. its when I transferred them by ftp to host server files and preview there and enter in my website url that the quality of the graphics and text in the graphics is jagged in many areas.
    I spoke with the domain tech support too but did not get the answer but some thoughful input.

    The key answer to this problem was to import the files in the original native form ai not jpeg for the
    vector illustrations which kept the quality of the text that was converted
    with create outlines tool in illustrator to make each character its own independent graphic
    to be independently scalable to maintain its quality. Since most of the problems I was having were related to the text inside each artwork was rendered poorly in the finished slideshow on my live website url. The digital photography images were never a problem. The commentary and feedback in the dreamweaver forum helped me to figure out how to resolve the issues I was having.
    I just thought I would post here in case anyone was wondering.

  • Need help with flash player installation please !!!!

    Hello,
    I need help with my flash player installation because every time I access a movie this is the message I receive. 
    This content on Xfinity TV is not available for viewing with Chrome's "Incognito" mode. To play this video using Chrome, please view this page without "Incognito" mode.
    Still having problems? Try resetting your Flash player license.

    Incognito mode is a Google Chrome setting when you open a new window (Cmd+Shift+N on a Mac Ctrl+Shift+N on Windows) It opens a "private" window with no cookies and no tracking. The problem with it is that when you disable cookies, your license files are not sent to the site (whetehr it's YouTube or xFinity or any other that uses license files for paid content)  and it treats you as if you're a first time visitor. Paid videos won't play wihtout the cookies sending the license file info.
    This isn't a Flash Player setting. It's in Chrome. I did some research and according to Google, "Incignito" mode is off by default, and can ONLY be activate by the keyboard shortcut. There IS a way to disable it from the registry http://dev.chromium.org/administrators/policy-list-3#IncognitoModeAvailability

  • Need help with flash player 9 on vista

    i need help with vista flash player 9 on vista, i play this
    game called neopets and it needs flash player to make some of it to
    work and ive tried to dowload flash player 9 about 25 times and it
    still doesnt work ive tried the 3 solutions on the suport center
    this link
    http://kb.adobe.com/selfservice/viewContent.do?externalId=kb401499&sliceId=1
    and still nothing can someone help please

    The player is out (they are up to version 9.0.16). Flash
    itself (the development tool) is in alpha and pretty buggy.
    Ernie

  • Need help with flash animation and jump to slide

    I have been researching for days on how to build a menu in
    flash 8 that has links to jump to a slide later in the captivate
    lesson.
    The goal:
    I want to have a tab - when clicked on - opens up and shows a
    table of contents. Click on an item and it will jump to that slide.
    Method:
    I used flash 8 to build a tab and pop up menu. Works great.
    But how do I make the buttons or links to jump to slide?
    Is it possible to:
    * - use a roll over image in captivate - pause image and
    click on a button to pop over to the slide - no flash menus...just
    action script to pause and allow clicking.
    * - use a FS Command script from inside the captivate movie
    - java call in button proprieties.
    * - write the menu in flash - use action script to say "on
    release - jump to slide" or "on release - jump to frame" - I have a
    frame counter that I can find the frame number of the slide - but
    how would you get the script to work.
    Please Help -
    Flash not a good friend of mine - so any time I can avoid --
    is great...but it is what it is - i do anything to get it to work.
    Thank you in advance for your help and I really look forward
    to your thoughts.
    Regards -
    Vince

    Hi
    I didn't understand a few things here.
    1. Are you trying these things using Adobe Presenter or this is just plain Powerpoint you are talking about?
    2. Are you trying to view the output on the Slide show or presenter output
    If you are doing it for PowerPoint slide show, try setting the animations using with previous and after previous
    1. first insert the video. Set it to play automatically
    2. Insert the first text box. Apply animation on it saying "with Previous". This will make the animation play as soon as the video starts. If you want some delay apply some delay for the animation in the animation pane, such that the animation appears when the video has content sound
    3. For the remaining text boxes apply animations as "after Previous". This will make the animations play after the previous animation has completed.
    4. Now all you have to do is applay delay to the animations to adjust them as and how you want
    Hope this is what you wanted to achieve
    Thanks
    Mahesh

  • Need help fast - iPhoto slide show on Windows ?

    Hi,
    I am really needing your help with this. I have created a slideshow in iPhoto for a funeral service for our uncle which is being held this evening. However, I just found out that they need to view this slideshow on a Windows computer.
    HELP !! I tried exporting the slide show to iDVD but just want to burn a DVD that will play this looping slide show along with the iTunes playlist they already have set up on this Windows laptop.
    Do I have to go through all the theme stuff in iDVD just to create this slideshow that will keep looping ? I don't want it to go back to the chapter menu everytime it finishes.
    I am under a really tight time line to get this done...please help.
    Thanks !

    I'm not an expert on this, but...
    Have you tried exporting the slideshow to a Quicktime Movie? (Select the slideshow, then File>Export). You could burn that to a disc just as a file and play it in Quicktime on the Windows PC. Quicktime has a loop function, so you wouldn't have to mess with chapter menus, etc.
    Maybe someone with more experience has a better idea.
    Good Luck,
    Karen

  • Elements 8 -help with outputting slide shows to File?

    Can anyone help with saving a slide show in created in Elements to a file on my laptop? I know a WMV file is created, which option should I select to save in UK widescreen format 16:9?

    Bob, thanks for prompt answer.
    I am ultimately going to write the file to a DVD using Windows DVD Maker. Is the 16:9 format the DVD-PAL 720x576 option, or the High 1024x768 option?

  • Need help with flash templates in Mac...

    Hello,  I did some searches in the forum but found nothing.
    I have a problem.  I have a Mac and and using Dreamweaver CS5.5.
    Recently I download some templates with flash from Hostgator.
    The message I get is:   "This page contains some SWF objects that may not work properly in the most recent versions of Internet Explorer.  Dreamweaver cannot convert them to the new SWF markups.  Please delete each of them a insert again"
    Could you help me please?   
    Thanks,

    Hello,
    The support from HostGator.com told me this:
    After reading about Adobe Dreamweaver and using the library SWF objects. This seems to be a fairly particular error with Adobe Dreamweaver CS4.
    I have read three articles:
    http://forums.adobe.com/message/2958378?tstart=0
    http://www.dreamweaverclub.com/forum/showthread.php?t=33323
    http://www.vbforums.com/showthread.php?t=579625
    They all concur this error is completely ignorable in some way. If you include the object, and just ignore the message, your content will still upload to your site. This has to do with how adobe has changed the embedding of objects since previous versions.
    However, what I can concur from all of this is that you need to simply just re-add the file to your site/library, or just ignore the error message and the embed code should work just fine.
    I test a hostgator template with flash on their server, and works fine.
    I want to know your opinion.  T hanks for your help...

  • Need help with flash player update

    I previously updated to adobe reader X. Later I got a popup saying that an updated version of adobe flash player was available, which I downloaded. I am running windows 7 home premium (64 bit). After updating the flash player I keep getting a pop up that says there was an error in the down load and that I need the 64 bit version. Today I up dated to Adobe reader X version 10.1.3. What do I need to do to make the flash player correct?  Adobe reader and PDF files are all working fine.

    You need to post in one of the sub-forums (Installing, Using), but I will move this post over.
    Try downloading the offline installer from http://helpx.adobe.com/content/help/en/flash-player/kb/installation-problems-flash-player- windows.html#main-pars_header
    [topic moved to Flash Player forum]

  • Need help with Flash media server

    I am using XAMPP. Now i want to intall Flash media server. How can i configure my apache server to work with flash media server? I dont want to install the apache server coming along with flash media

    Hi,
    What excactly is the usecase you are trying here? Are using your external Apache to proxy your http traffic from FMS to it or do you want to use http streaming feature of FMS?
    If you want to proxy it then use the following document : http://help.adobe.com/en_US/FlashMediaServer/3.5_AdminGuide/WSE2A5A7B9-E118-496f-92F9-E295 038DB7DB.html
    Refer Configure HTTP proxying topic in the document.

  • Need help with Flash Player

    I have been having problems with this for months and still no help.  PLEASE HELP.
    I am using Windows Vista  and firefox is my Browser.  When I go to download it instead of Run File it only gives me a option to Save or Cancel File.  When I load flash objects, it gives me a greyed out box that says Movie Not Loaded and Adobe Flash Player.  If you have had any help with this please don't hesitate to help.  I am trying all suggestions until I get this fixed.
    Thanks in Advance

    I am having the exact same issue! I have tried everything,
    including the link
    http://www.adobe.com/go/full_flashplayer_win_msi,
    I still get the message that I must download flash. The weird thing
    is, one of the 5 user accounts (all computer administrators)
    on our family pc has no problem with flash working, but the
    other 4 do not work. I have tried adjusting the security settings,
    but nothing has worked. Did anything end up working out for
    you?

  • Need help with flash player install

    I am having trouble installing Adobe Flash Player on my hp notebook. It keeps saying it can't initialize once it hits 50%. Any ideas?

    What is your operating system?  If Windows, download the offline installer from http://helpx.adobe.com/content/help/en/flash-player/kb/installation-problems-flash-player- windows.html#main-pars_header
    [topic moved to Flash Player forum]

Maybe you are looking for

  • Time Machine fails when trying to backup user folder

    When I try to backup my OSX 10.6.7 MB Pro to either an USB-attached external disk or a time capsule the backup fails shortly after the scan run, leaving me with the message "The backup was not performed because an error occured while copying files to

  • How to monitor messages going out of XI? Kindly help!

    Hi Experts,       I have a XI scenario where my IDOC message is going out from XI to TIBCO. I am using the JMS adapter as the receiver here. Once message is sent from XI we don't know if it really reached TIBCO? How do we monitor such messages? Basic

  • Can Call Manager support network side Q.931 from H.323 gateways

    With CCM 3.1, is it possible to support network side E1 Q.931 on a H.323 gateway. This would allow PABXs to connect to CCM, which then allow CCM to act as a tandem exchange.

  • How to make a 3 fields search box and display results below it

    Hello there I am trying to make a module for joomla cms that facilates visitor to find a particular list of packages for the search he makes by selecting the choices in three radio buttons , the result must be shown the search form in attractive way

  • X3-02 (Malaysia only)

    I would like to ask any Malaysian who have manage to update X3-02 firmware to the latest version 6.00 If U do can I know are you using Maxis, Celcom, DiGi or any other mobile service operator... Cause I'm still stuck with V5.60 Thx in advance...