Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
bkMixer
Fade In and Out plus other commands
DOMAJ Site and Forum
Cyclic appearing and disappearing of sprite.
Versiown
FADER
Centipede
Forward and Reverse (Shitf+Tab) between Fields
Dialing for Behaviors
Power Point Viewer
MediaMacros Xtras Mall
 

 

 

Behavior Unload within The markers v.BETA

Added on 12/12/2001

 

Compatibilities:
behavior D8 D8_5 PC Shockwave

Rating:

Author: tushonline (website)

This will Unload from within the markers specified. Might work in Shockwave and Projector, Test This IF worked or even not let me know,

Download PC Source
-- This behavior unloads data from the markers
-- put the marker names from which and upto which marker you want to unload
-- Beta version
-- tushonline@vsnl.net






Property unload, markerlist, mymarker, from, to,

on resolve me
  --This handler is used to convert non-English languages to Lingo terms.
  case myMarker of      
    "next":
      myMarker = #next
    "previous":
      myMarker = #previous
  end case  
end on




on getPropertyDescriptionList me
  
  currentMember = sprite(the currentSpriteNum).member
  
  markersList = GetMarkers (me)
  if markersList.count() = 2 then -- [[], []]
    ErrorAlert (me, #getPDL_DuplicateMarkers, markersList[2])
  end if
  
  tLabelList = []
  tLabelList.add("next")
  tLabelList.add("previous")
  
  repeat with i = 1 to count(the markerList)
    tLabelList.add((the markerList).getProp((the markerList).getPropAt(i)))    
  end repeat
  pList = [:]
  addProp pList,#from,[#default:#getmarkers, #format:#marker,#comment:"Select the Marker you want to 'Unload From'"]
  addProp pList,#to,[#default:#getmarkers, #format:#marker,#comment:"Select the Marker for 'Unload To'"]
  return pList
end




--get markers

on GetMarkers me -- Sent by 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 exitFrame me
  unload from, to
end

on getBehaviorDescription me
  return "THIS BEHAVIOR UNLOADS DATA FROM THE MEMORY WITHIN SPECIFIED MARKERS" & RETURN & "THIS IS A BETA VERSION & THIS IS as is AND AUTHOR DOESNOT TAKE ANY RESPONSIBILITY IF THIS WONT WORK" & RETURN && RETURn & "use this as a FRAME SCRIPT or attach it to any sprite...This works on exitFrame handler" & RETURN & "ANY SUGGESTIONS OR BUG REPORT ARE GREATLY APPRECIATED" & RETURN & "tushonline@vsnl.net"
end

on getBehaviorTooltip
  return "THIS BEHAVIOR UNLOADS DATA FROM THE MEMORY WITHIN SPECIFIED MARKERS" & RETURN & "THIS IS A BETA VERSION & THIS IS as is AND AUTHOR DOESNOT TAKE ANY RESPONSIBILITY IF THIS WONT WORK"& RETURN && RETURn & "use this as a FRAME SCRIPT or attach it to any sprite...This works on exitFrame handler" & RETURN & "ANY SUGGESTIONS OR BUG REPORT ARE GREATLY APPRECIATED" & RETURN & "tushonline@vsnl.net"
  end

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail