Giter Club home page Giter Club logo

assetloader's People

Contributors

losrebellos avatar matan avatar olivierphi avatar pa3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

assetloader's Issues

AccessDenied for AssetLoader-v2.3.4.zip

When I try to download the package I get the following error:

AccessDeniedAccess Denied377FA1CA5D5A479847GHIzSCH+hIMFXCsBWCmiEoCCIsU7uuvqx1rP/jhoyvNANPwC3Bf/8KMLeBPVph

Thank you.
=)

Config XML, connections on root

Hi Matan,

The xml attribute connections doesn't seem to work on the node root.

For examples this makes 3 connections in the same time (the 3 videos load in the same time):

<?xml version="1.0" encoding="UTF-8"?>
<loader base="" connections="1">
        <group id="g1">
            <asset id="v1" src="videos/v1.flv" weight="2 mb" />
        </group>
        <group id="g2">
            <asset id="v2" src="videos/v2.flv" weight="2 mb" />
        </group>
        <group id="g3">
            <asset id="v3" src="videos/v3.flv" weight="2 mb" />
        </group>

To make it work I have to add a group (with a connections=1) to wrap the g1, g2 and g3.

That's a bug right?

Romu

setParam returninig AbstractLoader

AbstractLoader:setParam method returning this as a AbstractLoader would allow to do setting params like this.

var xmlLoader:XMLLoader = new XMLLoader(request)
.setParam(Param.PREVENT_CACHE, true)
.setParam(Param.CHECK_POLICY_FILE, true)
.setParam(Param.RETRIES, 3)

XmlConfigParser.parseVo bug using ASC2.0

Hi Matan,

First off, thanks for creating such a great loading library :)

I started a new project today using ASC2.0 and found that AssetLoader is throwing errors due to invalid config values (in my case ConfigVO.type and ConfigVO.blendMode).

I've tracked it down to the XmlConfigParser.parseVo method. What is happening is that using the old compiler the XML attribute queries return null where the attribute does not exist, allowing the OR expression to select the value from the 'inheritFrom' VO. Using the new compiler, the attribute queries appear to be returning an empty XMLList. When assigned to the string properties in ConfigVO, you end up with empty strings for properties such as 'type', which breaks things later on.

child.type = xml.@type || inheritFrom.type;

So the above code will assign xml.@type even when it doesn't exist.

Now, I don't know whether to consider this a bug with ASC2.0 or AssetLoader, but I've found a couple of potential solutions I thought I'd run by you before submitting any pull request:

child.type = xml.hasOwnProperty("@type") ? xml.@type : inheritFrom.type;

child.type = xml.attribute("@type").length() > 0 ? xml.@type : inheritFrom.type;

I'm sure there are several other ways to approach it too. Shame to lose the simple OR assignment, I'm a bit fan of its simplicity, but I really want to start using ASC2.0 and AssetLoader!

Thanks for your time,
Ian

Duplicate URLs block onComplete

Adding duplicate URLs to a list on the AssetLoader will block the onComplete signal from firing.

We had a list of 49 asset URLs determined from recursively walking an object graph. Of the 49 URLs 8 were duplicates. The AssetLoader would load the 41 unique URLs and then hang silently. None of the relevant signals (onComplete, onProgress, onError, etc) were firing.

PNGs load w/o transparency

PNG files loaded are loaded without transparency by default. I expected the library to add transparency to PNG files by default - I assume there's an optimization concern here based on the way you implemented it.

Also, the syntax to turn on transparency seemed a bit cludgy - having to add two params (TRANSPARENT and FILL_COLOR) wasn't expected either; I assumed turned transparency on would default the fill color to transparent.

NetStatusSignal doesn't deliver all NetStatusEvent infos

I was missing the NetStream.Play.Stop info delivered through NetStatusSignal. That's why I stumpled upon the following issue:

the following infos are delivered successfully:
NetStream.Play.Start
NetStream.Buffer.Full

the following are missing:
NetStream.Buffer.Empty
NetStream.Buffer.Flush
NetStream.Play.Stop

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.