412 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+5 more
patrickjansen says

I’m stumbling upon a strang phenomena with a new item I uploaded. Locally all works ok every time, only from server it behaves completely weird.

I have a xml mp3 player which loads xml data from file. But from server it get’s stuck not loading the xml file properly. And I’ve noticed that many times if I view xml file in browser then after that when viewing the html/swf file it DOES load properly.

About the code;

public var myXML:XML
public var mySongs:XMLList;
public var loader = new URLLoader();
public var urlreq:URLRequest;

then it should load the xml file name from variable xmlmusicdatafile into a loader

urlreq = new URLRequest(xmlmusicdatafile);
loader.load(urlreq);
loader.addEventListener(Event.COMPLETE, setinit);
loader.addEventListener(ProgressEvent.PROGRESS, showxmlloadprogress);

If I trace(loader) right after .load it does trace [object URLLoader] but neither function setinit() nor function showxmlloadprogress() is being executed. It hangs on loading the xml file.

the xml code by the way is simple
<?xml version="1.0" encoding="utf-8"?>
<musiclist>
  <musicitem>
    <itemname>life-is-creative-patrick-jansen.mp3</itemname>
    <title>life is creative</title>
    <artist>Patrick Jansen</artist>
    <album />
    <link />http://marketplace.envato.com/user/patrickjansen/portfolio
  </musicitem>
</musiclist>

If anybody has any clue or idea i’d appreciate it. Or if anybody wants to take a look at the file, email me directly (regular authors only).

I’m stuck in a black hole of knowing the xml load action has been triggered but the xml file never really started loading (showxmlloadprogress never starts tracing anything)

Any suggestions?
P.

4140 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Located in Brazil
+3 more
tsafi says

Ola P .

This should be something simple; I notice also there is some looping killing this on start base on my CPU . Your zip for download is also not showing anything. If you don’t solve it by tomorrow send me a sample of your simple player I will look at this or just the xml code trigger with your preload code .

Your file doesn’t load at all.

You have my mail if you need me.

vejo você depois .

Tsafi

755 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+5 more
djankey says

did you import

import flash.events.*;
import flash.net.* 
also try to place .load function after listeners

412 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+5 more
patrickjansen says

Yes, i have those. For those interested in testing it on server… check test file

755 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+5 more
djankey says
Yes, i have those. For those interested in testing it on server… check test file
your script is working…
412 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+5 more
patrickjansen says

yes, locally from disk it works fine. Did you try on a server?

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by