Advertisement

09.03.2007 at 03:52AM PDT, ID: 22803458
[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!

7.0

How do I loadClip from xml

Asked by SimonAdrian in Macromedia Flash

Tags: , ,

Im trying to get implement the transitionsmanager in the actionscript below, but can only get a few of them to work through simple functions such as
function zoomMovie(){
mx.transitions.TransitionManager.start(temp, {type:mx.transitions.Zoom, direction:mx.transitions.Transition.IN, duration:1, easing:mx.transitions.easing.Bounce.easeOut});
}
I can also make the fade- and rotate-transitions work, but the rest of the transitions seems totally unreachable.


var XMLFile:XML;
XMLFile = new XML();
XMLFile.ignoreWhite = true;
XMLFile.load("bugs5.xml");
XMLFile.onLoad = function(success) {
               i=0;
               if (success) {
                     while(i<this.firstChild.childNodes.length) {
                          MC = this.firstChild.childNodes[i].attributes.type;
                          Level = this.firstChild.childNodes[i].attributes.level;
                          xPos = this.firstChild.childNodes[i].attributes.xPosition;
                          yPos = this.firstChild.childNodes[i].attributes.yPosition;
                                      xPer = this.firstChild.childNodes[i].attributes.xPercent;
                          yPer = this.firstChild.childNodes[i].attributes.yPercent;
                                      transNum = this.firstChild.childNodes[i].attributes.transNo;
                                      myText = this.childNodes[1].childNodes[0].firstChild.nodeValue;
                                  Level = Number(Level);
                                  xPos = Number(xPos);
                                  yPos = Number(yPos);
                                                  xPer = Number(xPer);
                                                  yPer = Number(yPer);
                                                  transNum = Number(transNum);
                                                  containerMc = "container_mc"+i;
                                  _root.createEmptyMovieClip(containerMc,Level);
                                  temp = eval("_root."+containerMc);
                                  temp._x = xPos;
                                  temp._y = yPos;
                                                  temp._xscale = xPer;
                                                  temp._yscale = yPer;
                                  temp.loadMovie(MC);
                                                  if(transNum == 1){
                                                        zoomMovie();
                                                  }
                                                  if(transNum == 2){
                                                        rotateMovie();
                                                  }
                                                  if(transNum == 3){
                                                        fadeMovie();
                                                  }
                                                  if(transNum == 4){
                                                        wipeMovie();
                                                  }
                                                  if(transNum == 5){
                                                        flyMovie();
                                                  }
                                                  if(transNum == 6){
                                                        blindsMovie();
                                                  }
                                                  i++;
                              }
               }
          }
function zoomMovie(){
      mx.transitions.TransitionManager.start(temp, {type:mx.transitions.Zoom, direction:mx.transitions.Transition.IN, duration:4, easing:mx.transitions.easing.Bounce.easeOut});
}
function fadeMovie(){
      mx.transitions.TransitionManager.start(temp, {type:mx.transitions.Fade, direction:mx.transitions.Transition.IN, duration:4, easing:mx.transitions.easing.Bounce.easeOut});
}
function rotateMovie(){
      mx.transitions.TransitionManager.start(temp, {type:mx.transitions.Rotate, direction:mx.transitions.Transition.IN, duration:4});
}
function wipeMovie(){
      mx.transitions.TransitionManager.start(temp, {type:mx.transitions.Wipe, direction:mx.transitions.Transition.IN, duration:4});
}
function flyMovie(){
      mx.transitions.TransitionManager.start(temp, {type:mx.transitions.Fly, direction:mx.transitions.Transition.IN, easing:Elastic.easeInOut, startPoint:6});
}
function blindsMovie(){
      mx.transitions.TransitionManager.start(temp, {type:mx.transitions.Blinds, direction:mx.transitions.Transition.IN, duration:2, easing:mx.transitions.easing.None.easeNone, numStrips:10, dimension:9});
}

Ive tried to place setIntervals in case that would be a problem, but that doesnt seem to help.
Maybe I should use the MovieClipLoader.loadClip-method instead, but there Im a little lost
Start Free Trial
[+][-]09.04.2007 at 06:29AM PDT, ID: 19824957

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.04.2007 at 09:35AM PDT, ID: 19826400

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 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2007 at 12:07AM PDT, ID: 19830399

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2007 at 01:54AM PDT, ID: 19830755

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 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2007 at 04:55AM PDT, ID: 19831414

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2007 at 05:55AM PDT, ID: 19831785

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 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.05.2007 at 07:15AM PDT, ID: 19832519

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.05.2007 at 08:46AM PDT, ID: 19833386

View this solution now by starting your 14-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: Macromedia Flash
Tags: actionscript, loadclip, xml
Sign Up Now!
Solution Provided By: SimonAdrian
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628