This content has been marked as final. Show 13 replies
well flex 2 beta3 version is out now.
u can install it and then play with new sample files and examples'
there is lots of difference between both of them
the sample links are here:
help file is here:
Thanks lot for prompt reply.Actually i want ot port my application from flex 1.5 to flex 2.0 beta because flex 1.5 is not free.
Is it pain or we can easily port.
its not pain at all,, but its ofcourse time consuming,,
u would get the things easily,, but would take time.
whatever difficulty u come across just post them,, so that all can solve it 2gether.
bye, all the best
Yes, I am in the middle of porting several applications at this very moment.
there is a migration guide available on the Adobe website:
If you have written good clean AS code, that is, typed all your variables, arguments and function returns, you will be glad.
Definitely post any questions.
Actually, after spending a week migrating some pretty small apps, I have to say the it is a pretty serious "pain".
The AS2 to AS2 page is very helpful, but there is no such help for Flex control attributes.
It will be worth it when it is done, but the process will not be fun.
I appreciate poonam and tracy for these replies.Tracy is right that there is not help provided for the control attributes.For examples: i think "marginTop" is replaced by "paddingTop".I replaced "margin" with "padding".
I also saw that the packaging of WebService class has been changed.
I am using flex builder 2.0.Really it is very good for compiling and syntex checking of mxml files.
I am facing a problem.i have fixed all the compile time errors in a .mxml file but corresponding .swf file is not getting generated.
Can you provide me a doc or any pointer for building application and compiler options.
You are further than I. I don't know why your swf wold not be created. If you crate a simple "hello world" app and run that, does its swf get created?
That's funny about the "margin" --> "padding". That is exactly the attribute I had in mind when i was complaining about the lack of documentation!
I got stuck on actionscripts.I am trying to port my .as files to flex 2.0.I am using flex builder 2.0 for the same.Flex builder is not showing compile errors.without seeing errors how we can be sure that weather we have migrated .as files correctly.
can anybody please tell me how we can use flex 2.0 sdk for compiling .as files.
i did not get any tutorial for compiling application through command line.
Resources for Compiling ActionScript 3 and MXML from the command line:
In this post, I am going to provide all of the links you need to get started with compiling ActionScript 3 and Flex 2 / mxml from the command line (on Mac, Windows and Linux). I have had to send this info out in about 3 different emails today, so I figured I would post it here to get everything in one place.
Remember that both ActionScript and mxml / Flex files are text based, so you can use any editor that you want, and with mxmlc compile on virtually any system that you want to (although the alpha is currently only officially supported on Windows).
First of all, the command line compiler for Flex 2 and ActionScript 3 is called mxmlc. An alpha version is currently available as part of the Flex Builder 2 alpha install.
You can find information on how to get the compiler, and how to set it up here:
You can find information on compiling on non-Windows platforms here:
Compiling on Mac and Linux
You can find a listing of command line options for MXMLC here:
Once you get everything setup, then check out the Labs wiki, for tons of ActionScript and Flex info and examples.
Post anything that I missed in the comments.
The mxmlc options let you define compiler settings such as the ActionScript classpath to use and whether to include debug information in the resulting SWF file. In addition, you can use mxmlc to set application-specific settings such as the frame rate at which the SWF file should play and its height and width. This section describes all the options for mxmlc. Most of these options are usable by compc as well.
The following table describes the mxmlc options:
Go to this link :
You can download the compiler from labs.
A more updated version can be found at: http://livedocs.macromedia.com/labs/1/flex20beta2/00002742.html
I m migrating my application from flex 1.5 to 2.0
Can nebody tell me what is corresponding function for eval().
This global function has been removed in AS3.0
Please start a NEW topic for a DIFFERENT topic.
I will answer this as soon as you do.
Ahh, ok, here is the solution:
eval() is replaced with "bracket" notation. for example where you once did:
var oMyObject:Object = eval("myObjectId");
you now do:
var oMyObject:Object = this["myObjectId"];
This also works on the left side of the equals sign. eval did not:
this["myObjectId"].myProperty = "whatever";
This syntax is also used heavily in e4x xml.