How to get flex 4.6 mobile application as SWF? - apache-flex

I am running a flex mobile application. The goal is to create a SWF file from the same project without having to rewrite a new project.
I followed this tutotial
mobile flex to swf
But this gave me a blank result and source code is not provided.
Any clue ?
Regards

Related

Flex: HTML file not getting generated

The project I am working on uses Cairngorm Architecture of flex. I am able to build and run the application perfectly on my local host. But, When I am deploying this code in my server "Main.html" is not being generated.
I am moving the code to some location in my server. Executing Build file and then trying to run the application.
I am using Flex 3.5 version of SDK and 10.0.0 version of Flash Player.
I did refer to the following link but it didn't help.
Flex builder3 is not generating html wrapper when targeting flex 4 sdk
I am unable to identify the cause. Kindly help me in resolving the issue.
Thank you,
Pri
The main.html file is generated by flash builder during the compilation of your application. It is not generated by your application itself.
So you you have to generate it locally, then copy both your swf and you main.html file on your server.

Flash Builder 4.7 Not Air: Native methods are not allowed in loaded code

Building an app using SDK 4.5.1. (Never upgraded to 4.6 because of a bug in the way it manages runtime style changes.)
Just installed Flash Builder 4.7. Created a new workspace. Imported the existing projects, got this runtime error:
VerifyError: Error #1079: Native methods are not allowed in loaded code.
This is a Web app, not an Air app.
After I dismiss the error message and wait several seconds, I get another dialog. This one asks:
"Where is the debugger or host application running?"
I deleted the project in Flash Builder, then deleted all the project files, and created a new project in Flash Builder with the existing code. Same result. Reinstalled Flash debug player - no change.
Figured it out (with the help of this post on a Flexmojos list).
Because we're using the 4.5.1 SDK, but also using JSON, we need to import an updated playerglobal.swc. I downloaded the latest from Adobe and used it, and failed to notice that it is not named correctly.
As downloaded, the file name is playerglobabal11_7.swc.
I renamed it to playerglobal.swc (i.e. took off the "11_7") and that fixed it. Our app now compiles and runs without issue.

How to integrate TLF 3.0 in to existing Flex 4 or above application?

Steps which have done with Flex Builder 4.6.1 code application.
Replaced 3.0 TLF in Flex Builder 4.6.1 (Adobe Flash Builder 4.6\sdks\4.6.0\frameworks\libs)
Added textLayout.swc into project dir's libs folder.
Cleaned the complete project and copied main application's .swf file and pasted into server dir.
It is showing blank page, some times it shows Error# 2032
Please guide me to make it working.

How to attach file extension with my AIR application that by default open with my AIR application?

I made an AIR application that parses some specific files. I am using flex builder 4.5 and SDK 3.6. I want to attach Icons with those files and when I double click those files they should open with my application. How can I do this?
Thanks
In the Application Descriptor file (look in your project structure for a file named like your application, plus -app.xml as an ending) find the tag fileTypes.
If you uncomment it, you can specify which file types you application handles, and which icons to show for those files.
We can not do this using SDK 3.6 in flex builder 4.5. To do this we need to use SDK 4.5.

Create different version of swf file for each release build in flash builder

Recently, i have faced an issue of caching of my flex swf file on client's ie-explorer machine and i could not tell him every time, delete all your cache data and reopen the browser.
so, finally, i have think to make the different version of swf file for each release build and give it to client while production release.
Could you please have any idea about handling/maintain version of release swf file in flash builder.
i am using the flash builder 4.0 and using flex 4 in my application.
I think you should do this versioning in the deployment process, ie when you upload the new SWF to your webserver, as the HTML / JS embedding needs to be updated too anyway.

Resources