View unanswered posts | View active topics



Reply to topic  [ 4 posts ] 
It will not be visible outside of this package. 
Author Message
Member

Joined: Fri Mar 23, 2007 5:29 pm
Posts: 16
Code:
Warning: function 'something' will be scoped to the default namespace: someclass: internal.  It will not be visible outside of this package.


says FD3 but i know that and i wanted to do this :)
after that message i have to write internal in front of all of vars.I thought there must be an option for that in project properties but i couldnt find it

where is it ? :oops:


Thu Jun 14, 2007 10:18 am
Profile
Member

Joined: Fri Mar 23, 2007 5:29 pm
Posts: 16
Post 
I guess i couldnt say it right.

In actionscript only (as3) projects i write like this
Code:
var str:String = 'Lorem Ipsum';

but mxmlc gives warning says
Code:
it will not be visible outside of this package it will be scoped to the default namespace: internal

and not compiles project ,i dont understand it.It shouldnt be a warning or must be only warning and then it must compile the project , Am i wrong?


Fri Jun 29, 2007 1:50 pm
Profile
Member

Joined: Mon Dec 26, 2005 6:46 pm
Posts: 109
Post 
I would think it should still compile, and technically since that's only a warning it should - though I was able to reproduce this.

Though I would really strongly recommend making sure you scope all your variable declarations correctly now ( for instance, internal scoping makes it available to everything within the package, private makes it only available to the class, and protected makes it available to that class and subclasses ).


Fri Jun 29, 2007 2:24 pm
Profile WWW
Member

Joined: Fri Mar 23, 2007 5:29 pm
Posts: 16
Post 
Thanks for answering.

I know an i use variable declarations.it is nice to know that i am not only one thinks it is a warning not an error.Thanks again.


Fri Jun 29, 2007 4:10 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.