SHARE
TWEET

Untitled

a guest Jun 19th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //----------------------------------------------------------
  2. // Handles a public message
  3. //----------------------------------------------------------
  4. smartfox.onPublicMessage = function(msg:String, user:User)
  5. {  
  6.         var mc:MovieClip = avatarMC["avatar_" + user.getId()]
  7.        
  8.         chat_txt.htmlText += "<b>[ " + user.getName() + " ]:</b> " + msg
  9.         main_sb.setScrollPosition(chat_txt.maxscroll)
  10.        
  11.         if (msg.length > 50)
  12.             msg = msg.substring(0,48) + "..."
  13.            
  14.         mc.bubble._visible = true
  15.         mc.bubble.message.text = msg
  16.         mc.deactivate()
  17. }
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top