Help with AS2 - Photo Gallery

Hi all

someone beable to help me with a code, I downloaded an example of photo gallery, for the moment, the film plays the pictures when you click on a button (timer)

What I try to do is to get the film auto play on load rather than having to click on the photos. I've been lookin in the manuscript, I think its something to do with

initialize values

currentIndex = 0;

but when I change the value to 1, not much is happening, some would be able to take a look at the code and see where I can change it for that video turns the images automatically when loading.

I pasted the code below, hope it's ok?

Thanks a lot for the help of anyones!

CODE:

Copyright (c) by Andrew hero. All rights reserved. DO NOT REMOVE.
fscommand ("allowscale", "false");
Stage.scaleMode = "noScale";

targetPhoto._visible = false;

slides_xml = new XML();
slides_xml. OnLoad = loadSlideShow;
slides_xml. Load ("album.xml");
slides_xml.ignoreWhite = true;

function loadSlideShow (success) {}
If (success == true) {}
rootNode = slides_xml.firstChild;
totalSlides = rootNode.childNodes.length;
currentSlideNode = rootNode.firstChild;
photos = new Array (totalSlides);
thumb = new Array (totalSlides);
Legends = new Array (totalSlides);
TX = 0;
for (i = 0; I < totalSlides; i ++) {/ / fill the tables and dynamically create thumbnails}
photos [i] = currentSlideNode.attributes.jpegURL;
inches [i] = [currentSlideNode.attributes.jpegWidth, currentSlideNode.attributes.jpegHeight];
captions [i] = currentSlideNode.firstChild.nodeValue;
_root.attachMovie ("Thumb", "Thumb" + i, i);
_root ["inch" + i] ._x = tx;
_root ["inch" + i] ._y = 595; using fixed Y coord
_root ["inch" + i] .tindex = i;
TX = 22;
currentSlideNode = currentSlideNode.nextSibling;
}
initialize values < < < < < < < < < < < < < < < < < < < < < < < IS IT HERE?
currentIndex = 0;
targetWidth = inches [currentIndex] [0]; get a sample
targetHeight = inches [currentIndex] [1]; get the height;
updateSlide();
}
}

function updateSlide() {/ / upload pictures, update the caption and status fields}
targetPhoto.loadPhoto (photos [currentIndex]);
Caption = captions [currentIndex];
statusField = (currentIndex + 1) + "/" + totalSlides;
}

function slideShow() {}
If (currentIndex == totalSlides-1) {currentIndex = 0 ;} else {currentIndex ++ ;}}}
targetPhoto._visible = false;
targetWidth = inches [currentIndex] [0]; get a sample
targetHeight = inches [currentIndex] [1]; get the height;
updateSlide();
}

MovieClip.prototype.loadPhoto = function (fn) {/ / load method jpeg external + preloader}
this.createEmptyMovieClip ("holder", 1);
this.holder.loadMovie (fn);
this.onEnterFrame = function() {/ / NOTE: could use it to display the percentage of users}
If (Math.floor((this.holder.getBytesLoaded()/this.holder.getBytesTotal())*100) > = 100) {}
delete this.onEnterFrame;
}
}
}

No, because my answer explained your time-out function must call the slideshow function

Tags: Adobe Animate

Similar Questions

  • Need help with DW Photo Gallery

    I learn the DW the hard way, trial & error. I created my photo album and uploaded. He seems to find, but when I click on the images to enlarge them I get the message "ooops no page not found." What should I do to fix this? I know I'm missing a step.

    Please help me! Thank you, Barbara

    Look at the path to the enlarged image. The path is correct? Don't have download you
    the larger photos?
    Can you post a URL to your site?

    --
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e - book for the DMX Zone
    Co-author: Dreamweaver MX: instant troubleshooting (August 2003)
    Technical Editor: Dreamweaver CS3: The Missing Manual,
    DMX 2004: The Complete Reference, DMX 2004: Beginner's Guide
    Mastering Macromedia contribute
    Technical reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web development

    "whuzthere" wrote in message
    News:fs4591$6ir$1@forums. Macromedia.com...
    > I learn DW the hard way, trial & error. I created my photo album
    > &
    > downloaded. He seems to find it, but when I click on the images to enlarge them
    > them I
    > getting the message "ooops no page not found." What should I do to fix this
    > question? I have
    > know I'm missing a step.
    >
    > Please help me! Thank you, Barbara
    >

  • help with XML Photo Gallery

    try and try to learn, the google is these days it's hard to find answers. then I come back here.

    first of all, it doesn't seem to work. If I remove the last part - the loop for and put addchild() in the first loop for, added photos.

    SRY on tweens trying that, but it seems never worked either. .

    Import fl.transitions.Tween;


    Fl.transitions.easing import. *;


    Import fl.transitions.TweenEvent;


    import flash.utils.Timer;//classes to use the timer


    import flash.events.TimerEvent;

    var imageLoader:Array = new Array();

    for (var m = 0; m < = 4; m ++)

    {

    imageLoader [m] = new Loader();

    }

    var xml;

    var xmlList:XMLList;

    var xmlLoader:URLLoader = new URLLoader();

    xmlLoader.load (new URLRequest("images/xmlLow.xml"));

    xmlLoader.addEventListener (Event.COMPLETE, xmlLoaded);

    function xmlLoaded(event:Event):void

    {

    XML = XML (event.target.data);

    xmlList = xml.children ();

    for (var i: int = 0; i < xmlList.length () - 1; i ++)

    {

    imageLoader [i] = new Loader();

    imageLoader [i] .load (new URLRequest (xmlList [i] .attribute ("source")));

    imageLoader [i] .alpha = 0;

    trace ("alpha function for" + imageLoader [i] .alpha);

    }

    for (var h:int = 0; h < xmlList.length () - 1; h ++)


    {


    / * var mytimer:Timer = new Timer (4000);


    mytimer.addEventListener (TimerEvent.TIMER, doNextTween);


    myTimer.Start (); * /


    doNextTween();



    function doNextTween (): void


    {


    addChild (imageLoader [h]);


    imageLoader [h] .addEventListener (Event.ENTER_FRAME, doNextTweenX);


    trace (imageLoader [1]);



    function doNextTweenX(e:Event):void


    {


    imageLoader [h] .alpha +=. 1;


    trace (imageloader [h] .alpha);


    If (.alpha imageLoader [h] > = 1).


    {


    imageLoader [h] .alpha = 0;

    imageLoader [h] .removeEventListener (Event.ENTER_FRAME, doNextTweenX);


    }


    }


    }


    }

    }

    online test.

  • Back up only files with windows photo gallery

    Original title: windows on windows vista backup

    When I recently did a backup of windows, I finished the backup. The problem is when I checked these backup files, they are available with windows photo gallery. I did a lot of backup on windows vista and have had no problems until the last backup. Could someone help me with this problem with my backup files onto the windows vista backup files. MEI of the running computer is a windows vista base. These backup files will be opened only on the windows photo gallery

    what I just discovered this problem I've had a number of viruses on my computer.

    has taken my computer repair and solved my problem to backup windows.

  • Question about scanning of photos with Windows Photo Gallery.

    I'm trying to scan photos with Windows Photo Gallery.  When I scan, it is not scanner full size. It gives me just a small photo to work. It does not give me an option to choose "paper format" which seems like it should solve my problem.  Help!

    I was wondering... What are the dimensions in pixels of the scans? I think it would help if you increase the DPI of your scans to 600 300 or even... look for the custom settings button.

    Also... If the scan bed (large white area) is included in any of your scans... try to get a glimpse and you will have an option to drag a rectangle around the exact part of the photo you want to include in your analysis.

    Find much info on the scanning on the following site:

    A few scanning tips
    http://www.Scantips.com/

  • I need help with my photos, I scan them in my photo gallery, but they import very little anyone can tell me how to solve this problem?

    I don't know much about photo gallery

    I was wondering... What are the dimensions in pixels of the scans? I think it would help if you increase the DPI of your scans to 600 300 or even... look for the custom settings button.

    Also... If the scan bed (large white area) is included in any of your scans... try to get a glimpse and you will have an option to drag a rectangle around the exact part of the photo you want to include in your analysis.

    Find much info on the scanning on the following site:

    A few scanning tips
    http://www.Scantips.com/

  • How can I get photos on Snapfish with Live Photo Gallery?

    I tried to select pictures; then clicking: create, order prints, HP Snapfish, send photos, send.

    But I get the following text:

    "An internet connection could not be found, or printing attempted to view a page not valid."

    What I am doing wrong?

    While it is not impossible that someone here can help you, you will have a much better chance to solve the problem in the pages of forums & help for your application from Windows Live Photo Gallery. The sites are managed separately.

    These two have special sections for WLPG questions.

    Windows Live Mail Solution Center - Forum

    Windows Live Help Center

    I just put the next in your [possible] other Windows Live applications

    Windows Live Mail

    Windows Live Essentials Help Center

    Windows Live Hotmail

    Good luck with it,

  • Can not send photos with live photo gallery

    I can't send pictures by e-mail from windows live photo gallery. When you send saying error or telling me to put in the correct password. I am able to get into windows live with my password. said the wrong to logon to the server. or don't stop telling me the task failed. joined yesterday. spent way too much time trying to understand it. very frustrated. thought this would make it easier to send photos.

    (1) hold down the CTRL key when you click on the files (release the ctrl key if you scroll down the page)

    (2) most likely your email account aol also has a "sent" folder you can check,.

    I use office outlook and when I send files in office word same as you're photo gallery, I have to open outlook before the files / emails are sent really, they sit in outlook waiting for a program to open, so it will send files / attachments... same thing if I use the webmaster on a forum / website.

    (3) Skydrive is a very good idea, it's free and generous (storage wise) there is a learning curve but once you get the hang of it, you'll wonder why you thought otherwise.

    This is a very useful post by firedog which goes into great detail on how to create public folders...

    http://answers.Microsoft.com/en-us/feedback/forum/suggest/how-to-insert-an-image-into-a-post-at-answers/bdae0306-c3cb-4d31-ace9-7281ea1a8a73

    (4) see # 3 to use skydrive to links in e-mail to the people you want to share videos / lots of photos with.

  • Need help with as2 as3 conversion. Please, I beg you.

    Could someone help me to convert as2 as3, please?

    Source code:

    _root.magnet = 500;
    _root.magic = 10;

    and

    onClipEvent (load)
    {
        homex = this._x;
        homey = this._y;
        forcex = 1;
        forcey = 1;
    }
    onClipEvent (enterFrame)
    {
        x0 = this._x;
        y0 = this._y;
        x1 = this._xmouse;
        y1 = this._ymouse;
        distancex = x1 - x0;
        distancey = y1 - y0;
        distance = Math.sqrt(distancex * distancex + distancey * distancey);
        powerx = this._x - distancex / distance * _root.magnet / distance;
        powery = this._y - distancey / distance * _root.magnet / distance;
        forcex = (forcex + (homex - x0) / 2) / _root.magic;
        forcey = (forcey + (homey - y0) / 2) / _root.magic;
        this._x = powerx + forcex;
        this._y = powery + forcey;
    }

    I am a newbie in flash so if anyone can help with this would be great.

    I really need to be done please help me.

    MovieClip(root).magnet = 500;MovieClip(root).magic = 10;
    

    and

    var homex:Number = yourmc.x;var homey:Number = yourmc.y;var forcex:Number = 1;var forcey:Number = 1;
    
    yourmc.addEventListener(Event.ENTER_FRAME, loopF);
    
    function loopF(e:Event){    var x0:Number = e.currentTarget.x;    var y0:Number = e.currentTarget.y;    var x1:Number = e.currentTarget.mouseX;    var y1:Number = e.currentTarget.mouseY;    var distancex:Number = x1 - x0;    var distancey:Number = y1 - y0;    var distance:Number = Math.sqrt(distancex * distancex + distancey * distancey);    var powerx:Number = e.currentTarget.x - distancex / distance * MovieClip(root).magnet/distance;    var powery:Number = e.currentTarget.y - distancey / distance * MovieClip(root).magnet/distance;    forcex = (forcex + (homex - x0) / 2) /MovieClip(root).magic;    forcey = (forcey + (homey - y0) / 2) / MovieClip(root).magic;    e.currentTarget.x = powerx + forcex;    e.currentTarget.y = powery + forcey;}
    
  • Help with loading photo

    Im trying to download pictures from my camera and it will not let me open the file. Whenever I have try opening the pictures he sends me to Internet Explorer, saying that its to protect my safety. How can I fix to be able to look at my pictures?

    Hi ShelbySchutte,

    · You download the pictures online, or it is on the computer?

    · What is the full error message that you receive with the error code?

    · Do you remember all the recent changes on the computer before the show?

    · What is the file format of the images you are trying to download?

    For reference: download and work with digital photos: http://www.microsoft.com/windowsxp/using/digitalphotography/learnmore/top10.mspx

    Downloading pictures from your digital camera: http://www.microsoft.com/windowsxp/using/digitalphotography/takeit/transfer.mspx

    To transfer images from digital camera to computer: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sag_irdaconcepts_206.mspx?mfr=true

  • How to print 4 different pictures on one page with Windows Photo Gallery?

    Could not find any way to add different photo once I chose one to print (so I can print 4 different photos on A4 only once.)

    Select 4 photos in the photo gallery
    In the top of the page, click on print, then print again (or just do CTRL P on your keyboard)
    When print photos screen opens upward, on the right-hand side, scroll down to 3.5 x 5 in. (4)
    Make sure that in the bottom of the box for photo to Fit the frame is selected
    At the top, you can adjust the PaperSize, quality, Type of paper and that printer.
    Once completed your settings, click print at the bottom

    That should do it... If this solved your problem, please mark this as the answer.

    Thank you..

  • with windows photo gallery, it is said photobase.dll not found how can I solve this nothing worked for me.

    Just at the moment where I try to open windows Photo Gallery, he said Photobase dll. not been found.  Now, what

    Have you tried to run the System File Checker tool?

    http://support.Microsoft.com/kb/929833

    You can also try to repair windows live photo gallery by clicking on start---> Panel---> Add / Remove---> Windows live essentials and selecting the repair option.

    Good luck.

  • I've accidentally changed all my.lnk files to open with Windows Photo Gallery. Is there a way I can change all my shortcuts in the original applications out there without doing it manually?

    I tried system restore three times and all three of them didn't work, I get an error message after the restore has been saying that there is an error during the restoration that has not left my files be returned in original condition here. I really need help with that.

    Please and thank you.

    Hello

    The simplest method is to use restoring the system to a point before you did.

    How to turn System Restore on or off in Vista
    http://www.Vistax64.com/tutorials/66971-system-restore.html

    =================================================

    Reset the lnk - files shortcut link (LNK).

    Restore the Type Associations by default Vista file extensions
    http://www.Vistax64.com/tutorials/233243-default-file-type-associations-restore.html
    How to set default Associations for a program under Vista
    http://www.Vistax64.com/tutorials/83196-default-programs-program-default-associations.html

    How to associate a file Extension with a program Type in Vistahttp://www.vistax64.com/tutorials/69758-default-programs.html

    How to view and change an Extension of filename on Vista
    http://www.Vistax64.com/tutorials/103171-file-name-extension.html

    How Unassociate a Type of Extension file in Vista and a utility to help
    http://www.Vistax64.com/tutorials/91920-unassociate-file-extention-type.html

    I hope this helps and happy holidays!

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Problems with the photo gallery of window keep crashing

    My Gallery of photos of window keep crashing. Any idea

    My Gallery of photos of window keep crashing. Any idea

    ================================
    The following article might be worth a visit:

    Stops Windows Live Photo Gallery (944221)
    answer or does not start
    http://support.Microsoft.com/default.aspx/KB/944221/en-us

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Need help with the plugin gallery

    Hola

    I need your help (yet) to understand

    Why the lightbox plugin does not work in this site.

    http://mydsigner.com/Claudia/gallery_manteca.html

    So the people you know, this is the site I asked before at this link;

    What is happening with the new Adobe wants to use your trick of confidential information

    Here is the site of origin;

    http://www.lascasuelasmexicanrestaurant.com/gallery/details.php?Gallery=Manteca_4

    As you can see here, all PAGES ARE PHP (?)

    Well, I managed to get the html pages, change some things,

    everything works fine, but the Gallery does not work, and I have no idea why.

    You see, the page contains a link to a lightbox css who for some strange reason,.

    I can not find the server
    ; href =" /CSS/bootstrap-lightbox.min.CSS


    When I looked for this file, it is simply not there, then

    I received a bootstrap file and put it in there, but the light therapy device won't always work.


    Your Assistant need help here.


    Thank you very much


    Greetings from California

    Daniel Ulysse wrote:

    and at the bottom, after the footer;

    Is this correct?

    what Miss me?

    Thank you

    This is what is wrong - it should NOT be


    It should link to the js file NOT the css file:

Maybe you are looking for

  • How to unlock a disabled iPad that an employee of the company has lost the password?

    My company furnished iPads for some staff members.  I had an employee leaves the company (led) and when we received the iPad back they had to block him on their account iTunes staff.  Now I have a useless iPad Air is no longer usable by the company. 

  • single-sided pcb

    Hi all First time poster. Noob question type to come. How can I get the highway as a single face KIC Ultiboard? Unless I got it completely wrong, that you have only a minimum of a top and bottom copper layer that is a double-sided Board. I will make

  • high speed streaming

    LabVIEW 8.5 Hi all. I have never written LV or any other code to make streaming broadband but I have to now. I did a lot of 2 and 3-way low speed data acq but never down. I could use a little guidance as to how it works. First of all - what I have to

  • Service .exe wants to run/install msi824.tmp, is this safe?

    Original title: msi824.temp. After that download .net framework and service pack 3, service .exe wants to run/install msi824.tmp, is this safe?

  • create partition for dual boot XP and Vista

    follow the guide step by step to install XP already installed Vista I chose option 3 and created a new partition unallocatedof the main C: partitionInstall XP from my CD does not work, the 'install' option is disabled (write transparent)I tried to as