sourceRectAtTime() ?
Moderator: Paul Tuersley
How do you get a value out of the sourceRectAtTime() function? The docs say that it returns "A JavaScript object with four attributes, [top, left, width, height]." Is that supposed to be an array or what? I need to find the width value.
-
- Posts: 704
- Joined: June 5th, 2004, 7:59 am
- Location: London, UK
Something like this:
Code: Select all
var boundsObject = theLayer.sourceRectAtTime(0, true);
alert(boundsObject.top);