📄 samplenamespaces.as
字号:
package org.kingda.book.basicoop.hideimplementation
{
import flash.display.Sprite;
import org.kingda.book.basicoop.hideimplementation.kingda;
//namespace outclass;
use namespace kingda;
public class SampleNamespaces extends Sprite
{
private namespace inclassA;
private namespace inclassB;
public function SampleNamespaces() {
var foo:TwoNamespaces = new TwoNamespaces();
use namespace inclassA;
namespace inmethod;
trace (kingda);
//trace ("outclass:"+outclass);
trace ("inclassA:"+inclassA);
trace ("inclassB:"+inclassB);
trace ("inmethod:"+ inmethod);
foo.kingda::sayHello();
definedNamespace(); //测试遮罩顺序。
}
private function rrrdefinedNamespace() {
trace ("===private defined");
}
kingda function definedNamespace() {
namespace outconsturctor;
trace ("outconsturctor:"+outconsturctor);
trace ("internal:" );
}
inclassA function definedNamespace() {
trace ("==inclassA defined");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -