matan / assetloader Goto Github PK
View Code? Open in Web Editor NEWMulti file/asset loader for AS3 built on AS3Signals.
Home Page: http://doesflash.com/assetloader/
License: MIT License
Multi file/asset loader for AS3 built on AS3Signals.
Home Page: http://doesflash.com/assetloader/
License: MIT License
When I try to download the package I get the following error:
AccessDenied
Access Denied377FA1CA5D5A479847GHIzSCH+hIMFXCsBWCmiEoCCIsU7uuvqx1rP/jhoyvNANPwC3Bf/8KMLeBPVph
Thank you.
=)
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
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)
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
retrieved progress:
...
...
73.03894508268318
73.03894508268318
73.03894508268318
73.03894508268318
87.49291449455508
93.48736316927483
95.20006279062333
NaN
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.