Find current frame number of flash movie

I have a director project with qt video where actions are triggered based on specific times in the video (movietime and/or duration). I am updating this project to use flash video instead of quicktime.
For ease of development, and hopefully minimal coding changes, I'd like to keep that functionality similar, but I can't figure out how to capture the current frame of the flash movie sprite.

Can anyone help? or suggest an alternative?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

assuming your flash video is in channel 1 try

(sprite(1).currenttime / 1000.0) * sprite(1).framerate

that should give you an approximation of the framerate.

currentTime is in milliseconds
framerate is number of frames per second.

sprite(n).duration will give you the length of the clip.

you can also use these with the cast member.
CABISAuthor Commented:
For QT and AVI files, that would be correct, but in Director 10, currenttime and duration are not  properties available for Flash Movie cast member types.

Is this a new feature of Director 11 (or 11.5)?

While the movie is playing in channel 1, sprite(1).currenttime = 0

CyanBlue appeared to be talking about flash video when he was actually talking about a swf movie.

the answer to this is:

flashframe = sprite(flashsprite).getVariable("_root._currentframe", 1)

where flashsprite is the channel number of the flash movie sprite in the score

to maintain this in a variable

flashobj = sprite(flashsprite).getVariable("_root", 0)
put flashobj._currentframe


if you put the flashobj into the object inspector you can see the other properties available e.g.

CABISAuthor Commented:
My fault for abandoning this question. Here's what I ended up with:

The cast member is a flash video in a swf wrapper. The code I found that worked is:

sprite(1).frame                         --current frame
sprite(1).member.framecount  --total frames


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.