in your other thread, you state you want to play an animation in full screen and have it fit whatever the users' screen size.
i don't see how playing it to an object would be any benefit (it would be a solid performance hit, especially at the resolution you're using) when you can scale the animation to fit the screen while maintaining its correct aspect ratio.
try something like this, instead:
dw = desktop width() : dh = desktop height()
set display mode dw, dh, 32
load animation "movie.wmv" ,1
aw = animation width(1) : ah = animation height(1)
rem scale the anim to fit the screen
scale# = (dw*1.0)/(aw*1.0)
if (scale#*ah) > dh then scale# = (dh*1.0)/(ah*1.0)
bw = scale#*aw : bh = scale#*ah `get new dimensions for animation
xoff = (dw-bw)/2 : yoff = (dh-bh)/2 `set x/y offsets to center anim in screen
endx = (xoff+bw) : endy = (yoff+bh) `set x/y ends
play animation 1,xoff,yoff,endx,endy
repeat
until animation playing(1) = 0
delete animation 1
or, am i missing some other reason that you
must play it to an object?
Virtual Nomad @ California, USA . DBPro V7.7 . Matrix1Utils 05.27.12
AMD Phenomâ„¢ X4 9750 Quad-Core @ 2.4 GHz . 8 GB PC2-6400 RAM
ATI Radeon HD 3650 @ 512 MB . Vista Home Premium 64 Bit