
April 2nd, 2012, 12:26 PM
|
|
Contributing User
|
|
Join Date: Mar 2004
Posts: 158
 
Time spent in forums: 1 Day 10 h 15 sec
Reputation Power: 10
|
|
|
ActionScript 3 - Set javascript var when playing or stopped/paused
Hello,
I'm using SWFObject 2.2 and neeed to set a javascript variable when the swf is playing or stopped/paused, but can't find how to do that.
I looked into using callbackFn and ExternalInterface.addCallback, as well as the SWFObject docs.
I'm trying to avoid having to create a function with a timeout or interval that checks the swf's isPlaying status. Is there a feature/function in Flash like whilePlaying or onTime, onStop, etc. that I can leverage? I couldn't find anything in the SWFObject docs, bit I could have just missed it.
Unfortunately, I don't have access to the flash source, otherwise the options may be different.
Thank you. This is the final thing I need to finish a new feature.
Sincerely,
Mike
|