I need a flash play-pause button embedded on my website. I was googleing around for a while but not find. Or the ones to buy... I need it free.
thanks,
bnbrown
This is the code for play button
_root.play_btn.onPress = function() {
if(!_root.timing) {
if (_root.paused) {
_root.startTime = getTimer() - _root.elapsedTime;
} else {
_root.startTime = getTimer();
}
//start timer
_root.paused = false;
_root.timing = true;
}
}
and This is the code for stop button
_root.stop_btn.onPress = function() {
//stop the timer
_root.timing = false;
//reset the paused variable
_root.paused = false;
//reset the display textbox
_root.timer_txt = "00:00:00:00";
}
Is it javascript? Or how to put it into my site?
Didn't say for what purpose you make this button.There are a lot of options you can using to doing this action.For example you can make a digital timer or some multimedia stuffs or some time counter.Tell me what you plan to put on your website
BTW this is action script code
I actually found one embed-ready flash button. You can look at it here: http://lookingdoor.zsoltar.hu/en Maybe later I would like to improve it with a flash line that shows in time where the playing is at frame.
actionscript code sometimes a bit confusing to the firstime who sees it. AS is very very similar to javascript! thats why its very common that someone is confused about it.

| kawkazEE wrote: |
actionscript code sometimes a bit confusing to the firstime who sees it. AS is very very similar to javascript! thats why its very common that someone is confused about it.  |
Lol maybe couse its all based on ECMA script standard for that purpose?
So there are not trillion various scripts with misc syntax.