473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

XML content wont display in call in SWF of a main movie

elamberdor
A main movie on the root directory, calls in swf's on button press from "flash" folder, each contain one XML field that updates for each. XML located in flash folder.

The XML displays fine when it loads into a flash movie on the page, however, when that movie is called into another movie - the XML content wont display.

Any ideas?

not sure if:
Expand|Select|Wrap|Line Numbers
  1. this._lockroot = true;
will help, but i put it in my swfs anyways.

Here is the XML similar in each swf :
Expand|Select|Wrap|Line Numbers
  1. function loadXML(loaded) {
  2.     if (loaded) {
  3.         _root.course = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
  4.         desc_txt.text = _root.course;
  5.     } else {
  6.         content = "file not loaded!";
  7.     }
  8. }
  9. xmlData = new XML();
  10. xmlData.ignoreWhite = true;
  11. xmlData.onLoad = loadXML;
  12. xmlData.load("myxmlfile.xml");
myxmlfile.xml in in the flash folder with the swf's, not on the main. Absolute links may not be possible in my instance,
I know
other people are having problems with this,

Any ideas or steps in the right direction would be great!
Thank guys!
=)
Apr 1 '08 #1
2 2604
As the XML is working, I thought it might be a path problem so I've put it in the flash forum.

Cheers!
Apr 1 '08 #2
WORKING!

(yes i know i fix my own problems within 5 mins - sorry!)


for reference:
it was a path problem, not an XML problem, and I was uploading on our local devel server, not live, so it wasn't working!

I have mainmovie.swf on root directory, and submovie.swf and xmlfile.xml in a subfolder, called flash.

tested in flash - the path will work as: xmlData.load("xmlfile.xml");
but not live.

To make it work you need to refrence the xml as if you are making a button sitting on the mainmovie.swf, and go looking in the flash folder:

Code:

xmlData.load("flash/xmlfile.xml");

upload, test your main movie, then it works! =D
Apr 1 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Bozo Schmozo | last post by:
Greetings! I've searched groups.google.com already to see if I can determine if using PHP/MySQL (if needed) for a web site I wish to develop. As the subject indicated, it will be a content...
1
by: Greg Scharlemann | last post by:
I have set up Apache Axis with a Resin server. Everything seems to be set up correctly, axis will validate if I display the http://axis.scharlemann.com/axis/happyaxis.jsp file. However when I...
22
by: Matt | last post by:
When browsing a web page a user has the ability to highlight content on a page (by holding down the left mouse button and dragging the mouse over the desired content). Is there a way to disable...
1
by: jparker | last post by:
I have been working with ASP classic on this current project im involved in. Well the problem im facing now is there is a page where a flash movie should play in a particular section on the page...
1
by: Anil | last post by:
Hello, In line 8 below, I am trying to set the content of the iframe, but receive an error. Movie 2 plays normally. Movie 1 fails. This example is from the QuickTime docs. (example...
2
by: whisher | last post by:
Hi. I'm taking my first steps with xml and SimpleXML functions. xml.php (It could be made dynamically with a mysql result I post this snippet for example ) PHP Code xml.php: <?php $xmlstr...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
3
by: synergy_711 | last post by:
I feel like this should be fairly easy but I have been struggling with this for sometime. I have not been able to find someone who's had the same problem as mine yet. ...
9
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.