패널 안에서 생성된 첫번재 오브젝트를 반환하는 API이다.
Type | Description |
---|---|
INSTANCE | 맨 위에 놓여진 오브젝트 |
1차 자식 컴포넌트만들 대상으로 하고 싶은 경우에는, getchildinstancefirst API를 사용한다.
function btnGetinstancefirst_on_mouseup()
{
var FirstObj = panel.getinstancefirst();
screen.alert(FirstObj.getname());
// FirstObj 라는 변수에 맨 위 오브젝트를 받아서 이름을 alert로 띄운다.
}