This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-docs.git
The following commit(s) were added to refs/heads/master by this push:
new 383e412 some fixes in code to look good in AS3, and fix link
383e412 is described below
commit 383e412f21c865a68fbe27d16e355f56035c17af
Author: Carlos Rovira <[email protected]>
AuthorDate: Thu Jun 27 19:35:16 2019 +0200
some fixes in code to look good in AS3, and fix link
---
create-an-application/code-conventions.md | 13 ++++++-------
.../migrate-an-existing-app/circular-dependencies.md | 8 ++++----
.../migrate-an-existing-app/migrate-from-js.md | 2 +-
3 files changed, 11 insertions(+), 12 deletions(-)
diff --git a/create-an-application/code-conventions.md
b/create-an-application/code-conventions.md
index d23f52e..b297200 100644
--- a/create-an-application/code-conventions.md
+++ b/create-an-application/code-conventions.md
@@ -54,7 +54,7 @@ To compare:
### Flex
-```
+```actionscript
public class TimerEvent {
public const TIMER:String = "timer";
}
@@ -63,8 +63,10 @@ public class Timer {
dispatchEvent(new TimerEvent(TimerEvent.TIMER));
}
```
+
Usage:
-```
+
+```actionscript
import TimerEvent;
import Timer;
@@ -78,7 +80,7 @@ function timerHandler(event:TimerEvent):void
### Royale
-```
+```actionscript
public class Timer {
public const TIMER:String = "timer";
dispatchEvent(new Event(TIMER));
@@ -87,7 +89,7 @@ public class Timer {
Usage:
-```
+```actionscript
import Timer;
var timer:Timer = new Timer();
@@ -97,6 +99,3 @@ function timerHandler(event:Event):void
{
}
```
-
-
-
diff --git
a/create-an-application/migrate-an-existing-app/circular-dependencies.md
b/create-an-application/migrate-an-existing-app/circular-dependencies.md
index e0b9703..d869507 100644
--- a/create-an-application/migrate-an-existing-app/circular-dependencies.md
+++ b/create-an-application/migrate-an-existing-app/circular-dependencies.md
@@ -21,7 +21,7 @@ title: Circular dependencies
In software, a circular dependency is a relation between two or more modules
which either directly or indirectly depend on each other to function properly.
An extreme example, which could not work, is:
-```
+```actionscript
public class A extends B
public class B extends A
@@ -32,7 +32,7 @@ Circular dependencies cause a tight coupling of what should
be independent modul
You can get away with some circular dependencies when developing an
application in Flex or Royale that will be compiled for use in Flash or the AIR
environment. You can write code like this:
-```
+```actionscript
public class Child {
public var parent:Parent;
}
@@ -56,7 +56,7 @@ GCC recommends refactoring interdependent classes to use
interfaces. Some folks
You would define two interfaces like this:
-```
+```actionscript
public class IChild {
}
@@ -69,7 +69,7 @@ Note that neither interfaces states that the implementation
must reference the o
Anyway, with these interfaces, the classes look like:
-```
+```actionscript
public class Child implements IChild {
public var parent:IParent;
}
diff --git a/create-an-application/migrate-an-existing-app/migrate-from-js.md
b/create-an-application/migrate-an-existing-app/migrate-from-js.md
index f39265b..fcfa923 100644
--- a/create-an-application/migrate-an-existing-app/migrate-from-js.md
+++ b/create-an-application/migrate-an-existing-app/migrate-from-js.md
@@ -38,5 +38,5 @@ If you are thinking of moving to an easier way of writing
applications, compilin
Take Royale out for a spin!
-- [Hello, world!]get-started/hello-world.html)
+- [Hello, world!](get-started/hello-world.html)
- [Create an applicaton](create-an-Application.html)