Kassiopeia
11-15-2006, 03:07 PM
Hi,
I'm using jsp to pass 2 ids to flash, and from there I use those 2 ids to select some fields in a db through a web service. He passes the right ids, but in the browser he never goes to frame 2, and he doesn't load anything from database.
var test= new LoadVars();
test.onLoad = function() {
for (vtest in this) {
data = this["id_1"]+"<;>"+this["id_2"];
}
Ws.params = [data];
Ws.trigger();
_global.resultsWs = new Array();
var WsListener:Object = new Object();
WsListener.result = function(evt:Object) {
_global.resultsWs = evt.target.results.split("<;>");
for (i=0; i<_global.resultsWs .length; i++) {
_global.props = _global.resultsWs[i].split("<,>");
}
gotoAndPlay(2);
};
Ws.addEventListener("result", WsListener);
};
test.load("http://localhost:2159/page.jsp");
stop();
Why doesn't he passes to frame 2 and doesn't load any data from the db?
I'm using jsp to pass 2 ids to flash, and from there I use those 2 ids to select some fields in a db through a web service. He passes the right ids, but in the browser he never goes to frame 2, and he doesn't load anything from database.
var test= new LoadVars();
test.onLoad = function() {
for (vtest in this) {
data = this["id_1"]+"<;>"+this["id_2"];
}
Ws.params = [data];
Ws.trigger();
_global.resultsWs = new Array();
var WsListener:Object = new Object();
WsListener.result = function(evt:Object) {
_global.resultsWs = evt.target.results.split("<;>");
for (i=0; i<_global.resultsWs .length; i++) {
_global.props = _global.resultsWs[i].split("<,>");
}
gotoAndPlay(2);
};
Ws.addEventListener("result", WsListener);
};
test.load("http://localhost:2159/page.jsp");
stop();
Why doesn't he passes to frame 2 and doesn't load any data from the db?