Jump to content
GreenSock

friendlygiraffe

Generic Loader

Recommended Posts

Is there a generic data type for the Loader Classes?

 

I've created a preloader bar, that I want to reuse by passing loads of different types of Loader Type

 

var loaderMc:LoaderBarl = new LoaderBarl(XMLLoader or SWFLoader or ImageLoader);

 

class:

 

public function LoaderWheel(myLoader:LoaderMax)
 {

 

I've tried LoaderMax, but that doesn't work. Is there a way of using something like LoaderItem ?

 

Thanks

Link to comment
Share on other sites

Perfect thanks Carl

 

Having no Type works also:

 

public function LoaderWheel(myLoader)
 {

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×