Sphere.as, Line 12 1004:Namespace was not found or is not a compile-time constant - Away3D 2.2

33 views
Skip to first unread message

cellis

unread,
Oct 2, 2008, 8:59:13 PM10/2/08
to away3d.dev
I am having this problem which other users appear to be having. Any
suggestions?

It seems to be trying to import the "arcane" namespace. I have no idea
what that is, but it truly is arcane.

use namespace arcane // line 12


Let me know!

Holger

unread,
Oct 3, 2008, 11:18:37 AM10/3/08
to away3d.dev
Hi,

i am having exactly the same problem!
I don't even have a Sphere in my Project!

cooladn

unread,
Oct 8, 2008, 12:01:54 PM10/8/08
to away3d.dev

Hi!

Same problem with a project without Sphere.as

Peter Kapelyan

unread,
Oct 8, 2008, 12:04:54 PM10/8/08
to away3...@googlegroups.com
Yeah I got this too- trying new version, had to comment out line 12 in sphere :/
 
Rob?

On Wed, Oct 8, 2008 at 12:01 PM, cooladn <coo...@gmail.com> wrote:


Hi!

Same problem with a project without Sphere.as



--
___________________

Actionscript 3.0 Flash 3D Graphics Engine

HTTP://AWAY3D.COM

Makc

unread,
Oct 10, 2008, 7:41:45 AM10/10/08
to away3...@googlegroups.com
search the list, I know for sure there are two solutions.

Holger

unread,
Oct 10, 2008, 9:13:48 AM10/10/08
to away3d.dev
I found no solution but i made a workaround.
if you implement a sphere in you project it will work!

Just declare an object as Sphere and all compiles fine.
You don't need to create the sphere, only implementing the datatype
will do.
Like this:

private var dummy:Sphere;

that's it.
I don't know why this is working.

Holger

On 10 Okt., 13:41, Makc <makc.the.gr...@gmail.com> wrote:
> search the list, I know for sure there are two solutions.
>
> On Wed, Oct 8, 2008 at 7:04 PM, Peter Kapelyan <flashn...@gmail.com> wrote:
> > Yeah I got this too- trying new version, had to comment out line 12 in
> > sphere :/
>
> > Rob?
>

Makc

unread,
Oct 10, 2008, 10:34:33 AM10/10/08
to away3...@googlegroups.com
cool, 3 solutions now

zerodevice

unread,
Oct 17, 2008, 1:26:03 PM10/17/08
to away3d.dev
i'm having the same problem.

but i havent even do anything about the sphere.
i just started with a blank file and wanted to add a new view3d.

-----------------------------------------------
import away3d.containers.*;
import away3d.core.base.*;
import away3d.primitives.*;
import away3d.core.math.*;

// create a 3D-viewport
var view:View3D = new View3D({x:300, y:200});
-----------------------------------------------

then it gave me this error:
1004: Namespace was not found or is not a compile-time constant.
use namespace arcane;


was there a solution to this?

Makc

unread,
Oct 17, 2008, 4:19:57 PM10/17/08
to away3...@googlegroups.com
1 solution make swc file
2 edit sphere to move arcane reference
3 use the sphere somewhere

zerodevice

unread,
Oct 17, 2008, 10:36:28 PM10/17/08
to away3d.dev
Makc, no, thats not the point and it doesnt fix the problem

i discovered something really funny.
the same code and same stuff, if u put it into a .as file under a
package and class, it will not work.
but if u put it into the timeline inside the .fla file, it will work.

is there a more reasonable explanation to it?

On Oct 18, 4:19 am, Makc <makc.the.gr...@gmail.com> wrote:
> 1 solution make swc file
> 2 edit sphere to move arcane reference
> 3 use the sphere somewhere
>

zerodevice

unread,
Oct 17, 2008, 11:17:05 PM10/17/08
to away3d.dev
ok, i don't know what happen to the arcane thing, coz if u use the
lessons from version 2.2.0 and turn it into a package it will not
work. the version 2.2.0 has a problem with it and it only works on a
direct .fla file where ur codes are in the timeline.

i then tried to search all the previous mailling list and noticed the
only one that made it through was the "Ribbon" by tain.
apparently he is using version 2.1.0.

So i downloaded away3d_2_1_0 and it works like a charm.
I guess i am not ready to use 2.2.0 or the updates from svn yet.

Rob Bateman

unread,
Oct 19, 2008, 8:42:07 PM10/19/08
to away3...@googlegroups.com
Hey Guys

Thanx for the pointers and sample code. After a little bit of trial and error, i've manages to get a version of 2.2 running that doesn't exhibit the namespace error - both when using external classes and when compiling code directly from within an fla. The problem was a combination of very strange things - esssentially cs3 doesn't like namespace definitions inside the class definition, but also will ignore namespace definitions that are inside a package structure that no other class in the application references. either way, both are addressed in the code uploaded to the trunk - please update the svn and let me know if the problem persists with any of your setups.

cheers

Rob
--
Rob Bateman
Flash Development & Consultancy

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

zerodevice

unread,
Oct 19, 2008, 9:39:03 PM10/19/08
to away3d.dev
Thanks. ROB
you are the best~!!! (unlike someone else)
> rob.bate...@gmail.comwww.infiniteturtles.co.ukwww.away3d.com

katopz

unread,
Oct 20, 2008, 12:30:31 AM10/20/08
to away3...@googlegroups.com
Hey zerodevice

i agree with that "rob is the best" but not "(unlike someone else)"
you don't need to said that, right?

;)

2008/10/20 zerodevice <zerod...@gmail.com>

Makc

unread,
Oct 20, 2008, 1:00:42 AM10/20/08
to away3...@googlegroups.com
this follows without saying, if Rob is the best, the rest of the world
is not. that's the definition of "best".

katopz

unread,
Oct 20, 2008, 1:23:08 AM10/20/08
to away3...@googlegroups.com
We can say "best of the best" later, btw ;P

2008/10/20 Makc <makc.th...@gmail.com>

zerodevice

unread,
Oct 20, 2008, 4:53:35 AM10/20/08
to away3d.dev
lol, katopz, yes, i don't need to use the "unlike someone else"
indeed, if someone actually pays a little bit respect to people that
is seeking for help.


On Oct 20, 1:23 pm, katopz <kat...@gmail.com> wrote:
> We can say "best of the best" later, btw ;P
>
> 2008/10/20 Makc <makc.the.gr...@gmail.com>
>
>
>
>
>
> > this follows without saying, if Rob is the best, the rest of the world
> > is not. that's the definition of "best".
>
> > On Mon, Oct 20, 2008 at 7:30 AM, katopz <kat...@gmail.com> wrote:
> > > Hey zerodevice
>
> > > i agree with that "rob is the best" but not "(unlike someone else)"
> > > you don't need to said that, right?
>
> > > ;)
>
> > > 2008/10/20 zerodevice <zerodev...@gmail.com>

Makc

unread,
Oct 20, 2008, 6:49:26 AM10/20/08
to away3...@googlegroups.com
on somewhat unrelated note, dont you think it would be cool if people
looking for help would not mind to actually work towards solution?

AlinaX

unread,
Oct 20, 2008, 6:54:23 AM10/20/08
to away3d.dev
> Rob Bateman wrote:
>
> esssentially cs3 doesn't like namespace definitions inside the
> class definition, but also will ignore namespace definitions that are inside
> a package structure that no other class in the application references.

Hi Rob,
I had no namespace related problems with v2.1 and CS3.
But did you test the first v2.2 release on CS3?

regards

zerodevice

unread,
Oct 20, 2008, 7:05:15 AM10/20/08
to away3d.dev
Mark, i agreed with your idea that the person who looks for answers
tries to help finding the answers as well.
but for some cases, the person has limited skills to solve the problem
and wishes someone in the higher level to show some mercy and light.
i don't personally dislike you or whatever that was being thought of,
but there was one point that the solutions were not very suggestive to
solve the problem.
in this case it was about the sphere issues.
i later then notice i had solve the problem by down grading from
v2.2.0 into v.2.1.0 in CS3 would work for me.
thus i posted the answer in here which i assume to be the temporary
solution.

On Oct 20, 6:49 pm, Makc <makc.the.gr...@gmail.com> wrote:
> on somewhat unrelated note, dont you think it would be cool if people
> looking for help would not mind to actually work towards solution?
>

Rob Bateman

unread,
Oct 20, 2008, 7:20:52 AM10/20/08
to away3...@googlegroups.com
Hi Rob,
I had no namespace related problems with v2.1 and CS3.
But did you test the first v2.2 release on CS3?

of course, but this namespace issue only manifested itself in certain use cases, none of which were present in my fla sources. It's certainly one of the more esoteric bugs i've had to fix! :)


What's with all the ganging up on Makc? Come on, give the guy a break - He's only trying to help! His first post highlighted the fact that there were already solutions on the list for this problem - which saved me having to point out the same. Either way, let hope this bug doesn't keep coming back to life - it's a bit difficult to spot being an odd intricacy (or error, you decide) of as3 in cs3

Rob

 

Makc

unread,
Oct 20, 2008, 7:21:54 AM10/20/08
to away3...@googlegroups.com
well I agree too that I could be a bit more verbose in my initial
reply but, since things were posted quite a few times here, references
to three solutions might be just enough for someone who would want to
look them up.

for example what rob said about namespaces inside classes, and did in
http://code.google.com/p/away3d/source/detail?r=756 echoes my post
http://groups.google.com/group/away3d-dev/msg/ef0f0b8206dfd340
(solution #2).

for another example, you were saying over and over that you dont use
sphere, but if you had time to dig this post
http://groups.google.com/group/away3d-dev/msg/f80cecf1305cdb2f by
Holger, you would realise that what I was saying is that you should
use it (solution #3).

Peter Kapelyan

unread,
Oct 20, 2008, 9:29:26 AM10/20/08
to away3...@googlegroups.com
Makc is tough - he can take it! (unlike someone else)..
lol sorry it's monday , silly discussion but I believe we are all just trying to help here...
 
Now if some people that get help for free actually donated to the project that would be another story...AHEM....
 

:)
Pete

zerodevice

unread,
Oct 20, 2008, 10:29:04 AM10/20/08
to away3d.dev
rob, well, what can i say?
it seems like everyone's on the other side.
i was just trying to find some solutions, and i did tried to dig some
post from the list, but just not the right ones.
then makc told me about sphere stuff and i was confused on those
replies and told him i am not using sphere.
if i found out the datatype thing in the link he posted, i won't have
asked more.
anyway, like i said, i dont dislike makc personally, its just that he
shoot me in a private reply when i was trying to look for help. (i
thought that's what this mailling list is about, but why the shot?)

peter, about donations, yes, i planned to donate next month, not much
though, coz i dont have much myself.
the reason i donate was becoz away3d team did a very good job in
implementing this good engine.
i can't express how much i am glad to have this team to come up with
such brilliant product to share with the public.
so, i don't plan being a freeloader, if that's what you mean.

makc, don't get the wrong idea of me being unhappy with your actions
or whatsoever, it was nothing personal.
i just dont have the mind set as yours to have found those answers in
such an efficient way.
if you are 10, i am just 0.1, so helps like your last post with those
links are very much appreciated instead.


On Oct 20, 9:29 pm, "Peter Kapelyan" <flashn...@gmail.com> wrote:
> Makc is tough - he can take it! (unlike someone else)..
> lol sorry it's monday , silly discussion but I believe we are all just
> trying to help here...
>
> Now if some people that get help for free actually donated to the project
> that would be another story...AHEM....
>
> http://away3d.com/donations
>
> :)
> Pete
>
>
>
> On Mon, Oct 20, 2008 at 7:21 AM, Makc <makc.the.gr...@gmail.com> wrote:
>
> > well I agree too that I could be a bit more verbose in my initial
> > reply but, since things were posted quite a few times here, references
> > to three solutions might be just enough for someone who would want to
> > look them up.
>
> > for example what rob said about namespaces inside classes, and did in
> >http://code.google.com/p/away3d/source/detail?r=756echoes my post
> >http://groups.google.com/group/away3d-dev/msg/ef0f0b8206dfd340
> > (solution #2).
>
> > for another example, you were saying over and over that you dont use
> > sphere, but if you had time to dig this post
> >http://groups.google.com/group/away3d-dev/msg/f80cecf1305cdb2fby
> > Holger, you would realise that what I was saying is that you should
> > use it (solution #3).
>
> > >> >> > >> > > > > >> >> > HTTP://AWAY3D.COM <http://away3d.com/>

Peter Kapelyan

unread,
Oct 20, 2008, 10:40:35 AM10/20/08
to away3...@googlegroups.com
No hard feelings,
 
I just found this an opportunity to mention than we try to help people here.
 
Maybe people think we are rich, but that's not the case. All of us also have to work hard to do a real world job, and have kids/family etc...

So far we have had $160 (yes only that much) in donations , from 3 donors! That would only buy lunch for the away3d team + contributors, ONCE.
 
So we don't ask for much back, and appreciation goes a long way. So thanks to Makc for helping out as much as he does, I do appreciate him being around.
 
And that goes for everyone else using the engine, your contributions and help are greatly appreciated! Thank you for sticking with us !
 
-Pete

zerodevice

unread,
Oct 20, 2008, 10:51:30 AM10/20/08
to away3d.dev
> No hard feelings,

peter, none taken.
i know about the $160, that day someone in the team once told me about
the story.
that's why i decided to share some of my bread.

On Oct 20, 10:40 pm, "Peter Kapelyan" <flashn...@gmail.com> wrote:
> No hard feelings,
>
> I just found this an opportunity to mention than we try to help people here.
>
> Maybe people think we are rich, but that's not the case. All of us also have
> to work hard to do a real world job, and have kids/family etc...
>
> So far we have had $160 (yes only that much) in donations , from 3 donors!
> That would only buy lunch for the away3d team + contributors, ONCE.
>
> So we don't ask for much back, and appreciation goes a long way. So thanks
> to Makc for helping out as much as he does, I do appreciate him being
> around.
>
> And that goes for everyone else using the engine, your contributions and
> help are greatly appreciated! Thank you for sticking with us !
>
> -Pete
>
> > > >http://code.google.com/p/away3d/source/detail?r=756echoesmy post
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages