Oct 30
ARGH!
This is my list of the most enraging Flex bugs. If you have any addition, tell me.
Sep 30
As recomendações feitas pela Adobe [1] e por palestrantes reconhecidos dentro da comunidade de desenvolvedores, tais como [2] e [3], apontam para os mesmos processos conhecidos há bastante tempo pela comunidade de IHC: as práticas de UCD – User Centered Design [4].
Read the rest of this entry »
Sep 03
These are some util functions I use to order my components on screen. They’re so simple and straightforward that maybe someone else could have written it allready. If that’s the case, please warn me: I’ll post the link here. Read the rest of this entry »
Aug 27
There’s a behavior all my TitleWindows share: they’re gentle.
With it I mean that they all should have a closeButton that gives the user the option to leave, to quit whatever he/she is doing.
So, I’m sharing my GentleTitleWindow class:
Please be aware that, if you use some AS properties as MXML entries, like <transitions> and <states>, as youre using a particular name space (in this published class is com.utils) you should change it for all your properties as well, like: instead <mx:states> use <ns1:states>
Read the rest of this entry »
Aug 20
A simple example of event bubbling.
Remove the comments and try it with the Button inside and outside the form.
Notice that, when the button is outside the form, the form is not notified about the custom event “FIRE_EVENT”, although it is registered with it.
Check it here. View source enabled.
/******************************************/
Um exemplo simples de event bubbling.
Remova os comentários e compile com o Button dentro e fora do form.
Note que, quando o botão está fora do form, o form não é notificado do evento customizado “FIRE_EVENT”, apesar de se registrar para ouvi-lo.
Veja aqui. View source habilitado.
Aug 15
I have to change the background of a custom components as the user clicks some areas on the screen… That might be strange, but thats a use case I have to answer.
So, I thought it was time to learn how to set custom styles. I found there arent so many examples (if you consider there is more than one way to do it), so I decided to make this post.
Im not as glad as I wanted: I wanted to use a ClassReference on a css file, but it was throwing an error I couldnt spot. So, I managed to this way: all the style managing logic is inside the custom component’s class.
That’s the exactly the approach Brooks Andrus used.
Check the app here (view source enabled).
Aug 13
The solution was already given on http://blog.hydrotik.com/2007/09/27/as3-resizing-swf-swfobject-javascript-tweener/, and hes got all credits on this, but there wasnt a flex adaptation. Althogh it shouldnt be difficult at all doing this, according to the guys on flexdev it would be usefull…
Please note that this example uses javascript, so you should use the html code thats on the example’s page. I dont know how to prevent flex rewriting the html page. if you know how to, let me know ;0)
View example (view source enabled).
/******************************************/
A solução já foi dada por http://blog.hydrotik.com/2007/09/27/as3-resizing-swf-swfobject-javascript-tweener/, e os créditos são todos dele, mas nao havia uma adaptação para o flex. Embora não devesse ser difícil fazer isso, de acordo com o pessoal da flexdev seria útil um exemplo…
Por favor, note que como se usa javascript nessa solução, o html deve conter o código que está na página com o exemplo. Não sei como fazer para o flex não reescrever a página cada vez que compila. Se você souber me avise ;0)
Veja aqui, com view source enabled.
Aug 07
Well, this was a pain, because the real time smooth zooming and pamming integrated with the callout point transformation were too heavy. It would eat up to 40mb, which made the app freeze.
So, I removed the smooth zoom and pan and the callouts are repositioned only when you stop panning (i.e. you drop) the figure/map.
It’s a cool/ok app, I think. If I load a gif and place some 5 callouts, it will consume only 15/18 Mb of my memory. These are some tradebacks I had to make.
Of course you could try to implement those nice features. If you ever manage to do it, please let me know :0)
Please, be aware that I used Cairgorm.
Check out the app here (view source enabled).
Aug 05
This is the second part of a three part series of MVC posts I intend to write.
This version is more complicated than the previous, which is pretty good in my opinion. The good about it is that it implements the Observer pattern and some interfaces that tie more elegantly the triad.
This is an AS3 version of Moock’s MVC Clock.
See the app here (view source enabled).
The flash app is coming soon (I mean, two or three days).
/***********************************************/
Essa é a segunda parte de uma série de três posts que eu pretendo escrever.
Esta versão é um pouco mais complicada que a primeira, que é bem boa, na minha opinião. O bom desta é que ela implementa Observer e algums interfaces, de forma que a tríade fica mais elegantemente composta.
Esta é uma versão AS3 do MVCClock do Moock.
Veja o app aqui (view source habilitado).
O app em flash já vai ficar pronto (dois ou três dias).
Aug 04
Okay, this is part one of an (intended) 3 part posting. This first example shows a very simple vision of an MVC implementation with Actionscript, with flash and flex 3. The only pattern implemented here is Singleton, used to dispatch events. I was inspired on Eric Feminella’s example, which you can check out here: http://www.ericfeminella.com/blog/2006/10/08/as3-model-view-controller-implementation/
The 2nd part will have also an Observer, just as the super elegant implementation we saw on Moock’s ES2 (best AS book ever, in my modest opinion).
The 3rd part will have Commands also.
Veja o arquivo do flash
Download the flash files here.
See the flex app here (view source enabled).
/******************************************/
Certo, essa é a primeira parte de um post que deve 3 três partes. O primeiro exemplo mostra uma visào muito simples de uma implementação MVC, com falsh e flex. O único padrão implementado é Singleton, usado para disparar eventos. Eu me inspirei no exemplo do Eric Feminella, que pode ser visto aqui: http://www.ericfeminella.com/blog/2006/10/08/as3-model-view-controller-implementation/
A segunda parte também vai ter um Observer, como a implementação super elegante do livro ES2 do Moock (o melhor livro de AS de todos os tempos, na minha modesta opinião).
A terceira parte também vai ter um Command
Veja o arquivo do flash
Baixe os arquivos do flash aqui.
Veja o app em flex aqui (view source habilitado).
Recent Comments