Time delay loading for swf files and images

Date: 26th March 2008 at 11:54 pm | Filed under: actionscript, development, flash, scripts | Author: Sam Burdge

Q. How can I make an image or swf file load after a specified number of seconds?

A. Use the simple but effective flash_timer.swf file by Sam Burdge. Whoopeee!

Ever wanted a particular Flash movie or image to load up / start playing after the rest of your page has loaded, or after a set amount of time? This tutorial, and the support files provided with it will make it very easy indeed. The flash_timer.swf file will load a swf or image into your page after a number of seconds that you specify.

Example:

Check out this basic example to see a swf (called test.swf) load after a 10 second delay: Example 1
You can view the source code of the example to see how it works.

Usage:

  1. Download the source files using the link below, and unzip the archive.
  2. Embed the swf file 'flash_timer.swf' into your webpage. In my example I have used the swfObject method to embed the file, but you can use whichever method you prefer. For more information about this you can check this useful tutorial by Jeroen Wijering.
  3. Set the height, width & background colour of the swf according to those of the file you want to load in.
  4. Pass the two variables that the file requires to work: myswf – the file that will be loaded & mysecs – the number of seconds delay before the file is loaded. You can pass the variables in the url string, for example:

flash_timer.swf?myswf=my_movie.swf&mysecs=5

(This will load the movie 'my_movie.swf' after a 5 second delay.)

You can also pass the variables as flashvars, for example:

flashvars="myswf=example.jpg&mysecs=10"

(This will load the image 'example.jpg' after a 10 second delay.)

I hope you find this useful, if you do or if you have any questions, please feel free to leave a comment on this page (no emails please, I won't reply unless you are offering me hard cash!!). The flash_timer.swf file is only 1kb, so it will not effect the overall loading time of your page, it can be embedded at any height/width dimensions and works from flash player 7 upwards.

Download Source:

The download contains the all important flash_timer.swf plus a working example (index.html). The size of the zip is 6kb. Enjoy!!


14 Responses to “Time delay loading for swf files and images”

  • Comment by Bob Stone
    Date: May 12th, 2008 at 1:32 pm

    Excellent, excellent, excellent! spectacular! stupendous!

    Was exactly what I was looking for.
    And does exactly what you said it would do!
    Can’t say that about many other things I’ve downloaded - including stuff I’ve paid for!

    Good show!

  • Comment by Wayne Moran
    Date: June 21st, 2008 at 1:40 am

    Great tool - well done. One issue however: how can I prevent my video from repeating / looping continuiously. I have tried setting &loop=false as part of passing the swf filename and I have set it in the calling code as well but it ignores them. See the code below:

  • Comment by Nathan
    Date: September 10th, 2008 at 10:14 pm

    I have the same problem as Wayne Moran. I would like the flash to run only once, as the constant repeating would detract from the sight and prevent the point of the flash from being made.

  • Comment by dave.com
    Date: September 19th, 2008 at 5:57 pm

    Works perfectly… Amazingly simple…see http://www.hotmix.org

  • Comment by Bhaskar
    Date: November 28th, 2008 at 4:39 am

    Excellent work !.
    Its working fine. But I have placed my own swf insted of yours (test.swf). That is not working. Can you suggest a solution.

  • Comment by delicious
    Date: April 27th, 2009 at 12:03 am

    So, if I understood this:
    I have a webpage, I want it to download the page files that are not flash files first, so clients be able of start reading stuff and see some light weight images, so once the files be downloaded say 5 secs, as it is rather light stuff, then I would like the flash file to start being downloaded, because clients will be busy reading and watching other stuff while the flash file downloads, is that correct????????

  • Comment by George
    Date: August 20th, 2009 at 8:29 am

    Great tool.
    @ Wayne Moran and Nathan: This is not a problem of the swf file from Sam, it must be a problem of your swf, which loops.
    Bye
    George

  • Comment by Kyle
    Date: September 4th, 2009 at 1:53 pm

    I cannot get this to work on a LAMP server. Any ideas?

  • Comment by istochath
    Date: September 29th, 2009 at 8:28 pm

    I am a total noob at times, more an artist than a webmaster. I’m trying to plug this in with no success. Could I get a hand with this, I’m plunking it in to a div cause I have a heavily layerd page. Thanks.

  • Comment by lushmind
    Date: December 23rd, 2009 at 2:26 am

    what is the function of the “8″ in the string? it seems to be a variable, but for what?

    thanks.

  • Comment by clarp
    Date: October 5th, 2010 at 12:07 pm

    Hi Sam, Sorry but I’m being very dumb… I follow the logic but can’t seem to apply it to my situation!
    I’m using a javascript call on a swf music player.

    Happy to send a donation to a fellow Brit to get it working ;-)

    Thanks,

    Peter

    var options = {};
    options.mediaPath = “images/stories/audio/lifestyle_mono.mp3″;
    options.firstColor = “b7b7b7″;
    options.backColor = “3E2D23″;
    options.strokeColor = “3E2D23″;
    options.autoPlay = “true”;
    var params = {};
    params.allowScriptAccess = “always”;
    swfobject.embedSWF(”images/stories/audio/LWMusicPlayer.swf”, “player-holder”, “45″, “21″, “9.0.0″,false, options, {}, {});

  • Comment by Diana
    Date: October 27th, 2010 at 8:36 pm

    Fabulous! You rock man, quick question, is there a way i can have a background image displayed until it starts showing the movie?

  • Comment by Jennifer
    Date: December 22nd, 2010 at 5:16 pm

    I am trying to implement this on my site and everything works great except there is a giant black box in the space where my movie will be once it loads. Is there a way to have an image there instead, that will then be replaced once the movie loads? How would I do this…

    Thanks! <3

  • Comment by dionys
    Date: March 11th, 2011 at 7:13 pm

    I have links on my flash file (set with .xml file). They don’t work with flash_timer.swf. Do you have any ideas why?

Leave a Comment

Image mouseovers without javascript - CSS & Sprites

Date: 3rd March 2008 at 1:27 am | Filed under: development, scripts | Author: Sam Burdge

This article is an extension / improvement upon another article I published on my site previously: {{post id="simple-javascript-for-image-mouseovers" text="Simple Javascript for Image Mouseovers"}}. As I am always looking for improved methods, I was discussing the pitfalls of the javascript method with a friend (and occasional comment writer / contributor to my site) who pointed me in the direction of CSS and image sprites. This lead me to research the topic further, and I found two articles in particular which were incredibly useful:

Read on…

5 Responses to “Image mouseovers without javascript - CSS & Sprites”

  • Comment by Jonn
    Date: April 29th, 2008 at 1:15 pm

    Very nice article. Thanks.

  • Comment by hot girls publisher
    Date: July 13th, 2008 at 7:20 am

    I used this article in the making of this website! Thanks! http://www.girlsbeinghot.com

  • Comment by Ray
    Date: February 18th, 2009 at 4:36 pm

    Super-informative site! I am loving it!! Will come back again - taking you feeds also, Thanks.

  • Comment by Иван Евсеев
    Date: June 13th, 2009 at 4:14 am

    Замечательно написано, но как говорится, для полноты информации нужно минимум хотя бы три источника :)

  • Comment by Datsu
    Date: July 31st, 2009 at 8:20 pm

    This was extremely helpful; exactly what I was looking for and simple to implement. Thank you!

Leave a Comment

WordPress - Change Default Email Address Plugin

Date: 20th February 2008 at 12:04 am | Filed under: development, plugins, wordpress | Author: Sam Burdge

This WordPress plugin changes the default email address that all notifications sent from your blog are addressed from. The default address for all emails sent by your blog is currently wordpress@ yoursite.com.

I had seen some tutorials / forum entries previously where people suggested editing the core WordPress file 'pluggable.php' to overide this default. This method does work, however you would have to repeat the hack every time you upgrade to a new version of WordPress so it is not an ideal solution.

Faced with this problem for a site I was working on recently, I wrote this basic plugin which allows you to configure your own email address in the format: Your Name <yourname@yoursite.com>.

Installation:

  1. Upload the file wp_change_default_email.php to your wp-content/plugins folder
  2. Activate the plugin from the Plugins page in WordPress

Usage:

  1. In the Plugins page in WordPress click the edit button next to the plugin in the list.
  2. Scroll down until you see a note saying 'Configure it'
  3. Enter your name and email as shown
  4. If you don't enter a new address the default 'wordpress@' will remain

Download:


40 Responses to “WordPress - Change Default Email Address Plugin”

  • Comment by Shane
    Date: February 29th, 2008 at 8:33 am

    Works great - thank you!

  • Comment by Change Default Email Address » Wordpress Plugins
    Date: July 9th, 2008 at 6:56 am

    [...] Version: 0.1 - License: n/a - Author: Sam Burge - Plugin Page - » Download [...]

  • Comment by Shane
    Date: August 25th, 2008 at 10:27 pm

    Is there a newer version than 0.1? I upgraded to WordPress 2.6.1 and the Plugins area is telling me that there is a new version, but the new version links to:
    GALLERY LIGHTBOX PLUGIN
    http://wordpress.org/extend/plugins/wp-25-gallery-lightbox-plugin/

    Also, just an FYI, version 0.1 now conflicts with the Subscribe2 plugin.

  • Comment by Greg
    Date: September 17th, 2008 at 8:06 pm

    Very handy little plug-in, works like a charm, thanks.

    I’m experiencing a little weirdness, though. I downloaded it from your site. When I install it, it works fine but I get an alert telling me there’s a new version 1.3 (the code says “Version 0.1″) and the link to get the new version points at http://wordpress.org/extend/plugins/wp-25-gallery-lightbox-plugin/ which is clearly wrong. The “Upgrade automatically” option doesn’t work either, with the error mentioning wp-25-gallery.

    Since it works, the only reason I care is I don’t want the little orange flag over “Plugins” in my dashboard, but seems like something you’d want to know.

  • Comment by huski
    Date: October 23rd, 2008 at 10:19 am

    wordpress 2.5
    not working for me, i made the two changes , name and email to the php file, verified the changes were saved in the php file, but it continues to send wordpress and wordpress@domain

    ????

  • Comment by m1k3y
    Date: February 9th, 2009 at 11:06 pm

    Great Job!
    THX !!!

  • Comment by marco
    Date: February 16th, 2009 at 5:08 am

    Hi

    IS the email address restricted to the domain of the website? OR can any email address be used, say gmail account?

  • Comment by marco
    Date: February 21st, 2009 at 11:50 pm

    Hi

    This appears like it will do the (magik) trick but I have an unusual situation in which the email address my client wants for default does not use the website’s domain name in it. So simply setting the name in front of the @ symbol is not sufficient - and neither is my confidence in editing your php to accomodate it. Could write up a note on how this customization in the php file would go?
    Sorry for the xtra trouble. Really appreciate your efforts with this as you can imagine.

    /marco

  • Comment by Açıklamalı 200 Wordpress Eklentisi (Part2) | Paylaşım Keyfi
    Date: March 1st, 2009 at 7:25 pm

    [...] © Change Default Email Address Wordpress varsayılan e-posta adresini değiştirebilmenizi [...]

  • Comment by Beth
    Date: August 3rd, 2009 at 6:40 pm

    I had no idea this was even an issue. I thought that it would just show up with my email by default. That’s dumb.

  • Comment by WordPress için tam 400 eklenti birsayfada! | PiyanoDegil.org :)
    Date: September 2nd, 2009 at 2:59 pm

    [...] © Change Default Email Address Wordpress varsayılan e-posta adresini değiştirebilmenizi [...]

  • Comment by Marcus Naylor
    Date: September 8th, 2009 at 3:35 pm

    Made the changes in the plugin editor, added my From Name and the from Address, updated changes and nothing happened. Still coming from Wordpress

  • Comment by Açıklamalı 200 Adet Wordpress Eklenti Arşivi 2 | Akgün-Web Ailesi
    Date: September 18th, 2009 at 5:29 pm

    [...] © Change Default Email Address Wordpress varsayılan e-posta adresini değiştirebilmenizi [...]

  • Comment by Como mudar endereço email do Wordpress
    Date: October 30th, 2009 at 10:49 am

    [...] ou pode fazer Download do plugin AQUI [...]

  • Comment by Adam
    Date: November 3rd, 2009 at 5:05 pm

    This is a life saver. We were testing the site and discovered the “wordpress@”. We knew we didn’t want that. Wordpress really need to allow users to change this from the dashboard. But anyway, this works perfectly and I wanted to thank you Sam for sharing your expertise with us.

  • Comment by Harry
    Date: November 6th, 2009 at 10:40 am

    Thanks for the plugin.

  • Comment by Tony
    Date: November 14th, 2009 at 1:27 pm

    Works Great!!!!! Thanks!!!

  • Comment by Rhino
    Date: November 21st, 2009 at 12:36 pm

    Hi,
    Thanks for your great plugin. I were used it in my blog, it run so cool. But i have a problem with my language. I use Vietnamese language and the email appear: [Tranh biếm hỠa Việt Nam] Có thà nh viên mới đăng kí

    Can you help me this problem?
    Thanks!

  • Comment by Wordpress 400 Eklenti « www.hakanersoy.org
    Date: January 2nd, 2010 at 12:53 pm

    [...] © Change Default Email Address Wordpress varsayılan e-posta adresini değiştirebilmenizi [...]

  • Comment by Norguad
    Date: January 8th, 2010 at 7:04 pm

    Hi, I used the plugin, but it turns all non-latin characters into weird characeters (for example: é is é or ř is Å™). Do you know how to solve it?

    Thank you very much.

  • Comment by Heath
    Date: March 9th, 2010 at 2:32 am

    Great
    thanhk you sam

  • Comment by Peter F.
    Date: March 9th, 2010 at 3:53 am

    Awesome plugin, guys! Works like a charm, and solves a problem I was afraid would be very tedious.

  • Comment by sol97one
    Date: March 10th, 2010 at 7:03 am

    Thanks a lot ! Very useful !

  • Comment by Terje
    Date: March 15th, 2010 at 12:51 pm

    Same as the others, i have problem with some signs. I try to write the norwegian letter “ø/ø” (ascii ø), but i cant get it to work

  • Comment by frank
    Date: March 21st, 2010 at 12:08 pm

    Hi there, this is a very helpful plugin, I have the same problems with the charset or something else. After installing the plugin I always receive weird characters in my mails. ÖÄÜ are not transformed properly. Thanks. F

  • Comment by Mike
    Date: April 5th, 2010 at 2:03 pm

    Great, thanks for the plugin…If you all are looking for a less extensible…but easier way to modify the email “From” line in wordpress, it’s on line 352 in pluggable.php. Just change [code]$from_name = ‘WordPress’;[/code] to something like…[code]$from_name = ‘Mike’;[/code]

  • Comment by Joshua
    Date: April 5th, 2010 at 11:52 pm

    I am using WP MU 2.9.2. I have installed the plugin and activated successfully. Yet I dont see any settings to configure !!!??

  • Comment by me2t
    Date: April 18th, 2010 at 2:02 pm

    i love this plug in very much.thanx

  • Comment by bosschan
    Date: May 9th, 2010 at 2:16 pm

    give thanx!

  • Comment by Jim
    Date: May 20th, 2010 at 2:10 pm

    Hey, thanks for this plugin, helped me sort out a really annoying reg problem I had :D

  • Comment by PLnet
    Date: May 25th, 2010 at 3:32 pm

    thank y

  • Comment by Greg
    Date: June 27th, 2010 at 2:25 am

    Great plug-in, just what I was looking for as I didn’t want any emails say “wordpress”

  • Comment by Thiago Dias
    Date: August 12th, 2010 at 3:45 am

    thanx!

  • Comment by TomCap
    Date: September 6th, 2010 at 1:56 am

    Worked like a charm. Another little irritating item solved. Thanks!

  • Comment by Maira
    Date: January 21st, 2011 at 12:59 am

    worked. highly recommend. thank you!

  • Comment by oriflon
    Date: February 17th, 2011 at 11:49 pm

    how to edit manual?

  • Comment by SteveB
    Date: February 18th, 2011 at 12:20 am

    I loaded the plug in but can’t find it in the plugin list.

  • Comment by haohuu_lam_em
    Date: March 3rd, 2011 at 10:04 am

    Can not convert to UTF-8!

  • Comment by Demo Games
    Date: April 8th, 2011 at 9:20 am

    Thanks for sharing works fine on wordpress 3.1.1

  • Comment by I Shoot Reno
    Date: April 19th, 2011 at 9:23 pm

    Fantastic solution! Minimal effort needed to make this work from a novice’s standpoint!

Leave a Comment

76 Digital Wordpress Themes

Date: 25th October 2007 at 8:01 pm | Filed under: development, themes, wordpress | Author: Sam Burdge

The 76 Digital WordPress theme-set by 76 Creative is now available for download. The 76 Digital theme comes in four colour schemes: blue, green, orange and pink. It features a Flash header, which displays your blog title and tagline. It is also set up to work with many useful plugins.

76 Digital Blue - Screen76 Digital Green - Screen76 Digital Orange - Screen76 Digital Pink - Screen

Please read the readme file before installing the themes.

FEATURES:

  1. Comes in four colour schemes.
  2. Flash header displaying blog title and tagline.
  3. Compatible with many plugins, as listed below...

INSTRUCTIONS:

  1. Choose the colour scheme you want.
  2. Upload the theme to your wp-conent/themes folder.
  3. Select the them from the 'Presentation' page in your WordPress.

PLUGINS:

The theme is set up to work with the following plugins if they are installed:

  1. Dagon Design Sitemap Generator — Create a sitemap page.
  2. Get Recent Comments — Display recent comments in the sidebar.
  3. Jerome's Keywords — Attach tags to posts and have them display in your sidebar.
  4. Theme Switcher — Switch between the different themes you have installed.
  5. WP Navigation Tool (NAVT) — Create custom links for the tabbed navigation across the top of the page. Just create a group called 'tabs', then add links to it. This plugin is highly recommended!!

FLASH HEADER:

For all you WordPress wannabes out there wondering how the Flash header thing is done, stay tuned, as I will be posting tutorials about WordPress and Flash on my site in the near future, along with lots of other Flash based widgets and plugins for WP.

DOWNLOAD:

This set of themes has been updated, please download the latest version here.

7 Responses to “76 Digital Wordpress Themes”

  • Comment by Graham
    Date: May 4th, 2008 at 9:20 am

    Hello Sam ! Great site and content !!! I’m very impressed in the page nav with the + & - action to bring the subpages in view . Is this a plugin or something you’ve developed ?

  • Comment by Sam Burdge
    Date: May 4th, 2008 at 10:56 am

    Hi Graham
    Glad you like it!! The sliding nav is something I developed using jquery. I will release a theme that features it some time soon…more info here
    Sam

  • Comment by Nuno
    Date: July 11th, 2008 at 9:57 am

    Hello

    I like very much you theme (all features), the seach results shows thumbmais it´s fantastic. I intent use it, but unfortunately I’m inesperiente future blogger and I can´t put the theme work, I unable to customize the sidebar, indeed can upload a photo.
    If you put theme work without request knowledge HTML was really wonderful.

    A hug

  • Comment by Wolforg
    Date: January 13th, 2009 at 7:09 pm

    Hello, I’ve translated this great theme in grench (only the orange version but it’s simple to do the same thing for the others).
    Fell free to take this french version at http://traduction.wolforg34.info/2009/01/13/76-digital-orange/

    Have a nice day Sam :-)

  • Comment by Sam Burdge
    Date: January 14th, 2009 at 2:53 pm

    Hi Wolforg. Thats fantastic! Thanks. I will add a link to your site and offer a download of the French version (fully credited for the translation) on my site.

  • Comment by Thomas Krause
    Date: November 9th, 2009 at 2:27 am

    hello Sam we are using your template for our site and were wondering if you could help us out with the font on the flash header. We would like it to be more “readable” if possible. Please email me so we can talk about this.

    thanks

    tom
    tkrause22@gmail.com

  • Comment by James D Inman
    Date: May 13th, 2010 at 4:41 pm

    I’ve been working all week on one thing that I can’t figure out. I’m using the 76 digital orange theme. I go to your site and I see exactly what I want to do. How do you create posts on any page? Almost each one of your pages have posts. But in my WordPress admin with your theme it doesn’t let me do it. Do I need a plugin? I’ve been working all week on this and everyday I work all day looking for something and come up with nothing. Please help. I can do almost everything else but this.

Leave a Comment

9 London

Date: 14th October 2007 at 3:05 pm | Filed under: portfolio | Author: Sam Burdge

9 London Store9 London Cart9 London Title Page

9 London is a maternity and children's clothing store in London. The site is built in flash, with an html version to back it up. It features an online store for which I created all the scripts from scratch. Some tutorials relating to stores and e-commerce will be available on my site in the future.

Check out the site: www.9london.co.uk

Leave a Comment