|
RemoveObject (Depth as long)
Description
Method removes object from given object. Only one single object can be placed into one depth at time. So depths behave like layers but note that objects already displayed can not be moved. To move object you should first remove object from depth and then re-place object to this depth, change its position and then show frame again
See also:
Parameters
Depth - depth index to remove object from. Depth for placed object is set on PlaceShape, PlaceText and other Place.. methods call.
Result
Example:
Visual Basic / VBScript / ASP:
Text = Movie.AddText("TEST TEXT",0,0,0,255,Font, 0, 80, 170, 160)
StoredDepth =Movie.CurrentMaxDepth
' animation: moving text object
for i = 1 to 80
Movie.RemoveObject StoredDepth
Movie.PlaceText Text,StoredDepth ' place text
Movie.PLACE_SetTranslate 10+i, 10+i*2
Movie.PLACE_SetRotate 360/i
Movie.PLACE_SetSkew 1/i*20, 1/i*30
Movie.PLACE_TransformColor 0, Round (i / 30 * 255), Round (i / 20 * 255), -Round (i / 20 * 255), 0,TRUE
Movie.ShowFrame 1
Next
C#:
C++:
Also Check Examples
|