From: andyulrika_is_back on
Hi

Can someone please tell me how to do the following...

I want to play a Quicktime movie then have it jump to a frame when complete.

Please see the attached code.

Any help much appreciated.

Andy



-- I have used the following code for a flash member successfully in the past

property theEnd

on beginSprite me
theEnd = sprite(me.spriteNum).member.frameCount
end

on enterFrame me
if sprite(me.spriteNum)._currentframe >= theEnd then
go to frame 15
end if
end



-- I then tried the following but the playhead jumps immediately to the frame
15


property theEnd

on beginSprite me
theEnd = sprite(me.spriteNum).movieTime
end

on enterFrame me
if sprite(me.spriteNum).currentTime >= theEnd then
go to frame 15
end if
end

From: aldus on
"movieTime" holds the current time of the (playing) qt-movie, "duration" the
length of the movie itself.

Regards
Aldus

property theEnd

on beginSprite (me)
me.theEnd = sprite(me.spriteNum).duration -1
end

on enterFrame (me)
if ( sprite(me.spriteNum).movietime >= me.theEnd) then
go to frame 15 -- why not using a marker-name?
end if
end

From: andyulrika_is_back on
Thanks Aldus, works perfectly. Yes, I should have used a marker name instead of a frame, thanks for pointing that out.

Regards

Andy