Drop Down Menu with AS3
Posted by Jeff in ACTIONSCRIPT 3.0 on January 26, 2010
Here is a code snippet that I have been using to create dropdown menus from movieclips in actionscript 3. I probably should try to wrap this up in a class as I bust out this snippet whenever I need this functionality. Usually when I have a ‘button’ that I need to have open up a larger movieclip with selectable/dynamic information in it. Would be nice to set a moviclip to be the ‘menu trigger’ (in the example: _sMouseOver) and another to be ‘the target’ (in the example: _sMenu) in a class… Maybe I will work on a class implementation later.
AS3 Mouse Over Menu (15.4 KiB, 11 hits)
Code Snippet after the jump: Read the rest of this entry »
Make Money on the Internet
My younger brother has been finding various ways of making money on the internet over the past four years. He has tried forums, blogs, and product review sites. He knows a lot about SEO, web analytics, and what works/doesn’t online. He has achieved what many people desire to do and that is to quit his day job and work from home. I am so very proud of him and would encourage you to check out his website at make money on the internet. I value transparency and openness and so does my brother. He posts his earnings reports, goals, and case studies of what he has tried.
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
HTTPService and ArrayCollection in Flash CS4
Recently I had a need to use the HTTPService & ArrayCollection Flex classes from inside Flash CS4. In order to do this you need to point to the Flex classes in your Flash preferences as outlined in this post. Code after the jump. Read the rest of this entry »
FlashTracer and Windows 7
I recently upgraded from XP to Windows 7 and have had to re-install a few things so I figured I would post the instructions as I set them up. This is about setting up the extremely very valuable tool for every Flash developer that is Flash Tracer. But it CAN be a pain to setup with multiple versions scattered around the web, various instructions on different blogs, and quite often important tips buried in the comments of said blogs. Hopefully this can help you setup Flash Tracer without a lot of effort.
I am using Firefox 3.5.5, on Windows 7, with the Flash Player 10,0,32,18 debug installed.
Location of WindowSWF folder in Windows 7
I recently upgraded from XP to Windows 7 and needed to re-install some plugins for Flash CS4 and had a bit of difficulty finding this folder.
1 | C:\Users\jguthrie\AppData\Local\Adobe\Flash CS4\en\Configuration\WindowSWF |
Flex and Flash with Zend
In order for this tutorial to work, you need to make sure that your environment is setup by following the instructions located here. I have included an fla (cs3) file in the /Flash folder of the Flex project archive. You would not normally do this for a production project but this is just meant to be a simple example and since they both use the same php files it didnt make much sense to split this article up into two separate articles.
I am currently using Flex Builder 3.0.2 and Flash CS4 but I saved the fla as a cs3 file for those that don’t have it yet.
Code and instructions after the jump Read the rest of this entry »
Setup WAMP and the Zend Framework for use with Flash and Flex
There are a few tutorials out there on the net about using Zend with Flash/Flex but most seem to be overly complicated and many don’t work even after following the instructions. (I am hoping that mine will.
) The next few articles cover a VERY simple implementation that you can build on for use with future projects and I hope it can save people time when it comes to beginning to explore this new method. This post will deal with setting up your environment to be able to use Zend with Flash/Flex.
Code and instructions after the jump. Read the rest of this entry »
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, 14 hits)
Code snippet (for the panel) after the break…
AS3 – Draw Circle Animation Based on Time
Posted by Jeff in ACTIONSCRIPT 3.0 on November 1, 2009
If you need to perform an animation and have it be standard when viewed across different machines, it is best to use an onEnterFrame event. I had a need in a project recently to draw a circle in a specified amount of time. I had been using the Timer class but found major time discrepancies between running the code locally and running the code in a browser. With some code that Jackson Dunstan provided, I was able to modify the animation so that you can start/stop drawing the circle based on user input. (In the sample provided it is by clicking the stage) I hope this helps someone in a similar situation. Code after the jump…