Flash AS3 Preloaded Bulk-loading Slideshow w/thumbnails

Whoa that’s a long title. This is the source file zip for the “Featured Work” slideshow on my homepage. All the images (thumbs and fullsize) are pre-loaded with bulkloader, so there’s no delay as they transition between images. They are set to automatically play through, but will stop upon thumbnail click. All the data comes from a multi-dimensional array inside the fla, but could easily be externalized in xml. Enjoy!

Flash AS3 Pre-loaded Bulk loader example

Download the source

| 3 Comments »
Wordpress Custom Horizontal Menu

I’m currently working on a pretty custom Wordpress site that needs a horizontal menu bar. The nav highlights on rollover and also depending on the current page. I found a number of examples online, but nothing very straightforward. So using a number of examples I found, here’s how I got it to work.

The nav looks like this:

Picture 10

You could probably do the whole thing in css if you have simple text for buttons.  But in this case, the font is pretty custom to the client, so these had to be images.  So here’s my process:

  • Create default and over states for each button, I named them like this: btn_home.jpg and btn_home_over.jpg
  • Put them into your themes images folder in another folder called btns. So the directory will look like this: your-theme/images/btns
  • Open up header.php in the theme folder
  • Add this code between the head tags:


  • In the body section, wherever you have your nav set up to be, add this code for the home button, (image name and paths will all depend on your naming):


	

        

  • Copy this code for each of the rest of your buttons:


	

        

  • Make sure you replace the instances of ‘about’ with the page you are trying to link. Also be sure that the name of each button is unique. I incremented mine all like this, MyImage1, MyImage2, MyImage3, etc.
  • For example, if you had a page named ‘Portfolio,’ you’d make a button like this:


	

        

  • Notice how I replaced all instances of ‘about’ with ‘portfolio’ and also incremented the name to MyImage3 in all instances.

And that’s it! What’s great about it so far is that all the links are dynamic, so once I move the site from staging to live, the links will automatically work.

| No Comments »