Archive for September, 2009

Mouse Wheel Event on Mac

Posted in Actionscript, Flash on September 21st, 2009 by Sandro Haag – Be the first to comment

Really! It doesn’t work!

There are some solutions for this problem, using javascript and Actionscript 3. But one of those I really enjoyed, because it is very simple.

You can check the solution here.

I tested in Safari and FF on Mac, and it worked well.

AS3 Scrollbar v2

Posted in Actionscript, Flash on September 10th, 2009 by Sandro Haag – 2 Comments

Hey!

I did some adjustments on the AS3 Scrollbar, and added a new method.

The getter/setter method gap is used to control the space after the content. The default value is 0. If you set it to 100, for example, the content will scroll more than usual, and will be a gap between the end of the content and the mask. This can solve some spacement problems that sometimes happen.

Click here to see a simple demo.
Click here to download the new sample files.

TODO list
- Add the possibility of the scrollbar be horizontal
- Add blur functionality
- Better up the usage
- Make it more flexible
- Make the tween works independent, so you can adapt to any tween engine

Please, report me the bugs and suggestions.

See ya!