|
|
|
FrameReady()
Added on 1/21/2002
|
|
Compatibilities:
|
This item has not yet been rated
|
checks if frame is reay
--------------------------------------------- tushar
-- ----------------------------------------------tushonline.8m.com
----------------------------------------------------www.imepl.com
------------------------------------------------------ www.run4fx.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& "tushonline.8m.com"&return&"www.imepl.com"
end
|
|