≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Using a pre-loader with a obfuscated SWF?
Posted by:
(you are not logged in)
Enter the missing letter in: "Int?rnational"
(you are not logged in)
Text:
[quote][b]ronjeremy[/b] wrote: Hi, My game works great even after obfuscation which makes me want to buy the full version, with the exception of one thing; It won't work with a pre-loader! For my games it's really important that a player gets a INSTANT loading-screen (I have zero tolerance for a blank screen even if just for a few seconds), hence I don't even embedd the loading-screen in the main game but rather I have a very simple preloader.swf that simply displays "x%" on a black screen showing how much is left loading, but the preloader doesn't work after the target SWF has been obfuscated, it gives this error: [b]"ReferenceError: Error 1069: Property _uh52 not found on fl.rsl.SWZInfo and there is no default value. at KP4__Preloader__/_dm37()" [/b] The code for my pre-loader is quite simply: import flash.display.Loader; import flash.events.ProgressEvent; import flash.net.URLRequest; import flash.events.Event; stop(); var l:Loader = new Loader(); l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop); l.contentLoaderInfo.addEventListener(Event.COMPLETE, done); l.load(new URLRequest("game.swf")); function loop(e: ProgressEvent):void { var perc:Number = e.bytesLoaded / e.bytesTotal; percent.text = Math.ceil(perc*100).toString() + "%"; } function done(e:Event):void { removeChildAt(0); percent = null; addChild(l); }[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact