You're settling for good When there's awesome. Upgrade to Firefox 3.6!
Archive of posts with tag: Flex

E ae, staff, how are you?

Yes, there are three months I have been inactive on here. There is every passing day I felt I should come back as soon as possible blogging whatever it was. I confess that in addition to lack of time, laziness took care free at times due to fatigue.

I'm on vacation, I will have enough time for rest and personal studies. I intend to deepen my knowledge in Flex / AIR for certification, PHP and start playing with Ruby onRails). I'll be posting something that you find interesting or that I should previously. : P

Depending on the level of courage, I will make a home in shame and will change the theme of the blog. Just need to wake up one day to stigmatize such. : D

Goodbye!

Longer a need to develop one of the applications and would like to share. It is a simple case textinput which has no value entered in it, is given a default / default for that type of information should be stored there. That happens a lot on systems that have a search field where there is a label or button inferring that the field will be used for a search.

Well, that's what I did. Below is the code:

 package (import net.vitoravelino flash.events.FocusEvent; mx.controls.TextInput import, import mx.events.FlexEvent; public class TextDefaultInput extends TextInput (private var _defaultText: String = "" / / if not set anything for the developer TextDefaultInput public function () (super (); this.addEventListener (FlexEvent.CREATION_COMPLETE, function (evt: FlexEvent): void (setDefaultText ();));) public function get defaultText (): String (return this._defaultText;) public function set defaultText (s: String): void (this._defaultText = s;) override protected function focusInHandler (event: FocusEvent): void (super.focusInHandler (event); this.setStyle ("color", 0x0B333C) if (this.Text == DEFAULT_TEXT) (this.Text = "";)) override protected function focusOutHandler (event: FocusEvent): void (super.focusOutHandler (event); setDefaultText ();) private function setDefaultText (): void ( if (this.Text == "") (this.Text = DEFAULT_TEXT; this.setStyle ("color", 0xCCCCCC);)))) 

(More ...)

Who does not feel nice knowing how to load a module percent missing for it to load completely? Based on this and the need I had, I used to post an example here.

We know that to load a module we need a loader for this. Flex offers a class / component ModuleLoader ready for you, but he's kind of stubborn with me and decided to use part of his code to make my own sound control.

In this example I use the technique of code behind that posted in a previous article .

(More ...)

The first question to whoever nucna heard of the term is as follows:

What is Code behind? It's really interesting? What is it for?

Code behind is a technique that hides the behavior (code in ActionScript) from an MXML component, or vice versa.

Huh, so they do not mention hiding the MXML behavior, just the opposite.

It is true. In one of the references that will be passed only if the departure is reviewed using the definition given above, not the back. This is something very questionable, but when browsing a bit I found a post by Mário Júnior who spoke about the technique, and he used in his example the return of the definition.

(More ...)

First of all was what was happening in my head:

Framework? Huh? What for? Everything works the way it is and I feel comfortable with my code.

Until last week I had never gone beyond the framework in this story. And every day I regret not going to read about this before. Anyway, I strongly recommend that use a framework is its back-end PHP, Java, Ruby,. NET ...

(More ...)