Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Simatrix Lingo Font
cXtraEditBox
Dave Client
space crawling
Multi Cropper
Frogger by J.R.D.R.
Regular expressions
QuickTime Installer
JTMR Image to Text
Exit Windows
 

 

 

Behavior FrameReady()

Added on 1/21/2002

 

Compatibilities:

This item has not yet been rated

Author: tushonline (website)

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

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail