Hey there, thanks for checking my post. I am using the web services connector but it only works if I set the publish settings to compile for Flash Player 7 or above and I need my movie to run on version 6. The web services connector should work from version 6 and I have used it before and published for v6 but for some reason the movie will publish without an error but the web service won’t trigger. If I change the settings to publish for version 7 or 8 then it works fine. Here’s my code if it’s any help:
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#0000ff]import[/COLOR] mx.[COLOR=#0000ff]data[/COLOR].[COLOR=#000080]components[/COLOR].[COLOR=#000080]WebServiceConnector[/COLOR];
[COLOR=#000000]var[/COLOR] webServiceURL:[COLOR=#0000ff]String[/COLOR] = [COLOR=#ff0000]“http://myurl.com”[/COLOR];
[COLOR=#000000]var[/COLOR] wSCheckConnection:[COLOR=#0000ff]Object[/COLOR] = [COLOR=#000000]new[/COLOR] [COLOR=#0000ff]Object[/COLOR]COLOR=#000000[/COLOR];
wSCheckConnection.[COLOR=#000080]result[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]“CHECK CONN WS RECEIVED:”[/COLOR]+evt.[COLOR=#0000ff]target[/COLOR].[COLOR=#000080]results[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]var[/COLOR] serverStatus:[COLOR=#0000ff]String[/COLOR] = evt.[COLOR=#0000ff]target[/COLOR].[COLOR=#000080]results[/COLOR];
[COLOR=#0000ff]if[/COLOR] [COLOR=#000000]([/COLOR]serverStatus == [COLOR=#ff0000]“OK!”[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]“SERVER STATUS OK”[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR] [COLOR=#0000ff]else[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]“SERVER STATUS NOT OK!!”[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR];
[COLOR=#000000]var[/COLOR] wSCheckConn = [COLOR=#000000]new[/COLOR] WebServiceConnectorCOLOR=#000000[/COLOR];
wSCheckConn.[COLOR=#000080]addEventListener[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]“result”[/COLOR], wSCheckConnection[COLOR=#000000])[/COLOR];
wSCheckConn.[COLOR=#000080]WSDLURL[/COLOR] = webServiceURL;
wSCheckConn.[COLOR=#000080]operation[/COLOR] = [COLOR=#ff0000]“GetServerStatus”[/COLOR];
wSCheckConn.[COLOR=#000080]trigger[/COLOR]COLOR=#000000[/COLOR];
[/LEFT]
[/FONT]
Thanks for any help!
Schm