CurrentMaxDepth as long

Description

READ ONLY

Use this property to get currently available depth to place object into.

Only one single object can be placed into the given depth. To remove object set PLACE_AutoRemoveDepth to True to automatically replace object with new when new object is placed into the same depth or remove object from depth using RemoveObject method


See also:


Example:

Visual Basic / VBScript / ASP:

  W = 640 ' width
  H = 480 ' height
  Set Movie = CreateObject("SWFScout.FlashMovie")

  Movie.InitLibrary "demo","demo"

  Movie.BeginMovie 0,0,W,H,1,12,6
  Movie.Compressed = true
  Movie.SetBackgroundColor 255,255,255

Shape = Movie.AddShape
Movie.SHAPE_Rectangle 0, 40, 150, 165
Movie.SHAPE_SetSolidColor 145,245,245,true,255

StoredDepth = Movie.CurrentMaxDepth

For i=0 to 100
       Movie.RemoveObject StoredDepth
       Movie.PlaceShape Shape, StoredDepth
       Movie.PLACE_SetPosition 10+i*2, 10+2*i
       Movie.ShowFrame 1
Next

Movie.EndMovie

Movie.SaveToFile "MoveShape.swf"

C#:



C++:

Also Check Examples