Away4 gold and stage3D.visible compiling error

Software: Away3D 4.x

PeterF, Newbie
Posted: 27 July 2012 07:22 AM   Total Posts: 3

I get this (noooob) error when trying to build:

Stage3DProxy.as(97): col: 13 Error: Access of possibly undefined property visible through a reference with static type flash.display:Stage3D.
_stage3D.visible = true;

and the same with getter and setter… what might be the problem? ...and yes, I have installed the latest playerglobal.swc and player11.3 and tried with flex4.5.1 and 4.6.0 and the latest FlashDevelop.

Project compiles fine if I comment out _stage3D.visible stuff and make the getter return true :), but this should not be the answer :)

   

Richard Olsson, Administrator
Posted: 27 July 2012 08:28 AM   Total Posts: 1192   [ # 1 ]

Is Stage3D.visible the only property that it complains about? Are you sure you are running on a recent Flex SDK? Have you set the -swf-version flag to 13 or later in the compiler?

   

PeterF, Newbie
Posted: 27 July 2012 11:40 AM   Total Posts: 3   [ # 2 ]
Richard Olsson - 27 July 2012 08:28 AM

Is Stage3D.visible the only property that it complains about? Are you sure you are running on a recent Flex SDK? Have you set the -swf-version flag to 13 or later in the compiler?

I just downloaded the 4.6sdk (to make sure) and -swf-version=13. visible property is the only thing it complains. Strange thing is that if I write stage3D. and wait for list of available properties to popup, the visible is not there… Is there something else that I might have forgotten? Reinstalling FD4 is the only thing I can think of atm…. note that last time I updated away, was 26.6.2012 and I took the main release which did not have that stage3D.visible stuff in Stage3DProxy.as file and everything worked fine.

 

   

Richard Olsson, Administrator
Posted: 27 July 2012 11:46 AM   Total Posts: 1192   [ # 3 ]

The visible property has been part of the Stage3D API since 11.0, according to the ActionScript reference docs, and my memory. Still, it might be worth trying to bump the SWF version up to 15 and see if that helps.

It’s incredibly odd that it cannot be found in the playerglobal.swc, if you are indeed really using the right playerglobal.swc file.

Are you using FlashDevelop? Can you try using another IDE? Also, try asking through the FlashDevelop support channels if anyone in that community knows what could be causing this.

   

PeterF, Newbie
Posted: 27 July 2012 12:03 PM   Total Posts: 3   [ # 4 ]
Richard Olsson - 27 July 2012 11:46 AM

The visible property has been part of the Stage3D API since 11.0, according to the ActionScript reference docs, and my memory. Still, it might be worth trying to bump the SWF version up to 15 and see if that helps.

It’s incredibly odd that it cannot be found in the playerglobal.swc, if you are indeed really using the right playerglobal.swc file.

Here is the link where got the playerglobal.swc

http://www.adobe.com/support/flashplayer/downloads.html

Anyway, I’ll check FD forums also, thx for help!

EDIT:

I made a quick test and it works in Flash Builder, so it’s propably FlashDevelop related issue.

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X