ActionScript :: Flex - Difference Between These Two Bit.ly API Implementations?
Dec 16, 2009
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 ?
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 ?
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 ?
If I skin a button and use the AS3 graphice.clear() and graphics.lineTo and beginFill to create a shape, the button overlaps other items in the container.
When I use the and mxml to create the same shape, the button is neatly positioned inside the container.
I need to use multiple fonts in my Flex 4 application, so I compile them into swf and load at runtime. I have single .ttf file for each font. When I dont load font's swf file at runtime, flex uses copy of this font installed on my system, and it works fine - I can switch between regular, bold and italic faces of the font correctly.However,when I load fonts from swfs, setting their style to bold or italic makes no effect. I tried different ways of compiling swfs (css using mxmlc compiler, fontswf utility,.as files with [embed] tags), but nothing worked. When compiling using css it sometimes throw errors that font face is not supported, and it seems that some fonts are available only in bold-italic style only or bold style only.I use cff fonts, load them using etcs.ru.utils.FontLoader utility. Fonts are loaded correctly, I check this with Font.enumerate fonts.So is there any way to embed these .ttf files with all styles available?
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.
We use 3 types of services in Flex; HTTP, Remoting and WebServices and would like to increase my understanding about their use cases. As far as I understand,
Remoting can be used only in homogeneous environment like Flex-RubyOnRails (through RubyAMF) while Webservices can be used in Heterogenous environment using SOAP protocol. Remoting has advantage of native object support that web services don't have. That also means no parsing/extraction will be required in former. Now, talking of HTTP services, they dont support complex operations or parameter passing and can be used for only basic operations.