Return to Starling Playback Library

How to Load GAF graphic as Starling Asset?

Questions related to Starling playback library should be asked here.

How to Load GAF graphic as Starling Asset?

Postby dvrbear » October 23rd, 2014, 4:04 am

I have seen just on time somewhere - how to make from gaf.zip asset for starling - and unfortunately i have lost the link ((.

Can you give small example for this question?

Here My Starling example:
Code: Select all
public class EmbededClientAssets
   {
        [Embed(source="/../assets/client/client_icons.png")]
        public static const client_icons:Class;

        [Embed(source="/../assets/client/client_icons.xml", mimeType="application/octet-stream")]
        public static const client_iconsXml:Class;
...

Code: Select all
static public function initClientAssets():void
      {
         if(clientAssets!=null)
            return;
         
         _clientAssetsReady=false;
         _clientAssetRation=0;
         
         _clientAssets = new AssetManager();
         clientAssets.verbose = false;
         clientAssets.scaleFactor=1;
         clientAssets.enqueue(EmbededClientAssets);                  
                           
         clientAssets.loadQueue(function(ratio:Number):void
         {
            _clientAssetRation=ratio;            
            _clientAssetsReady= (ratio==1);
         });
      }
User avatar
dvrbear
 
Posts: 26
Joined: October 20th, 2014, 1:42 am

Re: How to Load GAF graphic as Starling Asset?

Postby vadym.mitin » October 28th, 2014, 6:20 am

Hi,

Here is an example of what you are looking for http://gafmedia.com/forum/viewtopic.php?f=4&t=117
User avatar
vadym.mitin
 
Posts: 254
Joined: December 4th, 2013, 8:00 am

Return to Starling Playback Library

Who is online

Users browsing this forum: No registered users and 2 guests