Flex

CLICK event in AS3 (pass parameters to function)?">How to create custom MouseEvent.CLICK event in AS3 (pass parameters to function)?

Posted by on 18 November, 2011 at 8:55 am

Matt W answers;
Take advan­tage of the dynamic func­tion con­struc­tion in AS3.

pri­vate func­tion myCallbackFunction(e:Event, parameter:String):void
{
//voila, here’s your para­me­ter
}

pri­vate func­tion addArguments(method:Function, additionalArguments:Array):Function
{
return function(event:Event):void {method.apply(null, [event].concat(additionalArguments));}
}

var parameter:String = “A sen­tence I want to pass along”;
movieClip.addEventListener(Event.COMPLETE, addArguments(myCallbackFunction, [parameter] ) );

AIR Native Extension with Eclipse">Creating a Windows AIR Native Extension with Eclipse

Posted by on 31 October, 2011 at 8:16 pm

Nick Kwiatkowski cre­ated a few very inter­est­ing posts with video tuto­ri­als, he writes; The sec­ond I heard about Adobe giv­ing us the abil­ity to cre­ate our own exten­sions to the Flash Plat­form in AIR 3.0, I was smit­ten. It was finally a way that we could add our own fea­tures and do the things that were […]

Drag-and-Drop in Flex 4

Posted by on 6 October, 2011 at 7:45 pm

UPDATE: I have another Drag-and-Drop Revis­ited post that cov­ers even more drag-and-drop func­tion­al­ity avail­able in Flex 4.
The Flex 4 gods were kind to us devel­op­ers when they made the great deci­sion to leave the cus­tom drag-and-drop sup­port unchanged. We just do what we’ve always done: detect the user is try­ing to drag some­thing via mouse­Down or […]

FXG in Mobile applications with Flash Builder for PHP">Splash screen with FXG in Mobile applications with Flash Builder for PHP

Posted by on 28 September, 2011 at 10:38 am

ahillman3 on Stack Over­flow wrote this (and won my hero of the day award); OK, the pri­mary focus for your solu­tion is the pre­loader attribute on a mobile appli­ca­tion. See the preloader=“CustomSplashScreen” below:

< ?xml version=“1.0″ encoding=“utf-8″?>

The Cus­tom­Splash­Screen extends and over­rides the spark.preloaders.SplashScreen class, and the getIm­age­Class function.

pack­age
{
import mx.core.DPIClassification;
[…]

AMF Authentication & Authorization">Zend AMF Authentication & Authorization

Posted by on 7 September, 2011 at 11:29 am

dkozar evolved a work­ing method to Authen­ti­cate and Autho­rize a Flex based app datas ser­vice call using Zend AMF, he writes;
I’ve been strug­gling with it, and fig­ured it all out — so, per­haps it could help oth­ers.
The authen­ti­ca­tion is called on the server only if cre­den­tials sup­plied from the client (via the remote pro­ce­dure call […]

Authentication using Zend_Amf

Posted by on 4 September, 2011 at 8:10 am

Kevin Schroeder writes; I for­get why, but a few days ago I started doing some dig­ging around with authen­ti­ca­tion in Zend_Amf_Server. I had fig­ured 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 mul­ti­ple request bod­ies to be sent at the same time. Of those there […]

SkinnableTextBase focusManager runtime error popup

Posted by on 1 September, 2011 at 2:45 pm

roustal­ski writes somthing that will save you quite a bit of time if you get caught with this run­time error; When you show a popup in Flex in a mobile envi­ron­ment, defined as the style “inter­ac­tion­Mode” being set to InteractionMode.TOUCH in this con­text, that is based on a com­po­nent that does not imple­ment the mx.managers.IFocusManagerContainer […]

Flex mobile in the browser

Posted by on 31 August, 2011 at 11:01 am

Since Flex 4.5, you have had the abil­ity to develop and export your projects as Android, iOS and Play­Book mobile appli­ca­tions that behave as native ones.
You can also export your Flex mobile project as AIR desk­top apps. Just open Flash builder, open your project and choose Project >  Export release build. You can then export a […]

AMF">File uploads with Adobe Flex and Zend AMF

Posted by on 31 August, 2011 at 10:27 am

Leonardo França writes; Zend AMF is an imple­men­ta­tion done in PHP to work with the com­mu­ni­ca­tion pro­to­col binary AMF (Action Mes­sage For­mat) and is part of Zend­Frame­work. I had to imple­ment a sys­tem to upload files that were a lit­tle dif­fer­ent than what is typ­i­cally used in Flash, with this fea­ture had to be integrated […]

MP3 Encoder on Alchemy">Shine MP3 Encoder on Alchemy

Posted by on 31 August, 2011 at 10:18 am

Shine (formely 8hz-MP3) is a sim­ple light­weight C-based MP3 encoder made by LAME devel­oper Gabriel Bou­vi­gne.
Descrip­tion of Shine on his web­site:
The goal of this encoder was not qual­ity, but sim­plic­ity. I tryed to sim­plify the encod­ing process as much as pos­si­ble. So Shine is then a good start­ing point when a pro­gram­mer needs a very […]

WAVWriter.as

Posted by on 31 August, 2011 at 9:59 am

Helper class to write WAV for­mated audio files. The class expects audio input data in a byte array with sam­ples rep­re­sented as floats.
The default com­pressed code is set to PCM. The class resam­ples and for­mats the audio sam­ples accord­ing to the class prop­er­ties. The resam­pling geared for per­for­mance and not […]

Flex Builder 4.5.x Test Drive for Mobile Tutorials

Posted by on 2 August, 2011 at 11:34 am

Here is a very good multi-part tuto­r­ial on the ins and outs of mobile client / server devel­op­ment, that adds some quite use­ful func­tion­al­ity on Android, Apple IOS and Black­berry mobile devices.
In this Test Drive, you are going to cre­ate a Flex mobile appli­ca­tion that retrieves, dis­plays, and mod­i­fies data­base records (see Figure […]

PHP using Flash Builder 4.5.x">Data paging with Flex and PHP using Flash Builder 4.5.x

Posted by on 2 August, 2011 at 11:19 am

Flash Builder 4.5 has a built-in data pag­ing fea­ture that gen­er­ates Action­Script code to retrieve data from the data­base incre­men­tally on demand. For exam­ple, sup­pose your data­base has thou­sands of records and you want to fetch only 20 rows at a time and dis­play them in a data grid. When you […]

Zend_Server Class

Posted by on 3 September, 2010 at 7:27 pm

e_schrade wrote a neat way of doing things in the ser­vice layer; Let’s take a quick look at some­thing that’s kind of neat in Zend Frame­work. I’ve been doing some work with Adobe on some arti­cles and one of them was on work­ing with mobile clients with Flash. Well, me being the masochist […]

Adding Zend_Cache to Flex/Flash Builder 4 Projects

Posted by on 28 May, 2010 at 3:18 pm

I have som rather large and time con­sum­ing queries run­ning in the Sta­tis­tics screen of an NOC (Net­work Oper­a­tions Cen­ter) Flex/Flash Builder 4 appli­ca­tion i’we been tin­ker­ing with, to pre­vent the data­base server to be boggen down by mul­ti­ple queries fired by this app in mul­ti­ple places I had to imple­ment caching.
And to do this […]

Get Adobe Flash playerPlugin by wpburn.com wordpress themes