Skip navigation
Currently Being Moderated

Load XML in intranet ? urgent help please...

Jun 21, 2012 7:08 PM

Tags: #xml #load #intranet #cayin

Dear friends, I need urgent help: I have a CAYIN screen (which lets me display evetns, etc) and gives me the option of loading/displaying a FLASH (SWF) file, well, I need this SWF to load some XML data ("texto.xml") but  seems that when the CAYIN program which executes flash, does not allow the SWF to find the XML in the same folder...

 

Then I tried many ways to load the XML file with no success till now. Some tries are :

 

obj_xml.load("\\192.168.0.100\media\texto.xml")

obj_xml.load("\media\texto.xml")

obj_xml.load("texto.xml")

obj_xml.load("../media/texto.xml")

obj_xml.load("\\media\texto.xml")

obj_xml.load("file:\\192.168.0.100\media\texto.xml")

obj_xml.load("..\\192.168.0.100\media\texto.xml")

 

I guess I am writting something wrong or forgetting something. Would anyone please help me ? because these files are in an internal server "192.168.0.100" (intranet).

 

 

Urgent help please, thanks in advance,

 
Replies
  • kglad
    62,117 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 21, 2012 9:13 PM   in reply to Sw Jiten

    if the swf is in a directory with subdirectory media which contains texto.xml, use:

     

    obj_xml.load("media/texto.xml")

     
    |
    Mark as:
  • kglad
    62,117 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 22, 2012 6:01 AM   in reply to Sw Jiten

    the backslash is an escape character in actionscript.  you'll need to use \\ to communicate a single backslash to the os.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points