This content has been marked as final. Show 2 replies
Kevin Carr wrote:
> The client wants the Director exe to pass xml to a cold fusion page
> they already have on their server.
> I was told to pass it to a link that looks like this:
> Here is the code I'm using:
> lXML ="<?xml version=""E&"1.0""E&"
> postNetText("http//www.domain.com/page.cfc?wsdl", lXML)
> What am I missing?
I think you need to read the help for postNetText again, in particular note
the part that says
"If a program uses the alternate forma string instead of property listthe
string postText is sent to the server as an HTTP POST request using MIME
type "text/plain." This will be convenient for some applications, but is not
compatible with HTML forms posting."
I've been playing around with an swf embedded in Director MX 2004
Here is the code I'm using:
var login_str:String = xmlString;
var xmlinfo:XML = new XML(login_str);
xmlinfo.contentType = "text/xml";
loadVariablesNum("http//www.domain.com/page.cfc", 0, "POST");
This works when I'm testing it in Flash, but when I save it out as an swf
and import it into Director it doesn't.
The cfc needs both the "codeOne" variable and the "xmlinfo" xml for it to
I've tried different combinations in both Director and Flash, but Flash's
loadVariablesNum seems to be the only code that works and it doesn't work
inside a Director exe.
To get a Flash 8 swf to work I've had to updated Director to 10.1.1,
unfortunatly I just updated so now I'm afraid lingo I tested yesterday that
didn't work, might work today.
What's Director's lingo that matches the working Flash actionscript?
...Or how do I code the swf so it will work in Director?