Whats new in Flex 4

9 views
Skip to first unread message

Shailendra shail

unread,
Mar 8, 2011, 9:17:18 AM3/8/11
to newidea_or...@googlegroups.com
This is related to flex developer.

I am in touch with Flex-4 from past 7 months. In this tenure I met few flex developer but some of the could give answer of my few question. Thought to share with you.

What is dynamic class in flex?
How to create more than one container in a skin?  Does flex provide something like Template/Master File. If yes then how can we archive it?

What is the equivalent of package of .as file in .MXML file and where do we specify?


ccsC...@gmail.com

unread,
Mar 8, 2011, 10:16:33 AM3/8/11
to newidea_or...@googlegroups.com
Sorry Boss,

Considering RIA Technologies, it is my personal opinion that Flex is an Overkill and a dying technology. So, being a Java guy, I focussed more upon Java-FX.

Anyway all of these are going to die if not already dead because the Grand Daddy is here... HTML5... Can't help you here boss...

vijay kumar

unread,
Mar 9, 2011, 1:30:27 AM3/9/11
to newidea_or...@googlegroups.com, ccsC...@gmail.com
Sorry CSSCoder !!!!

I am not agreed ,
  Because I am working more then 2 year as a flex developer , Flex that introduces more  features that allow you an amazing amount of flexibility and power in building killer internet applications.

There are some new features in Flex 4 :

  • 3D Graphics
  • Bitmap Manipulation
  • File streaming
  • Offline Access(AIR)
  • new states syntax
  • faster compiler
  • new text capabilities
  • improved effects
  • advanced CSS support
  • pixel bender support
  • two way data binding
  • new spark component architecture

html 5 does not support video , only OGG format .
OGG?

Any have each one has different thoughts . (Me2 also ) .

need more info See link
http://www.slideshare.net/wuzziwug/flex-vs-html5-for-rias-presentation



What is dynamic class in flex?

      Specifies that instances of a class may possess dynamic properties added at run-time. If you use
the dynamic attribute on a class, you can add properties to instances of that class at run-time.



How to create more than one container in a skin?  Does flex provide something like Template/Master File. If yes then how can we archive it?
analyzing



What is the equivalent of package of .as file in .MXML file and where do we specify?
Another package is .swc you can write coding in flash and interact with flex also  example,

http://blog.natebeck.net/2009/01/tip-of-the-day-using-interactive-assets-from-flash-in-flex/

vijay kumar

unread,
Mar 9, 2011, 1:42:00 AM3/9/11
to newidea_or...@googlegroups.com, ccsC...@gmail.com

[Typo mistake]

ccsCoder * !!!!

Shailendra shail

unread,
Apr 6, 2011, 7:25:09 AM4/6/11
to newidea_or...@googlegroups.com, ccsC...@gmail.com
Nice conversation..
I have few query to Flex Developer: (Specially for Alex, Vijay and Amarnath)

What is conditional compilation, and how to configure this in flex-4? Any suitable example..

vijay kumar

unread,
Apr 7, 2011, 1:17:52 AM4/7/11
to newidea_or...@googlegroups.com, Shailendra shail, ccsC...@gmail.com
we have Conditional Compile Blocks or Conditional Compilation Definitions. This works like this: you define a variable that is set in the compilation arguments, and depending of theirs values we remove from compilation some unneeded lines of code.

For example in the properties of your Flex project in the Flex Compiler zone you have the following compile arguments:

-locale en_US -define+=CONFIG::development,true

and in code you can use it like this:

CONFIG::development {
// this is a conditional compile block
usernameTextInput.text = "myusername";
passwordTextInput.text = "mypassword";
}

This means the because in the compile arguments we have CONFIG::development,true (which means that CONFIG::development is true) the code lines inside CONFIG::development{ } block will be compiled in the application.

If instead we have CONFIG::development,false (which means CONFIG::development is false) the code lines inside CONFIG::development{ } block will not be compiled.

So, using…

  • -define+=CONFIG::development,true — the code lines are compiled in
  • -define+=CONFIG::development,false — the code lines are not compiled in

You can define any conditional compile variable but you need to keep the CONFIG name space, like this:

-define+=CONFIG::myvar,true
-define+=CONFIG::debug,false
-define+=CONFIG::othervar,true

This is it, kind of simple.



Reply all
Reply to author
Forward
0 new messages