User Guide
trimWhiteSpace 1061
Example
The following statement sets the callback handler for a QuickTime VR sprite to the handler
named
MyHotSpotCallback when the playhead first enters the sprite span. Every time that
hotspot is triggered, the
MyHotSpotCallback handler is executed. When the playhead leaves the
sprite span, the callback is canceled.
-- Lingo syntax
property pMySpriteNum, spriteNum
on beginSprite(me)
pMySpriteNum = spriteNum
sprite(pMySpriteNum).triggerCallback = #MyHotSpotCallback
end
on MyHotSpotCallback(me, hotSpotID)
put "Hotspot" && hotSpotID && "was just triggered"
end
on endSprite me
sprite(pMySpriteNum).triggerCallback = 0
end
// JavaScript syntax
function beginSprite() {
pMySpriteNum = this.spriteNum;
sprite(this.pMySpriteNum).triggerCallback = symbol("MyHotSpotCallback");
}
function MyHotSpotCallback(hotSpotID) {
trace("Hotspot " + hotSpotID + " was just triggered");
}
function endSprite() {
sprite(pMySpriteNum).triggerCallback = 0;
}
trimWhiteSpace
Usage
-- Lingo syntax
memberObjRef.trimWhiteSpace
// JavaScript syntax
memberObjRef.trimWhiteSpace;
Description
Cast member property. Determines whether the white pixels around the edge of a bitmap cast
member are removed or left in place. This property is set when the member is imported. It can be
changed in Lingo or in the Bitmap tab of the Property inspector.