Jump to content
Search Community

Feature request: LoaderMax.getRawContent()

Ahrengot test
Moderator Tag

Recommended Posts

I don't know if i've overlooked a preexcisting way to do this (get raw loaded content by defining URL or loader name)

 

Scenarios could be that i wanted to access methods, setters, getters etc. on my loaded swf's or controlling playback (gotoAndPlay(), gotoAndStop(), stop() etc.)

 

since it's already a feature of the individual loaders i think it would make sense to add it to LoaderMax.

 

Of couse i could just go like this:

SWFLoader(_loadingQueue.getLoader("foo")).rawContent.myMethod();

 

but i think this is a little prettier:

_loadingQueue.getRawContent("foo").myMethod();

 

Anyway, I hope my request makes sense ;)

Link to comment
Share on other sites

Well, the challenge with that is that only SWFLoader, ImageLoader, and VideoLoader have rawContent. All other loaders don't. So it wouldn't make a lot of sense to create a global/static method like that when it only applies to a subset of loaders. See what I mean? Plus there's the "bloat" factor - I'm trying to keep things relatively lean and mean :)

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.
×
×
  • Create New...