Giter VIP home page Giter VIP logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
hey there, no, the clazz property shouldn't be null, unless maybe if the Class 
is an internal one. I will need to experiment a bit.

As for the other issue you've added, I won't have time to get into this until 
next week, I'm sorry for this, but my dayjob is rather busy at the moment. I'll 
definitely follow-up though, bear with me :)

Original comment by [email protected] on 3 Feb 2011 at 12:26

from as3-commons.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
Thanks for your help.

So you say, "unless maybe if the Class is an internal one".  Well, that's the 
situation in my example code above, so that is probably the issue. :(  I know 
that the native flash.utils.getDefinitionByName() does not return internal 
classes.  I thought ByteCodeType might have some magic. :)

However, if you notice in my above example, it requests the internal class 
using ByteCodeType.forClass().  But, this *still* does not fill in the clazz of 
the returned ByteCodeType instance (even though the library has just been 
"given" a reference to that very Class).  Perhaps it should be filled in for 
this case?  Although it might be of marginal overall usefulness, it would allow 
client code to at least treat ByteCodeType instances for internal and external 
classes the same in cases similar to my example.

Original comment by [email protected] on 3 Feb 2011 at 7:14

from as3-commons.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
I'm actually now checking to see if the clazz property is null in the 
ByteCodeType.forClass() method, if its null I assign the Class instance that 
was passed to the method as its value. This should solve your problem with 
ByteCodeType.forClass().

Original comment by ihatelivelyids on 26 Mar 2011 at 10:51

  • Changed state: Fixed

from as3-commons.

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.