How to do Auto Resize Photo Gallery

I want to create a photo gallery where the photos don't have to be the same size. I need the photo border or container to smoothly resize to accomadate each new image.  Can someone explain the basic procedure to accomplish this with Flash?
Thanks for the help, Mike

This does work. Thanks very much for all your help. If you don't mind, I just have a couple more questions and then I will let you get back to your normal life. Let me see if i'm reading this right...First you retrieve the dimensions of the loaded image; then you set the loader object's dimensions to match the starting dimensions of the MC that will contain the photo; then you put the loader object inside the MC container; then you resize the MC container to the size of the photo.  Right?  1st question: why is it necessary to set the loader object's size to match the initial size of the container MC?  I tried adding the loader object to the MC without resizing the loader object first, and it didn't seem to change the outcome of the movie.  2nd question: Now that you've solved the general problem, I suppose all I have to do is change the final step in the procedure. Instead of simlpy setting the dimensions of the MC container, I should apply some sort of tween to the MC to make transitions between photos a little more interesting. Yes?
var imagePath:URLRequest = new URLRequest("testPhoto3.jpg");
var imageLoader:Loader = new Loader();
imageLoader.load(imagePath);
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, getDimensions);
function getDimensions(evt:Event):void
//get the height and width of the loaded image
var ht:int = evt.target.content.height;
var wi:int = evt.target.content.width;
/*set the dimensions of the loader object equal to the starting
dimensions of the MC that will hold the photo*/
imageLoader.width = photoBox_mc.width;
imageLoader.height = photoBox_mc.height;
//put the loader object inside the MC that holds the photo
photoBox_mc.addChild(imageLoader);
//resize the MC that holds the photo
photoBox_mc.width = wi;
photoBox_mc.height = ht;

Similar Messages

  • How can I create a photo gallery in flash cs3, Iam a beginner in flash

    How can I create a photo gallery to put into my current flash site Iam creating? Using  flash cs3, can anybody suggest any tutorials (noting complicated with me being new to flash cs3)
    When going on line I saw that maybe you can use Dreamweaver, XML, or even Photoshop can anybody explain the difference between using one or the other?
    THanks

    Indeed, google ftw.
    For example:
    +as3 photo gallery flash tutorial
    reveals many including this one:
    http://www.flashmagazine.com/Tutorials/detail/as3_photo_gallery/

  • How does one add a photo gallery to my web site in Dreamweaver CS5 and have the link recognized as a destination file?

    How does on add a photo gallery to a web site in Dreamweaver CS5 and have the file folder which contains the photos, recognized as the "go to location" for the link up?

    Ok.  So Photos1.htm is the main gallery page.
    And it looks like you have sub-folders with images in them like these from 2011 and 2010
    LLA Picnic 2011/
    photos 2010/
    Have you defined a site in DW yet?   That's a critical first step in getting DW to recognize your site's links and other assets.  See video below:
    GS-01: Defining a new site | Learn Dreamweaver CS5 & CS5.5 | Adobe TV
    Nancy O.

  • How to import Bridge CS4 photo gallery into Dreamweaver CS4?

    I'm a novice when it comes to web design, but am starting to master DW CS4. While searching for a way to create good looking photo galleries I found an online video explaining how to do it using Bridge. The process in Bridge was strainght forward and simple. However, I have not found how I can bring the photo gallery I created in Bridge into a page based on a template in Dreamweaver. Can it be done? How?
    I designed a template for our website which I would like to use for any photo galleries in order to maintain the same "look and feel" and ease of navigating within our website (www.aquacomgroup.com).
    Please help!

    I'm having the same problem & desperate to find out how to do this!! Help!!

  • How can I make Web Photo Gallery with Photoshop CS6 on Mac 10.6.8?

    How can I make Web Photo Gallery with Photoshop CS6 on Mac 10.6.8?

    You can use Bridge to create a web photo gallery.
    Here's a video that shows you how to do it:
    Hope this helps!
    Julia

  • How do I copy my photo gallery from android phone?

    I just purchased an Iphone 6 to replace my Samsung Android phone.  How do I copy my photo gallery from the Android to the Iphone?

    Move content from your Android phone to iPhone - Apple Support

  • How To Customize Existing Web Photo Gallery?

    I copied one of the existing Web Photo Galleries (Simple - Vertical Thumbnails) and have customized it. What I'm needing to change now is the Options within the Web Photo Gallery dialogue box. Under "General" I'm needing to have the "Use UTF 8 Encoding" checked, under "Large Images" I need the Resize Images: unchecked, and so forth.
    Where would these setting be located?
    Thanks!,
    Wesley

    Really, that's your answer??  In 3 seconds I saw that your results were not what I needed.  Do you think that I haven't already searched for this?  I'm not needing to know how to adjust current settings each time I bring up the Gallery dialogue box, I'm needing those settings to be preset when I bring up my custom gallery style.
    Where are the Option presets stored?
    I'm needing these presets for example:
    General > Use UTF 8 Encoding and Preserver all metadata to be already checked
    Large Thumbnails > Resize Images to be already unchecked
    Amongst other settings.

  • Adobe muse - how to upload images in photo gallery in the admin console?

    Question from Adobe Muse beginner - I can't figure out how images can be uploaded in a slideshow/photo gallery in the admin console? I can edit or delete images but not upload additional images?

    Hi,
    May I know which admin console are you talking about.
    You are talking about Business Catalyst or Adobe Muse?
    Please provide the steps to access the admin console via Muse.
    Regards,
    Gaurav Aggarwal

  • How do i download my photo gallery to i cloud ?

    How do I download my mobile me photo gallery to i cloud ?

    Welcome to the Apple Community.
    Unfortunately, iCloud does not offer equivalents to Mobile Me’s iDisk, Gallery or Web Hosting services. You will need to find a third party solution to replace these services. You might consider DropBox, SugarSync, MediaFire or any other service that offers online storage. (not all these alternatives offer all the services previously provided by iDisk)

  • How do I embed a photo gallery in my own web page design?

    I have a photo gallery that I'm just starting, and I want to embed it into my existing design. I can't seem to figure out how to do that. I tried copying and pasting the frame and code, but it doesn't pull the images.
    New gallery full page (it works, but how do I move it?)
    http://victorylcms.org/newsite/flashmo/flashmo_060_photo_gallery.html
    Page I'd like to put it in (you can see that it's not pulling any content like I imagine it should)
    http://victorylcms.org/newsite/Photos.html
    Example of it embedded on a page (not mine)
    http://www.flashmo.com/preview/flashmo_060_photo_gallery
    Thanks!

    All that other site did was use a table layout and put the gallery within a table cell.  The same effect could be done with a container div.
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" name="flashmo_060_photo_gallery" width="800" height="800" align="middle" id="flashmo_060_photo_gallery">
           <param name="allowScriptAccess" value="sameDomain" />
           <param name="movie" value="flashmo_060_photo_gallery.swf" />
           <param name="quality" value="high" />
           <param name="bgcolor" value="#000000" />
           <embed src="flashmo_060_photo_gallery.swf" quality="high" bgcolor="#000000" width="800" height="800" name="flashmo_060_photo_gallery" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
         </object>
    That's the only code you need to bring over from the first page to your page.  Then just make sure paths are all set so that your other page can read the flash file and you should be good to go.

  • How to upload photoshop Web photo Gallery to iWeb 1.1.2

    I have a great iWeb Photography site and it's linked to the web through my domain name only- just thru Forwarding. I want to use the Photoshop CS2Web Gallery feature and have created a sample folder. How do I link it to open in my website?
    So far, I created the box, chose to hyperlink it to an external page and typed in page name that the Web Photo Gallery gave it and then I go thru the website- it goes to the gallery home page, but shows no photos, just the little question mark boxes. I'm pretty non-technical about this. Any help is great. I can't find the answers through Adobe help. I thought this was going to be easier...

    Hi, I too, am a beginner and I'm trying to create a simple
    website and want to include a photo gallery as well. I just
    discovered the "Create a Web Photo Gallery" in Photoshop CS3 and I
    was just wondering the same thing. How do you get it in into
    Dreamweaver and into your site? I hope someone answers this
    question.

  • How to upload a web photo gallery made in Bridge or Elements

    Hi, I am a beginner with Dreamweaver, and I am only trying to
    set up a simple page. The index page works fine, and also to have
    other pages linked to the index page. But I have made a web photo
    gallery in both Bridge/Photoshop and Elements 6, but I can not get
    them into Dreamweaver!!! Can anyone please, please help me?! How do
    I actually insert the web photo gallery into one of my
    pages???

    Hi, I too, am a beginner and I'm trying to create a simple
    website and want to include a photo gallery as well. I just
    discovered the "Create a Web Photo Gallery" in Photoshop CS3 and I
    was just wondering the same thing. How do you get it in into
    Dreamweaver and into your site? I hope someone answers this
    question.

  • How to create an advanced Photo Gallery

    Hello there:  
    I am designing a web site using Expression Web 4. Which Photoshop product I can use to design and import an advanced photo gallery where pictures are organized in thumbnails then once one hovers with the mouse over a specific picture, this would be enlarged enough to see extensive details? The other question is would such gallery be so advanced as to eventually use Java's capabilities or to give other publishing options?
    Thanks
    Bass   

    Hello,
    Please try the suggestions and the widgets in the links below.
    http://www.muse-themes.com/blogs/news/14113125-beautiful-site-search-in-adobe-muse-swiftyp e
    How to use the Addsearch widget
    how do you create a seach box in MUSE?
    Regards
    Vivek

  • How do you slow down photo gallery autoplay?

    I have a working Spry photo gallery and just want to slow down the autoplay by a second or two.  How do I do that?
    The page in question is at http://helenglazer.com/clouds/cloudsmain.html
    Can't find the answer in previous posts.
    Thanks,
    Helen

    Open gallery.js
    There you will see:
    var gSlideShowInterval;
    if (gSlideShowInterval == undefined)
         gSlideShowInterval = 3000; // msecs between images.
    Change that to what ever you want.

  • How to disable auto resizing for jComboBox

    Hi,
    I do not know how to prevent jComboBox to be auto resized according to its content. I put a jComboBox on JPanel with IDE.
    After that I use for loop to fill a jComboBox. JComboBox width depends on the content and jComboBox is autoresized. I tried to use set*Size before and after for loop but it did not work as I wish:
            jComboBoxT.setMaximumSize(new java.awt.Dimension(10, 20));
            jComboBoxT.setMinimumSize(new java.awt.Dimension(10, 20));
            jComboBoxT.setPreferredSize(new java.awt.Dimension(10, 20));
            jComboBoxT.setSize(new java.awt.Dimension(10, 20));Could you help me please? The problem is that I have three jComboBox in one row and after autoresizing one disappears...
    Best regards,
    Primoz

    Hi,
    I have created SSCCE. I do not like that jComboBox spread over the whole display. I would like that the jComboBox width is only about 2 inches (5cm). If you run example below you will see that jComboBox width auto resize.
    Regards,
    Primoz
    import java.awt.*;
    import javax.swing.*;
    public class PrimozComboBox extends JPanel {
        JLabel picture;
        public PrimozComboBox() {
            String[] petStrings = { "Bird", "Cat", "Dog", "Rabbit", "Pig" };
            String[] cityStrings = { "New York", "Ljubljana", "Chicago" };
            JComboBox petList = new JComboBox(petStrings);
            petList.addItem("This is very long pet name, which could spread over many lines");
            add(petList);
            JComboBox cityList = new JComboBox(cityStrings);     
            cityList.addItem("This is very long city name, which could spread over many lines");
            add(cityList);
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("ComboBoxDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            JComponent newContentPane = new PrimozComboBox();
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

Maybe you are looking for