adi90i7 / as3-commons

Automatically exported from code.google.com/p/as3-commons
0 stars 0 forks source link

Type.for.... methods only reference current ApplicationDomain, add optional param #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load in an external swf containing a class you wish to use. Wait for
Event.Complete.
2. Call Type.forName() with the name of a class contained in the external swf.
3. Class will not be found

4. WORKAROUND: on the loader, load with the LoaderContext.applicationDomain
property set to ApplicationDomain.currentDomain (merging class definitions).
5. Type.forName() returns the correct result.

What is the expected output? What do you see instead?
Throws and error, class not found

What version of the product are you using? On what operating system?
Latest from source

Please provide any additional information below.
Provide optional parameter to Type.for... methods of
(applicationDomain:ApplicationDomain = null) to allow accessing external
libraries.

Original issue reported on code.google.com by carrymass on 10 Aug 2009 at 3:19

GoogleCodeExporter commented 9 years ago
If you use ClassUtils.forInstance() or ClassUtils.forName() in the Lang lib you 
can
pass an optional applicationDomain to the methods, the resulting Class object 
can
then be used with out problems by the Type.forClass() method.

Original comment by ihatelivelyids on 1 Sep 2009 at 4:03

GoogleCodeExporter commented 9 years ago
Since my last comment all the for* methods of the Type class now have an 
optional
ApplicationDomain argument

Original comment by ihatelivelyids on 5 Mar 2010 at 11:50

GoogleCodeExporter commented 9 years ago
Changed status to fixed

Original comment by ihatelivelyids on 21 Mar 2010 at 2:47