Namespace arcane not found compile errors

27 views
Skip to first unread message

Ralph B

unread,
May 22, 2008, 8:33:14 AM5/22/08
to away3d.dev
Rob & team,
I am stumped by a recurring compile error, typically:

AbstractShader.as, Line 24 1004: Namespace was not found or is not a
compile-time constant.

It seems to be triggered by any call to Cast.trycolor() from a class
that I have created that extends Object3DContainer where there are
declarations of materials. However it is maddeningly inconsistent:
e.g. I comment out everything except a few lines that trigger the
error, comment them out and the compile error stops, then uncomment
them and the error does not come back!

I do have import away3d.core.* in every class that I am using. I
noticed however that in many of the away3D primitives, arcane.as is
not explicitly imported so was wondering that may have something to do
with it.

I have been chasing my tail on this so any suggestions would be
gratefully received.

Ralph

Rob Bateman

unread,
May 22, 2008, 7:44:12 PM5/22/08
to away3...@googlegroups.com
Hey Ralph

I've seen this before and i've no idea why it keep occuring. It's a phantom bug that only seems to surface every once in a while... possibly to the phases of the moon ;)

various way to fix it have been noted: try typing the full import to arcane (presume you've already tried this). try clearing your aso files in cs3 (i assume your using cs3 as i've not heard of this occurring anywhere else), try inserting a return character before the namespace reference (my personal favorite :D) - these thing have all 'apparantly' fixed the compile error in the past. I find no documented reference to this problem in the adobe bugtracker which is strange - clearly the code is correct but something is going wrong in the compiler execution. might post one myself

let me know how you get on - i'd like to see the back of this if possible


cheers

Rob
--
Rob Bateman
Flash Development & Consultancy

rob.b...@gmail.com
www.infiniteturtles.co.uk
www.away3d.com

Ralph B

unread,
Jun 22, 2008, 10:19:49 PM6/22/08
to away3d.dev
Hey Rob,
I seem to have fixed the problem in the app I was working on by
avoiding calling Cast.as from my own code.

However now it comes back in this form:

VertexPosition.as, Line 11 1004: Namespace was not
found or is not a compile-time constant.

whenever there is any CS3 Button component in the Library. Clearing
the ASO files doesn't help. I'll find the proper problem report page
and submit it with more details.

Hope this gives you a clue!

Ralph
> rob.bate...@gmail.comwww.infiniteturtles.co.ukwww.away3d.com

katopz

unread,
Jun 23, 2008, 12:14:28 AM6/23/08
to away3...@googlegroups.com
just make sure here, did you open strict mode when compile? (must to)

2008/6/23 Ralph B <ra...@satprof.com>:



--
katopz
http://www.sleepydesign.com

Rob Bateman

unread,
Jun 23, 2008, 5:18:56 AM6/23/08
to away3...@googlegroups.com
Hey ralph

another question - have you tried creating a clean source folder holding the away3d code in your classpath? Sometimes problems arise from people overwriting an older codebase with a newer one, which tends to leave old classes mixed in with newer ones. The best option when upgrading is to delete the old folder, or create a new classpath and copy the source into a new directory.

Rob
rob.b...@gmail.com
www.infiniteturtles.co.uk
www.away3d.com

Anthony McKale

unread,
Jun 23, 2008, 5:46:04 AM6/23/08
to away3...@googlegroups.com
Hi guys,
 
I just thought i'd thank you guys the away3d team for your great engine, I used it during the mashed 2008 bbc thingy in london yesterday
for visuallising tag cloud and a wee end of presentation slide, it was great and quick, it's only took me about 20 mins to do the scenes
 
Apps
    http://extdev.bbc.co.uk/scotland/test/bbc_super_search/end_3d_app.html
 
Blog
    http://zapper.hodgers.com/blogg/?p=36
 
The stuff you guys are enabling is simply amazing, keep up the good work!
 
cheers for the bottom of my black heart,
 
Ant

Anthony Mckale, Actionscript Programmer
Tel : 0141 42(26453)
Mob : 07912981657
BBC FMT Scotland, PQ Room 3.27


http://www.bbc.co.uk
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.

Ralph B

unread,
Jun 24, 2008, 11:29:44 PM6/24/08
to away3d.dev
Hey Rob, I have isolated it down to a simple but bizarre combination
of settings and code, and have posted it in the googlecode issue
tracker.

In short I can create a 1004 Namespace not found compile error at Line
16 of TransformBitmapMateria.as if I just declare a Cube, a View, and
a WhiteShadingBitMapMaterial in frame 1 script, and if I put any CS3
component in the Library. The problem seems to occur only with Away3D
SVN rev 585 and 586 (head as of today).

It is not affected by Strict setting. Deleting ASO files did not
help. I created a fresh new SVN checkout and use Tortoise SVN to
explore which rev creates the problem, so I assume that makes a
"clean" Away3D folder structure.

Hope this helps nail this one down... Nothing more frustrating than
anticipating beautiful Away3D graphics and the Compiler Errors window
pops open instead!
Ralph
> rob.bate...@gmail.comwww.infiniteturtles.co.ukwww.away3d.com
Reply all
Reply to author
Forward
0 new messages