FlashMX/PHP Development with Sunny Hong of ghostWire Studios.
Show all feed information | Ping Blog Update
This post is a supplement to “Serializing Bitmaps (Storing BitmapData As Raw Binary/ByteArray)”. In that article, we looked at how to convert BitmapData to a ByteArray, save that ByteArray, and re-construct the BitmapData from the saved ByteArray.
It is important to note that the …
keywords actionscript, as3, binary file, bitmap, bitmapdata, bitmaps, bytearray, flash, tips
The default behavior of the uiWindow container is to cast a drop shadow when it is active in the foreground, and not do so when it is inactive or when it is maximized to fill the stage. This behavior is determined by the component instance’s background property value.
Default Shadow
The …
keywords actionscript, as3, aspire ui, component instance, default behavior, drop shadow, filters, flash, flash components, foreground, themes, tips, window
The uiImage class is used to display an image, the source of which can either be a MovieClip symbol in the library, or an external SWF/GIF/JPG/PNG file.
When using external bitmap images (GIF/JPG/PNG), the uiImage class will load from the external source only once and use cached data if the same …
keywords actionscript, as3, aspire ui, bitmap, bitmap images, bitmapdata, flash, flash components, png file, tips
This post is a supplement to “Saving XML As Binary”. I neglected to mention in that post that you can, if so desired, embed the binary XML within your SWF instead of loading it during run-time. That means you still get to keep the XML externally, not as part of your application code, …
keywords actionscript, application code, as3, bytearray, flash, run time, swf, tips, xml
Whenever an application needs to save bitmap images to local storage or post them to a server script, a common practice is to encode the image as JPEG or PNG before sending that binary data off as the respective mimeType. However, if the intention is simply to save the bitmap image, ie to …
keywords actionscript, as3, bitmap, bitmap images, bitmapdata, bytearray, flash, intention, png, storage, tips
The previous demo of the new “vista” theme featured mainly the uiWindow component.
Here is another demo featuring various UI components, including the checkbox, radiobutton, tabview, sliders and steppers (this is the same demo included in the library distribution but with the …
keywords actionscript, as3, aspire ui, checkbox, demo, flash, flash components, flash data, flash swf, object classid, skinning, sliders, themes, type application, ui components, vista, x shockwave flash
A new bonus theme, emulating the look of Windows Vista OS, has been added to the Aspire UI components library. Below is a live demo (click on the three buttons to bring up windows):
-->
-->
The SWF above is approximately 84KB (the theme assets are embedded in the SWF).
Availability
The …
keywords actionscript, as3, aspire ui, assets, demo, flash, flash components, flash data, flash swf, news, themes, type application, ui components, window, windows vista, x shockwave flash
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 …
keywords actionscript, array, as3, aspire ui, data source, flash, flash components, run time, tips, xml
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, …
keywords actionscript, as3, flash, fonts, glyphs, run time, textfield, tips
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 …
keywords as3, aspire ui, excerpt, flash, flash components, flash data, flash swf, type application, x shockwave flash