[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.2

Fade in/out, side-to-side movement and scaling of images in rotating photo gallery using Actionscript

Asked by tam423 in Adobe Flash

Tags: fade, flash, out, image

Hello,

I am trying to develop a relatively simple (to those that know actionscript!) rotating photo gallery in Flash, whereby images are read in dynamically via an XML file. I have a movieclip created called "image" and an action layer at frame 1, that contains all of the programming for photo transitions, etc. I have the XML part figured out; I just can't seem to get the images to do what I need them to do. There are 6 images (image1, image2, etc.) and they need to fade in and out, as well as move from side to side and/or scale out. As it stands now, I have each image fading in, then that image disappears abruptly and the next image fades in, etc. You can see what it looks like at:

http://65.110.95.2/thetroutfly/photos3.html

What I need it to look like is something like how the picture rotation is done on the home page of:

http://taylorcreek.com (except that I need the rotation to be an endless loop, rather than stopping after the last image was loaded)

or the home page of:

http://performanceanglers.com

I basically just need to know how to move an image from left to right or up and down as it fades in, scale it out, while fading it out, as the next image fades in (so they overlap during the fade in/fade out process), with movement, or some variation, therein. I believe that the left/right movement involves  _x and _y coding, and the scaling would use _height and _width, but I just can't figure out how to indicate this in the actionscript, as well as getting fading in/out to occur. Nothing I try seems to work properly.

My complete actionscript currently is:

delay = 5000;
// -----------------------
function loadXML(loaded) {
      if (loaded) {
            xmlNode = this.firstChild;
            image = [];
            description = [];
            total = xmlNode.childNodes.length;
            for (i=0; i<total; i++) {
                  image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
                  description[i] = xmlNode.childNodes[i].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() {
            if (picture._alpha<100) {
                  picture._alpha += 2;
            }
      }

function nextImage() {
      if (p<(total-1)) {
            p++;
            if (loaded == filesize) {
                  picture._alpha = 0;
                  picture.loadMovie(image[p], 1);
                  slideshow();
            }
      }
}

function firstImage() {
      if (loaded == filesize) {
            picture._alpha = 0;
            picture.loadMovie(image[0], 1);
            slideshow();
      }
}

function slideshow() {
      myInterval = setInterval(pause_slideshow, delay);
      function pause_slideshow() {
            clearInterval(myInterval);
            if (p == (total-1)) {
                  p = 0;
                  firstImage();
            } else {
                  nextImage();
            }
      }
}

If someone could help with how to incorporate the movement, scaling and fading in/out process, that would be really great. Thanks so much!
 
Related Solutions
Keywords: Fade in/out, side-to-side moveme…
 
Loading Advertisement...
 
[+][-]05/07/07 05:50 PM, ID: 19047054Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Adobe Flash
Tags: fade, flash, out, image
Sign Up Now!
Solution Provided By: Blixtsystems
Participating Experts: 3
Solution Grade: A
 
[+][-]05/05/07 07:28 AM, ID: 19036467Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/05/07 09:24 AM, ID: 19036738Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/06/07 02:14 AM, ID: 19038505Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/06/07 05:06 AM, ID: 19038694Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/06/07 01:47 PM, ID: 19039952Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/06/07 02:15 PM, ID: 19040010Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/06/07 03:20 PM, ID: 19040177Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/06/07 03:26 PM, ID: 19040191Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/06/07 04:00 PM, ID: 19040271Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/07/07 02:41 AM, ID: 19041755Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/07/07 10:36 AM, ID: 19044377Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/07/07 11:49 AM, ID: 19044953Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/07/07 05:03 PM, ID: 19046870Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/08/07 07:48 AM, ID: 19050242Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92