Giter Club home page Giter Club logo

simple-as3-preloader's Introduction

About:

Simple AS3 swf preloader using GreenSock's LoaderMax.

Document Class Dependancies:

Add the above packages to your classpath.

Required flashvar:

  • "swf"

    Path to loaded SWF file.

Optional flashvars:

  • "link"

    Link to visit when clicked.

    Default is no link.

  • "window"

    • "_self" specifies the current frame in the current window.
    • "_blank" specifies a new window.
    • "_parent" specifies the parent of the current frame.
    • "_top" specifies the top-level frame in the current window.

    Default is _self.

  • "loader"

    Hex color of loader graphic.

    Default is #ffffff.

Usage example:

Javascript (using SWFObject):

<script type="text/javascript">
    <!--
        var flashvars = {
            swf: 'child.swf',
            link: 'http://www.google.com',
            loader: '#FFFFFF',
            window: '_self'
        };
        var params = {
            scale: 'noscale',
            menu: 'false',
            bgcolor: '#000000',
            allowscriptaccess: 'always'
        };
        var attributes = {}
        swfobject.embedSWF('loader.swf', 'hd', '630px', '320px', '9.0.115.0', false, flashvars, params, attributes);
    //-->
</script>

HTML:

<div id="hd"></div>

TODO:

  • Show percent loaded.
  • Make preloader graphic "grow" based on percentage loaded (currently just using looping movieclip).
  • Fade out preloader graphic before showing loaded SWF.
  • Make code more modular?

Changelog:

  • v1.0: 2011/05/05
    • Initial public release.
    • Uploaded to GitHub.

simple-as3-preloader's People

Contributors

mhulse avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.