Greyspot's dev blog
Chris Milner

Developer and designer for Greyspot Web Solutions Ltd.

Many years experience in PHP, ASP.NET, Javascript, Ajax, jQuery, ActionScript, Photoshop, Visual Studio and much more!

Get in touch for very competitive rates and availability, contact me via http://www.greyspot.co.uk/contact.php

Search

July 29th, 10:31am 0 comments

Mambo 4.6.5 Ticker Tape Component

A recent client wanted some extensions to their website and as such i made a Mambo CMS component. The component is a ticker tape for headlines on a website.

The ticker tape takes two strings
Headline - split by ;
URL's - split by ;

The component requires on jQuery being present for the animation/fading.

CSS is embedded in the index.tpl file.

All feedback welcome!

Enjoy!

(P.S. The component has only been tested on 4.6.5.)

 

Click here to download:
mod_ticker_tape.zip (2 KB)

Filed under CMS Javascript Mambo PHP
Posted
July 28th, 4:48pm 0 comments

Safari 5 Extensions

Pastedgraphic-3

Today apple released Safari 5.0.1 with proper extension support and the extension gallery on the website

Extensions are looking amazing, all HTML5, JS and CSS build they have a lot of potential.

Day 1, my fav is:

Pastedgraphic-2

Download it here: http://extensions.apple.com/#productivity

Now, what extension can I make! :)

Posted
June 30th, 6:02pm 0 comments

AS3: Accessing symbols with strings as names

Whilst working on a clients flash movie in actionscript 3 I came across the requirement to access a symbol (and manipulate it!) with a variable passed into the flash file.

Having loaded all the info I needed using the loader class, I started my code, tried wrapping in eval(), MovieClip() and addressing direction hoping that flash would just somehow work it out! Sadly not, the solution is quite simple though.

You can access like array cells, like this: 

- if on the stage you have a symbol called Symbol1. Simple use: this["Symbol1"].property

- If you have a symbol on the stage and know part of the name already you can concatenate, like this: this["namePartOne" + stringVariable].property (let's assume that stringVariable is instantiated above)

- Finally if you only have the variable name, simply: this[stringVariable].property  

Below is a sample fla I made to demonstrate this code, hope it's useful!

Happy coding!

Click here to download:
Sample_string_symbol_names.fla (71 KB)

Filed under AS3 ActionScript 3 Flash
Posted
June 22nd, 12:24pm 0 comments

Web and software tips and tricks

More to follow, including tech tips, video help and tutorials!

Greyspot Web Solutions Ltd
http://www.greyspot.co.uk

Posted