XML shows in Flash, but doesn't show on server?

Hello.
I have a Flash website with 5 sections (Featured Work, News, About Me, Services, Contact). All the sections works fine, both in Flash and on the server, if the content isn't loaded from XML. But in the News section i use XML for loading the news.
If i test my movie in flash, the whole site works fine, and the XML News works perfect. But if i test the movie in a virtual server (like MAMP) or if i test it on my own server, the news section doesn't show.
I can't seem to find the problem?
Jonas Philippon

I'm sorry to sound so stupid, but this is new to me.
I tried pasting the trace(MT2.newsNum,Number(MT2.newsNum)) in both out and in the for loop, and i still get the same trace "5 5"
I'm not really sure what to do, so i'll just try explaining my whole site to you:
I have my "main.fla" with three layers with actionsscript:
- Navigation Actions
     - Has a for loop that creates 6 textfields with clickevents and SWFAddress that changes between 6 frames in a MovieClip (SubNavBar).
- Positioning Actions
     - Positions the textfield buttons, the navigation bar, and the sub navigation bar in the SubNavBar movieclip, and places my dynamic background.
- XML
     - I can't explain the XML layer, so i have attached it.
The SubNavBar MovieClip has 6 frames. The 1 is empty, so the site is clear at first. In frame 2, 4 and 6 there is a for loop like in the navigation layer, so these layers have a sub navigation bar, that once again changes between some frames in a movieclip.
In frame 3 their is the news code i pasted earlier, and in frame 5 there isn't anything yes, but it should just be graphics.
XML LAYER:
// XML LISTS //
// ========= //
var newsTitle:XMLList;
var newsInfo:XMLList;
var newsContent:XMLList;
var newsTitleArray:Array;
var newsInfoArray:Array;
var newsContentArray:Array;
// NUMBER OF ITEMS
var newsNum:Number;
// LOAD XML //
// ======== //
var xml:XMLLoader = new XMLLoader(this,"data.xml");
// function called when XML is loaded
function getXML(xmlData:XML):void {
// STORING RELEVANT DATA INTO LISTS FOR LATER ACCESS //
newsTitle = xmlData.news.article.title;
newsInfo = xmlData.news.article.info;
newsContent = xmlData.news.article.content;
newsNum = newsTitle.length();
    newsTitleArray = xmlData.news.article.title.text().toXMLString().split("\n") ;
newsTitleArray.reverse();
newsInfoArray = xmlData.news.article.info.text().toXMLString().split("\n") ;
newsInfoArray.reverse();
newsContentArray = xmlData.news.article.content.text().toXMLString().split("\n") ;
newsContentArray.reverse();
In the folder i have uploaded to my server, i have following:
- AC_RunActiveContent.js - Background.png (main background) - com (folder) (GreenSock) - data.xml - index.html - js (folder) (SWFAddress) - mailer.php (Contact Form) - main.fla - main.swf - media (folder) (Pictures For Background) - Mosaic.swf (Mosaic Overlay For Background) - P-Logo.png - preview.swf (Background) - SWFAddress.as - SWFAddressEvent.as - textLayout_1.0.0.595.swz - xml (folder) (xml config for background) (SEPERATE FLA FILE (NOT A PROBLEM) - XMLLoader.as
The XMLLoader.as is the file that loads my data.xml. The data.xml has the text to my news section.
XMLLoader.as:
package {
import flash.events.IOErrorEvent;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.Event;
import flash.display.Sprite;
import flash.display.MovieClip;
public class XMLLoader extends Sprite {
private var loader:URLLoader = new URLLoader();
public var loadedXML:XML;
// accept parent path to xml
public function XMLLoader(mT:MovieClip, path:String):void {
// LOADING XML //
// =========== //
loader.load(new URLRequest(path));
loader.addEventListener(Event.COMPLETE, onComplete, false, 0, true);
loader.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
function onComplete(evt:Event):void {
loadedXML = new XML(evt.target.data);
loader.removeEventListener(Event.COMPLETE, onComplete);
loader.removeEventListener(IOErrorEvent.IO_ERROR, onIOError);
// Run getXML function from where this clas was instantiated
mT.getXML(loadedXML);
function onIOError(evt:IOErrorEvent):void {
trace("Error: " + evt.text);
I hope this helps you? I hope you now can give me more specific help?

Similar Messages

  • When i copy songs with home sharing it shows it copying but doesn't show up in the library

    When I copy songs with home sharing it shows it copying but doesn't show up in the library. What should I do ?

    Hi adtsalmon,
    You can only watch the movie on the device you rented it on. Here's a snippet from the Apple Support site (italics mine):
    If you download a rented movie on your computer: You can transfer it to a device such as your Apple TV (1st generation), iPhone, iPad, or iPod if it’s a standard-definition film (movies in HD can only be watched on your computer, iPad, iPhone 4 or later, iPod touch (4th generation or later), or Apple TV). Once you move the movie from your computer to a device, the movie will disappear from your computer's iTunes library. You can move the movie between devices as many times as you wish during the rental period, but the movie can only exist on one device at a time.
    If you download a rented movie on your iPhone 4 or later, iPad, iPod touch (4th generation or later), or Apple TV: It is not transferable to any other device or computer.
    Here's the link to the Movie Rentals FAQs site FYI:
    http://support.apple.com/kb/HT1657
    Hope this helps!
    Cheers,
    GB

  • Downloads window is blank, shows file name but doesn't show up speed, percentage of download etc.

    When I start downloading something, the Downloads window opens normally & also shows what is being downloaded. But, it doesn't show downloading percentage, downloading speed. (all things which usually show up below the name of file). But when minimized, I can see percentage.

    Worked for me too. options->options->privacy->remember download history

  • Page shows in iweb, shows on idisk, but doesn't show on page?

    I just spent an hour talking with mobile me folks then about 30 minutes talking to a nice fellow with apple care to help with iweb.
    I have a movies tab on my web page where I have a lot of family movies. When I create these pages, I'll have a movie highlighted in the iweb app, click "add page" at the bottom, select movie, and it shows up in the drop down list of movies. (The guy on the call said he didn't know how to access drop down menus as he didn't have them on his version. That was weird to me.) This movie will publish, show as blue, will show in idisk, I can "visit" using idisk and it looks like my web page, but it will not show to other users if they go straight to my website (or me either).
    But, then I tried dragging the actual movie to the "movies" tab inside of the iweb app instead of first creating a page...this time it published.
    I tried some test pages with my old way of making movies (since this was post snow leopard I thought it may be related), and that worked. But if I took my blank page and added this one movie (a movie i renamed to see if that was it), it "hid" the page to the user even though it was on idisk. The only way to publish it is to drag the file to the "movies" view, if that makes sense.
    Just wondering if anyone knew about why this would happen. Also sharing my experience to help others avoid it if it comes up.

    never understood what happened but the pages eventually updated correctly

  • HT201269 My iphone5 s show in Computer but doesn't show in Itune. plz help

    My Iphone 5s shows in my computer but it doen't show in itune, there isn't summary or more option in my itunes though it is 11.1.1 Version
    please help me

    Hello vasangh014,
    I understand that your iPhone 5s is not recognized by iTunes. The following article may help to resolve your issue:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    Thanks,
    Matt M.

  • Showing FinalCut purchased but doesn't show in downloads, why?

    First time downloading to an imac.  Saw FinalCut downloading but then it's gone.  Doesn't it go to the Downloads stack?  What happened?  I'm getting confused between iTunes store and App Store.  Did something go wrong.  I've been charged according to purchases. Obviously I'm new to the mac world.  Have only purchased through and iPad before this. I cannot determine if I did not download right or if I just can't find the app.

    Look in your Applications folder. (The MAS downloads apps to the Applications folder.) You should find a Final Cut Pro X installer app. Run the installer to install Final Cut Pro X on your Mac.

  • Flash Player Doesn't Show Or Work

    The Flash Player doesn't show or work in either MySpace or
    YouTube. I've tried uninstalling and reinstalling it, but no use.
    It worked fine the other day. How can this be resolved?

    Use the offline installers from helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html#main-pars _header until the issue is fixed.

  • I can't watch movies, it is asking for latest adobe flash. After updating adobe flash still doesn't show movies.

    I can't watch movies , asking for adobe flash. After installing the latest adobe flash still doesn't show movies.

    The other day, there was someone here who figured after quite a while that he had plug-ins disabled in Safari. He could have installed Flash a hundred times but never get it to work.
    Of course, you do have plug-ins enabled. Yes? Quick double-check? Safari -> Preferences -> Security tab -> checkmark at "Enable plug-ins"...

  • After apple wiped my hard drive, my computer no longer recognizes my iphone 4.  It will charge, but doesn't show up in my sidebar or in itunes.  My computer says there are no software updates available.  I'm running OSX 10.5.8 and itunes is 10.3.1.

    After apple wiped my hard drive, my computer no longer recognizes my iphone 4.  It will charge, but doesn't show up in my sidebar or in itunes.  My computer says there are no software updates available.  I'm running OSX 10.5.8 and itunes is 10.3.1.

    After apple wiped my hard drive, my computer no longer recognizes my iphone 4.  It will charge, but doesn't show up in my sidebar or in itunes.  My computer says there are no software updates available.  I'm running OSX 10.5.8 and itunes is 10.3.1.

  • My caller id is not working on iphone 5 - it beeps but doesn't show who is calling or let me click over

    I have recently had my iphone 5 not show who is calling on call waiting.  The phone beeps but doesn't show the number / per son that is calling, won't let me click over and won't show who it was in my call history.  Help very annoying.

    1st go into your settings then tap phone to see if call waiting is turned on or off. If call waiting isOFF turn it ON. You can use also Apple article HT 4515. I would contact my wireless carrier reguarding the caller id not showing up and also with help reguarding your call waiting as well
    Hope this helps

  • I download an app. But doesn't show up on my homepage. I go to download it again from the cloud and all I get is a message saying "you already download this application so you will be able to redownload the app free of charge" I press ok.Still don't have

    I download an app. But doesn't show up on my homepage. I go to download it again from the cloud and all I get is a message saying "you already download this application so you will be able to redownload the app free of charge" I press ok. Still don't have it

    What is the app? What "homepage" do you mean?

  • TS4057 I did this and now my videos are not working. They show the pictures aren't there on some and on others it shows they are there, but doesn't show them in the player. When I try to Share anything it just says Waiting for Processing for hours. What d

    I did this and now my videos are not working. They show the pictures aren't there on some and on others it shows they are there, but doesn't show them in the player. When I try to Share anything it just says Waiting for Processing for hours. What do I do?
    I also got Motion and can't figure out how to use it with Final Cut Pro X. Any help woud be great. Thanks

    I have no idea what may have caused your MacBook to stop working, but from your description it kind of sounds like it may have started before you ran Software Update and installed the new Apps. Just the general slow feeling and bugginess is what tips me off. You said that you weren't sure if you had closed all open windows, that doesn't matter if the computer restarts itself. It automatically closes all other open applications when restarting.
    As to your data being retrievable, if when you take it in they do a fresh install of the OS, then no, it will not be unless you want to pay several thousand dollars to a software retrieval company.
    I am glad to hear that you have taken into the Apple Store to get it fixed, and that you have all of your purchased music backed up to your iPod. You should be able to just transfer it all back to iTunes once you get your computer back should it be necessary.
    As a side note, the proper place for this topic would probably in the MacBook forums, not iTunes since there is no evidence that iTunes started the issue.

  • When I try to access my emails the screen opens but doesn't show any emails

    When I try to access my emails the screen opens but doesn't show any emails

    Tap to open a new tab and Private will be at the bottom left of the page. If it is active, tap to turn it off.

  • While playing games like NFS and CounterStrike my macbook pro it does connects to the hotspot by any device either a Windows laptop, but doesn't show or connect to the server (LAN) created by windows player.Or neither connects to the server that i created

    While playing games like NFS and CounterStrike my macbook pro it does connects to the hotspot by any device either a Windows laptop, but doesn't show or connect to the server (LAN) created by windows player. Or, any other devices doesn't  connects to the LAN server that i created in the Game.     
    Could any one help me please.

    Please do not post more than about 50 lines of console logs or output from an Application crash at a time. No one can make it through those.
    If you had a kernel panic, those are Full of good information and should be posted in their entirety. They are stored, and can be read back and posted using this article:
    How to log a kernel panic

  • SSI shows up correctly in DW but doesn't show up in browser.

    I am trying to update the company website here at work using Dreamweaver 4 and the copyright information at the bottom of the page is in an ssi file. The file shows up fine in Dreamweaver but doesn't show up at all in either of my browers (Safari/Firefox). What am I doing wrong?  

    The file shows up fine in Dreamweaver but doesn't show up at all in either of my browers (Safari/Firefox). What am I doing wrong?  
    SSIs are parsed by the server.  You're probably not doing anything wrong, you simply need to upload the files to your remote server and look at the pages on-line.
    If you want to preview local files, you'll need to install a local testing server on your machine. Get one of the following servers for your OS and follow the installation instructions.
    WAMP for Windows
    http://www.wampserver.com/en/
    XAMPP for Windows
    http://www.apachefriends.org/en/xampp-windows.html
    XAMPP for Mac
    http://www.apachefriends.org/en/xampp-macosx.html
    MAMP for Mac
    http://www.mamp.info/en/downloads/index.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

Maybe you are looking for

  • Address Book and Skype

    I added a telephone number of a friend in Address Book (didn't add the email). Now when I open Skype, that phone number appears there on the list of friends (but one of the options, if I open up the choices, is 'Add to list' which means it is not on

  • Problems with Oracle XE on XP - Please help!

    Hi, I have oracle XE installed on my machine and it was working absolutely fine for the last year or so. Today there was an trojan intrusion which caused some issues with my windows xp OS like hiding some files, desktop etc. After everything was clea

  • How to sort options by text if option value is int & option text is string?

    Hi All, I've an application in which on a jsp page has two html:select (listBox). Further 3 buttons are provided namely ADD,REMOVE and SAVE. On click of ADD the selected option from listBox 1 is transferred from listBox 1 to listBox 2. On Click of RE

  • Webdynpro Application is Expiring

    HI All, I have a Web Dynpro  Application which uses another DC, next button on first DC calls a view of the other DC, this was running fine initially, now i have defined GP Interfaces so as to make it a callable object, from within GP this works fine

  • My IP 4500 is printing lighter than the screen image.

    My IP 4500 is printing lighter than the screen image. I've run the cleaning tool and the nozzle check is OK the colour of grass is too yellow and the picture looks washed out. I've used this printer for some years and have had no problems but now I'm