I'm trying to show a popup to everyone in the zone, however whenever I use the smartfox.onObjectReceived function, it only shows the popup to the people in the same room.
How can I make a popup show for everyone in the same zone, and not just the same room?
I've noticed that the admin message popup is a function.
Code: Select all
smartfox.onAdminMessage = function(msg:String, user:User) {
_root.box._visible = true;
_root.box.text = msg;
};
would there be a possible way to make my own such as
Code: Select all
smartfox.onPublicPopup = function (obj){
if(obj == "test"){
_root.box._visible = true;
_root.box.text = "All users have received this message in this zone.";
}
}
Thanks, Aiden.