Zaghloul Posted November 8, 2007 Report Share Posted November 8, 2007 Hey all, here's the problem. I'm trying to create a progress bar for a flash music player, I've got the math right , However I can't seem to figure out a way to add a listener for a variable. Basicly, when the music is playing "mySound.position" is constantly changing and therefor I need to figure out a way to constantly update the bar. Any help would be great, if anything is unclear just ask and I'll try and explain better. Thanks again. Link to comment Share on other sites More sharing options...
justsomeguy Posted November 8, 2007 Report Share Posted November 8, 2007 I'm not sure if you can watch a variable other then in the debugger. What you can do is create a 2-frame movie clip that has the code to check the variable on one of the frames, and it can just sit there looping and checking until you stop it. Link to comment Share on other sites More sharing options...
Zaghloul Posted November 9, 2007 Author Report Share Posted November 9, 2007 What you can do is create a 2-frame movie clip that has the code to check the variable on one of the frames, and it can just sit there looping and checking until you stop it.Haha, thanks, figured it out after I posted, sry didn't get a chance to edit/update my post. Thanks for your replay Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now