Hi Guys Iam trying to send an alert message that only shows up on the recipients end As im trying to get acceptance for accepting a web cam request. Im totally new to this and not sure is this is possible or if there is a more correct way to request a web cam chat any help would be greatly appreciated. Sample code below.
private function requestCamera():void
{
if (dg.selectedItem)
{
var message:AsyncMessage = new AsyncMessage();
message.body = {userId: userId.text, recipientId: dg.selectedItem.userId, text: Alert.show("Request Cam","Alert",Alert.OK | Alert.CANCEL, this, alertListener,null,Alert.OK)};
producer.subtopic = dg.selectedItem.userId;
producer.send(message);
}
}
private function alertListener(eventObj:CloseEvent):void
{
if (eventObj.detail==Alert.OK)
{
startCamera();
}
}