Hãy đăng ký thành viên để có thể dễ dàng trao đổi, giao lưu và chia sẻ về kiến thức đồ họa.
  1. Hãy đăng ký subscribe kênh Youtube mới của Việt Designer tại địa chỉ: Youtube.com/VietDesignerChannel để theo dõi các video về thiết kế đồ họa. Do trước đó kênh cũ bị Youtube quét không rõ lý do, trong thời gian chờ kháng cáo nếu các bạn thấy video trên diễn đàn bị die không xem được thì có thể vào kênh mới để tìm xem video sơ cua nhé.
    Loại bỏ thông báo

Giúp đỡ vấn đề về AC3.0

Chủ đề thuộc danh mục 'Adobe Flash' được đăng bởi luadola001, 23/1/15.

Lượt xem: 4,009

  1. luadola001 Mới đăng kí

    em có đoạn AC 3.0 như thế này
    Code:
      {
             super.initialize();
             if(LayerManager.chatLayer == null)
             {
                return;
             }
             ReConnectManager.getInstance().register(this);
             viewComponent = ChatView.getInstance();
             LayerManager.chatLayer.addChild(this.chatView);
             this.chatView.y = StageProxyManager.stageHeight - 220;
             MainUIManager.getInstance().register(UIType.CHAT_PANEL,this.chatView);
             MainUIManager.getInstance().saveDefaultPosition(UIType.CHAT_PANEL,this.chatView.x,this.chatView.y);
             this.addEventListener(BagControllEvent.DISPLAY_GOODS,this.displayGoodsHandler);
             this.addEventListener(MountsEvent.DISPLAY_MOUNTS,this.displayGoodsHandler);
             this.addEventListener(ChatControllerEvent.SEND_TIP,this.sendTipHandler);
             this.addEventListener(ChatControllerEvent.SEND_SYS_TIP,this.sendSysSetTipHandler);
             this.addNetMsg(SChatLoginServerResult,this.backChatLoginServerResult);
             addEventListener(SysSettingControllerEvent.SYSTEM_SET_DATA_CHANGE,this.sysDataChangeHandler);
             this.chatView.addEventListener(ChatEvent.SEND_GM,this.sendGMCommandHandler);
             this.chatView.addEventListener(ChatEvent.SEND_MESSAGE,this.sendMessageHandler);
             this.chatView.addEventListener(ChatEvent.SEND_LABA_MSG,this.sendLabaMsgHandler);
             this.chatView.addEventListener(ChatEvent.OPEN_LABA_VIEW,this.openLabaViewHandler);
             addEventListener(ChatControllerEvent.OPEN_LABA_VIEW,this.openLabaViewHandler);
             this.chatView.addEventListener(HudoopEvent.CREATION_COMPLETE,this.creation_completeHandler);
             this.chatView.addEventListener(ChatEvent.LINK_REQUEST,this.linkClickHandler);
             addEventListener(ChatEvent.LINK_REQUEST,this.linkClickHandler);
             this.chatView.addEventListener(ChatEvent.STOPSCROLL,this.stopSrollHandler);
             GlobalEventDispatcher.getInstance().addEventListener(ChatEvent.SHIELDCHANNEL,this.shieldChannelHandler);
             this.shieldModelMgr.initShieldDic();
             addEventListener(SysSettingControllerEvent.SYSTEM_SET_DATA_CHANGE,this.systemChangeHandler);
             this.chatView.initialize();
             this.chatView.sendTipComment(LanguageConfigs.getLanguage(""),false,-1,"#FFFF00");
             this.chatView.sendTipComment(LanguageConfigs.getLanguage(""),false,-1,"#FFFF00");
             this.addEventListener(ChatControllerEvent.ACTIVITY_TIP_IN_CHAT,this.activityTipHandler);
             this.addChatMessageListeners();
          }
    Giờ em muốn hỏi bỏ cái getLanguage để thay bằng một đoạn text trực tiếp thì như thế nào ạ
    this.chatView.sendTipComment(LanguageConfigs.getLanguage("welcome"),false,-1,"#FFFF00");
    this.chatView.sendTipComment(LanguageConfigs.getLanguage("alert"),false,-1,"#FFFF00");

    ...
  2. chhieu85

    chhieu85 Mới đăng kí

    Có 2 cách, thứ nhất làbạn thử dùng lệnh trace để xuất ra console khi chạy debug, ngay kế bên đoạn code đó, rồi copy kết quả và sử dụng lại
    trace(LanguageConfigs.getLanguage("alert"));

    Hoặc bạn tạo 1 break point ngay hàng code đó, chạy debug, sau đó copy đoạn code LanguageConfigs.getLanguage("alert")
    vào khung watch (nếu bạn xài FlashBuilder)

Ủng hộ diễn đàn