View Full Version : why working only offline
xelaxam
March 28th, 2008, 10:18 AM
Hi all,
My programmer created a web service, a .asmx. In fact, I would like to know why my swf only work on flash player on local. If I put it a html on local it tell me that I have to change parameter (and stop the animation, with no data loadd) and online (on the same server) it don't get any loaded data...
why
icio
March 28th, 2008, 03:02 PM
Because something is different from when the SWF is in a stand-alone flash player to when it is embedded in an HTML file.
Do you honestly expect us to be able to give you better information than that with such little to go on? Get your programmer to sort it or provide more information.
xelaxam
March 28th, 2008, 04:13 PM
Because something is different from when the SWF is in a stand-alone flash player to when it is embedded in an HTML file.
Do you honestly expect us to be able to give you better information than that with such little to go on? Get your programmer to sort it or provide more information.
I'm even surprised that you gave me a bit of answer... That's the most interessting part of my code I assume there is no problem but in case...
import mx.services.WebService;
import mx.services.PendingCall;
import mx.services.Log;
//192.168.2.4 was the ip used for testing before but we move the web service on my site.com
System.security.allowDomain("http://www.mysite.com","192.168.2.4");
var myWebServices:WebService = new WebService("http://www.mysite.com/aspnet/sdc/ws/sdc.asmx?WSDL", new Log());
var membre:PendingCall;
lang = 1
membre = myWebServices.ListeLangues();
membre = myWebServices.GetMembresParTypeParLangue(11,lang);
membre.onResult = function(result:Object){
for(i=0; i < result.length;i++){
var t = grille.attachMovie("btn","nm" +i,i+1);
t._y = (i+1)*25
t.namecie_txt.text = result[i].NomMembre;
t.Membre = result[i];
// that should apper the result in btn which is a movie clip with dynamic text (namecie_txt)
if that appear the work is almost all done
thx
joran420
March 28th, 2008, 04:38 PM
99% of the time when it work locally its because your local host is running on window which is not case sensitive (IE PNG == png / something == SoMeThing) but on a linux host(most actual hosts are running linux and linux is Case sensitive (ie png == png/ png !=PNG /png!=PnG/etc)
xelaxam
March 28th, 2008, 04:46 PM
99% of the time when it work locally its because your local host is running on window which is not case sensitive (IE PNG == png / something == SoMeThing) but on a linux host(most actual hosts are running linux and linux is Case sensitive (ie png == png/ png !=PNG /png!=PnG/etc)
I know that the server is a windows one but i'm runing on mac... so in fact it should not work loccally but on the server..
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.