FredericCox
%Europe/Berlin %547 %2005, 14:07
Hallo,
Ik heb een scipt in As dat naar een php vars doorgeeft. De php zet dit dan in een DB. Via GET en de link manueel ingeven gaat het perfect. Maar als ik het vanuit flash zelf doe geeft dit een probleem.
AS Script:
send.onRelease = function() {
trace(_parent._parent.MatchID)
trace(_parent._parent.LeagueID)
var sendProno:LoadVars = new LoadVars();
sendProno.UserID = _global.UserID
sendProno.HomeGoals = HomeScoreProno
sendProno.AwayGoals = AwayScoreProno
sendProno.Comment = CommentProno
sendProno.MatchID = _parent._parent.MatchID
sendProno.UserID = _global.UserID
sendProno.UserName = _global.UserName
sendProno.UserTeamID = _global.UserTeamID
sendProno.UserTeamName = _global.UserTeamName
sendProno.UserLeague = _global.UserLeague
sendProno.LeagueID = _parent._parent.LeagueID
sendProno.UserExperience = _global.UserExperience
for(i=0;i<=_global.arr_leagueIDs.length;i++){
if(_global.arr_leagueIDs[i].toString() == _parent._parent.LeagueID.toString()){
sendProno.ContinentID = _global.arr_continent[i]
}
}
url = "http://www.hattricktoday.org/Demo/prono.php?actionType=addProno"
sendProno.onLoad = tez
sendProno.sendAndLoad(url,sendProno,"GET")
function tez(success){
trace(sendProno)
}
Ziet iemand het probleem?
Die trace(sendProno) output:
onLoad=%5Btype%20Function%5D&ContinentID=EUR&UserExperience=HT%2DPro&LeagueID=68&UserLeague=44&UserTeamName=Hattrick%20Today&UserTeamID=72928&UserName=WFM2002&MatchID=56499969&Comment=TestProno&AwayGoals=1&HomeGoals=2&UserID=100856
Ik heb een scipt in As dat naar een php vars doorgeeft. De php zet dit dan in een DB. Via GET en de link manueel ingeven gaat het perfect. Maar als ik het vanuit flash zelf doe geeft dit een probleem.
AS Script:
send.onRelease = function() {
trace(_parent._parent.MatchID)
trace(_parent._parent.LeagueID)
var sendProno:LoadVars = new LoadVars();
sendProno.UserID = _global.UserID
sendProno.HomeGoals = HomeScoreProno
sendProno.AwayGoals = AwayScoreProno
sendProno.Comment = CommentProno
sendProno.MatchID = _parent._parent.MatchID
sendProno.UserID = _global.UserID
sendProno.UserName = _global.UserName
sendProno.UserTeamID = _global.UserTeamID
sendProno.UserTeamName = _global.UserTeamName
sendProno.UserLeague = _global.UserLeague
sendProno.LeagueID = _parent._parent.LeagueID
sendProno.UserExperience = _global.UserExperience
for(i=0;i<=_global.arr_leagueIDs.length;i++){
if(_global.arr_leagueIDs[i].toString() == _parent._parent.LeagueID.toString()){
sendProno.ContinentID = _global.arr_continent[i]
}
}
url = "http://www.hattricktoday.org/Demo/prono.php?actionType=addProno"
sendProno.onLoad = tez
sendProno.sendAndLoad(url,sendProno,"GET")
function tez(success){
trace(sendProno)
}
Ziet iemand het probleem?
Die trace(sendProno) output:
onLoad=%5Btype%20Function%5D&ContinentID=EUR&UserExperience=HT%2DPro&LeagueID=68&UserLeague=44&UserTeamName=Hattrick%20Today&UserTeamID=72928&UserName=WFM2002&MatchID=56499969&Comment=TestProno&AwayGoals=1&HomeGoals=2&UserID=100856