property pMarker -- the movie marker to go to when the asset is loaded ---------------------------------------------------------------------- -- Attach this behavior to a frame script or sprite. -- -- This behavior checks the preload status of a preloadNetThing() -- function. It assumes the preloadNetThing() pointer is stored in the -- global variable _global.netID. When the net object is loaded the -- playhead goes to a specified marker. -- -- Ken Loge - http://diginoodles.com ---------------------------------------------------------------------- on getPropertyDescriptionList me list = [:] addProp list, #pMarker, [#comment: "Marker to go to when net object is preloaded:", #format: #marker, #default: ""] return list end on exitFrame me -- stay on this frame until the net operation is completed if netDone(_global.netID) = FALSE then _movie.go(_movie.frame) else -- when finished, go to a specified marker _movie.go(pMarker) end if end