SWF generate from Flex AIR
Hi.
My Application scenario it's apparently easy.
1) I have written AIR application where I have inside MovieClip/Component or something simlar.
2) Through my AIR application i draw on my MovieClip/Component some circles and add image.
3) I get this MovieClip/Component and generate te external .swf file. Now You can grab that .swf file and put anywhere You want.
And Point 3 it's really problematic. How I can generate .SWF file from Flex AIR? Or maybe other ideas how I can realize that scenario??
Cheers.
Send information to the server so it can compile the SWF
Similar Messages
-
Using a swf generated by Flex from a Flash component
I know you can include and control a swf generated by Flash
within a Flex component. But can you do the inverse? Can you use a
swf generated by Flex within a Flash project/component?
We plan to develop a "core" module that would be used in a
lot of other Flash and Flex components we'll develop in the future.
This core would be a package of classes that could be easily
re-used by the components. There would be nothing visual in it,
only standard classes.
Even if this core would not contain any visual components, we
would like to develop it using Flex since we prefere Flex Builder
to the Flash editor to code and debug.
But I'm not sure if:
1) A core module like this, developped in Flex, could be used
by our Flash components or only by other Flex components?
2) If we use Flex to generated this core, will the resulting
.swf be bigger than if we would have used Flash to develop it?
Since there will be no Flex visual components in it, maybe it will
be as small? Is there a compiler parameter to tell Flex to only
include the minimum things possible in the generated .swf?
Any help or link about this would be really appreciated!
Thanks you in advance!
P.S. I apologize to those aware that this message was also
posted on another Flex related forum, but I received no reply on
it!try this. for me it has worked.
import flash.net.URLRequest;
import flash.utils.Timer;
var loader:Loader = new Loader();
var timer:Timer;
var myclip:MovieClip;
//load the Flex Component
loader.load(new URLRequest("IS.swf"));
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
loaderDone);
addChild(loader);
function loaderDone(e:Event) {
timer = new Timer(100);
timer.addEventListener(TimerEvent.TIMER, handleTimer)
timer.start();
function handleTimer(event:TimerEvent):void {
//cast the loader.content into MovieClip to access
currentFrame.
myclip = loader.content as MovieClip;
if (myclip.currentFrame == 2)
however, i need to access properties of IS.mxml..
any data member would work..
or if i could dispatch an event in IS.mxml and catch it in
flash through IS.swf, it would work.
Pls somebody suggest. -
Detect CD drive from Flex-AIR desktop application???
Can we detect CD drive from Flex-AIR destop application even though there is no CD or Blank CD inside the drive?
AIR 2.0 supports native code integration.
http://labs.adobe.com/technologies/air2/
This may be useful in hooking into native CD/DVD writing capabilities. -
Can you call external exe file from Flex Air Application like notepad.exe
Im trying to make my Air Application open an External exe file anyone know if this can be done?
Hi,
If you want to share code between a flex app and AIR, you
could isolate the common bits as a swc file and link to the swc
from both the flex and air project.
Also, you could have the flex mxml file and air mxml file
load the same module (which has the same stuff as your original
flex application) using ModuleLoader.
Or, you could even load the swf of your flex application
using SWFLoader in your air mxml file.
Basically, check out creating flex libraries, modules and
runtime loading of swfs. -
Call JSFL from Flex Air application
Hi,
I have a Flex Air application that converts old style flash
text var txt files into XML. As part of the process it creates a
jsfl file that when run will automate through older FLAs and
upgrade them with changes required.
My question is this. Using the command
fl.runScript(locationOfJSFLscript) in flash, it will automatically
call the script and execute it. How do I do the same in Flex? i.e.
I have a button in the application. I press it and it sends the
call to run the script.
Thank youOf course you may have some unstated reason for doing this in Air, but if not...
Google photoshop droplet....
Bob -
Can't install air app generated from Flex
Hi, I have just installed the new Flex Builder 3 on my
Windows Vista Home Premium. One of the first thins I did was to
create a very simple air project (one centered button only). I
inmediately exported it as an *.air file to my desktop to see it
run! but it fails!!! Every time I run it, just after display
"Getting ready to install this application" this error ocurs:
Sorry, an error has ocurred. "The application could not be
installed because the AIR file is damaged. Try obtaining a new AIR
file from the application author."
By the way, I installed the last air runtime from the net and
installed and run perfectly well some air apps downloaded from the
net.
Any ideas?
LeonardoHi,
I don't have an answer for your question but i think you can answer to my question, so i am using flex builder for my application and i need to test the creation of a folder on my desktop this can't be possible with a browser based application but it is possible with air application, but i don't know how to test an application or how to create an air application with Flex Builder, can you tell me if i have to install something other or to configure flex builder to do this?
Thanks
Celine -
Open PS (CS-CS4) and load image from flex/air application?
Hello,
(Not sure wether to post this in the AIR forum or the FLEX forum?)
I am at a loss on how to get my simple application to work. I have a small desktop air application that simply opens Photoshop and runs an action. I used switchboard and the application ran great on PC and MAC. However it only worked for CS3, and CS4 not CS or CS2?. Plus the size of switchboard was a bit large for my small app. I am willing to live with that though . I am using Air with Flex and wanted to know if perhaps there is a beter approach? All the application does is open photoshop, loads an image, and runs an action. Can I do this for all versions of Photoshop using switchboard? Can I do this without switchboard and just use javascript. The big issue is the Air app needs to open Photoshop, and most of the examples have me open PS first and then execute a script located in the PS directory. This needs to work outside of the PS directory. Any examples are appreciated.
I have looked at the following:
- SwitchBoard : only works for CS3-CS4 (on my tests)
- PatchPanel: same issue, plus seperate SDKs
- ExtendScript: requires script to be run from PS not AirOf course you may have some unstated reason for doing this in Air, but if not...
Google photoshop droplet....
Bob -
Random error #2032 from flex air application
Sometimes in my air application I am getting one error #2032 - but on re-sending this query it works fine. I suspect this is some timing issue. What could be possible use cases where it can fail like this.
Of course you may have some unstated reason for doing this in Air, but if not...
Google photoshop droplet....
Bob -
Export as swf from an air application
Hello ,
is there any way to export swf files from an air aplication in runtime ?
i can see some samples creating swf files but as swf images only. i need to add it some hotspots and actions also..There are no built-in functions for this.
-
Is it possible to load REMOTE resource module from an Air application ?
Hi All,
Am trying to load remote resource module swf file from an AIR application, am not able make it work,am getting the following error
code:
eventDispatcher = ResourceManager.getInstance().loadResourceModule(remoteURL);
ERROR:
"Unable to load resource module from ".
Please help me out..
Thanks
J KishoreThis might help you out: http://aaronhardy.com/flex/loading-a-remote-module-into-a-local-app/
-
Not sure if I put this in the right place, but here it goes
again...
I have just looked at the informative videos on the adobe web
site. I see how cool it is and easy to display data. At work I have
some extremely complex reports which are pushing my ASP expertise
to the limits. From what I've seen, I'd love to use Flex to display
these reports as they will server two purposes, displaying the data
and display it in a graphic (like charts). My question, can I add a
link in a flex page(?) to export the data and charts to a PDF for
printing or saving?
ThanksWe have very complex reports to generate from flex/flex data
services which comes from our back end java/database and are trying
to solve this as well. The adobe rep that came in a month or so ago
explained briefly that LDS exposes multiple ways to display reports
so we are hoping for some insight here :) -
How to Call a AIR application from Flex Application
Hi,
I have Used AIR (Desktop application) in Flex Builder to Upload a File from a local path and save it it a server path.
I need to Call this AIR(Desktop application) from my Flex Application.... i.e
I am using a link button to send a event using Script and Forward that Desktop application from Flex Screen
But it doesnot load that (Desktop application) in Screen. Only Balnk screen is loaded from path
Here is the code
AIR(Desktop application)
<?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="openBrowseWindow();">
<mx:HTTPService id="urlpath" showBusyCursor="true" useProxy="false" method="
POST" url="http://localhost:8080/nat/FlexAction.do?method=UrlPath"result="pathresult(event)"
fault="faultHandler(event)"
>
</mx:HTTPService>
<mx:Script>
<![CDATA[
import mx.events.FileEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.utils.ObjectUtil;
import mx.controls.Alert;
private
var openFile:File = new File()
private
function openBrowseWindow():void{openFile.addEventListener(Event.SELECT, onOpenFileComplete);
openFile.addEventListener(Event.OPEN, load);
openFile.browse();
private
function load():void{Alert.show(
"load");
var imageTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png");
//var textTypes:FileFilter = new FileFilter("Text Files (*.txt, *.rtf)", "*.txt; *.rtf");
var allTypes:Array = new Array(imageTypes);openFile.browse(allTypes);
private
function faultHandler(event:FaultEvent):void {
//Alert.show("Fault")Alert.show(ObjectUtil.toString(event.fault));
private
function pathresult(event:ResultEvent):void{Alert.show(
"res")
//Alert.show(ObjectUtil.toString(event.result));}private
function onOpenFileComplete(event:Event):void{
//mx.controls.Alert.show("event: "+event.target.nativePath +"UR!!!");
var pPath = event.target.nativePath;
var parameters:Object = {FlexActionType:"PATH",path:pPath};
// Alert.show("Image Selected from Path : "+pPath); urlpath.send(parameters);
//Alert.show("Passed.."+parameters);}
]]>
</mx:Script>
<mx:Button click="openBrowseWindow();onOpenFileComplete(event)" name="Upload" label="Upload" x="120.5" y="10"/>
Here is Mxml Code for Flex Application
<?xml version="1.0" encoding="utf-8"?><mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns="http://ns.adobe.com/air/application/1.0.M4" >
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function Upload():void{
// CursorManager.setBusyCursor();
//var url:String = "HomeAction.do?method=onLoad";
//var url:String = "assets/Air.swf";
var url1:URLRequest = new URLRequest("assets/Air.swf");navigateToURL(url1,
"_self");
// CursorManager.removeBusyCursor(); }
]]>
</mx:Script>
<mx:LinkButton id="up" click="Upload()" x="295" y="215" label="UpLoad"/>
In this code i forward using s url to Open tat Desktop application but a blank screen appears with out the proper output...
Please Help me in this to forward AIR from Flex Screen..
Thanks in Advance
With Regards
Gopinath.A
Software Developer
First Internet Systems Pvt. Ltd.,
Chennaitry this
http://www.leonardofranca.com/index.php/2009/09/17/launching-an-installed-air-application- from-the-browser/
regards
Leonardo França
Adobe Certified Expert Flex 3 with AIR
Adobe Certified Expert Rich Internet Application Specialist v1.0
Adobe Certified Expert Flash CS3 Professional
Certified Professional Adobe Flex 2 Developer
Adobe Certified Professional Flash MX 2004 Developer
http://www.leonardofranca.com
http://twitter/leofederal
Manager AUGDF - Adobe User Group do Distrito Federal
http://www.augdf.com.br
http://twitter/augdf -
If its possible to generate report from flex.Please help me
Hi,
thanks for your reply. I tried with alive pdf, but source
code only AIR files. can we use this in web based flex?. How we can
format the report like html code? I just see in alivepdf, its only
linebyline display, not multiple columns? pls advise.
thanks alot
Subhash -
Load SWF file from AIR library module.
Hi,
I am writing a testing agent (record and playback agent) for Flex applications.
Here, I am required to load a SWF object (in a new window) from a AIR module library.
And then I need a handle to the newly opened SWF so that I can perform testing operations on it.
How can I accomplish this. Any links or sample code is welcome.
Thanks,
Pradeep.10.0.1 is very old, we're on 11.2 now. Do you know about when this started breaking for you? I'd suggest two things. First, you might want to post over on the Flash Pro forums as there's a larger developer audience there and someone might have a quick answer for you. Next, you might want to open a new bug at bugbase.adobe.com. Please include detailed steps to reproduce, along with a link to your site and / or sample code so we can test this internally.
-
How to use an SWF file generated by Flex as a Stand Alone file
Whenever we compile an MXML file, there is an SWF file
generated. This file is not a standalone file and will not work on
any other computer expect on the computer where there is a Project
file created by the Flex builder.
Why am I not able to use that SWF file as a stand alone file?
If I want to use that SWF file alone as in the SWF generated
by Flash what do I have to do?
Regards,
RashmiThe swf file will run from anywhere. What's it doing when you
try to open it on another machine?
The only thing I can think of is if you're getting a security
violation in which case you would need to read about Flash Player
trust files and security.
-Mac
Maybe you are looking for
-
How do I eliminate a computer login password on my macbook pro, Yosemite os?
How do I eliminate a computer login password on my m/acbook pro, Yosemite os
-
Libxml2.dll - Entrypoint not found
Everytime I get the libxml2.dll issue fixed, a new iTunes updates seems to bring it back. Is there anyway to fix this once and for all? This is a long running issue and I would have thought it would have been sorted out by now. This should not sti
-
Final Cut Pro-Two Pictures Question
Is there a way to have two pictures in the same shot (not a transition from one to another). For example, have two pictures in opposite corners in which you zoom in from one to the other? Thanks.
-
Issues in running crystal reports 2013 with SOQL as a datasource
Hi Experts, We have some crystal reports created in CR 2008 with command as a data source and all the commands are written in SOQL pulling data from SFDC, now when I open and run those reports in crystal report designer 2013 it is giving below errors
-
i am having problems with this next thing. i have a path to an XML file in an applet, and i am supposed to do a button with the next function: when clicked opens the XML with a browser. does anyone know how to do this ?