Can you explain the different types of bindings in Flex?
Well there are several ways that we can do bindings in Flex.
First one is by using curly braces {}.
Second one is by action script expressions in curly braces.
Third one is by using MXML tag.
Fourth one is bindings in actionscript(Binding Utils)
How do you create an event in Flex?
First we have to create a subclass from the event classs by using the event metadata tags. And
then dispatching the event.
What is Event Bubbling? Please explain.
Event bubbling is the process of event objects being passed from objects that will generate the
event through the containership hierarchy.
What is the life cycle of Flex?
There are apparently 3 phases in the life cycle of Flex.
PreInitialize: Here the application is instantiated but not created any child components.
Initialize: Here the application has created child components but not laid out those components.
And
Creationcomplete: The application is fully instantiated.
Do you have experience in MVC? If yes how did you implement in your project?
Yes I do have experience in building the application in compliance with MVC model.
We have designed the application to facilitate the complexity in the structure of our application
and to make proper synchronization between the client and server. Here mainly we have
separated the VIEW from data.
View is basically the presentation layer where the user sees the forms or web pages etc.. and in
the model the data resides. So, the view in our application will pass the events and bind to the
data that is in the model. Here the components in the view can bind to value objects or other
properties in the model layer.
The controller will receive the events that are passed by View and send them to appropriate
classes in order to complete the process of request and response mechanism.
What is the difference between Getters and Setter in Java & Flex?
Getters and Setters are quite different from Java to Flex Actions scripts.
In Java Getters and Setter work through naming convention. Where as in Flex action script, they
are part of the ECMAScript.
In Java it is not good to make member variables public. But if we decide to make them public
now and later want to change the interface to use getter, setter functions, it is very difficult
because sometimes you may need to change the code at many places.
Where as in ECMAScript, the interface does not change when I go from a Member to
getter/setter and vice versa. And so creating a member variable in public is safe here.
What are the events in Flex will get fired when the focus goes to a text box, then enter some
text, and then press tab?
There are five events that gets fired with the above actions.
PreinitializeHandler(),
initializeHandler(),
itemEditBegin,
itemEditEnd,
creationComplete().
Did you use Styles in CSS? Tell me something about it?
Yes, Styles are used for decorating the application front end.
We can use styles in many ways.
Using External style sheets (file extension will be .css).
By using local Style definitions.
Using the style manager class.
By using setStyle().
By using inline styles.
By loading style sheets at run time.
Can we use two styles at a time?
Yes, of course. As discussed, by using external style sheets and using inline style commands.
Can you tell me the properties of any few important components?
< wsdl="http:/example.com/ws/ LoanCalculator?wsdl" useproxy="false">
< !-- Bind the value of the ZIP code entered in the TextInput control to the ZipCode parameter of
the GetLoan operation. -->
<>
<>{zip.text}
< /mx:request>
< /mx:operation>
What are the main differences between Flex2.0 & Flex3.0?
There are quite a few advantages of Flex3.0 over Flex2.0 and visibly they are:
Faster compilation time,
SWF file sizes can be reduced,
Bridge between Flex & Ajax,
Advanced datagrid,
Interactive debugging,
Cross-Domain,
Version control,
Easy to use compared to Flex2.0,
Advanced datagrid deep linking,
Runtime localization,
Flex component kit for flash cs3,
CS3 suite integration,
CSS design view,
Advanced constraints etc..
How can we call a Java method from with in Flex?
Yes, by using a remoteObject we can achieve this.
1. First Add a mapping to Java class to the services-config.xml file.
2. Then map RemoteObject (which is provided with Flex SDK) on to the client side to the
destination configured in services-config.xml
3. Then Invoke the method in the Java class using RemoteObject instance.
We need the below toolds to invoke a Java method from the client side application?
1. Flex Builder
2. Blaze DS
Can you tell me the config files that are used to connect Java & Flex?
Below are the config files that are used to connect flex and Java.
data-management-config.xml,
messaging-config.xml,
proxy-config.xml,
remoting-config.xml,
services-config.xml