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
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.
Safari 5 Extensions
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:Download it here: http://extensions.apple.com/#productivity
Now, what extension can I make! :)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!
Web and software tips and tricks
http://www.greyspot.co.uk



