Comments (5)
Hej Arthur,
you are right. I test it in strict-mode and sure I can compile it without
problems.
It seems that the Parser has some problems. I will talk to the FDT-Team.
Original comment by [email protected]
on 12 Dec 2007 at 8:48
from bulk-loader.
The FDT folks were very nice and answered that the issue is a bug on their
parsing
code(it's having trouble reading the static initializer near loadClass).
They said a fix is on it's way, but not very critical right now, so it might
take
some time.
I'll think about wiping a patch for that if I have the time.
[]s
Arthur
Original comment by debert
on 18 Dec 2007 at 12:11
- Changed state: WontFix
from bulk-loader.
This is actually very easy to fix, I've posted the fix on my blog, it really
only
requires minor changes to two lines of code:
On line 201-207 of LoadingItem.as remove all of the quotation marks. These lines
should now look like so:
private static var classes : Object= {
loader: Loader,
xml: URLLoader,
video:NetConnection,
sound: Sound,
text: URLLoader
};
In line 958 of BulkLoader.as add a “new” before “type”. This is better
practice in my
opinion anyway. I personally find the change of ClassName(statement) from a
casting
role into an implied constructor, very annoying! Should look like:
var res : * = new type(item.content);
That will take care of the errors in FDT without changing the behavior of
BulkLoader
or it's compiled op-code. (unless I'm mistaken?)
Original comment by [email protected]
on 8 Jan 2008 at 7:29
from bulk-loader.
I've posted about it on FDT blog. Solution you are proposing:
var res : * = new type(item.content);
It is NOT good. This line should like about this:
var res : * = item.content as type;
In this line there is a casting operation ( we know that item.content "is" type
),
not creating new instance of type class.
BTW Is there any chance to make this changes into svn repo?
Original comment by [email protected]
on 26 Jan 2008 at 3:13
from bulk-loader.
The FDT fix was taking to long, fixed in revision 111.
Original comment by debert
on 5 Feb 2008 at 2:54
- Changed state: Fixed
from bulk-loader.
Related Issues (20)
- MP4 Issues Cont. HOT 1
- getProgressForItems return NaN for weightPercent until every item has begun loading HOT 3
- An error is caught by the unloadAndStop check in ImageItem::destroy() in FP10 compiled with Flex_SDK_0_Pure HOT 1
- Missing error event metadata HOT 1
- Flex Support HOT 5
- Flex SWC HOT 7
- Problems with asdoc HOT 3
- Create svn tags with the stable releases HOT 1
- [BulkLoader] Cannot use an instance that has been cleared from memory (.clear()) HOT 3
- BulkLoader.registerNewType should lowercase atType parameter too HOT 1
- stop() HOT 2
- getDisplayObjectLoader returns null from nested SWF on server. (works locally.) HOT 5
- Type was not found or was not a compile-time constant: BulkLoader HOT 7
- loadNow method loads all images instead of the one specified HOT 1
- weightPercent always 0 in Safari HOT 3
- get function not working properly to addEventListener HOT 1
- No such thing as BulkErrorEvent? HOT 1
- repository link isn't working HOT 2
- add() function will create another LoadingItem if no ID is used
- Cannot use non-integer weights HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bulk-loader.