Adobe Flex

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentAdobe Flex

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old March 29th, 2013, 10:20 PM
pisi pisi is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Mar 2013
Posts: 1 pisi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 30 sec
Reputation Power: 0
One on one call back from red5

This is the code call back from red5 when a user send a message on private chat to another user. And it support to create a popup titlewindow and print out the message. But this not working, doesn't anybody know how to fix this?
Code:
			public function receivePrivateMsg(fromPseudo:String, msg:String):void {
				

				var titlewindowObj:Object;
				var preMsgObj:Object;

				
				chatBox.htmlText += "<b>"+fromPseudo+":</b> "+msg;

				msg ="<b>"+fromPseudo+": </b>"+msg+"</font>";
				



				preMsgObj = PrivateMsg(_windowList.getItem(fromPseudo));
				preMsgObj.getChildAt(0);
				if (preMsgObj) {
					PrivateMsg(preMsgObj.getChildAt(0)).printMessage(m  sg);
				} else {
					if (_windowList.getItem(fromPseudo))
					{
						PopUpManager.bringToFront(PrivateMsg(_windowList.g  etItem(fromPseudo)));
					} else {
					ReceiveWD = PrivateMsg(PopUpManager.createPopUp(_mainView, PrivateMsg,false));
					
				titlewindowObj.id = fromPseudo;
				titlewindowObj.init();	
				ReceiveWD.addChild(titlewindowObj as DisplayObject);
				_windowList.addItem(fromPseudo, ReceiveWD);	
				ReceiveWD.x = 400;
			    ReceiveWD.y = 300;
				ReceiveWD.title = "Chat with "+fromPseudo;
				if (msg) {
					PrivateMsg(preMsgObj.getChildAt(0)).printMessage(m  sg);
						}
					}
				}

} // end of function 

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentAdobe Flex > One on one call back from red5


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap