I recieved a Flex project and I want to try to compile and run it using Adobe Flash Professional, but I unable to do it. How can I do it?
I think that I need to create a new project and import every single class from Flex project to a new project in Adobe Flash Professional. Can someone help me?
Really, I strongly recommend against even trying, because it is going to be tediously hard. The Flex Compiler does a lot of framework setup behind the scenes, and you'd have to re-write all that code manually to get a Flex project to compile / work in Flash CS5. This will be extra difficult if any MXML is used in the Flex project, which is likely.
That said, a few people have experimented with that stuff. This is the best one, on manually initializing the SystemManager.
This one came up in Google search and may be useful too.
Related
Everyone wants to compile their desktop (AIR) or web (Flex) applications as mobile (Air mobile) apps. Here I am going on the opposite direction. I want to compile my Air mobile app as a Flex web app and open it with the browser.
I think this is possible since, at the end of the day the, the Air mobile framework is -almost- a subset of the flex framework. Am I correct? I know that you use other libraries as well, like mobilecomponents.swc and servicemonitor.swc, but mainly they are supposed to be very similar.
While trying to acomplish this, I created a Flex Project on the Flash Builder and added the mobilecomponents.swc, imported my mobile code and replace and compiled it. There were no errors and the builder compiled everything without any warnings.
The only problem was that when I opened the swc in the explorer, the screen was all white and the app didn't even run. I knew the swc was loaded because of the mouse context menu, it showed you all the options of a regular swc but the app didn't run. I tried to debug it but nothing happened.
Clearly I did something wrong. If anyone can tell me how can I do this, I would really appreciate it.
Thanks in advance,
Sebastián
You're confusing some things...
I want to compile my Air mobile app as a Flex web app and open it with
the browser.
I think this is possible since
You are correct; this is possible. I converted a mobile application to a browser based application in about half a day. I had to change how a config file was loaded; but everything else worked without change.
You may have to re-write some functionality of your app if it uses AIR Specific functionality. The File class is one example.
the Air mobile framework is -almost- a subset of the flex framework.
Am I correct?
You are wrong here. The AIR Mobile framework is completely independent of the Flex Framework.
However, the Flex framework does provide many mobile optimized skins for Flex UI Components, such as buttons and lists. It also provides some special mobile only components.
However, there are non-Flex classes / functionality available on mobile that have nothing to do with the Flex Framework; they are part of the core AIR SDK provided by Adobe. The File class I mentioned previously is one.
While trying to acomplish this, I created a Flex Project on the Flash
Builder and added the mobilecomponents.swc, imported my mobile code
and replace and compiled it. There were no errors and the builder
compiled everything without any warnings.
Yes, you can use the Flex Mobile Component set tin a browser based app or other desktop app. But, as you discovered, you have to manually add the SWC to the output. You may also need to add the mobile theme for the mobile components to display properly. This can get confusing if you want to use a mix of mobile themes and non-mobile themes in the same app; because there is some cross over and Flex will not know which one to use by default.
You'd have to provide more information / code to help us diagnose the specific error you received.
I've done it before so it should work just fine.
What I did was create a standard web app (I have no code in sitting in "main" so I could switch the top level application tag easily), added mobilecomponents.swc, and selected the mobile theme in the Project Properties (you may need to import this from frameworks/themes/Mobile/mobile.swc).
After that it should be able to use the mobile components in a web or air desktop build.
I need to work on Action Script project. I need to generate a swiff file by creating an action script project using flex sdk . I dont know how to start this thing. I have installed flex 4.5.1 and I know how to create flex project. Can u please suggest me some tutorials for working with action script project using flex sdk.
Thanks.....
well, there are lots of free tutorials in the internet, for example on youtube. you wouldn't be able to really learn actionscript but you will understand basics, so learning will be much easier. here, take a look. also, i can strongly recommend lynda's training courses -- yes, you have to pay for them, but they've got free trial membership. also, take a look at google, you know... you don't expect someone actually to teach you personally, don't you?...
I added a MXML component in flex and selected the base as UIComponent. I want to make it accessible so that automated testing tools can Access it. I am using TestComplete for automated testing. As TestComplete uses Microsoft Accessibility classes. Now it treat my component as the Graphics.
How Can I do this??
It should work, if the application was correctly prepared for testing with TestComplete. Check the Preparing Flex Applications for Testing with Automation APIs topic to learn more.
You won't have much luck automating Flex using MSAA, because the object hierarchy and information reported by MSAA is very limited. To improve things, you could try compiling your application with accessibility enabled and also creating a custom accessibility implementation for your component. However, I doubt it will make much difference.
Having said that, you should really consider upgrading to the TestComplete 8.20, because this version has proper support for Flex. By "proper" I mean that it identifies all objects inside Flex applications (including custom components), provides extra test objects for automating Flex controls and also lets you automate controls using their native properties. In addition, this version can dynamically load the testing library into Flex applications, so that no changes to the application's source code or build process are required.
Please look at the official documentation about Creating Applications for Testing
Especially the part about instrumenting custom components
I plan to build a database management system using Grails as the main framework. On the client side, I'm thinking whether to use dojo or flex to make a nice front end.
Could some experts here enlighten me on the pros and cons of choosing either, or both?
or any other options?
thanks!
I tried using Dojo in a project and even brought a few books. And while Dojo Looks good I found that JQuery and JQuery-UI was a lot lighter and worked faster.
This is just my opinion and it may help you.
From the description of the flex plugin at http://www.grails.org/Flex+Plugin
"This plugin was created as an experiment to prove that it's possible to communicate from Flex to Grails services without any configuration in Flex. There
is no plan to add functionality or whatsoever. It's not sure if the plugin works in production mode as it is only tested in development mode. This plugin
can be seen as an example on how to integrate Flex and Grails with Convention over Configuration in mind."
There is no scaffolding generation for flex, see this bug
Another disadvantage of Flex is its lack of accessibility for screen reader users with the default configuration. There is some work being done to address this but it isn't publically available yet.
I don't have experience with DOJO but according to this link if you use the standard Grails Ajax tags you should be able to switch libraries with out to much trouble and won't be tied to Dojo. For fancy UI stuff such as tabbed interfaces and data tables I've found GrailsUI works well for me. A demo project showing its features can be found at http://code.google.com/p/guidemo/ although you'll have to check the code out to run it.
I am developing an information-management application with Dojo 1.9.2 and Grails 2.3.9 (lots of simle/complex forms, listing screens...etc). The application has a single-page interface as well (a workspace) which was the primary reason for a heavy JavaScript library.
Overall, Dojo is fairly suitable for this kind of workload and I haven't bumped into any show-stoppers yet.
I needed to do a lot of work on integrating the Dojox DataGrid into the application (extending QueryReadStore to fit with Grails better...etc) and a set of custom widget extensions (e.g. a real, working AutoComplete).
After this larger, initial integration work is done, you can expect a fairly smooth ride.
Is it possible (and if so recommended) to use Flex remoting (mx.rpc) classes in an ActionScript only project?
I'm creating an application with login and registration to a PHP backend using AMFphp.
As an option I was wondering if it made sense to take advantage of the mx.rpc flex classes.
Actionscript only projects still use the flex framework, so you're fine. Are you trying to do it with the Flash IDE, or are you using FlexBuilder? If Flex Builder, then it doesn't matter at all.
You can use NetConnection class too.
You can use the entire RPC framework, including remote objects, but you have to manually initialize it by registering a number of class aliases (the Flex framework would do this for you, otherwise).
This great blog post explains the how and why.
If you're not really interested in the details and just want to get going, I wrote a tutorial on how to integrate BlazeDS with RobotLegs, which includes a framework-agnostic example you can use as a turnkey.