callLater

author:
pol2095
description:
callLater method to Starling Framework like Apache Flex
compatible:
v2.1
tag:
callLater, flex
homepage:
http://pol2095.free.fr/Starling-Extension-CallLater/

Overview

This project adds a callLater method to Starling Framework like Apache Flex.

<?xml version="1.0" encoding="utf-8"?>
<f:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
  xmlns:f="library://ns.feathersui.com/mxml"
  theme="feathers.themes.MetalWorksDesktopTheme"
  creationComplete="creationCompleteHandler()">  
  <fx:Script>
    <![CDATA[
      import starling.extensions.utils.callLater;
      import feathers.data.ListCollection;
      private var listCollection:ListCollection = new ListCollection();
      private function creationCompleteHandler():void
      {
        tabBar.dataProvider = new ListCollection();
        tabBar.dataProvider.addItem( "one" );
        trace(tabBar.height);
        callLater(tabBarHeightCL);
      }
      private function tabBarHeightCL():void
      {
        trace(tabBar.height);
      }
    ]]>
  </fx:Script>
  <f:TabBar id="tabBar"/><!--  -->
</f:Application>

Changelog

  • 2016/02/28 19:49: First public version
  extensions/starling-extension-calllater.txt · Last modified: 2016/11/19 09:40 by 86.219.50.231
 
Powered by DokuWiki