This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.rafaelrinaldi.string | |
{ | |
import flash.text.TextField; | |
/** | |
* | |
* This is like a <code>substr()</code> for text fields. | |
* | |
* @param p_label Label to get the text. | |
* @param p_start Start index. | |
* @param p_end End index. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.rafaelrinaldi.string | |
{ | |
/** | |
* | |
* @param p_string String to be formatted. | |
* @return The last word of a string. | |
* | |
* @author Rafael Rinaldi (rafaelrinaldi.com) | |
* @since Sep 6, 2011 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
import flash.media.SoundTransform; | |
import flash.display.Bitmap; | |
import flash.display.BitmapData; | |
import flash.display.BitmapDataChannel; | |
import flash.display.Sprite; | |
import flash.events.Event; | |
import flash.events.NetStatusEvent; | |
import flash.geom.Rectangle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.rafaelrinaldi.display | |
{ | |
import flash.display.DisplayObject; | |
import flash.display.DisplayObjectContainer; | |
/** | |
* Retrieve all items inside a container and you can also filter by class. | |
* | |
* @author Rafael Rinaldi (rafaelrinaldi.com) | |
* @since Jan 16, 2012 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.rafaelrinaldi.display | |
{ | |
import flash.display.FrameLabel; | |
import flash.display.MovieClip; | |
/** | |
* | |
* Search for a label name into a movie clip. | |
* | |
* @author Rafael Rinaldi (rafaelrinaldi.com) | |
* @since Jan 16, 2012 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
import flash.display.DisplayObject; | |
import flash.geom.Point; | |
/** | |
* | |
* Supports object transformation and positioning by using a dynamic registration point. | |
* This class was written using as base <code>DynamicRegistration</code> class from Astra, a Flex framework written by Yahoo! | |
* See the original class here: http://developer.yahoo.com/flash/astra-flash/classreference/com/yahoo/astra/utils/DynamicRegistration.html | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
public class Example extends Sprite { | |
/** @author Rafael Rinaldi (rafaelrinaldi.com) **/ | |
public function Example() | |
{ | |
// Encoding path data as a <code>String</code>. You can save it in a database, for example, to retrieve it later. | |
var encoded : String = PointEncoder.encode(data); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
import flash.display.Bitmap; | |
import flash.display.BitmapData; | |
import flash.display.BitmapDataChannel; | |
import flash.display.DisplayObject; | |
import flash.display.PixelSnapping; | |
import flash.geom.Matrix; | |
import flash.geom.Rectangle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Draw a line grid. | |
http://dl.dropbox.com/u/3420025/Code/Processing/grid/index.html | |
Rafael Rinaldi (rafaelrinaldi.com) | |
20/04/2012 | |
*/ |