TinyPortal

Development => Block Codes => Topic started by: Moocat on September 08, 2005, 04:58:47 AM

Title: flash clocks
Post by: Moocat on September 08, 2005, 04:58:47 AM
EDIT: read below for flash clock embed code.
Title: Re: clock
Post by: Moocat on September 09, 2005, 04:23:29 PM
ok the problem is basically solved now... all i had to do was change the type of block to a javascript/html from a simple js block, and it works in IE and FF. for some reason, when i typoed and said the path was "/foum/clock.swf/" IE displayed the clock but FF did not. wierd huh? anyway, now its centered perfectly :) if anyone wants to know how to embed a clock in a simple js/html (*a plain html block won't work!!*) block, heres the code!

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" id="clock" width=157 height=157 bgcolor=white>
<PARAM NAME=movie VALUE="/forum/clocks/amber.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME="wmode" value="transparent">
<EMBED src="/forum/clocks/amber.swf" quality=high NAME="clock" ALIGN="center" width=157 height=157 TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" wmode=transparent>
</EMBED>
</OBJECT>

i had the width and height set to 162 to fit my block, but you have to change that to work for you... all you have to do to get your clock working is change the "/forum/clock.swf" to the path that your clock is in, and "clock.swf" to the filename and it will work :)
http://www.adamdorman.com/flash_clocks1.php is great for flash clocks :)
Title: Re: flash clocks
Post by: carver on September 19, 2005, 12:13:13 AM
is this a version 0.7.2 block or should this work with 0..6.5 ?
I get the block of proper size but no clock...
Any ideas?
Title: Re: flash clocks
Post by: Moocat on September 19, 2005, 05:01:16 AM
you need to download the clock file (of course) and upload it to the directory specified. also name it clock.swf and it should work fine.
Title: Re: flash clocks
Post by: Moocat on September 19, 2005, 05:11:53 AM
remember also, put the code in an html/javascript block, and make it without a title bar or background. then all you have to do is choose the clock and set the dimensions right and it should work. if not, maybe you don't have macromedia flash? try it in both firefox and IE see if it work in either, because you have to install macromedia flash seperately
Title: Re: flash clocks
Post by: carver on September 19, 2005, 02:09:31 PM
Thanks. I need to stop doing this when I am half asleep...
Title: Re: flash clocks
Post by: Moocat on September 19, 2005, 05:00:18 PM
did u get it all working?
Title: Re: flash clocks
Post by: carver on September 19, 2005, 05:34:07 PM
Yeah, Once I woke up and understood what you wrote..
Thanks
Curt
Title: Re: flash clocks
Post by: Moocat on September 19, 2005, 06:27:06 PM
yw :)
Title: Re: flash clocks
Post by: bzmorrow on September 22, 2005, 08:10:56 AM
This is how I have it set up, why can't i get this smaller then it is? Its friggin huge!

Quote<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" id="clock" width=100 height=100>
<PARAM NAME=movie VALUE="glow.swf">
<PARAM NAME=quality VALUE=high>
<EMBED src="/forum/glow.swf" quality=high NAME="clock" ALIGN="center" width=100 height=100 TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>

http://inspectorsforum.com/forum/
Title: Re: flash clocks
Post by: WizardHawk on September 24, 2005, 06:29:57 PM
The size is set by the two Width and Height entries. Yours is set to 100 x 100. If you want a smaller clock, change both sets of values to something smaller. Try 75 x 75 if you like. Flash clocks are fully scaleable.
Title: Re: flash clocks
Post by: bzmorrow on September 24, 2005, 07:20:11 PM
Hey thanks for the reply, I guess it I had it set wrong in ther js/html block and I had it set to just html. But I got it working Moocat helped.

Cheers,
bz
Title: Re: flash clocks
Post by: Moocat on September 24, 2005, 07:29:16 PM
changed my code, now i have it set to have a transparent background and take the background color of the them you are using! :)

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" id="clock" width=157 height=157 bgcolor=white>
<PARAM NAME=movie VALUE="/forum/clocks/amber.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME="wmode" value="transparent">
<EMBED src="/forum/clocks/amber.swf" quality=high NAME="clock" ALIGN="center" width=157 height=157 TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" wmode=transparent>
</EMBED>
</OBJECT>
Title: Re: flash clocks
Post by: JDMhustle on October 04, 2005, 07:28:27 PM
Nice code  ;) it took me a while to figure it out but it works!

http://forum.sirfanaticsholland.com/index.php?action=forum

Grtzz
Title: Re: flash clocks
Post by: Moocat on October 04, 2005, 08:29:18 PM
you may want to adjust the width of your left column?
Title: Re: flash clocks
Post by: JDMhustle on October 04, 2005, 08:35:14 PM
Quote from: Moocat on October 04, 2005, 08:29:18 PM
you may want to adjust the width of your left column?

I've noticed this before... i tried to adjust the left column and change the size of the clock but it's still the same.
No change whatsoever.
Title: Re: flash clocks
Post by: IchBin on October 04, 2005, 09:33:31 PM
Does your theme only do that if the flash clock is on?
Title: Re: flash clocks
Post by: Moocat on October 05, 2005, 03:24:15 AM
that is very odd... what in the code i provided did you change besides the dimensions?
Title: Re: flash clocks
Post by: resurgence on October 05, 2005, 02:28:18 PM
well i have several differnt clocks now! xD thank you so much moocat :0

quick question though:

is there a way to make the clocks selectable to the other users? so far, i'm the only one who can change it. selectable like themes, i mean.

:)
Title: Re: flash clocks
Post by: Moocat on October 05, 2005, 02:36:59 PM
i'm sure if you made a drop down menu and set the name of the clock in the code i provided to a variable, you can assign different clocks to that variable? i'm not the best with that type of stuff but i'll try and take a stab at it later today
Title: Re: flash clocks
Post by: resurgence on October 05, 2005, 02:48:27 PM
Quote from: Moocat on October 05, 2005, 02:36:59 PM
i'm sure if you made a drop down menu and set the name of the clock in the code i provided to a variable, you can assign different clocks to that variable? i'm not the best with that type of stuff but i'll try and take a stab at it later today


xD neither am i.

but i wish you luck! :)
Title: Re: flash clocks
Post by: Moocat on October 05, 2005, 05:07:40 PM
i have a decent amount of other stuff to do so i may or may not get a chance today, i'm working on making a few 3d models for animations and the like atm.
Title: Re: flash clocks
Post by: IchBin on October 05, 2005, 05:12:37 PM
As long as you show your work when you are done. :)
Title: Re: flash clocks
Post by: Moocat on October 05, 2005, 08:06:18 PM
lol may end up being a pretty big project, i'm trying to model a space ship (with all those details on it [imagine a star wars bad-guy ship])
Title: Re: flash clocks
Post by: Moocat on October 06, 2005, 09:40:27 PM
man sorry about the lack of time, i could have written it by now, but just been preoccupied with this 3d thing, then a couple of papers (had three this week), now i'm working on another paper, then fall break which i'll be busy all the way through til next wednesday. it should be fairly quick to write up, but like i said i had prior responsibilities :(
anyway, i MAY have time to do it over break this weekend as i'm bringing one of my computers home (i actually have a desktop and a laptop here in my dorm) but can't guarantee how much time i'll have! ttyl gotta get back to my paper
Title: Re: flash clocks
Post by: Moocat on October 30, 2005, 12:31:02 AM
sorry i've been really busy lately, but i got some time yesterday and this morning to work on it. i could get the selection dropdown menu to come up, with the options, but selecting something didn't change anything. sorry, i tried my best :(
Title: Re: flash clocks
Post by: bloc on October 30, 2005, 11:39:31 AM
A variable set just there in the block will not be saved. So while a dropdown could be provided, it will just go back to the original again.

What you need is a setting in the profile for multiple clocks, and using that variable to set the type of clock.
Title: Re: flash clocks
Post by: Moocat on October 30, 2005, 06:59:39 PM
yeah. no way i'd be able to do that lol
Title: Re: flash clocks
Post by: Nightstalker on November 19, 2005, 01:00:29 AM
Got the clock working no problem's there,but I be damned if I get the thing centered.I have center in the command line but its sit's left in its box?
Any idea's.
Title: Re: flash clocks
Post by: Xarcell on November 19, 2005, 01:38:38 AM
<center> CODE </center>

That's what I use. HTML
Title: Re: flash clocks
Post by: winux99 on June 07, 2006, 04:51:27 AM
awesome!!! Can't believe I got it to work perfectly the first time. Probably cause I am using default SMF theme!! Thanks for the script!!

http://www.mytechforum.net
Title: Re: flash clocks
Post by: veysel_yildiz_81 on June 10, 2006, 02:08:55 PM
Çalışmıyo bunlar ben Çalıştıramadım yawf
Title: Re: flash clocks
Post by: G6Cad on June 10, 2006, 02:18:44 PM
You have to keep the english language in this forum.
There are language specific forums where you can get support in other languages, please use the right forum for you language.
Title: Re: flash clocks
Post by: Crip on June 10, 2006, 03:31:00 PM
What they say G6?
Title: Re: flash clocks
Post by: G6Cad on June 10, 2006, 03:32:47 PM
Have no idea :)
I only understand Swedish, Danish, Norwegan, English, and some German and Finnish, and very little Spanish, so that language is way out of my league  :o
Title: Re: flash clocks
Post by: Rnny_X on August 11, 2006, 02:41:42 PM
it's turkish :D
Title: Re: flash clocks
Post by: rctxtreme on August 16, 2006, 11:45:44 PM
I used the clock, but it doesn't work, just turns up a big space and when I right click it says "Movie not loaded... | Adobe Flash Player 9"
Title: Re: flash clocks
Post by: akulion on August 16, 2006, 11:48:02 PM
go to macromedia.com and download the latest flash player

that could be ur problem that u dont have it installed
Title: Re: flash clocks
Post by: rctxtreme on August 17, 2006, 07:23:47 AM
I have flash player 9 (akulion, it's ADOBE!!!) and it works perfectly.
Title: Re: flash clocks
Post by: akulion on August 18, 2006, 01:08:43 PM
maybe ur using the wrong embed codes for it?

check down at kirupa.com its a flash forum

or at flashkit.com

both are the most popular - also ull be sure t pick up some cool stuff while down there
Title: Re: flash clocks
Post by: rctxtreme on August 18, 2006, 10:14:57 PM
...... I don't want to have a flash-loaded site