HomeAbout

ReferenceLocator

A class to store and retrieve string references to any object. Good for storing references to the functions returned from Delegate.create(), or tweens, or anything at all.

http://www.visible-form.com/blog/referencelocator-store-a-reference-to-anything-as-a-string/

Actionscript:
  1. // new reference object needs two props: referenceName:String, referenceTo:Object
  2. // new reference object can also specify property 'overwrite', set to true will overwrite existing reference with the same name
  3. ReferenceLocator.getInstance().addReference({referenceName:'someStringReference',   referenceTo:anyExisitingObject})
  4.  
  5. //returns the object the given string refers to
  6. ReferenceLocator.getInstance().getReference('someStringReference');
  7.  
  8. //deletes a reference to an object.  if the second parameter is set to true,
  9. //it will delete both the string reference to the object, and the object itself.
  10. //if object is a movieclip, it will swap itself to the nextHighestDepth() of its parent and remove itself
  11. ReferenceLocator.getInstance().deleteReference('someStringReference', true);

Business Card Flip effect

cool card-flip transition effect from pixelfumes. from the site:

Many of you have seen the nice effect of a card flipping over in some Flash sites. A pal pointed me to a site today that had the effect and it got me to thinking that although many of these appear to be 3D/AfterEffects/PNG Sequences - close to the same could be done with just a simple class. This is a stab at doing the effect using a class that I created.

http://pixelfumes.blogspot.com/2006/07/business-card-flip-effect-class-with.html

Custom & Unique Business Card Printing & Design Online Choose from 14 different types of business cards. Create or upload the design online and print. Choose from 14,000 templates. NexCards.com