|
| zeusprod |
Post
#1
|
|
Advanced Member Group: Members Posts: 220 Joined: 14-February 07 Member No.: 801 |
I'm
trying to get an external SWF to work as a MovieSkin. It looks like the
Sandy 1.2 MovieSkin.as class intends to support this but it doesn't
seem to work.
Can anyone confirm whether Sandy 1.2 (or 1.1) supports this? Does anyone have a working example? Cheers, Bruce |
| zeusprod |
Post
#2
|
|
Advanced Member Group: Members Posts: 220 Joined: 14-February 07 Member No.: 801 |
I figured it out.
I wasn't using the callback properly. In Sandy 1.2, it is something like this: CODE private function someHandler() { var skin1:MovieSkin; skin1 = new MovieSkin( "externalExample.swf", true); skin1.addEventListener(SkinEvent.onUpdateEVENT, this, skinMe); } private function skinMe (target:Object) { var o2:Object3D = new Plane3D(100, 100, 2, "tri"); o2.setSkin(target._oT); // Assumes bg is the root group stored in a variable that is in scope bg.addChild( o2 ); } I'm not sure if it requires any patches to the MovieSkin.as class. See also the thread http://www.flashsandy.org/forum/index.php?showtopic=347 |
| Lo-Fi Version | Time is now: 27th July 2007 - 10:52 AM |