Share 1 vài công cụ dùng cho việc việt hóa game Flash - Trang 2
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Trang 2 của 2 Đầu tiênĐầu tiên 1 2
Kết quả 11 đến 14 của 14
  1. #11
    Thành Viên
    Ngày tham gia
    Jul 2010
    Bài viết
    15
    Thanks
    0
    Thanked 3 Times in 2 Posts

    Ðề: Share 1 vài công cụ dùng cho việc việt hóa game Flash

    cho mình xem đoạn code frame ...

    Ví du như:
    \ /
    \ / this is the size (Set it to 10 now)

    var mijnMap:kiesMap = new kiesMap( 1, 1);
    addChild(mijnMap);
    Nên tham khảo tại đây : [Only registered and activated users can see links. ]
    Lần sửa cuối bởi chirsper, ngày 31-08-10 lúc 04:11 PM.
    Khách viếng thăm hãy cùng chirsper xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  2. #12
    Thành Viên
    Ngày tham gia
    Mar 2008
    Đang ở
    HCM
    Bài viết
    534
    Thanks
    30
    Thanked 280 Times in 82 Posts

    Ðề: Share 1 vài công cụ dùng cho việc việt hóa game Flash

    at com.skywalker.ui.collections::SimpleCollection/set bg()
    Code:
    package com.skywalker.ui.collections 
    {
        import flash.display.*;
        
        public class SimpleCollection extends flash.display.Sprite
        {
            public function SimpleCollection()
            {
                super();
                return;
            }
    
            public function get bg():flash.display.DisplayObject
            {
                return this._bg;
            }
    
            public override function get width():Number
            {
                return this._width;
            }
    
            public function set bg(arg1:flash.display.DisplayObject):void
            {
                if (this._bg != null) 
                {
                    removeChild(this._bg);
                    this._bg = arg1;
                    this._bg.width = this.width;
                    this._bg.height = this.height;
                    addChild(this._bg);
                }
                else 
                {
                    this._bg = arg1;
                    this._bg.width = this.width;
                    this._bg.height = this.height;
                    addChild(this._bg);
                }
                return;
            }
    
            public override function set height(arg1:Number):void
            {
                this._height = arg1;
                if (this._bg != null) 
                {
                    this._bg.width = this.width;
                    this._bg.height = this.height;
                }
                return;
            }
    
            public override function get height():Number
            {
                return this._height;
            }
    
            public override function set width(arg1:Number):void
            {
                this._width = arg1;
                if (this._bg != null) 
                {
                    this._bg.width = this.width;
                    this._bg.height = this.height;
                }
                return;
            }
    
            internal var _bg:flash.display.DisplayObject;
    
            internal var _width:Number=100;
    
            internal var _height:Number=100;
        }
    }
    at com.skywalker.view.yutang::ToolBar()
    Code:
    package com.skywalker.view.yutang 
    {
        import com.skywalker.model.*;
        import com.skywalker.ui.collections.*;
        import com.skywalker.view.*;
        import com.skywalker.view.common.*;
        import com.skywalker.view.main.cursor.*;
        import com.skywalker.view.main.tip.*;
        import com.skywalker.view.yutang.toolBar.*;
        import flash.display.*;
        import flash.events.*;
        import flash.text.*;
        
        public class ToolBar extends com.skywalker.ui.collections.SimpleCollection
        {
            public function ToolBar()
            {
                super();
                this.lib = com.skywalker.view.MaterialLib.getInstance();
                bg = this.lib.getMaterial(com.skywalker.model.Constants.clip["FunctionBar"]) as flash.display.Sprite;
                this.addTool();
                this.setPosition();
                this.showMe = true;
                addEventListener(flash.events.Event.ADDED_TO_STAGE, this.onAddedToStage, false, 0, true);
                return;
            }
    
            internal function keyUpHandler(arg1:flash.events.KeyboardEvent):void
            {
                if (arg1.target is flash.text.TextField) 
                {
                    return;
                }
                var loc1:*=com.skywalker.model.DataFactory.getInstance().mainData.me;
                if (com.skywalker.model.VersionData.value != com.skywalker.model.VersionData.ZING) 
                {
                    loc2 = arg1.keyCode;
                    switch (loc2) 
                    {
                        case 81:
                        {
                            com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowDrug"]);
                            break;
                        }
                        case 87:
                        {
                            com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowFeed"]);
                            break;
                        }
                        case 69:
                        {
                            com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowHarpoon"]);
                            break;
                        }
                        case 82:
                        {
                            com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowSnatch"]);
                            break;
                        }
                        default:
                        {
                            break;
                        }
                    }
                }
                else 
                {
                    var loc2:*=arg1.keyCode;
                    switch (loc2) 
                    {
                        case 97:
                        case 49:
                        {
                            com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowPointer"]);
                            break;
                        }
                        case 98:
                        case 50:
                        {
                            if (loc1) 
                            {
                                com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowScoop"]);
                            }
                            else 
                            {
                                com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowDrug"]);
                            }
                            break;
                        }
                        case 99:
                        case 51:
                        {
                            if (loc1) 
                            {
                                com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowPointer"]);
                                dispatchEvent(new flash.events.Event("packClick"));
                            }
                            else 
                            {
                                com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowFeed"]);
                            }
                            break;
                        }
                        case 100:
                        case 52:
                        {
                            if (loc1) 
                            {
                                com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowDrug"]);
                            }
                            else 
                            {
                                com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowHarpoon"]);
                            }
                            break;
                        }
                        case 101:
                        case 53:
                        {
                            if (loc1) 
                            {
                                com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowFeed"]);
                            }
                            else 
                            {
                                com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowStolen"], com.skywalker.model.DataFactory.getInstance().mainData.fishRodId);
                            }
                            break;
                        }
                        case 102:
                        case 54:
                        {
                            if (loc1) 
                            {
                                com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowHarpoon"]);
                            }
                            else 
                            {
                                com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowShark"]);
                            }
                            break;
                        }
                        case 103:
                        case 55:
                        {
                            if (loc1) 
                            {
                                com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowSnatch"]);
                            }
                            else 
                            {
                                com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowGarbage"]);
                            }
                            break;
                        }
                        default:
                        {
                            break;
                        }
                    }
                }
                return;
            }
    
            internal function toolClick(arg1:flash.events.MouseEvent):void
            {
                if (arg1.currentTarget != this.aToolArrow) 
                {
                    if (arg1.currentTarget != this.aToolRubish) 
                    {
                        if (arg1.currentTarget != this.aToolCreep) 
                        {
                            if (arg1.currentTarget != this.aToolHook) 
                            {
                                if (arg1.currentTarget != this.aToolHoe) 
                                {
                                    if (arg1.currentTarget != this.aToolCreepicide) 
                                    {
                                        if (arg1.currentTarget != this.aToolHand) 
                                        {
                                            if (arg1.currentTarget != this.aToolDrug) 
                                            {
                                                if (arg1.currentTarget != this.aToolPack) 
                                                {
                                                    if (arg1.currentTarget == this.aToolTheft) 
                                                    {
                                                        if (com.skywalker.view.main.cursor.Cursor.name == com.skywalker.model.Constants.clip["TowStolen"]) 
                                                        {
                                                            com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowPointer"]);
                                                        }
                                                        else 
                                                        {
                                                            com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowStolen"], com.skywalker.model.DataFactory.getInstance().mainData.fishRodId);
                                                        }
                                                    }
                                                }
                                                else 
                                                {
                                                    com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowPointer"]);
                                                    dispatchEvent(new flash.events.Event("packClick"));
                                                }
                                            }
                                            else if (com.skywalker.view.main.cursor.Cursor.name == com.skywalker.model.Constants.clip["TowDrug"]) 
                                            {
                                                com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowPointer"]);
                                            }
                                            else 
                                            {
                                                com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowDrug"]);
                                            }
                                        }
                                        else if (com.skywalker.view.main.cursor.Cursor.name == com.skywalker.model.Constants.clip["TowSnatch"]) 
                                        {
                                            com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowPointer"]);
                                        }
                                        else 
                                        {
                                            com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowSnatch"]);
                                        }
                                    }
                                    else if (com.skywalker.view.main.cursor.Cursor.name == com.skywalker.model.Constants.clip["TowHarpoon"]) 
                                    {
                                        com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowPointer"]);
                                    }
                                    else 
                                    {
                                        com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowHarpoon"]);
                                    }
                                }
                                else if (com.skywalker.view.main.cursor.Cursor.name == com.skywalker.model.Constants.clip["TowScoop"]) 
                                {
                                    com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowPointer"]);
                                }
                                else 
                                {
                                    com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowScoop"]);
                                }
                            }
                            else if (com.skywalker.view.main.cursor.Cursor.name == com.skywalker.model.Constants.clip["TowFeed"]) 
                            {
                                com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowPointer"]);
                            }
                            else 
                            {
                                com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowFeed"]);
                            }
                        }
                        else if (com.skywalker.view.main.cursor.Cursor.name == com.skywalker.model.Constants.clip["TowShark"]) 
                        {
                            com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowPointer"]);
                        }
                        else 
                        {
                            com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowShark"]);
                        }
                    }
                    else if (com.skywalker.view.main.cursor.Cursor.name == com.skywalker.model.Constants.clip["TowGarbage"]) 
                    {
                        com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowPointer"]);
                    }
                    else 
                    {
                        com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowGarbage"]);
                    }
                }
                else 
                {
                    com.skywalker.view.main.cursor.Cursor.setCursor(com.skywalker.model.Constants.clip["TowPointer"]);
                }
                arg1.stopPropagation();
                return;
            }
    
            internal function toolRollOut(arg1:flash.events.MouseEvent):void
            {
                com.skywalker.view.main.tip.TipControl.hide();
                return;
            }
    
            internal function onAddedToStage(arg1:flash.events.Event):void
            {
                removeEventListener(flash.events.Event.ADDED_TO_STAGE, this.onAddedToStage);
                stage.addEventListener(flash.events.KeyboardEvent.KEY_UP, this.keyUpHandler, false, 0, true);
                return;
            }
    
            internal function toolRollOver(arg1:flash.events.MouseEvent):void
            {
                var loc2:*=null;
                if (com.skywalker.model.VersionData.value == com.skywalker.model.VersionData.ZING) 
                {
                    if (!com.skywalker.model.DataFactory.getInstance().mainData.me) 
                    {
                        loc2 = arg1.currentTarget.toString();
                        var loc3:*=loc2;
                        switch (loc3) 
                        {
                            case "[object ToolDrug]":
                            {
                                com.skywalker.view.main.tip.TipControl.show("MouseTip", com.skywalker.view.common.Language.L["cureTip2"]);
                                return;
                            }
                            case "[object ToolHook]":
                            {
                                com.skywalker.view.main.tip.TipControl.show("MouseTip", com.skywalker.view.common.Language.L["clearRubishTip2"]);
                                return;
                            }
                            case "[object ToolCreepicide]":
                            {
                                com.skywalker.view.main.tip.TipControl.show("MouseTip", com.skywalker.view.common.Language.L["killCreepTip2"]);
                                return;
                            }
                        }
                    }
                }
                var loc1:*=arg1.currentTarget as com.skywalker.view.yutang.toolBar.ToolBase;
                com.skywalker.view.main.tip.TipControl.show("MouseTip", loc1.tipText);
                return;
            }
    
            public function set showMe(arg1:Boolean):void
            {
                this._showMe = arg1;
                this.aToolCreep.visible = !arg1;
                this.aToolRubish.visible = !arg1;
                this.aToolTheft.visible = !arg1;
                this.aToolHand.visible = arg1;
                this.aToolHoe.visible = arg1;
                this.aToolPack.visible = arg1;
                this.setPosition();
                return;
            }
    
            internal function setPosition():void
            {
                var loc2:*=0;
                var loc1:*=14;
                loc2 = 52;
                var loc3:*=0;
                if (this.showMe) 
                {
                    this.aToolArrow.x = loc1;
                    this.aToolArrow.y = loc3;
                    this.aToolHoe.x = loc1 + loc2 * 1;
                    this.aToolHoe.y = loc3;
                    this.aToolPack.x = loc1 + loc2 * 2;
                    this.aToolPack.y = loc3;
                    this.aToolDrug.x = loc1 + loc2 * 3;
                    this.aToolDrug.y = loc3;
                    this.aToolHook.x = loc1 + loc2 * 4;
                    this.aToolHook.y = loc3;
                    this.aToolCreepicide.x = loc1 + loc2 * 5;
                    this.aToolCreepicide.y = loc3;
                    this.aToolHand.x = loc1 + loc2 * 6;
                    this.aToolHand.y = loc3;
                    this.aToolTheft.x = loc1 + loc2 * 6;
                    this.aToolTheft.y = loc3;
                    this.aToolCreep.x = loc1 + loc2 * 1;
                    this.aToolCreep.y = loc3;
                    this.aToolRubish.x = loc1 + loc2 * 2;
                    this.aToolRubish.y = loc3;
                }
                else 
                {
                    this.aToolArrow.x = loc1;
                    this.aToolArrow.y = loc3;
                    this.aToolHoe.x = loc1 + loc2 * 1;
                    this.aToolHoe.y = loc3;
                    this.aToolPack.x = loc1 + loc2 * 2;
                    this.aToolPack.y = loc3;
                    this.aToolDrug.x = loc1 + loc2 * 1;
                    this.aToolDrug.y = loc3;
                    this.aToolHook.x = loc1 + loc2 * 2;
                    this.aToolHook.y = loc3;
                    this.aToolCreepicide.x = loc1 + loc2 * 3;
                    this.aToolCreepicide.y = loc3;
                    this.aToolHand.x = loc1 + loc2 * 4;
                    this.aToolHand.y = loc3;
                    this.aToolTheft.x = loc1 + loc2 * 4;
                    this.aToolTheft.y = loc3;
                    this.aToolCreep.x = loc1 + loc2 * 5;
                    this.aToolCreep.y = loc3;
                    this.aToolRubish.x = loc1 + loc2 * 6;
                    this.aToolRubish.y = loc3;
                }
                return;
            }
    
            internal function addTool():void
            {
                this.aToolArrow = new com.skywalker.view.yutang.toolBar.ToolArrow();
                this.aToolArrow.tipText = com.skywalker.view.common.Language.L["arrowTip"];
                this.aToolArrow.addEventListener(flash.events.MouseEvent.CLICK, this.toolClick);
                this.aToolArrow.addEventListener(flash.events.MouseEvent.ROLL_OVER, this.toolRollOver);
                this.aToolArrow.addEventListener(flash.events.MouseEvent.ROLL_OUT, this.toolRollOut);
                addChild(this.aToolArrow);
                this.aToolPack = new com.skywalker.view.yutang.toolBar.ToolPack();
                this.aToolPack.tipText = com.skywalker.view.common.Language.L["toolTip"];
                this.aToolPack.addEventListener(flash.events.MouseEvent.CLICK, this.toolClick);
                this.aToolPack.addEventListener(flash.events.MouseEvent.ROLL_OVER, this.toolRollOver);
                this.aToolPack.addEventListener(flash.events.MouseEvent.ROLL_OUT, this.toolRollOut);
                addChild(this.aToolPack);
                this.aToolRubish = new com.skywalker.view.yutang.toolBar.ToolRubish();
                this.aToolRubish.tipText = com.skywalker.view.common.Language.L["castRubishTip"];
                this.aToolRubish.addEventListener(flash.events.MouseEvent.CLICK, this.toolClick);
                this.aToolRubish.addEventListener(flash.events.MouseEvent.ROLL_OVER, this.toolRollOver);
                this.aToolRubish.addEventListener(flash.events.MouseEvent.ROLL_OUT, this.toolRollOut);
                addChild(this.aToolRubish);
                this.aToolCreep = new com.skywalker.view.yutang.toolBar.ToolCreep();
                this.aToolCreep.tipText = com.skywalker.view.common.Language.L["castCreepTip"];
                this.aToolCreep.addEventListener(flash.events.MouseEvent.CLICK, this.toolClick);
                this.aToolCreep.addEventListener(flash.events.MouseEvent.ROLL_OVER, this.toolRollOver);
                this.aToolCreep.addEventListener(flash.events.MouseEvent.ROLL_OUT, this.toolRollOut);
                addChild(this.aToolCreep);
                this.aToolHook = new com.skywalker.view.yutang.toolBar.ToolHook();
                this.aToolHook.tipText = com.skywalker.view.common.Language.L["clearRubishTip"];
                this.aToolHook.addEventListener(flash.events.MouseEvent.CLICK, this.toolClick);
                this.aToolHook.addEventListener(flash.events.MouseEvent.ROLL_OVER, this.toolRollOver);
                this.aToolHook.addEventListener(flash.events.MouseEvent.ROLL_OUT, this.toolRollOut);
                addChild(this.aToolHook);
                this.aToolHoe = new com.skywalker.view.yutang.toolBar.ToolHoe();
                this.aToolHoe.tipText = com.skywalker.view.common.Language.L["clearTip"];
                this.aToolHoe.addEventListener(flash.events.MouseEvent.CLICK, this.toolClick);
                this.aToolHoe.addEventListener(flash.events.MouseEvent.ROLL_OVER, this.toolRollOver);
                this.aToolHoe.addEventListener(flash.events.MouseEvent.ROLL_OUT, this.toolRollOut);
                addChild(this.aToolHoe);
                this.aToolCreepicide = new com.skywalker.view.yutang.toolBar.ToolCreepicide();
                this.aToolCreepicide.tipText = com.skywalker.view.common.Language.L["killCreepTip"];
                this.aToolCreepicide.addEventListener(flash.events.MouseEvent.CLICK, this.toolClick);
                this.aToolCreepicide.addEventListener(flash.events.MouseEvent.ROLL_OVER, this.toolRollOver);
                this.aToolCreepicide.addEventListener(flash.events.MouseEvent.ROLL_OUT, this.toolRollOut);
                addChild(this.aToolCreepicide);
                this.aToolHand = new com.skywalker.view.yutang.toolBar.ToolHand();
                this.aToolHand.tipText = com.skywalker.view.common.Language.L["harvestTip"];
                this.aToolHand.addEventListener(flash.events.MouseEvent.CLICK, this.toolClick);
                this.aToolHand.addEventListener(flash.events.MouseEvent.ROLL_OVER, this.toolRollOver);
                this.aToolHand.addEventListener(flash.events.MouseEvent.ROLL_OUT, this.toolRollOut);
                addChild(this.aToolHand);
                this.aToolTheft = new com.skywalker.view.yutang.toolBar.ToolTheft();
                this.aToolTheft.tipText = com.skywalker.view.common.Language.L["theftTip"];
                this.aToolTheft.addEventListener(flash.events.MouseEvent.CLICK, this.toolClick);
                this.aToolTheft.addEventListener(flash.events.MouseEvent.ROLL_OVER, this.toolRollOver);
                this.aToolTheft.addEventListener(flash.events.MouseEvent.ROLL_OUT, this.toolRollOut);
                addChild(this.aToolTheft);
                this.aToolDrug = new com.skywalker.view.yutang.toolBar.ToolDrug();
                this.aToolDrug.tipText = com.skywalker.view.common.Language.L["cureTip"];
                this.aToolDrug.addEventListener(flash.events.MouseEvent.CLICK, this.toolClick);
                this.aToolDrug.addEventListener(flash.events.MouseEvent.ROLL_OVER, this.toolRollOver);
                this.aToolDrug.addEventListener(flash.events.MouseEvent.ROLL_OUT, this.toolRollOut);
                addChild(this.aToolDrug);
                return;
            }
    
            public function get showMe():Boolean
            {
                return this._showMe;
            }
    
            internal var lib:com.skywalker.view.MaterialLib;
    
            internal var aToolPack:com.skywalker.view.yutang.toolBar.ToolPack;
    
            internal var _showMe:Boolean=true;
    
            internal var aToolHook:com.skywalker.view.yutang.toolBar.ToolHook;
    
            internal var aToolCreep:com.skywalker.view.yutang.toolBar.ToolCreep;
    
            internal var aToolHoe:com.skywalker.view.yutang.toolBar.ToolHoe;
    
            internal var aToolRubish:com.skywalker.view.yutang.toolBar.ToolRubish;
    
            internal var aToolTheft:com.skywalker.view.yutang.toolBar.ToolTheft;
    
            internal var aToolHand:com.skywalker.view.yutang.toolBar.ToolHand;
    
            internal var aToolArrow:com.skywalker.view.yutang.toolBar.ToolArrow;
    
            internal var aToolCreepicide:com.skywalker.view.yutang.toolBar.ToolCreepicide;
    
            internal var aToolDrug:com.skywalker.view.yutang.toolBar.ToolDrug;
        }
    }
    at module::YutangModule/init() + at module::YutangModule/onAddedToStage()
    Code:
    package module 
    {
        import com.skywalker.control.*;
        import com.skywalker.event.*;
        import com.skywalker.model.*;
        import com.skywalker.ui.collections.*;
        import com.skywalker.util.*;
        import com.skywalker.view.yutang.*;
        import com.skywalker.view.yutang.animal.*;
        import com.skywalker.view.yutang.module.*;
        import com.skywalker.view.yutang.packBar.*;
        import flash.display.*;
        import flash.events.*;
        
        public class YutangModule extends flash.display.Sprite
        {
            public function YutangModule()
            {
                super();
                addEventListener(flash.events.Event.ADDED_TO_STAGE, this.onAddedToStage);
                return;
            }
    
            internal function onAddedToStage(arg1:flash.events.Event):void
            {
                removeEventListener(flash.events.Event.ADDED_TO_STAGE, this.onAddedToStage);
                this.init();
                return;
            }
    
            internal function currentUserChange(arg1:flash.events.Event):void
            {
                this.toolBar.showMe = com.skywalker.model.DataFactory.getInstance().mainData.me;
                return;
            }
    
            internal function packClickHandler(arg1:flash.events.Event):void
            {
                if (this.packBar == null) 
                {
                    this.createPackBar();
                }
                this.packBar.visible = !this.packBar.visible;
                if (this.packBar.visible) 
                {
                    com.skywalker.control.ControlFactory.getInstance().yutangControl.getUserOvum();
                }
                return;
            }
    
            internal function init():void
            {
                var loc1:*=null;
                var loc2:*=null;
                var loc3:*=null;
                var loc4:*=null;
                var loc8:*=null;
                this.diyScene = new com.skywalker.view.yutang.DiyScene();
                var loc5:*;
                if ((loc5 = com.skywalker.model.DataFactory.getInstance().mainData.items) != null) 
                {
                    var loc9:*=0;
                    var loc10:*=loc5;
                    for (loc8 in loc10) 
                    {
                        this.diyScene.addDiy(loc5[loc8]["i"]);
                    }
                    this.diyScene.setDiy();
                }
                com.skywalker.model.DataFactory.getInstance().mainData.addEventListener(com.skywalker.model.MainData.ITEMS, this.itemsChange);
                this.yutangareas = new com.skywalker.view.yutang.module.Yutangareas();
                var loc6:*;
                (loc6 = new com.skywalker.ui.collections.RollCollection()).maxWidth = 1024;
                loc6.maxHeight = 800;
                loc6.width = stage.stageWidth;
                loc6.height = stage.stageHeight - 120;
                loc6.top = 100;
                loc6.left = 100;
                loc6.reRoll();
                loc6.addChild(this.diyScene);
                loc6.addChild(this.yutangareas);
                var loc7:*;
                (loc7 = new com.skywalker.view.yutang.animal.FarmAnimal()).x = 440;
                loc7.y = 70;
                loc6.addChild(loc7);
                addChild(loc6);
                this.toolBar = new com.skywalker.view.yutang.ToolBar();
                this.toolBar.width = 376;
                this.toolBar.height = 64.9;
                this.toolBar.x = (stage.stageWidth - this.toolBar.width) / 2;
                this.toolBar.y = stage.stageHeight - this.toolBar.height - 140;
                this.toolBar.addEventListener("packClick", this.packClickHandler, false, 0, true);
                addChild(this.toolBar);
                com.skywalker.model.DataFactory.getInstance().mainData.addEventListener(com.skywalker.model.MainData.CURRENT_USER_CHANGE, this.currentUserChange, false, 0, true);
                return;
            }
    
            internal function createPackBar():void
            {
                this.packBar = new com.skywalker.view.yutang.packBar.PackBar();
                this.packBar.visible = false;
                this.packBar.x = (stage.stageWidth - this.packBar.width) / 2;
                this.packBar.y = this.toolBar.y - this.packBar.height - 10;
                addChild(this.packBar);
                return;
            }
    
            internal function itemsChange(arg1:com.skywalker.event.ModelEvent):void
            {
                var loc1:*=null;
                var loc2:*=null;
                var loc3:*=null;
                var loc4:*=null;
                var loc6:*=null;
                var loc5:*;
                if ((loc5 = com.skywalker.model.DataFactory.getInstance().mainData.items) != null) 
                {
                    loc1 = "";
                    loc2 = "";
                    loc3 = "";
                    loc4 = "";
                    var loc7:*=0;
                    var loc8:*=loc5;
                    for (loc6 in loc8) 
                    {
                        this.diyScene.addDiy(loc5[loc6]["i"]);
                    }
                    this.diyScene.setDiy();
                }
                return;
            }
    
            internal var yutangareas:com.skywalker.view.yutang.module.Yutangareas;
    
            internal var diyScene:com.skywalker.view.yutang.DiyScene;
    
            internal var packBar:com.skywalker.view.yutang.packBar.PackBar;
    
            internal var toolBar:com.skywalker.view.yutang.ToolBar;
        }
    }
    Lần sửa cuối bởi rayyan2006, ngày 01-09-10 lúc 01:27 AM.
    Khách viếng thăm hãy cùng rayyan2006 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  3. #13
    Thành Viên
    Ngày tham gia
    Jul 2010
    Bài viết
    15
    Thanks
    0
    Thanked 3 Times in 2 Posts

    Ðề: Share 1 vài công cụ dùng cho việc việt hóa game Flash

    Nguyên nhân : Không tìm thấy chế độ âm thanh chính cho swf của bạn ....
    Khác phục: [Only registered and activated users can see links. ]
    Khách viếng thăm hãy cùng chirsper xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  4. #14
    Thành Viên
    Ngày tham gia
    Feb 2011
    Bài viết
    48
    Thanks
    17
    Thanked 39 Times in 10 Posts

    Ðề: Share 1 vài công cụ dùng cho việc việt hóa game Flash

    Flash Decompiler Trillix ( phiên bản) 5.3.1370 Ai có cd key.
    1. Nam:
    2. Key:
    Mình tìm có số ckey mà ko có name bó tay. thử đại tên thì không được ai có cho mình xin. cảm ơn
    HXHHQQ-87M710-VJ95BY-Y24XRN-FDH7UW-Q9CC6U-X80AGU-P09KXY-34E11M-CPDQ12-T3V1BM-3D4ER2
    Khách viếng thăm hãy cùng gau.caonguyen xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

 

 
Trang 2 của 2 Đầu tiênĐầu tiên 1 2

Các Chủ đề tương tự

  1. Share Trang Flash Info của MuHoanLong !!!
    Bởi gaoblackxincha trong diễn đàn SQL Server & Website
    Trả lời: 5
    Bài viết cuối: 09-07-11, 07:11 PM
  2. Có cái menu flash vừa làm xong, share cho ae thích thì dùng
    Bởi thecong trong diễn đàn SQL Server & Website
    Trả lời: 6
    Bài viết cuối: 24-06-11, 09:08 PM

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 12:01 PM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.