Following discussions earlier I set up a player with the movie.
I then use import snapshot to get the current frame being played in the movie.
Everything works fine when the lockscreen is false when lock screen is true, I get monochrome data...
I cannot figure out what is going on there...
Thanks for any idea.
Code: Select all
on takeASnap
lock screen
set the showController of player"coralPlayer" to false
--keep track of what the position of the player is before taking the snapshot...
put the rect of player "coralPlayer" into tRect
--blow the players to full size before taking the snapshot
put the formattedWidth of player"coralPlayer" into tFormatWidth
put the formattedHeight of player "coralPlayer" into tFormatHeight
set the width of player "coralPlayer" to tFormatWidth
set the height of player "coralPlayer" to tFormatHeight
set the loc of player "coralPlayer" to the loc of this card
import snapshot from player"coralPlayer"
-- get the imagedata of the last image and put it into the working image
put the short id of the last image into lastIm
put the imagedata of image id lastIm into imdat
set the imagedata of image "workImage" to imdat
-- reset the rect of the player
set the rect of player "coralPlayer" to tRect
delete image id lastim
set the showController of player"coralPlayer" to true
unlock screen
end takeASnap