One of the problems with ASFunction is that it will not let you call class methods. This is inconvenient if you are using your own custom class that builds an interface, and you need to have clickable links within a text field. A couple of solutions that I have seen uses a homemade proxy class or the built-in Delegate class to do it, but there is another way to do it that uses the same technique that is used within the XML object and within event handlers to retain the handle to the class instance. When an ASFunction link is clicked, the text field automatically looks to the parent movie clip for the function to call. A proxy function is placed in the text field’s parent movie clip, then a “parent” variable is created to hold the reference to the class instance. That variable is visible within the proxy function, and allows the function to then “redirect” to the class method.
read more…
Here is an example showing a few of the new Flash 8 features. First, it loads external PNG files containing variable transparency and shows that transparency interacting with a background image. Second it shows the blending modes that are now available, and shows the effect of the interaction between two bitmap images. Third, it shows some of the filters, and shows the interaction between filters and blending modes on the same movie clip.
I know it is a bit early for it still, but here is a snow effect I created as part of a tutorial on ActionScript based animation.
Here is an example of the new ExternalInterface class available within the Flash 8 player. It implements both JavaScript calling ActionScript functions and ActionScript calling a JavaScript function. (Local link, requires Flash 8 )
Thanks to Tinic Uro, the principle engineer on the Flash Player, we have a hidden feature that can be used. Set both the base movie clip and the mask to make use of runtime bitmap caching, and alpha gradients will work!
View the example (Local to site, requires Flash Player 8 to view).
Example FLA. (Right click and “save link as…” to download)
I had a heck of a time finding information about how to use the Flex EventDispatcher class to generate custom events. I eventually found some information about what Macromedia calls mixins. Basically, they are a way of inserting methods into a class from another class without using subclassing. The example shows how to set up the EventDispatcher class as a mixin, but doesn’t actually show how the event handling works. I am providing an example here showing a couple of the EventDispatcher methods in actual use.
This is my second attempt at doing some scripted animation. This time I created a class to control the animation, which allows me to have multiple classes drawing to the screen at once. There are still some bugs I am working out, but feel free to take a look at what I have here, anyways. Enjoy!
This is just a little thingy I did when playing around with Flash. The rain effect is subtle, so you may not see it right away.
I had a need for a tooltip class that was lightweight and had the features I needed. I had trouble finding anything in ActionScript 2, but I found a good one in ActionScript 1, ported it to ActionScript 2, and added a couple features that I needed. With the permission of the previous author, I am making my modifications available.
I have to say that one thing that has always bugged me about Jakob Nielsen’s web site is the complete lack of visual aesthetic. The impression that I get from his site is that good usability means ugly web design. Contrary to that impression, I believe that by applying standard visual design principles such as grouping content, making headlines that are easy to scan, and using white space to guide the user’s eye, usability can be significantly enhanced.
« Previous Page — Next Page »| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Oct | ||||||
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
