You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/as3/namespaces.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,12 @@ ActionScript 3 uses three-dimensional property names: a property consists of a n
7
7
You can use ActionScript namespaces to privatize definitions across class fields and access them from any package as long as the used namespace is in scope:
8
8
9
9
```
10
-
// my_lib_internals.as
10
+
// MyLibInternals.as
11
11
package my.lib {
12
12
/**
13
13
* @private
14
14
*/
15
-
public namespace my_lib_internals = "http://my.lib/internals";
15
+
public namespace MyLibInternals = "http://my.lib/internals";
Copy file name to clipboardExpand all lines: src/as3/packages.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,4 +15,17 @@ import me.diantha.*;
15
15
// me.diantha.y
16
16
y
17
17
me.diantha.y
18
-
```
18
+
```
19
+
20
+
## Source tree
21
+
22
+
It is allowed to define how many items you wish in a source file. However, it is a good practice to keep the source tree the same as the package inheritance:
23
+
24
+
```
25
+
// <project>/src/me/someone/lib/SomeConst.as
26
+
package me.someone.lib {
27
+
public const SomeConst:decimal = 10;
28
+
}
29
+
```
30
+
31
+
This source tree can be used to insert MXML files at the right package.
0 commit comments