PDA

View Full Version : Image Link Class


nazbopenS
04-14-2011, 07:01 PM
Attached is a class for what I call an image link. I saw this type of link in many pretty flash-based websites and decided to make a class for this type of link. Its a bit clunky and this is mainly because I wanted the objects (image links) to be highly customizable with many different animations built in. In the zip file have have a library file and a file that gives examples of usage. Also, included in the zip files are really nice free fonts (which are distributable but you should not change them and distribute as your own) which are used by the examples. The class can be greatly improved and easily adjusted to more efficiently meet your needs. Some things that can be fixed are attribute values that throw warnings when they are null or empty. Do as you please with all of the items. Also, you will need thumbnail pictures for the example to work as desired.

Comments: I am relatively new to openlaszlo. I made a short foray into openlaszlo a year ago, but really didnt have the time to invest in learning at the time. I have returned a couple of months ago and started to really dig in. One thing that I would like to see is lots of complete examples of small to large special components/classes that one might find useful in building a website. When I say useful I mean two things. One, can be used (perhaps with some adjusting) in a site and/or two, can serve as an example for learning purposes. So, I figured I would help with this by posting useful bits of code, classes, completed sites that I create along the way.

bitwalker
04-17-2011, 06:21 PM
Nice work, thanks. I liked the look of the buttons right away.

nazbopenS
04-18-2011, 06:13 PM
bitwalker,

If you are planning to use a ton of these, you might be able to improve performance by changing the class so that only the animator that is needed by the individual button is instantiated instead of all the animators. This can be done via a method.

Anyways, thanks.