Posts Tagged class
AS3 – Snow Effect
Posted by Jeff in ACTIONSCRIPT 3.0 on January 11, 2010
The best snow script that I have seen thus far. You get great performance even with 1500 different snowflakes in the movie and practically everything is customizable. I will definitely be using this in projects that require a snow affect.
What you can customize:
Check it out: Tim Soret – Snow
AS3 – Load XML Document Class Example
Posted by Jeff in ACTIONSCRIPT 3.0 on November 18, 2009
One thing that I do quite often in Flash is load XML. In order to save time, I separated a lot of that code out into external class files. I also created a snippet of code that calls those files in order to save time when I want to use them. (You will need Lee Brimlow’s snippets panel for this to work.)
The LoadXML and LoadURL classes are probably very similar to those found at Learning Actionscript 3 as that is where I learned a lot about this topic previously. Hope you find this helpful!
Load XML files (774.5 KiB, 25 hits)
Code snippet (for the panel) after the break…
AS3 – Loading CSS and Fonts
Posted by Jeff in ACTIONSCRIPT 3.0 on October 30, 2009
Working with CSS and fonts in Flash (especially with dynamic text) can be a huge pain. I have come up with a way that makes it a lot easier. What I do is load them up, store a reference to the css file in a global class, and simply refer to that class when you need to use the fonts and css. The css styles dictate which fonts are used where within your application.
This method seems to work out well and saves on file size as you are referring to an instance of the font instead of instantiating it over and over again etc. (You will need the FontLoader class in order for this to work.)
Description of the files after the jump…