All Projects → joshtynjala → starling-preloader

joshtynjala / starling-preloader

Licence: other
An example preloader for Starling Framework running in Adobe Flash Player in a web browser

Programming Languages

actionscript
884 projects

Projects that are alternatives of or similar to starling-preloader

Starling Framework
The Cross Platform Game Engine
Stars: ✭ 2,399 (+9895.83%)
Mutual labels:  flash, as3, adobe-air, starling-framework, starling
feathersui-starling-sdk
SDK for building Feathers UI (Starling) applications with MXML
Stars: ✭ 41 (+70.83%)
Mutual labels:  adobe-air, adobe-flash-player, starling-framework, feathers-ui, starling
feathersui-starling
User interface components for Starling Framework and Adobe AIR
Stars: ✭ 920 (+3733.33%)
Mutual labels:  adobe-air, adobe-flash-player, starling-framework, feathers-ui, starling
astra-flash
Fork of Astra Flash components
Stars: ✭ 15 (-37.5%)
Mutual labels:  flash, adobe-flash, adobe-air, adobe-flash-player
Adobe-Runtime-Support
Report, track and discuss issues in Adobe AIR. Monitored by Adobe - and HARMAN - and maintained by the AIR community.
Stars: ✭ 163 (+579.17%)
Mutual labels:  adobe-air, adobe-flash-player, starling-framework, feathers-ui
flextreemap
TreeMap data visualization component for Adobe Flex
Stars: ✭ 22 (-8.33%)
Mutual labels:  flash, adobe-flash, adobe-air, adobe-flash-player
todo-app
An Adobe AIR mobile app that uses the Firebase V3 API to save users to do's lists and manage their accounts.
Stars: ✭ 19 (-20.83%)
Mutual labels:  adobe-air, starling-framework, feathers-ui
material-design-spinner
Material design spinner for apps powered by Starling and Feathers
Stars: ✭ 23 (-4.17%)
Mutual labels:  starling-framework, feathers-ui
godpaper
🐵 An AI chess-board-game framework(by many programming languages) implementations.
Stars: ✭ 40 (+66.67%)
Mutual labels:  flash, starling
Moonshine-IDE
Moonshine is a free and open source middleweight IDE built with ActionScript 3 for ActionScript 3, Apache Flex®, Apache Royale™, and Feathers development, with Cloud and Desktop support.
Stars: ✭ 86 (+258.33%)
Mutual labels:  adobe-air, feathers-ui
Zeroclipboard
The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
Stars: ✭ 6,650 (+27608.33%)
Mutual labels:  flash, adobe-flash
AIRFacebook-ANE
Native extension for Adobe AIR providing cross-platform API to Facebook SDK 4
Stars: ✭ 19 (-20.83%)
Mutual labels:  adobe-air
stm32bl
STM32 MCU serial firmware loader (jet another stm32loader fw bootloader tool)
Stars: ✭ 22 (-8.33%)
Mutual labels:  flash
micro-bmp
A small Black Magic Probe based on the pinout of the STLink V2 support firmware
Stars: ✭ 29 (+20.83%)
Mutual labels:  flash
w25qxx
w25qxx full function driver
Stars: ✭ 440 (+1733.33%)
Mutual labels:  flash
flash rollbar
Flash notifier for Rollbar
Stars: ✭ 12 (-50%)
Mutual labels:  flash
icon-generator
Generate icons and launch screens for your Adobe AIR projects.
Stars: ✭ 24 (+0%)
Mutual labels:  adobe-air
feathersui-openfl
Cross-platform graphical user interface components for creative frontend projects — powered by Haxe and OpenFL
Stars: ✭ 113 (+370.83%)
Mutual labels:  feathers-ui
FLARToolKit
No description or website provided.
Stars: ✭ 14 (-41.67%)
Mutual labels:  flash
koa-better-error-handler
A better error-handler for Lad and Koa. Makes `ctx.throw` awesome (best used with koa-404-handler)
Stars: ✭ 51 (+112.5%)
Mutual labels:  flash

Preloader for Starling

SWFs running in a web browser should have preloaders. A preloader allows you to quickly display graphics and animation so that visitors to your webpage have something to look at while the rest of the SWF file loads.

How do you create a preloader for a Starling app? It's not really any different than creating a preloader for any other SWF. Here's a summary of how I do it. Be sure to look at the included source code for complete details.

  1. Extend flash.display.MovieClip when creating the startup class. Call stop() in the constructor.

  2. Use the following command line argument to compile your Starling root class on frame 2 instead of frame 1. It's the class that you will pass to the Starling constructor. It usually extends starling.display.Sprite.

    -frame two,com.example.StarlingRoot
    
  3. Wait for the SWF to be completely loaded. Listen for Event.COMPLETE on the loaderInfo object.

  4. In the Event.COMPLETE listener, call gotoAndStop(2) to switch to frame 2.

  5. Get a reference to the Starling root class by calling getDefinitionByName(). Do not import this class. If you import it, it will be compiled on frame 1 instead of frame 2, and then the preloader won't work.

    var RootType:Class = getDefinitionByName("com.example.StarlingRoot") as Class;
  6. Call getDefinitionByName() again to get a reference to starling.core.Starling. Again, do not import this class.

  7. Initialize Starling using the classes returned by getDefinitionByName().

Please see the comments in the example code for more detailed explanations.

This project is not designed to create a preloader with Flash Professional. It is meant as an example for Flash Builder or any other development environment that uses the command line compiler.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].