Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
loadVariablesNum('test_news.asp', 0);
loadMovie(immagine1, "_root.clip");
You may think it's quick but it's not quick enough. Try this:I made a text box with the var value "immagine1" just to see when it is available, and the value appears quickly in it.
loadVariablesNum('test_news.asp', 0);
[b]trace("immagine1: " + immagine1);[/b]
loadMovie(immagine1, "_root.clip");
loadVariablesNum('test_news.asp', 0);
var intervalID = setInterval(this, "checkIfDataIsLoaded", 100);
function checkIfDataIsLoaded() {
if (immagine1) {
clearInterval(intervalID);
trace("Data loaded. immagine1: "+immagine1);
loadMovie(immagine1, "_root.clip");
}
}
<%
Dim user, pass , accesso
user= Request("username")
pass= Request("password")
Response.Write(user)
Response.Write("<BR>" & pass)
accesso = "attendo"
if (((StrComp(user, "jack") = 0 ) AND (StrComp(pass, "jack") = 0 ))) then
accesso = "yes"
else
accesso = "no"
end if
Response.Write("<BR>" & accesso)
%>
var login_lv:LoadVars = new LoadVars();
var result_lv:LoadVars = new LoadVars();
//recupero i valori dai campi TextInput
login_lv.username = username_ti.text;
login_lv.password = password_ti.text;
// e lo invio allo script asp
login_lv.sendAndLoad("[URL unfurl="true"]http://../login.asp",[/URL] result_lv, "POST");
result_lv.onLoad = function(success:Boolean) {
if (success) {
debug.text = "ok "+this.accesso;
if (result_lv.accesso == "yes") {
_root.semaforo.gotoAndStop(10);
} else {
_root.semaforo.stop();
}
} else {
debug.text = "no";
}
};
for (var s in this) {
trace(s+" = "+this[s]);
}