Code Monkey home page Code Monkey logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 11, 2024
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)

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.