Jump to content

Action Script help


Recommended Posts

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 post
Share on other sites

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 post
Share on other sites
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...