Matt W answers;
Take advantage of the dynamic function construction in AS3.
private function myCallbackFunction(e:Event, parameter:String):void
{
//voila, here’s your parameter
}
private function addArguments(method:Function, additionalArguments:Array):Function
{
return function(event:Event):void {method.apply(null, [event].concat(additionalArguments));}
}
var parameter:String = “A sentence I want to pass along”;
movieClip.addEventListener(Event.COMPLETE, addArguments(myCallbackFunction, [parameter] ) );
Nick Kwiatkowski created a few very interesting posts with video tutorials, he writes; The second I heard about Adobe giving us the ability to create our own extensions to the Flash Platform in AIR 3.0, I was smitten. It was finally a way that we could add our own features and do the things that were […]
UPDATE: I have another Drag-and-Drop Revisited post that covers even more drag-and-drop functionality available in Flex 4.
The Flex 4 gods were kind to us developers when they made the great decision to leave the custom drag-and-drop support unchanged. We just do what we’ve always done: detect the user is trying to drag something via mouseDown or […]
ahillman3 on Stack Overflow wrote this (and won my hero of the day award); OK, the primary focus for your solution is the preloader attribute on a mobile application. See the preloader=“CustomSplashScreen” below:
< ?xml version=“1.0″ encoding=“utf-8″?>
The CustomSplashScreen extends and overrides the spark.preloaders.SplashScreen class, and the getImageClass function.
package
{
import mx.core.DPIClassification;
[…]
dkozar evolved a working method to Authenticate and Authorize a Flex based app datas service call using Zend AMF, he writes;
I’ve been struggling with it, and figured it all out — so, perhaps it could help others.
The authentication is called on the server only if credentials supplied from the client (via the remote procedure call […]
Kevin Schroeder writes; I forget why, but a few days ago I started doing some digging around with authentication in Zend_Amf_Server. I had figured that I would add an adapter to the Zend_Amf_Server::setAuth() method and that would be it.
But I was wrong.
AMF allows for multiple request bodies to be sent at the same time. Of those there […]
roustalski writes somthing that will save you quite a bit of time if you get caught with this runtime error; When you show a popup in Flex in a mobile environment, defined as the style “interactionMode” being set to InteractionMode.TOUCH in this context, that is based on a component that does not implement the mx.managers.IFocusManagerContainer […]
Since Flex 4.5, you have had the ability to develop and export your projects as Android, iOS and PlayBook mobile applications that behave as native ones.
You can also export your Flex mobile project as AIR desktop apps. Just open Flash builder, open your project and choose Project > Export release build. You can then export a […]
Leonardo França writes; Zend AMF is an implementation done in PHP to work with the communication protocol binary AMF (Action Message Format) and is part of ZendFramework. I had to implement a system to upload files that were a little different than what is typically used in Flash, with this feature had to be integrated […]
Shine (formely 8hz-MP3) is a simple lightweight C-based MP3 encoder made by LAME developer Gabriel Bouvigne.
Description of Shine on his website:
The goal of this encoder was not quality, but simplicity. I tryed to simplify the encoding process as much as possible. So Shine is then a good starting point when a programmer needs a very […]
Helper class to write WAV formated audio files. The class expects audio input data in a byte array with samples represented as floats.
The default compressed code is set to PCM. The class resamples and formats the audio samples according to the class properties. The resampling geared for performance and not […]
Here is a very good multi-part tutorial on the ins and outs of mobile client / server development, that adds some quite useful functionality on Android, Apple IOS and Blackberry mobile devices.
In this Test Drive, you are going to create a Flex mobile application that retrieves, displays, and modifies database records (see Figure […]
Flash Builder 4.5 has a built-in data paging feature that generates ActionScript code to retrieve data from the database incrementally on demand. For example, suppose your database has thousands of records and you want to fetch only 20 rows at a time and display them in a data grid. When you […]
e_schrade wrote a neat way of doing things in the service layer; Let’s take a quick look at something that’s kind of neat in Zend Framework. I’ve been doing some work with Adobe on some articles and one of them was on working with mobile clients with Flash. Well, me being the masochist […]
I have som rather large and time consuming queries running in the Statistics screen of an NOC (Network Operations Center) Flex/Flash Builder 4 application i’we been tinkering with, to prevent the database server to be boggen down by multiple queries fired by this app in multiple places I had to implement caching.
And to do this […]