This is G o o g l e's cache of http://www.flashsandy.org/forum/index.php?showtopic=390&mode=threaded as retrieved on 12 Jul 2007 19:30:24 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?q=cache:CfAQrIBxQX8J:www.flashsandy.org/forum/index.php%3Fshowtopic%3D390%26mode%3Dthreaded+site:www.flashsandy.org+showtopic&hl=en&ct=clnk&cd=44


Google is neither affiliated with the authors of this page nor responsible for its content.
These terms only appear in links pointing to this page: showtopic

Welcome Guest ( Log In | Register )

> possible ZLightenSkin bug in 1.2
kyuzo
post Mar 19 2007, 06:54 PM
Post #1


Advanced Member
***

Group: Members
Posts: 43
Joined: 19-June 06
Member No.: 18



hi all.

please take a look at the following code:

CODE

import sandy.view.*;
import sandy.events.*;
import sandy.core.*;
import sandy.primitive.*;
import sandy.skin.*;
import sandy.core.group.*;
import sandy.util.Ease;
import sandy.core.transform.*;


class S1{
    var rinterp:RotationInterpolator;
    var angle:Number;
    
    function S1(){
        angle=0;
        var screen:ClipScreen=new ClipScreen(_root.createEmptyMovieClip("mc",_root.getNextHighestDepth()),600,600);        
        var camera:Camera3D=new Camera3D(screen,600);
        camera.setPosition(0,0,-100);
        World3D.getInstance().addCamera(camera);
        var root:Group=new Group();

        var box:Box=new Box(10,10,10);
        var skin:ZLightenSkin=new ZLightenSkin(0xff0000);
        box.setSkin(skin);
        box.enableEvents(true);
        box.addEventListener(ObjectEvent.onPressEVENT,this,onClick);
        
        var ease:Ease=new Ease();
        var tg:TransformGroup=new TransformGroup();
        rinterp=new RotationInterpolator(ease.create(),50,0,0);
        tg.setTransform(rinterp);
        tg.addChild(box);
        root.addChild(tg);

        World3D.getInstance().setRootGroup(root);
        World3D.getInstance().render();
    }
    
    public function onClick(){
        rinterp.redo();
        rinterp.setAngles(angle,angle+90);
        angle+=90;
    }
    
    static function main(){
        var s1=new S1();
    }
    
};



here is what i get:
with sandy 1.1
with sandy 1.2

as you can see, in 1.1 the skin is red, as expected, while in 1.2 is black; is that a bug, introduced in 1.2, or am i missing something?
thank you.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

- Lo-Fi Version Time is now: 12th July 2007 - 07:13 PM
phpMyVisites