1 | Next Page

uiModel: Using External XML As Data Source During Run-Time

Nov 19, 2009 6:40 AM
Rating: (Total Clicks 33)

The com.ghostwire.ui.data.uiModel class is used to represent a collection of items used as data source for various components in the Aspire UI library. Data-driven components such as the uiComboBox, uiListBox, uiMenu, uiMenuBar, and uiTabView are populated using uiModel objects. A uiModel object can be populated using an array of data objects (duplicates will be ignored), [...] (translate)

[AS3] Drawing Outline on Text Glyphs

Nov 18, 2009 10:43 AM
Rating: (Total Clicks 70)

Here is how you can draw an outline on text glyphs during run-time via ActionScript. This method works with embedded as well as non-embedded fonts. First, set up the TextField: // ActionScript 3.0 var txt:TextField = new TextField(); // new TextFormat(font, size, color) txt.defaultTextFormat = new TextFormat("DejaVu Sans", 21, 0xFFFFFF); txt.antiAliasType = AntiAliasType.ADVANCED; txt.autoSize = TextFieldAutoSize.LEFT; txt.text = "The quick brown fox jumps [...] (translate)

uiToggleFrame Example

Nov 17, 2009 2:41 AM
Rating: (Total Clicks 30)

This is a small SWF featuring the new uiToggleFrame component from Aspire UI Standard Edition (the component was added to the library in the recent Version 1.3 Update): (39kb) --> --> The content contained within the uiToggleFrame container can be toggled enabled/disabled by clicking on the checkbox title. The following is an excerpt of the [...] (translate)

[AS3] Applying ROT128 Encryption On Binary XML

Nov 16, 2009 12:46 PM
Rating: (Total Clicks 30)

This is Part III of our discussion on ROT128 Encryption. Part I: “Applying ROT128 Encryption On ByteArray” Part II: “Applying ROT128 Encryption On Embedded/Module SWFs” In “Saving XML As Binary”, we looked at how text XML can be stored in a ByteArray object so that it can be compressed and made non-human-readable. In this post, we look [...] (translate)

[AS3] Applying ROT128 Encryption On Embedded/Module SWFs

Nov 13, 2009 4:43 AM
Rating: (Total Clicks 49)

This post is a supplement to “Applying ROT128 Encryption On ByteArray”. Some time back, we posted a simple technique for hiding assets and AS3 code from prying eyes by embedding one SWF within another SWF. In this post, we revisit that topic and look at how ROT128 can be used to provide an additional layer of [...] (translate)

[AS3] Applying ROT128 Encryption On ByteArray

Nov 12, 2009 8:45 AM
Rating: (Total Clicks 65)

In this post, we will look at a very simple algorithm for weak encryption. You should not use this method for real cryptographic security. However, because it is so simple to implement, the light-weight algorithm could easily escape prying eyes and avoid being the target for decryption in the first place. I should also [...] (translate)

uiImage: Using Embedded And/Or Dynamically Generated BitmapData

Nov 10, 2009 6:40 AM
Rating: (Total Clicks 196)

The uiImage component is used to display non-interactive images. The source property is a String value and determines the image source, which can be an external image file (property value specifies the file name) or an image embedded in the SWF (property value specifies the class name). This means that the image source has to be expressed [...] (translate)

Aspire UI: Applying Background Glow+Shadow

Nov 9, 2009 4:45 PM
Rating: (Total Clicks 72)

The “background” property defined by the com.ghostwire.ui.core.uiComponent class determines the style of the background for a component instance – color, opacity, border color, border width, gradient fills, and corner radius. By default, no background will be drawn. The following is an example on how to draw a simple background: var pane:uiPane = new uiPane(); pane.background = { [...] (translate)

[AS3] Simple Editor For Loading And Saving XML As Binary

Nov 7, 2009 2:53 AM
Rating: (Total Clicks 122)

This post is a supplement to “Saving XML As Binary”. As mentioned in the previous post, you can save XML in binary and get the benefits of compression, but doing so would make it impossible to edit the data through a text editor. This post explores a simple tool you can create easily using Flash/ActionScript 3, a [...] (translate)

[AS3] Saving XML As Binary

Nov 6, 2009 8:59 AM
Rating: (Total Clicks 125)

This could be useful if you have an external large, verbose XML file which your application must load during run-time. By saving the XML as binary, you can compress the data and get a much smaller file. Of course, the amount of compression you can get depends on the complexity of your data, [...] (translate)

1 | Next Page