Browsing projects by Tag(s)

Select a tag to browse associated projects and drill deeper into the tag cloud.

Showing page 1 of 1

DB-Loader (DBL)With DBL you can load and control any kind of files, can send HTTP requests, receive back without instanciate anything. Without worry about EventListeners, WeakReferences, Deletes, Removes and others annoying things. The DBL controls the cache, the memory in use, the garbage ... [More] collection and much more to optimize your application. Reasons why: PERFORMANCE: 1 call in a millisecond (0.001 seconds) SIZE: 4.5 kbs compiled MEMORY: 1 call use 0.2 Mbs (Temporary) Notices27/11/09: DBL comes to 0.3 beta! I'm so really excited with version 0.3 beta. Because now, DBL is coming close to go out of Beta! With the advances in this update DBL wins a great power to load almost all files that I want when imagine this class. Collection: This is one of the greatest features of all DBL's features! With just one call, just one line of code, you can define a package to load! You can set how many items you want. You can load all the images to a gallery or you can load all the files from the home of your application, for example. All this with only one line of code, nothing more! This feature I called "collection". The collection will show you the progress of the package as a whole, the complete callback function is called when the last item in the collection is loaded. Ref scope param: You can pass a Reference to DBL and in all callback function you will have acess to that reference. The reference can be any DataType. For example, this is usefull when you use a loop to start a load and need to store the index of each loop. DBLevent: Now all callback functions return the DBLevent Object. It is a powerfull dynamic event that has the informations about the loader, the url, your ref and specific params to each type. Deprecated TrackMode: This is an advantage of my other class called DB-Analytics. With your permission I can map all the errors and failures that may occur while you are using the DBL, and its use. This data will be very important for me to make adjustments and innovations in future versions of DBL. You do not need to change anything, do not need to define anything. The use is exactly the same! All you need to do is download the zip DBL_trackMode_v_03_beta.zip and use it. 29/09/09: DBL comes to 0.2 beta! In this update DBL won features and incredible innovations! DBL has become an Auto-Singleton class! This means that you can use it like a static class or like a instanciated class and you can use both together. With Auto-Singleton, DBL won much more power in Performance and Size. The DBL has shrunk more than 50 lines of code! The Garbage Collector of DBL is optimized. The package has changed to fit with the future of DB's classes The params of .call() method has changed. 11/09/09: Launch of DBL with version 0.1 beta Informations Author: Diney Bomfim Version: 0.3 beta Contact: dineybomfim@gmail.com Copyright: DB-Interactive DB's ClassesAll DB's Classes are focused in PSM. The PSM principle is maximum PERFORMANCE, lower SIZE and minimum MEMORY. DB's classes are optimized with Binary Code (ByteArray). Are oriented to MVC. Work great with Garbage Collection. And the Golden Rule is: Keep it simpleDB's Classes are produced by DB-Interactive. For more information visit db-in.com [Less]

0
 
  0 reviews  |  0 users  |  368 lines of code  |  0 current contributors  |  Analyzed 3 months ago
 
 

DB-Screen (DBS)DBS is a reference class to set in your main class. With DBS you can easy control the stage of you application and get their parameters. Without worry about references, memory control and garbage collection. DBS will do it for you. Reasons why: PERFORMANCE: 1 call in a millisecond ... [More] (0.001 seconds) SIZE: 0.8 kbs MEMORY: 1 call use 0.05 Mbs (Temporary) EXTREME-PERFORMANCE: 50.000 calls simultaneously with all params in 0.982 seconds EXTREME-MEMORY: 50.000 calls simultaneously with all params use 1.1 Mbs (Temporary) GeneralThe first thing you need to do is import de DBS to you application. The DBS don't need to be instanciated. So just import it. ... import acs.db.controls.DBS ...OK, you don't need import any other package of flash.display.Stages unless you want to use somewhere else. Now, in the constructor of your main class set the initial params to DBS. The params: target: (Object) The main object. This will be the base reference to all other methods. lock: (Boolean) This param determine if the base target can or not change during the application. By default this param is set to true, locking the first target that you set. align: (String) This param set the stageAlign of your application. By default is TopLeft ("TL"). scaleMode: (String) This param set the scaleMode of your application. By default is noScale ("noScale"). quality: (String) This param set the quality of your application. By default is medium("medium"). The medium is very good in performance and in quality, is the most balanced set. frameRate: (Number) This param set the frameRate of your application. By default this param don't change the actual frameRate of the compilation. displayState: (String) This param set the displayState of your application. By default is normal ("normal"). The most simple use of DBS is: ... DBS.init(this); ...And in the a little more complex way: ... DBS.init(this, true,'T','showAll', 'low', 30, 'normal'); ...Public PropertiesNow, any where, in any class of your application, just import the DBS and use the public methods to call or set params. --- Width / Height ---To get the current stageWidth or stageHeight, call ".SW" or ".SH" respectively. ... trace("width of application: "+DBS.SW); trace("height of application: "+DBS.SH); ...--- Check Base Target ---To check the base target use ".target" propertie. ... trace("The actual base target is: "+DBS.target); ...Public Methods--- Change Full Screen Mode ---Is very simply to change the displayState. Just call ".FScreen()". If you don't pass any param the displayState will change the actual state, if is normal will change to full screen for example. If you want manualy set a state, just pass true for full screen and false to normal mode. ... DBS.FScreen(); ...--- Scale Mode, Align, Quality and Frame Rate ---SMode SAlign SQuality FRate All of this is very simply to use. They can set a new value to that param and return new value or can only return the actual value too. For a simply check in the current value, all you need to do is don't pass any param to these function. ... trace("Current Scale Mode is: " + DBS.SMode()); trace("Current Align is: " + DBS.SAlign()); trace("Current Quality is: " + DBS.SQuality()); trace("Current Frame Rate is: " + DBS.FRate()); ...And to set a new value to then, just pass a new value. ... trace("The new Scale Mode is: " + DBS.SMode("exactFit")); trace("The new Align is: " + DBS.SAlign("TR")); trace("The new Quality is: " + DBS.SQuality("high")); trace("The new Frame Rate is: " + DBS.FRate(30)); ...ConsiderationsThis class not is completed yet. In the final version, it will do a loot of more complex tasks with your stage. Will work with references in you display list, manage layers, manage functions and more. Informations Author: Diney Bomfim Version: 0.1 beta Contact: dineybomfim@gmail.com Copyright: DB-Interactive DB's ClassesAll DB's Classes are focused in PSM. The PSM principle is maximum PERFORMANCE, lower SIZE and minimum MEMORY. DB's classes are optimized with Binary Code (ByteArray). Are oriented to MVC. Work great with Garbage Collection. And the Golden Rule is: Keep it simpleDB's Classes are produced by DB-Interactive. For more information visit db-in.com [Less]

0
 
  0 reviews  |  0 users  |  0 current contributors
 
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.