Skip navigation
Currently Being Moderated

how to delineate data returned

Jul 29, 2012 6:12 AM

How can I delineate the data returned to flash using URLLoader()?

 

 

This Python script:

 

#! /usr/bin/python

 

import cgi
form = cgi.FieldStorage()
adobex = form.getvalue('inquire')

print 'Content-type: text/plain\n\n<?xml version="1.0"

encoding="utf-8"?>\n'

print '<result>'
print "adobex=%s" % adobex
print '</result>'

 

This script receives and responds to URLLoader() but I can't seem to extricate the variable I want using either of these:

 

my_return_value.text=event.target.data;

 

or

 

my_return_value.text = event.target.data.adobex;

 

The former gives me this amalgamation:

 

 

%3C%3Fxml%20version=%221%2E0%22%20encoding%3D%22utf%2D8%22%3F%3E%0A%0A %3Cresult%3E%0Aadobex%3Dsendthisstuff%0A%3C%2Fresult%3E%0A



How can the variable adobex be isolated from the returning stuff?



Thanks.





 
Replies

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