Pass sendAndLoad var to _root


i have app has been getting username of user simpleconnect chat application passing in via embed params, creates security issue , pass in using sendandload.

currently username value set using: var username=_root.username, because it's passed in via php page variable in embed params. this:

<embed src="member.swf?username=<?php echo $row_getmemberdata['username']; ?>


the id in example hardcoded passed in same way i'm passing in username:


member_id = 10762;


mid = _root.member_id;

var send:loadvars = new loadvars;
var receive:loadvars = new loadvars;

send.mid = mid;


receive.onload = function(){

_root.username=this.username;
}

send.sendandload(" http://urltomyphppage.php",receive,"post");

trace(username);

stop();


that trace comes undefined. can trace within function, need make available main timeline simpleconnect can pick up....
as @ appreciated!!!

jah



More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support