Share Your Code

Flash ActionScript

Sort by: Latest Additions | Most Viewed | Recently Updated | Top Rated

The latest additions of sample code and code libraries shared by developers for Corona SDK.

1 vote
Flash AS2/AS3 Layout Helper

ChunkyApps idea to use flash to generate LUA code ( http://developer.anscamobile.com/code/animation-along-path-flash ) inspired me to do something similar for objects on a flash stage. In the absence of a GUI for corona I made a little script I use to layout my screens (like menus) in flash, then tracing out LUA code with the correct positions to use in my corona project. - open a new flash project - define screen... More...

Posted by canupa.com, Posted on 8 Aug 2011, Last updated 8 Aug 2011 | 4 comments

4 votes
Animation along a Path (via Flash)

I've been looking for ways to get animation along a path and thought I would share what I came up with. This requires Flash but where else would you be making your animations, eh? 1. First, set up your animation in Flash. Along a path or not. 2. Name the symbol instances "object" (If you change, make sure you alter the Actionscript to match) 3. Use this Actionscript in the first frame of your animation: 1 2 3 4 5 6... More...

Posted by ChunkyApps, Posted on 24 May 2011, Last updated 14 Jul 2011 | 6 comments

12 votes
Flash's hitTestObject() emulated using contentBounds

You call this function with two images. It returns true if the images are overlapping, and false if they aren't. This is pretty handy for basic collision detection without using physics. 1 2 3 4 5 6 function hitTestObjects(obj1, obj2)         return obj1.contentBounds.xMin < obj2.contentBounds.xMax                 and obj1.contentBounds.xMax... More...

Posted by jhocking, Posted on 20 Jan 2011, Last updated 22 Mar 2012 | 15 comments