Making photo gallery run automatically

hi there
i have already created a photogallery for the website below.
http://hitenkajal.co.uk/hk_family.html
Now i will like the photos to run automatically as well as having button to click on. I want this done via as3 as i have quite alot of photos. Can someone help me?
my as3 code:
/* Mouse Click Event
Clicking on the specified symbol instance executes a function in which you can add your own custom code.
Instructions:
1. Add your custom code on a new line after the line that says "// Start your custom code" below.
The code will execute when the symbol instance is clicked.
family1_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
function fl_MouseClickHandler(event:MouseEvent):void
    // Start your custom code
    // This example code displays the words "Mouse clicked" in the Output panel.
    trace("family1_btn");
    familyBkgd.mainLoader.source = "hkimage/largepic/family.jpg";
family2_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_2);
function fl_MouseClickHandler_2(event:MouseEvent):void
    // Start your custom code
    // This example code displays the words "Mouse clicked" in the Output panel.
    trace("family2_btn");
    familyBkgd.mainLoader.source = "hkimage/largepic/sheth_family.jpg";
    // End your custom code
family3_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_3);
function fl_MouseClickHandler_3(event:MouseEvent):void
    // Start your custom code
    // This example code displays the words "Mouse clicked" in the Output panel.
    trace("family3_btn");
    familyBkgd.mainLoader.source = "hkimage/largepic/valani_family.jpg";
    // End your custom code
family4_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_6);
function fl_MouseClickHandler_6(event:MouseEvent):void
    // Start your custom code
    // This example code displays the words "Mouse clicked" in the Output panel.
    trace("family4_btn");
    familyBkgd.mainLoader.source = "hkimage/largepic/hiten_brothers.jpg";
    // End your custom code
family5_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_5);
function fl_MouseClickHandler_5(event:MouseEvent):void
    // Start your custom code
    // This example code displays the words "Mouse clicked" in the Output panel.
    trace("family5_btn");
    familyBkgd.mainLoader.source = "hkimage/largepic/the_sisters.jpg";
    // End your custom code
family6_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_7);
function fl_MouseClickHandler_7(event:MouseEvent):void
    // Start your custom code
    // This example code displays the words "Mouse clicked" in the Output panel.
    trace("family6_btn");
    familyBkgd.mainLoader.source = "hkimage/largepic/kajal_baa.jpg";
    // End your custom code
family7_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_8);
function fl_MouseClickHandler_8(event:MouseEvent):void
    // Start your custom code
    // This example code displays the words "Mouse clicked" in the Output panel.
    trace("family7_btn");
    familyBkgd.mainLoader.source = "hkimage/largepic/kajal_sisters.jpg";
    // End your custom code

while the photos are automatically changing, i will like it to fade in and out smoothly. How can i do that?
My AS3 code
import flash.utils.Timer;ode
import flash.events.TimerEvent;
var imgArr:Array=new Array("family.jpg","sheth_family.jpg","valani_family.jpg","hiten_brothers.jpg","the_siste rs.jpg","kajal_baa.jpg","kajal_sisters.jpg");
var path:String="hkimage/largepic/";
var i:int=1;
var timer:Timer=new Timer(7000);
timer.addEventListener(TimerEvent.TIMER,timerfn);
timer.start();
function timerfn(e:TimerEvent):void{
    if (i>=imgArr.length) i=0;
    familyBkgd.mainLoader.source =path+imgArr[i];
    trace(imgArr[i]);
    i++;
/* Mouse Click Evente
Clicking on the specified symbol instance executes a function in which you can add your own custom code.
Instructions:
1. Add your custom code on a new line after the line that says "// Start your custom code" below.
The code will execute when the symbol instance is clicked.
family1_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
function fl_MouseClickHandler(event:MouseEvent):void
    // Start your custom code
    // This example code displays the words "Mouse clicked" in the Output panel.
    trace("family1_btn");
    familyBkgd.mainLoader.source = "hkimage/largepic/family.jpg";
    i=0;
family2_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_2);
function fl_MouseClickHandler_2(event:MouseEvent):void
    // Start your custom code
    // This example code displays the words "Mouse clicked" in the Output panel.
    trace("family2_btn");
    familyBkgd.mainLoader.source = "hkimage/largepic/sheth_family.jpg";
    // End your custom code
    i=1;
family3_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_3);
function fl_MouseClickHandler_3(event:MouseEvent):void
    // Start your custom code
    // This example code displays the words "Mouse clicked" in the Output panel.
    trace("family3_btn");
    familyBkgd.mainLoader.source = "hkimage/largepic/valani_family.jpg";
    // End your custom code
family4_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_6);
function fl_MouseClickHandler_6(event:MouseEvent):void
    // Start your custom code
    // This example code displays the words "Mouse clicked" in the Output panel.
    trace("family4_btn");
    familyBkgd.mainLoader.source = "hkimage/largepic/hiten_brothers.jpg";
    // End your custom code
family5_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_5);
function fl_MouseClickHandler_5(event:MouseEvent):void
    // Start your custom code
    // This example code displays the words "Mouse clicked" in the Output panel.
    trace("family5_btn");
    familyBkgd.mainLoader.source = "hkimage/largepic/the_sisters.jpg";
    // End your custom code
family6_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_7);
function fl_MouseClickHandler_7(event:MouseEvent):void
    // Start your custom code
    // This example code displays the words "Mouse clicked" in the Output panel.
    trace("family6_btn");
    familyBkgd.mainLoader.source = "hkimage/largepic/kajal_baa.jpg";
    // End your custom code
family7_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_8);
function fl_MouseClickHandler_8(event:MouseEvent):void
    // Start your custom code
    // This example code displays the words "Mouse clicked" in the Output panel.
    trace("family7_btn");
    familyBkgd.mainLoader.source = "hkimage/largepic/kajal_sisters.jpg";
    // End your custom code

Similar Messages

  • Photo gallery in as3

    I'm making photo gallery where photos will be loaded from external xml file but i have problem. I want to add an effect when photo is changing like on this site: http://www.studiomelon.pl/index.html#/1/  Could somebody help me with that? I am noob in flash so please explain it as clear as you can. Thanks.

    I was sesrching for that for a long time before i created this tread. There is many tutorials and exaple files for page flip or page turn but i cant find good one. Many of them was coded in as1 or as2 other using php and java script so its difficult  to understant. I just want one simple solution for that. It cant be so hard to create something like that. Could you help me to find some good and simple tutorial in as3?

  • "automate web photo gallery" missing in Photoshop CS4

    Just thought I upgraded from my CS2 photoshop and realize I can't automate the very practical web photo galleries anymore? I tried to transfer the added plugin from the additional "goodies" file into the photoshop automate plugins BUT a message pops up saying: "There is NO template folder to run Web Photo Gallery"
    Can anyone help??
    Thanks,
    D

    Check this out:
    http://blogs.adobe.com/jnack/2009/04/a_few_useful_reminders.html
    Remember to install the Picture Package too.
    Additionally, make sure you have updated to Photoshop 11.0.1 and applie the update to AOM, the Adobe Output Module.

  • CS2 Automate Web Photo Gallery causing photoshop to crash

    All attempts to use this function end in Photoshop crashing.
    Photoshop CS2 on OS10.5.4 - Imac 7,1 - 2.4 Ghz
    Anyone else experiencing this?

    SUCCESS!!!! This worked:
    I have found this on the Adobe Support site:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402781
    Crash when you run Web Photo Gallery on Mac OS X v10.5 (Photoshop CS2, Photoshop Elements 4)
    ISSUE
    When you attempt to run Web Photo Gallery in Adobe Photoshop CS2 or Adobe Photoshop Elements 4 on Mac OS X v10.5.x (Leopard), the application crashes.
    REASON
    The Web Photo Gallery plug-in that shipped with Photoshop CS2 and Photoshop Elements 4 is not compatible with Mac OS X v10.5.x.
    SOLUTION
    Replace the Web Photo Gallery plug-in with the new version.
    Quit Photoshop CS2 and Photoshop Elements 4.
    Download the new version of the Web Photo Gallery plug-in from the following link:
    WebContactSheetIIplugin.zip
    If your web browser did not automatically extract the plug-in (WebContactSheetII.plugin) from the downloaded .zip file, double-click the .zip file to extract the plug-in.
    In the Finder, navigate to the Automate folder:
    For Photoshop CS2, navigate to /Applications/Adobe Photoshop CS2/Plug-Ins/Adobe Photoshop Only/Automate.
    For Photoshop Elements 4, navigate to /Applications/Adobe Photoshop Elements 4.0/Plug-Ins/Automate.
    Remove the WebContactSheetII plug-in from the Automate folder. You might want to save this plug-in in case you need to revert back to it.
    Drag the new WebContactSheetII plug-in that you extracted into the Automate folder.
    Re-open Photoshop CS2 or Photoshop Elements and run Web Photo Gallery.
    Note: If you are using Photoshop Elements 4, then do not choose File > Create Web Photo Gallery to use this feature after you update the plug-in. Instead, choose File > Automation Tools > Web Photo Gallery.

  • How can I disable the Photos app from automatically running when I plug in my iPhone?

    How can I disable the Photos app from automatically running when I plug in my iPhone?
    I have no intention of ever using Photos, in fact, having to abandon Aperture takes me one step close to moving back to Windows, but I digress.
    I just want to NOT have to kill the Photos app every time I plug in my phone.
    Thanks.

    I am still seeing the option Image Capture, like shown in the screenshot that Rysz posted.   But it is another example of the hide-and-seek Apple likes to play with us.
    The option has to be set for each device individually. With the device connected to USB, you have to click the tiny disclosure triangle in the lower left corner of the sidebar to reveal the option.
    I was perfectly happy with the program I paid for (Aperture), and now to maintain the functionality I have to pay for another application (LightRoom) to get the functionality that I paid for in Aperture.
    Aperture 3.6 is working well with Yosemite. I will use it, as long as I have a Mac, that will run Yosemite or a compatible system.
    Have you looked at Capture One?  It looks much more similar to Aperture than Lightroom.

  • Need some help in saving video message from viber to my Iphone. I disabled the thing that would save photos and videos automatically then, there comes a video I want to save. After loading and watching it, I press the "save to gallery"

    Need some help in saving video message from viber to my Iphone 5S with new ios 8's program . I disabled the thing that would save photos and videos automatically then, there comes a video I want to save. After loading and watching it, I press the "save to gallery" thing but it doesn't save in gallery. I tried all, restarting my phone, rebooting then turning on the save automatically thing and when I watch it again, it still wouldn't save.

    Probably a good question to ask Viber or look at their support site.

  • Making a photo gallery

    I am having trouble with actionscript. I am making a photo
    gallery and my buttons and layout are just dandy everything's
    looking fine. The buttons do nothing, and i know i need
    actionscript to make it work but i have no idea how to even begin.
    I have what i want the buttons to show made in a movie clip I just
    need to know how to how to have the clip come up and be centered
    when clicked. Please help me.

    depends on whether you are using AS3 or AS2.
    either way, however, you're looking to work with "event
    handlers"
    onRelease()
    onPress()
    onRollOver()
    onRollOut()
    etc...
    so in AS2, if you have a button named "test_b" on your main
    timeline, you would assign an action like this...
    test_b.onRelease = function() {
    trace("this is a test to see if this button works.");
    AS3's event handlers are a little different.

  • Making a photo Gallery in Flash cs4

    Is there an easy way to make a cool looking, interactive photo gallery that i can insert into my website usuing flash?

    The safest answer to give you is... no, there is no easy way for you to make a cool looking interactive photo gallery.   To achieve whatever it is you consider cool looking and interactive requires understanding how to design with Flash and Actionscript.  Your best bet for getting a start on making one is to search Google using search terms like... "AS3 gallery tutorial" and add in any other terms that represent what you want.

  • Automate web photo gallery in PS Elements 7

    New user here. I bought Photoshop Elements 7 specifically for the web photo gallery, which works fine in Elements 6 (but I don't own a copy of 6).
    My installation of Elements 7 has the Automation tools option in the File menu greyed out. It looks like this option is now a plug-in? If so, where can I get this? Was this option excluded from Elements 7?
    Any help will be really useful. Thanks

    Thanks for replying, Jim.
    In Photoshop CS3, the Automate option in the File menu is active even with no images open. I assumed this is the same in Elements 7, and am told that Elements 6 is the same.
    Using Windows XP.
    Steps :
    1. Open Elements to splash screen, select Edit (This is the only option in the splash screen for which the Automate Tools is listed in the following screen)
    2. When the Edit screen loaded, opened File menu, and Automation Tools is listed but is greyed out.
    Tried opening images -> no change
    No album is (created or) selected.

  • Photo gallery slide show - automatic start

    I have created a web photo gallery in Adobe Bridge and successfully
    opened it in my Dreamweaver site, but I want to the slide show to start automatically because it is on my
    first page and I don't want people to have to click on the play button. Can someone tell me if this can be done and if so, how?
    Thanks

    Hi,
    I will gladly help you with your problem but please give me a
    link to your gallery wither as a private message or by email
    ([email protected]). The files here pasted are incorrect, look to
    the SetSlideShowTimer() or the StartSlideShow() functions above
    that are incomplete. Not mentioning that the CSS are really make
    the difference.
    It will take me more time to try to reconstruct your
    structure, not having all the files you reference and probably not
    being able to duplicate your problem because the deployment
    failure.
    Cristian

  • "Automatic" Photo Gallery

    Hi everyone!
    I'm trying to make an "automatic" photo gallery: when you upload the photo in the source folder, it automatically gets uploaded in the gallery. Is there a chance to make this?
    I have this file that calls Word files, and as I update the source file (Word) the data gets updated on the web. So how can I build a simple gallery that would work roughly this way with the photos (As I said above: I upload the photos, and they get arranged in the web)?
    Thanks a lot!
    xogg

    Sure you can.  If your server supports PHP with a MySql database, you can use ZenPhoto.
    http://www.zenphoto.org/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • How do I make the plugin run automatically when a photo is imported?

    I am trying to write a new plugin where the metadata will be automatically added to the photo when I import the photo in the Lightroom.
    How do I make the plugin run automatically when a photo is imported?
    Thanks for  your help!
    Regards,
    Prosenjit

    psaha84 wrote:
    What I want is, when I import a photo in Lightroom the plugin will run and assign the metadata.
    As John said, there is no mechanism to receive notification of import. The likely recourse is continuous polling (unless you get very creative..).
    You can try optimizing. e.g.: every second (or less), see if the count has changed, if it's gone up, something's been imported, if not then probably not (check anyway once in a while..).
    psaha84 wrote:
    How do I save the custom metadata with the image file?
    Lightroom 5 has the limitation, plugin  cannot link the custom metadata fields to XMP file or save them with image file.
    So, is there any alternative way to save the custom metadata?
    Yeah: Lightroom won't save custom metadata in xmp, nor read it if it's there, so you are pretty much on your own - you can save in a file, but if you save as non-standard sidecar Lr won't attend to it like it will jpg or xmp sidecar. For that reason it's often better to save in a separate dedicated location. You can save in image file itself, e.g. using exiftool if raw file, but that would make me nervous, and of course you'd have to have the logic to read it somewhere too..
    Good luck,
    Rob

  • Making run automatically

    can some one help me making it run automatically and adding slideshowTimer on the codes below
    next_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToNextFrame);
    function fl_ClickToGoToNextFrame(event:MouseEvent):void
        nextFrame();
    previous_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToPreviousFrame);
    function fl_ClickToGoToPreviousFrame(event:MouseEvent):void
        prevFrame();

    thank you for your input
    however, i am getting error message when i put these codes on:
    Symbol 'Symbol 2', Layer 'Layer 3', Frame 1, Line 3 1150: The protected
    attribute can only be used on class property definitions.

  • Automate Web Photo Gallery

    Where is the Automate Web Photo Gallery in CS4. It makes the web html that when you click on the thumbnail is shows the larger picture.

    If you can't find one you like in the new module, notice on that link there is a further link to instructions how to download the old-style plug-in and galleries.
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=4048

  • Is the Automate/Web Photo Gallery function gone from CS5?

    I am currently operating a trial download of Photoshop CS5. I was surprised to see the "File > Automate > Web Photo Gallery" function missing from Photoshop CS5. Is that true, or has it been moved to another location?

    Jeffry, Chris Cox,
    At our studio we use the Web Gallery with Feedback option for our clients to review images, make selections and comments.
    I hope we don't lose access to this with an upgrade to CS5.
    It seems to me that having that capability within Photoshop makes sense, but if it is being ported to Bridge I hope, at least, that it will be well supported (which it wasn't while in PS).
    As a tool to support a user's web design, Flash has several drawbacks not the least of which is that it is opaque to search engine indexing bots.
    One thing I would hope Adobe could fix in the Gallery with Feedback option is a problem in which if a client of ours is using the gallery to give feedback, even though they click "Save Feedback" on every image, if they close the gallery window, all comments and selections are lost. We had a client who was reviewing 400 images. She had gotten through close to 300 of them, saving feedback all along, when she decided to come back to the project a little later. Closing the browser window lost all of her comments and selections. Tools like this are important to our business relations with our clients and I would hope they would be integrated into Adobe's imaging products, but they shouldn't be an afterthought – they need to be well designed, user customizable, and up to date with web standards.
    Craig

Maybe you are looking for

  • Over Flow Error

    Hi,    I am creating a functional module. In the global data, I had included a standard Include. include MM06ETOP_GLOBAL_DATA. When I am doing syntax check, it is showing ok. When i am activating it, it is giving the following error. Overflow when co

  • Emf file- gray lines

    Hi Everyone, i have some graphics *.*emf files from Matlab. when i use graphic on MS Word there is no problem it looks like an orginalm forms but when i convert word file to Pdf with Adobe Pdr Writer, add some gray lines on my graphic (pictures are b

  • Starting SQL Server Agent service

    I have a brand new 64-bit laptop and have installed both SQL Server 2014 and SQL Server 2012sp1, but neither instance is able to start its SQL Sever Agent Service.  The error is 1053:  'The service did not respond to the start or control request in a

  • Set Page Navigation tab to default open

    Is it possible to set the initial view to have the Page Navigation tab open?

  • Similar to my easy one, but a bit different!

    Post Author: cmainard CA Forum: Formula I thought I could use the same concept, but its not returning the expected results. 648300011064840015006586000010 In the example above the bolded detail is a summary field: {DistinctCount of MoxyAllocation.Por