0
방금 ViewNavigatorApplication에서 TabbedViewNavigatorApplication으로 응용 프로그램을 변경했으며 내 영속성 관리자가 제대로 작동하지 않는 것처럼 보입니다.Flex PersistenceManager가 디버거에서 볼 수는 있지만 내 객체를 검색하지 않습니다.
다음은 잘못된 코드입니다 :
protected function creationCompleteHandler(event:FlexEvent):void
{
// Populate fields using last activity from storage
pm.load();
// Make request, display list of actions
var registration:Registration = pm.getProperty("registration") as Registration;
var service:Phonotes = new Phonotes();
var response:AsyncToken = service.ActionList("actionlist", registration.installationId);
response.addResponder(new mx.rpc.Responder(onActionListResponse, null));
}
은 pm 개체가이 범위 밖에서 생성됩니다. 나는이 오류가 계속 어떤 이유
:Main Thread (Suspended: TypeError: Error #1009: Cannot access a property or method of a null object reference.)
그러나 디버거의 변수 탭은 this.pm.so.data.registration
이 제대로 설치되어 있는지 보여줍니다.
아무도 아이디어가 없습니다.
Google에서이 사이트 나이 사이트를 검색하는 예제를 찾을 수 없었으므로 분명히 잘못된 것이 있습니다.하지만 애플리케이션 유형을 변경하기 전에 작동하고있었습니다.