Advertisement

07.28.2008 at 02:30PM PDT, ID: 23602271
[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!

8.6

Flash List Component & XML

Asked by frankybones in Macromedia Flash, ActionScript

Tags:

Hey All,

First let me start by saying I am new to the list component.  What I am trying to do is to use a List component in Flash to create a "menu" that is driven by XML data.  I want to use the menu to load image files into a blank instance and then have that instance look to see if there are more than one nodes available for an image.  If there is more than one then have it display thumbnails of each extra node.  I have an idea on how to load the thumbnails, but not real sure on how to get the empty instance to know if there are more nodes referring to an image.  Currently I have a list component on the screen, an empty movie clip, and this is what I have so far code (I know, I know pretty basic):

Flash -
import mx.utils.Delegate;
import mx.controls.List;
//**********************************//
var listData:Array = new Array();
var myList_xml:XML;
var myList_ls:List;
//**********************************//
_global.style.setStyle("color", 0x333333);
_global.style.setStyle("themeColor", "0xBB6E7F");
_global.style.setStyle("fontSize", 12);
_global.style.setStyle("fontFamily", "Verdana");
_global.style.setStyle("embedFonts", "false");
myList_ls.rowHeight = 16;
myList_ls.rowCount = 20;
songList_ln.selectable = false;
myList_ls.multipleSelection = false;
myList_ls.setStyle("alternatingRowColors", [0xFFFFFF, 0xDDDDFF]);
//**********************************//
myList_ls.addEventListener("change", Delegate.create(this, doPlay));
//**********************************//
function doPlay(eventSrc:Object):Void {
      _root.dZ.loadMovie(eventSrc.target.selectedItem.data, true);
}
//**********************************//
myList_xml = new XML();
myList_xml.ignoreWhite = true;
myList_xml.onLoad = Delegate.create(this, myListLoaded);
//**********************************//
function myListLoaded():Void {
      var mainNode:XMLNode = this.myList_xml.firstChild;
      this.myList_ls.dataProvider = listData;
      var resourceCount:Number = mainNode.childNodes.length;
      for (var i = 0; i<resourceCount; i++) {
            listData.addItem({label:i+1+". "+mainNode.childNodes[i].attributes.title, data:mainNode.childNodes[i].attributes.url});
      }
      //myList_ls.selectedIndex = i;
      myList_ls.dispatchEvent({type:"change", target:myList_ls});
}
myList_xml.load("helpXML/stimForms.xml");

In XML -
<?xml version="1.0" encoding="UTF-8"?>

<list>
<item url="StimProcessMaps/test/DEC07_PM-GL-HAL-STIM-100_Page_1.png", subItem title="Stim 100"/>
</list>

I think the XML should look something like this:

<?xml version="1.0" encoding="UTF-8"?>

<list>
<Item title="Stim 100"
<subItem url=myImages/myImageFile1.png" />
<subItem url=myImages/myImageFile2.png" />
<subItem url=myImages/myImageFile3.png" />
</item>
</list>

Any information will be greatly appreciated.

-Frankie
Start Free Trial
[+][-]07.29.2008 at 07:46AM PDT, ID: 22111958

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.

 
[+][-]07.31.2008 at 08:39AM PDT, ID: 22130714

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.

 
[+][-]08.04.2008 at 07:54AM PDT, ID: 22152938

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.

 
[+][-]08.04.2008 at 07:58AM PDT, ID: 22152974

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.

 
[+][-]08.04.2008 at 08:01AM PDT, ID: 22153000

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.

 
[+][-]08.04.2008 at 08:01AM PDT, ID: 22153002

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.

 
[+][-]08.04.2008 at 11:51PM PDT, ID: 22158638

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.

 
[+][-]08.05.2008 at 06:25AM PDT, ID: 22160611

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.

 
[+][-]08.05.2008 at 06:45AM PDT, ID: 22160766

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.

 
[+][-]08.05.2008 at 06:50AM PDT, ID: 22160829

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.

 
[+][-]08.05.2008 at 06:53AM PDT, ID: 22160860

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.

 
[+][-]08.05.2008 at 07:13AM PDT, ID: 22161059

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.

 
[+][-]08.05.2008 at 07:50AM PDT, ID: 22161458

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

Zones: Macromedia Flash, ActionScript
Tags: ActionScript and XML
Sign Up Now!
Solution Provided By: blue-genie
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.06.2008 at 03:53PM PDT, ID: 22176037

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.

 
[+][-]08.06.2008 at 03:57PM PDT, ID: 22176079

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.

 
[+][-]08.06.2008 at 11:41PM PDT, ID: 22178449

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.

 
[+][-]08.07.2008 at 06:28AM PDT, ID: 22180690

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.

 
[+][-]08.07.2008 at 08:03AM PDT, ID: 22181632

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.

 
[+][-]08.07.2008 at 08:13AM PDT, ID: 22181748

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.

 
[+][-]08.07.2008 at 02:48PM PDT, ID: 22185780

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.

 
[+][-]08.07.2008 at 10:56PM PDT, ID: 22187714

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.

 
[+][-]08.08.2008 at 03:30AM PDT, ID: 22188689

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.

 
[+][-]08.08.2008 at 08:22AM PDT, ID: 22190737

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...
20081112-EE-VQP-44 / EE_QW_2_20070628