Extensions Move Object To Front

void object.moveToFront ( )

Changes an object's Z ordering so that it is above (or in front of) all other objects on the same layer.

Parameters

None.

Return Values

None.

Example

-- Assume we have a table of objects indexed by ID
object1 = mmf.objects[1]
object2 = mmf.objects[2]
 
-- Our assertion should never fail
object1.moveToFront()
assert(object1.isAbove(object2))

Copyright 2010 Justin Aquadro