Possible Duplicate: What is Adobe Flex? Is it just Flash II?tell me in layman's term as to whats the difference between flex and flash objects. i know that programmatically there are differences and there are difference in the extension but then why do some flex programs have a .swf extension since the extension for flex is swc ?
I have two similar Objects. I want to compare them to determine if they are different data-wise (see below), and if so, display what the difference is. To complicate things, let's say the Objects are totally anonymous - I have no knowledge of their structure, contents, cannot attach listeners, etc.Comparision turned out to be easy: I'm using the classic "Serialization" approach, which comes from Java:
ActionScript Code: public function compareObject(obj1:Object,obj2:Object):Boolean { // serialize the objects var buffer1:ByteArray = new ByteArray();
[code]...
If the data in the objects is in any way different, the routine returns false... classic Byte-compare. Easy, fast, very efficient.Now here's my question: is there an easy way to determine WHAT the difference is? I'm thinking along the lines of some kind of change object or XML structure that says "This field changed value, that array got this item added, this property was removed, etc".I started playing with complex looping structure and iterators until someone pointed that some object fields/properties cannot be found via iteration.
I have to validate that 1) the end Date is not less than the start Date and 2) the difference between the two UTC Dates is not more than 12 months. To do this, I need a monthDifference function:
public static function monthDifference(start:Date, end:Date):int;
Since partial months can be confusing, this is how month differences are supposed to work:
The month difference between January 1, 2010 and January 31, 2010 is zero (0).
The month difference between January 31, 2010 and February 1, 2010 is one (1).
The month difference between January 1, 2010 and February 28, 2010 is one (1).
The month difference between January 1, 2010 and March 1, 2010 is two (2).
How can I calculate month difference in ActionScript 3.0?
In my flex project i used one option like Link button . If i like it will be open new page contain more information and components . Which container is suitable one ? Where is used viewstack and stages ?
Internally Flash obviously keeps a list of the primitives drawn using Graphics so I wondered if you have many such primitives in a Sprite, can you re-position/remove/alter individual items rather than clear and re-draw everything? Or is this deeper into the bowels of Flash than you're allowed (or recommended) to go?
1- why we need skins for every elements if we can style our application using CSS file. for example in theme Graphite in SDK's Sample consists of both CSS+.fla and skins---.mxml files.
2- How we can create a whole theme with out coding CSS.
my understanding is that primitive types (uint, string, Number, etc.) of a class do not need to be set to null for garbage collection.
for example, i am not required to write this dispose() method in the following class:
package { //Imports import flash.display.Shape;
[Code]....
if this is true, which i believe it is, what is the difference between objects of primitive types and objects of non primitive types concerning memory allocation?
What's the difference between Flash and Flex? I know Flash is more of an animation tool and Flex is used to build web applications but after visiting many Flex built sites, I can't really tell the difference. It seems like whatever you could do in one, you could do in the other. There are many school for flash and flex training Online schools.
Does MXML get compiled down to as3 and then converted to flash bytecode? Also, is there a significant performance penalty to compiling mxml vs compiling as3?
I'm using Zend AMF to send my remote objects to Flex. I've defined a Constant class and created getASClassName() method. Then I've created Action script class in flex.
Objects are send successfully, but they are deserialized to generic Objects in Flex instead of specific ones. EDIT: On network monitor in Flex I can see that AMF value is set to com.my.project.valueobjects.Constant. Although array from event.result contains Objects.
I'm new to Flex and wondering what the difference is between these two ActionScript implementations of the bit.ly API: [URL] One thing I noticed is that one comes in .as files and the other's an .swc file. Is one better than the other for learning Flex?
When state is changed, we can define the new properties for the new state overidding the properties of the base state.
But, I had a doubt. What is the difference between using setProperty() and removeChild() in Flex ?
Take the following case. Suppose there are 2 Vbox inside the application container. When the state is changed by some event, I need only 1 VBox in the appln container.
(a) Should I set setProperty for that particular VBox of width and height to 0 ? or (b) Should I remove the VBox from the new state by using removeChild() property ?
I have a service which returns an Array of ObjectProxy objects. I would like to cast this to a custom object (a value object) and create an ArrayCollection. How can I do this?ited:I am using Django and PyAMF for the backend. I had to write a custom SQL query and I am wrapping the resulting records in ObjectProxy and sending the whole result as an ArrayCollection.Here is my client side code:
[ArrayElementType("SessionVO")] [Bindable] private var _list:ArrayCollection;
I will try to give as much detail as I can. I am creating an CRM application using Flex(Cairngorm 2)/Java/Hibernate. The basic problem I am having is this: I have a Customer class in Java that has an ArrayList of Address classes. I have a Customer class in Flex that has an ArrayCollection of Address classes. When I make the remote object call for a Customer I get back a Customer object in Flex, but the ArrayCollecion objects have a data type of Object instead of Address. If I try to call for a List of Address classes I get the same result. If I try to call for a List of Customer classes I get a list of Customer classes in Flex. Using tomcat 6 with the following jars: