19.02.2016, 17:08
Edytuje plik programem JPEXS Flash Decompiler, gdy chcę zapisać go, wyskakuje mi błąd "IDENTIFIER or NAMESPACE or MULTIPLY expected but NON found w linii 55".
Czy ktoś z was będzie w stanie mi pomóc? Poniżej zamieszczam cały kod owego pliczku, z góry dziękuję za wszelaką pomoc.
Czy ktoś z was będzie w stanie mi pomóc? Poniżej zamieszczam cały kod owego pliczku, z góry dziękuję za wszelaką pomoc.
Kod PHP:
package
{
import flash.Boot;
import flash.events.EventDispatcher;
import flash.utils.getTimer;
import basgui.GUIBase;
import flash.filters.ColorMatrixFilter;
import gamecode.Player;
import flash.geom.ColorTransform;
import gamecode.HudMessage;
import flash.filters.BlurFilter;
import gamecode.StateRenderer;
import flash.filters.BitmapFilter;
import gamecode.Team;
import gamecode.controllers.NetGameHost;
import gamecode.stadium.Segment;
import gamecode.stadium.StoredStadiums;
import flash.net.SharedObject;
import menu.MenuInGame;
import menu.MenuRooms;
import menu.ingame.InGameTimer;
import sounds.CrowdSoundController;
import flash.media.SoundTransform;
import sounds.Sounds;
import sounds.Chat;
import sounds.Join;
import sounds.Leave;
import sounds.Wat;
import sounds.Kick;
import sounds.Kick2;
import sounds.Crowd;
import testsim.DiscF;
import flash.Lib;
import flash.display.MovieClip;
public dynamic class boot_8c25 extends Boot
{
public function boot_8c25()
{
if(Boot.skip_constructor)
{
return;
}
super();
if(Lib.current == null)
{
Lib.current = this;
}
start();
}
override public function init() : void
{
Math.NaN = Number(Number.NaN);
Math.NEGATIVE_INFINITY = Number(Number.NEGATIVE_INFINITY);
Math.POSITIVE_INFINITY = Number(Number.POSITIVE_INFINITY);
Math.isFinite = function(param1:Number):Boolean
{
return isFinite(param1);
};
Math.isNaN = function(param1:Number):Boolean
{
return isNaN(param1);
};
var _loc1_:* = Date;
_loc1_.now = function():*
{
return new Date();
};
_loc1_.fromTime = function(param1:*):Date
{
var _loc2_:Date = new Date();
_loc2_.setTime(param1);
return _loc2_;
};
_loc1_.fromString = function(param1:String):Date
{
var _loc2_:* = null as Array;
var _loc3_:* = null as Date;
var _loc4_:* = null as Array;
var _loc5_:* = null as Array;
switch(param1.length)
{
default:
default:
default:
default:
default:
default:
default:
default:
Boot.lastError = new Error();
throw "Invalid date format : " + param1;
case 8:
default:
_loc2_ = param1.split(":");
_loc3_ = new Date();
_loc3_.setTime(0);
_loc3_.setUTCHours(_loc2_[0]);
_loc3_.setUTCMinutes(_loc2_[1]);
_loc3_.setUTCSeconds(_loc2_[2]);
return _loc3_;
case 10:
default:
default:
default:
default:
default:
default:
default:
default:
_loc2_ = param1.split("-");
return new Date(int(_loc2_[0]),_loc2_[1] - 1,int(_loc2_[2]),0,0,0);
case 19:
_loc2_ = param1.split(" ");
_loc4_ = _loc2_[0].split("-");
_loc5_ = _loc2_[1].split(":");
return new Date(int(_loc4_[0]),_loc4_[1] - 1,int(_loc4_[2]),int(_loc5_[0]),int(_loc5_[1]),int(_loc5_[2]));
}
};
_loc1_.prototype["toString"] = function():String
{
var _loc1_:Date = this;
var _loc2_:int = int(_loc1_.getMonth()) + 1;
var _loc3_:int = int(_loc1_.getDate());
var _loc4_:int = int(_loc1_.getHours());
var _loc5_:int = int(_loc1_.getMinutes());
var _loc6_:int = int(_loc1_.getSeconds());
return int(_loc1_.getFullYear()) + "-" + (_loc2_ < 10?"0" + _loc2_:"" + _loc2_) + "-" + (_loc3_ < 10?"0" + _loc3_:"" + _loc3_) + " " + (_loc4_ < 10?"0" + _loc4_:"" + _loc4_) + ":" + (_loc5_ < 10?"0" + _loc5_:"" + _loc5_) + ":" + (_loc6_ < 10?"0" + _loc6_:"" + _loc6_);
};
if(!BMath.init__)
{
BMath.init__ = true;
BMath.POSITIVE_INFINITY = Number(Math.POSITIVE_INFINITY);
BMath.NEGATIVE_INFINITY = Number(Math.NEGATIVE_INFINITY);
BMath.NaN = Number(Math.NaN);
BMath.PI = Math.PI;
BMath.RadToDeg = 180 / BMath.PI;
BMath.DegToRad = BMath.PI / 180;
}
if(!Geometry.init__)
{
Geometry.init__ = true;
Geometry.tmpVec1 = new Vec2f(0,0);
Geometry.tmpVec2 = new Vec2f(0,0);
}
if(!Main.init__)
{
Main.init__ = true;
Main.jscriptEventDispatcher = new EventDispatcher();
Main.validDomains = [new EReg("^http://([a-z0-9]+\\.)*haxballerz\\.xaa.pl/.*",""),new EReg("^http://([a-z0-9]+\\.)*188\\.165\\.23\\.142/.*","")];
Main.lastFpsTime = getTimer();
}
if(!Resources2.init__)
{
Resources2.init__ = true;
Resources2.allflags = new BDAllFlags(0,0);
Resources2.grass = new BDGrass(0,0);
Resources2.smallnumbers = new BDSmallNumbers(0,0);
}
if(!GUIBase.init__)
{
GUIBase.init__ = true;
GUIBase.GrayscaleFilter = new ColorMatrixFilter([1 / 3,1 / 3,1 / 3,0,0,1 / 3,1 / 3,1 / 3,0,0,1 / 3,1 / 3,1 / 3,0,0,0,0,0,1,0]);
}
if(!Player.init__)
{
Player.init__ = true;
Player.handicapColorTransform = new ColorTransform(0.3,1,0.3);
}
if(!HudMessage.init__)
{
HudMessage.init__ = true;
HudMessage.AnimationCurve1 = new Spline1([0,0,2,1,0,0.35,1,0,1,0,0.65,1,0,0,-2,1]);
HudMessage.AnimationCurve2 = new Spline1([0,-1,3,0,0,0.35,0,0,0,0,0.65,0,0,1,3,1]);
HudMessage.blurFilter = new BlurFilter();
HudMessage.filterArray = [HudMessage.blurFilter];
}
if(!StateRenderer.init__)
{
StateRenderer.init__ = true;
StateRenderer.pauseMessage = new HudMessage(["Game","Paused"],16777215,0);
StateRenderer.tmpVec2 = new Vec2f(0,0);
StateRenderer.pauseFilters = [new ColorMatrixFilter([0.5,0.25,0.25,0,0,0.25,0.5,0.25,0,0,0.25,0.25,0.5,0,0,0,0,0,1,0])];
StateRenderer.tmpVec = new Vec2f(0,0);
}
if(!Team.init__)
{
Team.init__ = true;
Team.Spec = new Team(0,16777215,0,-1,"Spectators",0,0);
Team.Red = new Team(1,15035990,-1,2,"Red",15035990,uint(2));
Team.Blue = new Team(2,5671397,1,4,"Blue",625603,uint(4));
}
if(!NetGameHost.init__)
{
NetGameHost.init__ = true;
NetGameHost.mRoomInfo = new MasterRoomInfo();
}
if(!Segment.init__)
{
Segment.init__ = true;
Segment.MinCurvature = 9.99 * BMath.DegToRad;
Segment.MaxCurvature = 340 * BMath.DegToRad;
Segment.tmpVec1 = new Vec2f(0,0);
Segment.tmpVec2 = new Vec2f(0,0);
Segment.tmpVec3 = new Vec2f(0,0);
}
if(!StoredStadiums.init__)
{
StoredStadiums.init__ = true;
StoredStadiums.so = SharedObject.getLocal("StoredStadiums","/");
}
if(!MenuInGame.init__)
{
MenuInGame.init__ = true;
MenuInGame.emptyPlayerVector = new Vector.<Player>();
}
if(!MenuRooms.init__)
{
MenuRooms.init__ = true;
MenuRooms.roomsCache = new RoomListResponse();
}
if(!InGameTimer.init__)
{
InGameTimer.init__ = true;
InGameTimer.colorTransform = new ColorTransform();
}
if(!CrowdSoundController.init__)
{
CrowdSoundController.init__ = true;
CrowdSoundController.soundTransform = new SoundTransform(0,0);
}
if(!Sounds.init__)
{
Sounds.init__ = true;
Sounds.chat = new Chat();
Sounds.join = new Join();
Sounds.leave = new Leave();
Sounds.wat = new Wat();
Sounds.kick = new Kick();
Sounds.kick2 = new Kick2();
Sounds.crowd = new Crowd();
}
if(!DiscF.init__)
{
DiscF.init__ = true;
DiscF.diff = new Vec2f(0,0);
DiscF.normal = new Vec2f(0,0);
DiscF.tmpVec1 = new Vec2f(0,0);
DiscF.tmpVec2 = new Vec2f(0,0);
DiscF.tmpVec3 = new Vec2f(0,0);
DiscF.forceTmp = new Vec2f(0,0);
}
Main.main();
}
}
}