Refer to an object on the Captivate stage

using widgetfactory, you can access captivate items on the stage – and if you can do that, you can do ANYTHING with ANYTHING – very exciting!

override protected function enterRuntime():void
{
var mc:MovieClip = getSlideObjectByName("item");
mc.addEventListener(Event.ENTER_FRAME, function() {mc.rotation++});
}

src:http://www.infosemantics.com.au/widgetking/2010/10/slip-sliding-away/

Tech Reference: ,

Leave a Reply

Your email address will not be published. Required fields are marked *

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑