Google Answers Logo
View Question
 
Q: Constructing a class in Flash MX 04 that gets data from an xml file ( No Answer,   0 Comments )
Question  
Subject: Constructing a class in Flash MX 04 that gets data from an xml file
Category: Computers > Programming
Asked by: djsodom-ga
List Price: $15.00
Posted: 07 Dec 2004 04:24 PST
Expires: 12 Dec 2004 10:06 PST
Question ID: 439280
I am building an application in Flash MX 04 where I would like to
create text boxes dynamically using action script. I can create them
dynamically with code placed on the timeline of the desired slide.
However, I will have many slides that need to create text boxes
dynamically .... so I want to reuse my code. I figured reusing my code
meant creating a class.

I created a class using the working code from a slide. When called
using the class, the XML file does not appear to be loading. I have
tried many different tweaks, but nothing. The best explaination of
what could be happening is here:
http://www.bit-101.com/blog/archives/000023.html

At the above link, he describes the potential problem thusly: "One of
the most confusing issues with AS 2.0 classes is when you declare some
object as a member of the class and then you need to assign a callback
or listener for that object. Perhaps the most common example is where
your class needs to load some XML."

My sample swf can be found here:
http://music.salesrank.info/flash/classXML.html

The fla can be downloaded here:
http://music.salesrank.info/flash/classXML.zip

My question is basically what am I doing wrong and, most importantly,
what how can I fix it? Ideally, the answer would modify my fla file so
it works with a little explaination as to why.

Thanks,

Steve

Clarification of Question by djsodom-ga on 07 Dec 2004 17:05 PST
I accidently left out an AS file (XMLmember.as). It is now included in
the zip file.

Steve
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy