actionscript
So, you wanna change the registration point of a MovieClip at runtime? Here is some piece of code that allows you to do just that.
Based on an old AS2 class written by Darron Schall, this AS3 class extends MovieClip and adds a new set of properties (x2, y2, rotation2, scaleX2, scaleY2, mouseX2, mouseY2) that allow you to manipulate the sprite based on a contextual registration point that can be set using the setRegistration method.
1 FaverShareViewed: 532 TimesSimpleViewer
写真や素材提供を運用する上で、見せ方は非常に大切な要素だと思う。同じ写真であっても、見せ方一つで随分印象が変わる。できれば格好の良い、心象の良い見せ方を心がけたいものだ。
1 FaverShareViewed: 252 TimesAPE (Actionscript Physics Engine) is an AS3 open source 2D physics engine for use in Flash and Flex. It's continuation of the long dormant AS2 Flade project. APE is written and maintained by Alec Cove.
5 FaversShareViewed: 237 Times2 FaversShareViewed: 224 TimesQuoted: Using BitmapData.draw and BitmapData.getPixel to export the current swf as jpeg
1 FaverShareViewed: 245 TimesQuoted: Rock, flash, flex, Red5, Xray, Flexible, Flasc and everything in between ;)
1 FaverShareViewed: 358 TimesQuoted: A tutorial on how to create XML Image Slideshow with Preloader using Actionscript. This complex tutorial combined what we have learned about XML external source, preloader and image slideshow.
Related Content from Around Faves
flash
- 56 FaversViewed: 70 Times
- pampoen - 4 days ago1 FaverViewed: 4 Times
- infoproductjunkie - Sep 24 20081 FaverViewed: 26 Times
