After classes have been imported using their fully qualified class names, they can be referred to by their class names alone. Using an import statement is analogous to explaining that when you say Roger in subsequent conversation, you mean Roger Eliot Braunstein. This applies equally to all types of imported code, as the previous example shows. The exception to this rule is when two classes with the same name have been imported from different packages. Their unique packages guarantee you can still use both, but when both are imported, you must always disambiguate references to the classes by using their full name. If you had also used the Rectangle class from flash.geom, our example would change另外,在.net区也发了同一帖子,在那里本人能给的分低,如您的翻译过关的话,400分全给您!决不食言!

解决方案 »

  1.   

    当类以完全合格的类名导入的时候,他们可以仅通过类名被查找到。使用导入声明就类似于当你在随后的会谈中解释你和roger的谈话,你的意思是Roger Eliot Braunstein。这会被所有导入代码的类型所运用,就像以前的实例所证实的。这种法则的异常是当拥有相同名字的两个类从不同的包导出时。他们独一无二的包可以保证你同时运用这两个类。但是当两个类都被导入时,你必须通过使用全名来明确类的关联(抱歉我不清楚这个reference究竟应该意译成什么,或者干脆不翻译)。如果您也使用了flash.geom的Rectangle类,我们会改变我们的例子
      

  2.   

    请gyk120兄到
    http://topic.csdn.net/u/20080819/13/7fd1333c-6ed3-46f7-a0b9-a35b9b216acf.html
    还有100分
    此贴就结了
      

  3.   


    reference在此处可以翻译成涉及到