Pages: [1]
  Print  
Author Topic: Version 3.1.2  (Read 4524 times)
steven
Gaia Author
Administrator
Gaia Evangelist
*****
Posts: 3133


gaiaframework
WWW
« on: May 12, 2009, 07:55:51 PM »

Gaia Framework for Adobe Flash v3.1.2
Release Date: 05.12.2009

You need the Adobe Extension Manager to install the mxp file.
http://www.adobe.com/exchange/em_download/

The Gaia 3.x panel works with Flash CS3 and CS4.  Flash 8 is no longer supported.

Safari Users: Right-click and Save As.


Important Installation Notes
  • 1. Save the MXP file to your desktop first and then open it.  Do not choose "Open" from the browser as some people have reported failed installs when they do this.
  • 2. Close Flash and trash the previous Gaia installation before installing the new version.  The Adobe Extension Manager can be buggy when updating a component that is already there.
  • 3. You must delete your ASO files before scaffolding your first project with a new version of Gaia, or after updating an existing project fiolder with a new version of Gaia.  It's in the top menu under Controls > Delete ASO Files.
  • 4. After you delete your ASO files, make sure you republish all the Flash files in your project after updating to a new version of Gaia.
  • 5. You should also delete your browser's cache before testing your first project in the browser with a new version of Gaia, or after updating an existing project with a new version of Gaia.



3.1.2 Overview
Gaia 3.1.2 has some amazing new features, including Runtime Font Loading (AS3), the new ByteArrayAsset (AS3), the ability to set the preloader delay, adds a missing function in IStyleSheet, panel performance optimization, and the ability to deauthorize the panel.


Runtime Font Loading (AS3)
For detailed documentation with code examples:
http://www.gaiaflashframework.com/wiki/index.php?title=Runtime_Font_Loading

You can now easily load fonts at runtime into Gaia from ANY page or swf asset. Simply embed your font(s) in the library (New Font), Export for Actionscript, and then you have two ways to tell Gaia about them.

1) You can make a public Array on the root timeline or the document class of your swf named fonts.
public var fonts:Array = ["SomeFontClassName", "AnotherFont"]

2) You can set an attribute fonts on your page or asset node.
<page id="index" src="index.swf" fonts="SomeFontClassName,AnotherFont"/>

Both work equally well, and you can use both for clarity if you like, but Gaia will ignore the site.xml font attribute if there is a public var fonts Array.

Gaia will automatically register those fonts globally.

Then, at runtime, it's as easy as using the two new API methods.

Gaia.api.getAvailableFonts():Array
This returns an Array of the class names of all the fonts that were successfully registered.

Gaia.api.getFontName(className:String):String
Pass the font class name and this returns the runtime name of the font for use in a TextFormat, <font> node in htmlText, and StyleSheets!


ByteArrayAsset (AS3)
Gaia now has a ByteArrayAsset for loading raw data.  One use for this is if you want to make multiple instances of a single asset, such as a bitmap.  Set the type="bytearray" in the site.xml and you're good to go.

ByteArrayAsset has one public property "data" which returns, you guessed it, a ByteArray.


API: setPreloaderDelay(value:int)
This new API method allows you to override the default 150ms delay before the preloader transitionIn() method is called.  This delay is to help prevent the preloader from showing up when loading from the cache.  However, 150ms might be too long or short for your purposes.  The smallest value you can pass is 1.


IStyleSheet missing get styleNames
The interface for StyleSheetAsset was missing the get styleNames():Array method.  This has been fixed.


Panel Performance Optimization
The Gaia panel has been optimized by dropping the framerate down to 0.1 when the mouse is not over it, and only running at 10 fps when you are using it.  This will hopefully resolve issues for some people who have experienced crashing and/or higher CPU usage.


Panel Deauthorization
Some people have needed to reinstall their operating system or have bought a new computer altogether.  In order to accomodate this, you can now deauthorize your panel in the right-click menu.  This will allow you to reauthorize after you reinstall Gaia on your new installation.  If you do this by accident, don't worry. Gaia stores your email and token in the panel and all you need to do is click the donate button and Unlock the panel again.
« Last Edit: May 27, 2009, 04:11:45 PM by steven » Logged

Steven Sacks | Gaia Author
Please support Gaia by donating to the project!  Smiley
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v1.0 beta 4 © Bloc