brlrt / away3d

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

1004 Namespace not found with certain Away3D declarations and a CS3 Component in library #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use Flash CS3
2. Create a new FLA.
3. Open Components and drag a Button to stage.  Delete it from stage,
leaving it in the Library.
4. Set class path to Away3D SVN src folder, rev 585 or 586.
5. Put this script in Frame 1:

import away3d.containers.*;
import away3d.materials.*;
import away3d.primitives.*;
import flash.display.*;
var view:View3D;
var mat:WhiteShadingBitmapMaterial; 
var cube:Cube; 
stop();

6. Publish.

What is the expected output? What do you see instead?
Get compile error:
TransformBitMapMaterial.as, Line 16.   1004: Namespace was not found or is
not a compile-time constant.

What version of the product are you using? On what operating system?
Away3D rev 586.
Adobe Flash CS3 Professional, ver 9.0.
Windows XP SP2.

Please provide any additional information below.
Problem goes away if you delete the Button from the library, or delete any
of the three var statements.  Is not affected by Strict Mode setting. 
Problem clears with SVN rev 584 and below.

Original issue reported on code.google.com by ralph%sa...@gtempaccount.com on 25 Jun 2008 at 3:09

GoogleCodeExporter commented 8 years ago
A solution for this problem is described in the following mailing list thread:

http://groups.google.com/group/away3d-dev/browse_thread/thread/6629c4c20c130a87/
548cf9f6cb0d05de

Original comment by rob.bate...@gmail.com on 24 Aug 2008 at 1:29