-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
organization, section contents links, and formatting
- Loading branch information
1 parent
d4501e0
commit 9f0c72b
Showing
36 changed files
with
299 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
# Chapter 2: Display programming {#chapter-10-display-programming} | ||
|
||
Visual elements are programmed in Haxe by working with display objects on the display stage. For example, you can add, move, remove, and order display objects, apply filters and masks, draw vector and bitmap graphics, and perform three-dimensional transformations using the OpenFL display programming API. The primary classes used for display programming are part of the [openfl.display package](https://api.openfl.org/openfl/display/). | ||
Visual elements are programmed in Haxe by working with display objects on the display stage. For example, you can add, move, remove, and order display objects, apply filters and masks, draw vector and bitmap graphics, and perform three-dimensional transformations using the OpenFL display programming API. The primary classes used for display programming are part of the [openfl.display package](https://api.openfl.org/openfl/display/). | ||
|
||
## Section Contents | ||
|
||
- [Basics of display programming](./basics-of-display-programming.md) | ||
- [Core display classes](./core-display-classes.md) | ||
- [Advantages of the display list approach](./advantages-of-the-display-list-approach.md) | ||
- [Working with display objects](./working-with-display-objects/README.md) | ||
- [Manipulating display objects](./manipulating-display-objects/README.md) | ||
- [Animating objects](./animating-objects.md) | ||
- [Loading display content dynamically](./loading-display-content-dynamically/README.md) | ||
|
||
<!-- TODO: uncomment when this content is adapted to OpenFL | ||
- [Stage orientation](./stage-orientation.md) | ||
- [Display object example: SpriteArranger](./display-object-example-sprite-arranger.md) --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
# Manipulating display objects {#manipulating-display-objects} | ||
|
||
Regardless of which display object you choose to use, there are a number of manipulations that all display objects have in common as elements that are displayed on the screen. For example, they can all be positioned on the screen, moved forward or backward in the stacking order of display objects, scaled, rotated, and so forth. Because all display objects inherit this functionality from their common base class (DisplayObject), this functionality behaves the same whether you’re manipulating a TextField instance, a Video instance, a Shape instance, or any other display object. The following sections detail several of these common display object manipulations. | ||
Regardless of which display object you choose to use, there are a number of manipulations that all display objects have in common as elements that are displayed on the screen. For example, they can all be positioned on the screen, moved forward or backward in the stacking order of display objects, scaled, rotated, and so forth. Because all display objects inherit this functionality from their common base class (DisplayObject), this functionality behaves the same whether you’re manipulating a TextField instance, a Video instance, a Shape instance, or any other display object. The following sections detail several of these common display object manipulations. | ||
|
||
## Section Contents | ||
|
||
- [Changing position](./changing-position.md) | ||
- [Panning and scrolling display objects](./panning-and-scrolling-display-objects.md) | ||
- [Manipulating size and scaling objects](./manipulating-size-and-scaling-objects.md) | ||
- [Caching display objects](./caching-display-objects.md) | ||
- [Setting an opaque background color](./setting-an-opaque-background-color.md) | ||
- [Applying blending modes](./applying-blending-modes.md) | ||
- [Adjusting DisplayObject colors](./adjusting-display-object-colors.md) | ||
- [Rotating objects](./rotating-objects.md) | ||
- [Fading objects](./fading-objects.md) | ||
- [Masking display objects](./masking-display-objects.md) | ||
|
||
<!-- TODO: uncomment when this content is adapted to OpenFL | ||
- [Controlling distortion when scaling](./controlling-distortion-when-scaling.md)--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
# Working with display objects {#working-with-display-objects} | ||
|
||
Now that you understand the basic concepts of the Stage, display objects, display object containers, and the display list, this section provides you with some more specific information about working with display objects in OpenFL. | ||
Now that you understand the basic concepts of the Stage, display objects, display object containers, and the display list, this section provides you with some more specific information about working with display objects in OpenFL. | ||
|
||
## Section Contents | ||
|
||
- [Properties and methods of the DisplayObject classs](./properties-and-methods-of-the-displayobject-class.md) | ||
- [Adding display objects to the display list](./adding-display-objects-to-the-display-list.md) | ||
- [Working with display object containers](./working-with-display-object-containers.md) | ||
- [Traversing the display list](./traversing-the-display-list.md) | ||
- [Setting Stage properties](./setting-stage-properties.md) | ||
- [Handling events for display objects](./handling-events-for-display-objects.md) | ||
- [Choosing a DisplayObject subclass](./choosing-a-display-object-subclass.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.