LOGIN Don't have an account yet?   Register

Forgot password?
 
18 Dec 2009

9-slice scaling a mask


If you ever tried to apply 9-slice scaling to a mask, you probably noticed it doesn’t work.

The solution is this:
1. Use a movieclip and apply 9-slice scaling to it. (let’s say mcShape)
2. Add this movieclip into the mask. (so you would have mcMask.mcShape)
3. Apply cacheAsBitmap to mcMask and mcObject, where mcObject is the object you want to mask.
4. Apply the mask with ActionScript: mcObject.mask = mcMask; (do not apply 9-slice scaling to mcMask)

Hope this helps! :-)

14 Dec 2009

duplicateMovieClip in AS3


If you used AS2, you probably loved the way duplicating movieclips worked. We did too! :-)

We created this prototype function so that you can easily use the same technique in AS3:

// Duplicate movieclips in AS3
 MovieClip.prototype.duplicateMovieClip = function(obj : *, pName : String) : Object
{
	this[pName] = this.addChild(obj);
	this[pName].name = pName;
	return this[pName];
};

This is how you call this function:

for(var i : uint = 0; i < nrStars; i++)
{
	var mc : MovieClip = mcRating.duplicateMovieClip(new mcStar(), "mcItem" + i);
       trace(mcRating["mcItem" + i].name);
	mc.x = i * mcRating.mcStar.width;
}

mcRating - is the movieclip where the stars appear
mcStar - is the linked movieclip in the library, with the name mcStar
"mcItem" + i - is the name of each duplicated MovieClip.

In the example above I'm assuming you have a variable that holds the number of stars, and that you want to place each star near the previous one.

Any questions, let us know! Enjoy! :-)

01 Nov 2009

[VIDEO] Using Flabell Components in Flash


The 1st video tutorial is up! It’s in the General Videos category, so you can find it on the Videos TAB of each product.

Picture 3

This is the most requested video, and it applies to all our products: Using Flabell Components in your Flash Projects.

Enjoy! If you have any questions, let us know! ;)

04 Aug 2009

Embedding Fonts in Flash CS4


We’ve been often asked how we embed fonts in out Flash Components, so we’ll do a simple step by step tutorial for Flash CS4 (AS3). We are using a MAC, but the same applies for Windows.

Step 1

Right click on the library and select New Font.

step1

Read the rest of this entry »

01 Jun 2009

Release Outside in AS3 – Firefox 3 on mac trick


As you probably heard in AS3 to treat the “release_outside” event it’s a little bit tricky.
But AS3 comes with solutions for everything even for “stage_leave” event. In AS2 you couldn’t do that.
Now you can do that by treating the “Event.MOUSE_LEAVE” event.
To do that you need to use event listeners also on stage.

This is how we do it step by step:

Read the rest of this entry »

Page 3 of 4«1234»
blog entries RSS Feedproducts RSS Feed

Categories

Popular Files

  • Compact Flash Mp3 Player
  • Horizontal Image Slide on Mouse Move
  • Accordion Menu with Images from XML
  • Accordion Banner Rotator
  • Continuous Image Slider
  • Mp3 Player with Playlist
  • Flash Ken Burns Effect Slideshow
  • Accordion Gallery
  • Horizontal Scroller Slideshow
  • Fade In Fade Out Slideshow With Navigation
  • Simple AS3 Flash Video Player
  • Zoom Gallery

Download the plugin above
Read more about Flabell WordPress plugin

Archives

Search the blog