Lisichenko / as3isolib

Automatically exported from code.google.com/p/as3isolib
0 stars 0 forks source link

Doesn't compile with Flex 4 beta 2 #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm trying to use FDT with Flex 4 beta 2 (build 10485) SDK to compile
tutorials.
Trying to compile tutorial 1:

package isotest {
    import as3isolib.display.primitive.IsoBox;
    import as3isolib.display.scene.IsoScene;

    import flash.display.Sprite;

    /**
     * @author Jan Klosinski, jan@janklosinski.com
     * Nov 17, 2009
     */
    public class Tut1 extends Sprite {

        public function Tut1() {

            var box:IsoBox = new IsoBox();
            box.setSize(25, 25, 25);
            box.moveTo(200, 0, 0);

            var scene:IsoScene = new IsoScene();
            scene.hostContainer = this;
            scene.addChild(box);
            scene.render();

        }
    }
}

I'm getting this error in the library:

as3isolib/display/renderers/DefaultSceneLayoutRenderer.as(95): col: 10
Warning: Function value used where type Boolean was expected.  Possibly the
parentheses () are missing after this function reference.

                    if (collisionDetectionFunc)
                        ^

I'm using the source files, not SWC.

What configuration are you using to work with the library? Should I try
Flex 3.4 maybe?

Original issue reported on code.google.com by van...@gmail.com on 18 Nov 2009 at 9:26

GoogleCodeExporter commented 8 years ago
I'm getting the same error with Flex 3.4 (build 6955)

Original comment by van...@gmail.com on 18 Nov 2009 at 9:32

GoogleCodeExporter commented 8 years ago
changing line 95 to: 

if (collisionDetectionFunc != null)

fixes it

Original comment by van...@gmail.com on 18 Nov 2009 at 9:37

GoogleCodeExporter commented 8 years ago
I will go ahead and make that change however that is simply a compiler warning 
and has been present since the 
inception of the DefaultSceneLayoutRenderer collisionDetectionFunc API.  Fixed 
as of revision# 261

Original comment by jwopitz on 20 Nov 2009 at 3:32