?? 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");
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -