FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Need a flash play-button





bnbrown
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
drpiga
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";
}
bnbrown
Is it javascript? Or how to put it into my site?
drpiga
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
bnbrown
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.
kawkazEE
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. Laughing Laughing
Sappho
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. Laughing Laughing


Lol maybe couse its all based on ECMA script standard for that purpose? Smile So there are not trillion various scripts with misc syntax.
Related topics
TrendyFlash Site Builder 1.0
Stick RPG Anyone?
Play video in html
Why I think iTunes is horrible
video in flash
flash
flash
Flash Help
Do you think there are wizards and magic in this world?
Youtube.com movies
Can someone recommend me an Mp3 Player?
Up to 300 frih$ for Flash Player Images + Question for frih$
Firefox add ons
What song are you listening to right now ?
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.