setParam returninig AbstractLoader

HomeForumsAssetLoaderFeature RequestssetParam returninig AbstractLoader

Tagged: 

This topic has 2 voices, contains 1 reply, and was last updated by  Matan Uberstein 299 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
Author Posts
Author Posts
July 24, 2011 at 9:46 am #731 Quote

Michał Wróblewski
<p>AbstractLoader:setParam method returning this as a AbstractLoader would allow to do setting params like this.</p>
<p>

Code:
var xmlLoader:XMLLoader = new XMLLoader(request)<br />
.setParam(Param.PREVENT_CACHE, true)<br />
.setParam(Param.CHECK_POLICY_FILE, true)<br />
.setParam(Param.RETRIES, 3)

</p>

July 24, 2011 at 9:57 am #836

Matan Uberstein

Hi Michal,

Great idea, although it would rather return an ILoader instead of AbstractLoader. This will require an update to the ILoader interface, which is something I don’t like to do, because modular apps will go out of sync with each other if the dev decides to upgrade.

But yes, accepted. v2.5.0 will include this.

Thanks again!
Matan

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.