maybe change to
var myObj:Mesh = (childObj == null)? _object3d as Mesh : childObj as Mesh

or maybe change previous thing to
private var _object3d:* = new Object3D

to avoid type errors? if it compiles with cs3, it can be changed to
compile with FD, too.

On Sun, Nov 23, 2008 at 12:09 PM, andi_hofer <[EMAIL PROTECTED]> wrote:
>
> yes I know...
> but I alread tried to change the code. if I change it to private var
> _object3d:Object3D = new Object3D; the next error occurs:
>
> SimpleShadow.as(77): col: 41 Error: Implicit coercion of a value with
> static type away3d.core.base:Object3D to a possibly unrelated type
> away3d.core.base:Mesh.
> var myObj:Mesh = (childObj == null)? _object3d : childObj as Mesh;
> ^
> Build halted with errors (mxmlc).
>
> you do you compile your away3d projects?
>
>
> On 23 Nov., 10:18, Makc <[EMAIL PROTECTED]> wrote:
>> you know, away sources aren't sacral writings, and it is no sin to edit them.
>>
>> change
>> private var _object3d = Object3D;
>> to
>> private var _object3d:Object3D = new Object3D;
>> to make mxmlc shut up.
>>
>> On Sun, Nov 23, 2008 at 9:21 AM, andi_hofer <[EMAIL PROTECTED]> wrote:
>>
>> > I always have the problem also when I try to publish it for flash 9. I
>> > am using the Flex SDK Version 3 and FlashDevelop Version 3.0.0 Beta 9.
>> > There is no way to compile it without this error. Is this correct:
>> > private var _object3d = Object3D;?
>>
>> > If I use Flash CS 3 for publishing no error occurs! But in Flash CS 3
>> > you have to import all existing away3d classes first else it won't
>> > work too and for every new release of away3d you need to do it again.
>> > So I thought to use Flex... without success...
>>
>> > Don't know how to continue without having any troubles in using
>> > away3d. Any suggestions?
>>
>> > thanks
>> > andi
>>
>> > On 22 Nov., 19:07, andi_hofer <[EMAIL PROTECTED]> wrote:
>> >> hi!
>>
>> >> I am using flashdevelop and the flex sdk. I check out 
>> >> thehttp://away3d.googlecode.com/svn/branches/textfields/src/away3d/and
>> >> changed all matrix3d entries to matrixayway3d, but there is one error
>> >> left. It is in the class SimpleShadow: col: 15 Warning: variable
>> >> '_object3d' has no type declaration - private var _object3d =
>> >> Object3D;
>>
>> >> Has anyone the same problems? I changed in the file flex-config.xml
>> >> the player version to 10.0.0.
>>
>> >> Thanks
>> >> andi

Reply via email to