colinlin1982 / maashaack

Automatically exported from code.google.com/p/maashaack
0 stars 0 forks source link

Problem in Flash CS3 with system.Reflection #153

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In Flash CS3 (in Mac OSX) in the timeline i test the Reflection class with
the script :

{{{
import system.Reflection ;

trace (Reflection.getClassName(this) ) ;
}}}

when i test the code flash notify :

In the system.Reflection class i change :

{{{
package system
{
    import system.reflection.ClassInfo;
    import system.reflection.FilterType;
    import system.reflection.TypeInfo;
    import system.reflection._ClassInfo;
    import system.reflection._TypeInfo;

...
}}}

i can fix the problem if i replace the header of the class with :

{{{
package system
{
    import system.reflection.* ;
}}}

The code work fine in Flash CS3... 

In the past when i compile my source code, i don't see this problem ????

Can you test this bug ?

For the moment i fix the problem with a little refactoring of the class but
i open this issue to fix this bug.

Original issue reported on code.google.com by ekamel...@gmail.com on 25 Apr 2009 at 10:45

GoogleCodeExporter commented 9 years ago

Original comment by ekamel...@gmail.com on 25 Apr 2009 at 10:45

GoogleCodeExporter commented 9 years ago
i forget to write the error in Flash :

5001: Le nom de paquet 'system.reflection' ne reflète pas l'emplacement de ce
fichier. Modifiez le nom de la définition du paquet dans ce fichier ou 
déplacez le
fichier. /opensource/maashaack/trunk/AS3/src/system/Reflection/TypeInfo.as

Original comment by ekamel...@gmail.com on 25 Apr 2009 at 10:47

GoogleCodeExporter commented 9 years ago
so apparently Flash CS3 choke when a class and a package got the same name 
(even if
the camelcase is different)

we should make 2 more tests

 * does it still happen from a SWC in Flash CS3 ?
 * does it happen in Flash CS4 ?

Original comment by zwetan on 27 Apr 2009 at 6:34

GoogleCodeExporter commented 9 years ago

Original comment by ekamel...@gmail.com on 22 Sep 2011 at 6:51