|Discussion Home | About | Threads By Date | Search|
New to Group | looking for a group of local Flex Develops 12
I am new to the flex as a technology as well as this community .. at this point I am looking for a person or a group of persons who can help me to establish a enterprise application architecture in Adobe flex... I also need information regarding Advance Flex books, training, usergroup meet etc.
I am looking for somebody in NCR region only... Please indicate your interest by email firstname.lastname@example.org
Thanks in avance.
Adobe channeled expert event “Adobe Dev Summit, 2009 – Bangalore” for the Adobe Flash platform developers on 4th August and all were pleased by the number of participants!! It was more than a THOUSAND!!! special Kudos to the team that achieved it!
I am sure you are as much excited as me about this!
Can we dedide a specific date for this monthly meeting.
It will be good if we decide atleast start of the month.
Can we go for 27 Dec.
Please give your suggestion for this date.
While going across many blogs I find "memory leakage" exisits in flex and cant be handled 100%, but only we have to take care at our end while coding, may be in future adobe can come up with sum optimizations regarding this.
Given are the links, which throws some light on how flash player's GC works.
So, these guidelines can help in preventing great amount of memory leakage, while building large aplicaions.
If anybody having any guidelines about optimizing memory utilization of flex applications, or any link pls do post or leav as a comment.
There is very good quota:
"Any Fool can write a code which computer can understand, write a code which human can understand"
So guys do you think that the code you wrote can be understand by some one with least effort without your explanation? If your sure and have a time take a review with your collegue and find it out...
Write a code such that it is self explaining which can start from giving simple variable and function names what they actually do. Think for a moment before giving names to variables, functions and classes....
I am in the process of making a Flex Memory management approach document which will primarily cover the areas related to Flex GC and the Flex memory costly processes and also the workarounds that how can we resolve them.
I will update on that very shortly......
My task is very simple that i want to show alert in view.
So, the traditional approach is, that I will take a Boolean Variable in the ModelLocator,
To listen the change I will use <mx:Binding> in my view, where the source will be binded to the modelLocator's variable
Now variable will be something like: private var set var(val:Boolean), this will finaly end up in triggering the function of your view, and I can write the PopUp code here.
But why I have done all this ?
Because the PopUpManager.createPopUp(), needs the refrence of the parent view, on which the popup needs to be displayed, and command cannot contain the view's refrence, as by Cairngorm.
Now, we look upon the another approach for doing the same work.
I am planning to dispatch an event from the view, and get a callback function invoked, after the command have finished its work.
When writing an CustomEvent Class in Cairngorm, take an additional property in class, sumthing like:
public var ref:Function;
Now, while disptaching the event from the view, I will fill up this property, with the help of constructor.
where this func1: is the function in my view part, which I want to be called back, after the completion of my commmand.
and constructor of the CustomEvent class will store the refrence to the function func1 into the ref variable.
Coming to the CustomCommand:
In the execute(), I have the (event:CairngormEvent), the object of my custom class as a prameter.
And my function is executed in the view.
But, whether I have violated cairngorm anywhere ??
Comments are most welcome.
Execute application code before Preloder is done OR Controlling preloader from application 4
Now the time is to put some code guys:
The creationComplete event is fire before the onFlexInitComplete, so instead of dispatching the complete event from onFlexInitComplete from your preloader you can let your code to wait for a customized event dispatched from the application, and you have the handler for that customize event in your customizePreloader which dispatches the Event.Complete event, also keep in mind that flex framework will go to second frame i.e. application only when it listen the Event.Complete event from preloader which is at first frame only.
Here is some working code:
public class CustomizePreloader extends DownloadProgressBar
Now if see carefully we are not actually executing our code in the application after creationComplete event because code in application can fire a customized event to get rid of preloader but at that time preloader may not be ready to handle this event. So for overcoming this short coming we have to do two way communication.
First add the event handler in application to listen to preloader that it is ready to listen for the getRidOfPreloader event fire from application, Once preloader add handling for this event it dispatches a event to application to go ahead with its code. Then the code in the application can execute and can fire getRidOfPreloader event at any moment.
Also make sure to dispatch and add event listners in this case at Application.application level and don't worry if you have other modules which use Application because it is Singlton :)
Happy learning ;)
Whenever you have time scope in your project or you have free time, instead of wasting it in useless activities use it to in learning. Learning is a never ending-process which should not be stop until the last breath,,, "Mind in any age is able to learn & No mind knows everything". So keep your mind open for learning all the time which should not be restrict to a particular domain.
Refactoring is the process in which you doesn't add any feature to existing code but make it beautiful! Usually you don't do refactoring in starting but whenever new feature comes in to add. So the process is like this :- you develop something doesn't matter how structured it is in starting, then you move on and add some feature to the existing product but you find out that its somewhat complex to add a feature to it, here you go for Refactoring. You shouldn't put a lot of time in finding out the way to adjust the new feature in the existing code but instead first you should refactored the existing code to make it flexible enough to adjust the changes.
In starting you will not feel comfortable but honestly, trust me once habitual you will feel it like magic!
"Researches have proved that adding feature through refactoring takes less time and is more structured."
But refactoring is something unpopular in common programmers community and its hard to find good books or learning material on it. I am learning many techniques for refactoring from various sources so if anyone interested, I can share the techniques but first I need response otherwise it will be just waste of time in typing the text!!!!
Happy learning ;) ....
Filter by Date
Filter by TagAll