Wait at marker till the specific frame is ready - frameready()
______________________________________________________________________________________________
----------------------- tushar
-- ------------------------ www.tushar.tk
------------------------------ tushonline@hotmail.com
property
pmarker, pframe, ploop
on getpropertydescriptionlist
me
list = [:]
addprop list, #pframe, [#comment: "Select Frame up to which you want
data to be ready", #format: #string,#default: "MyFrame"]
addprop list, #pmarker, [#comment: "Select marker where you want
to jump after loading", #format: #marker,#default: #mymarkers]
return list
end
on myMarkers
me -- see ^getPropertyDescriptionList^
localMarkerList = []
duplicatesList = []
markerString = the labelList
delete the last char of markerString
markerCount = the number of lines of markerString
repeat with i = 1 to markerCount
theMarker = markerString.line [i]
if localMarkerList.getPos(theMarker) then
-- Duplicate marker name
if not duplicatesList.getPos(theMarker) then
duplicatesList.append(theMarker)
end if
else
localMarkerList.append(theMarker)
end if
end repeat
if duplicatesList.count() then
return [localMarkerList, duplicatesList]
else
return [localMarkerList]
end if
end GetMarkers
on enterframe
me
if frameready (pframe) then go to pmarker
else
go loop
end if
end
on getbehaviordescription
me
return "This behavior make a loop at current marker till the frame
specified is ready."&return& "http://tushar.tk"&return&"tushonline@hotmail.com"
end |