AIR/Flex to HTML
I would like to know about some way to convert AIR/Flex programs into HTML5.
I've read about Google Swiffy but I have programs with AS(Action Script) code, or I can use another way to do this?
tnks.
Hi,
There's no simple way to convert an HTML AIR app to flex.
But it is possible to create HTML Root windows from a Flex
AIR App. By root window, I mean the same kind of window that is
launched when you launch an HTML AIR App.
For more info, look at the HTMLLoader.createRootWindow()
call. (This will be available from a Flex AIR app as well)
Similar Messages
-
OK, this is another of those "Is AIR the right tool for the job" questions. And I have zero previous exposure to Flash/Flex, just doing a fast forward through all available information, to reach an assessment.
The app in question is mainly a vanilla database client (server component exists and has a ReSToid HTTP interface). It involves task lists, forms, all the ususal stuff and is glueing together a bunch of other (pre-existing) apps on the client which are to be spawned from the glue app.
In contrast to the legacy app which is to be replaced, the database structure shall be customizable per customer site and consequently have custom edit forms.
Now, how to implement custom, dynamic forms in AIR/Flex? It seems logical to store the forms together with custom table in the database, but in which format? It is impossible to just store MXML forms, as Flex is a compiled language and I didn't find a hook to pull in extra MXML from an external source.
Is there a Flex component turning an XML description of a form into a form on the screen, as mx:FlexNativeMenu can turn XML into a menu?
Or am I looking into the wrong direction? It seems an AIR/Ajax soulution would be able to just pull the custom form in HTML from an external source and use it. But AIR/Flex is looking to be the friendlier and more productive environment....You can dynamically compose a form at runtime via as3.
Here is a quick example.
HTH.
ps: afaik there is no component which automatically builds a form from xml.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="init()">
<mx:Script>
<![CDATA[
import mx.controls.TextInput;
import mx.containers.FormItem;
private function init():void {
var formItem:FormItem = new FormItem();
formItem.label = "FormItem1";
var textInput:TextInput = new TextInput();
formItem.addChild(textInput);
myForm.addChild(formItem);
]]>
</mx:Script>
<mx:Form id="myForm">
<mx:FormHeading label="My Form"/>
</mx:Form>
</mx:Application> -
Cant install air-flex projects
Hello, my AIR applications cant be installed in my system
because Windows do not recognizes files with .air extension.
Do you know if is needed additional software (like Adobe AIR
Runtime) to install my air based flex projects? I thought that the
installers detected if you have or not the necessary libraries to
run the file.
Regardshttp://livedocs.adobe.com/flex/3/html/help.html?content=distributing_apps_1.html
Uops! -
Books on Adobe Air development using HTML/JavaScript
Hi,
I always been of the opinion that one of the signs of a healthy, viable technology is the availability of books and manuals (not just articles or short tutorials online) on how to use said technology. I'm interested in Adobe AIR development for Dekstops/Tablets but I have not been able to find any new books on the topic. Most of the existing books seems to date from 2008 and are targeted towards AIR 1.0-1.5, while the latest version of Adobe Air apparently is 3.5+. So my question is - Where are all the books?
/Sincere Regards Krisquote:
Originally posted by:
pravinpatil23
But can you please explain me when do I exactly use Flex Or
HTML+JS Or Flash.
This question gets asked about once a week. You
can find my latest answer
here
and a little searching will dig up more opinions.
quote:
Can AIR applications(developed using HTML+Js) invoke a web
service running on a different server
An AIR application isn't hosted on a server, so all web
servers are "foreign" to your AIR application. An AIR app does get
downloaded from a server, most of the time, but it doesn't maintain
some kind of special connection to that server.
Because of this, there are no cross-domain restrictions in
AIR like you have in a regular web browser.
quote:
Can AIR application(developed using HTML+Js) detect the
connectivity of USB drive
AIR does not allow low-level system access, and has very
little in the way of platform-specific capabilities. So, you'd have
to use a high-level, platform-agnostic way of checking for the
drive, such as by looking around to see what files are available.
Things like USB insert notifications are way outside the scope of
AIR.
quote:
I want the data from Servlet to send back to HTML page where
I can display it on the same HTML page where user entered his
details.
That question isn't on-topic here. Ask on a forum dealing
with JSP servlets. -
Air,Flex ,Cold Fusion There is a problem with P4990 Release of AIR Updater
using Air/Flex/cf I am not able to connect to my Cold Fusion
component after running the P4990 UPdate this morning, It worked
fine on both an XP and Vista Machine running P4880 , but now even
after a restart my simple connection to the cfcomponent is hanging
and will not run.
this worked fine in the release I was running this morning,
runs fine in a browser just not after patching ?
two questions ,
where can I download the P4880 Release Again
and is this a bug or a change ? ,
if its a change what is the new way of connecting.
RayI read through the notes and iI even recreated my air file,
but it is still hanging , here is the html for the connection
to the app as well as the flex remote connection I am using, it all
works in the browser, but again just hangs in air after this update
<cfoutput>
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="
http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"
name="VPR_Users" width="1003" height="650" align="middle"
id="VPR_Users">
<param name="movie"
value="/VS/Modules/Administration/plugins/users/ui/screens/VPR_Users.swf?u=#Application.V iper.userID#"
/>
<param name="quality" value="high" />
<param name="bgcolor" value="##869ca7" />
<param name="allowScriptAccess" value="always" />
<embed
src="/VS/Modules/Administration/plugins/users/ui/screens/VPR_Users.swf?u=#Application.Vip er.userID#"
quality="high" bgcolor="##869ca7"
width="1003" height="650" name="VPR_Users" align="middle"
play="true"
loop="false"
quality="high"
allowScriptAccess="always"
type="application/x-shockwave-flash"
pluginspage="
http://www.adobe.com/go/getflashplayer">
</embed>
</object>
</cfoutput>
FLEX CONNECTION CODE (flexgateway is my cfc)
<mx:RemoteObject id="VIPER" destination="ColdFusion"
source="VS.bin.engine.flexgateway" showBusyCursor="true">
<mx:method name="setUserInfo"
result="setUserInfoResult(event)"
fault="Alert.show(event.fault.message)"/>
</mx:RemoteObject>
the function that runs and hangs
private function init():void{
pUserID = Application.application.parameters.u;
VIPER.setUserInfo(pUserID);
the variable is entering into flex fine, the flex application
is loading into the air harness fine but when I run the page ,
it hangs like it is not even connecting. -
Air Flex with work problem in swfLoader...
Hello,
I have a problem with swfLoader in Air Flex. I create a swf flash that must be loaded into Air application. When I run it insde of Flex Builder, all is ok. But when I install it, the embed flash dont work in component "InputText" and the TextField (in mode "InputText")... Simply I cant click in this and keyboarding... The problem dont is in SandBox...
Thanks,
JonathanDue to some reason the text input fields used inside the flash presentation are not editable only when the application is running on installed AIR.
When the flash presentation is loaded in Flex it is not allowing the user click inside or edit the text input, to over come this we are setting the focus to text input field when ever the user clicks on it so that the cursor focus is set inside the text input field and user will be able to enter data.
Below is the code change implemented in flash.
inputText.addEventListener(MouseEvent.MOUSE_DOWN, setFoucusToTextInput);
function setFoucusToTextInput (e:MouseEvent)
stage.focus = inputText; -
How to tell the difference of Flex or HTML sites
How can I tell whether a web site is developed with Flex or
HTML?
Is this Flex Forum based on Flex?There will always be an <object> and/or <embed>
tag containing the swf file. You would also be able to search the
source for the page for swf to see if there were any, or possibly
SWFObject or similar for embeds created with Javascript support.
Doing this in Firebug for Firefox, or in Opera using the 'generate
on the fly view of the DOM setting' or whatever tends to show the
page as it is now, which would get around javascript loading
issues.
THere is a free utility for Sothink called SWF Catcher that
I've used, and presumably others like it. -
Hou to surpport the plug-ins in web browser with AIR mx.control.HTML
My app used the google earth plug-in in browser, but when i use AIR mx.control.HTML in FB3, the plug-in can not take effect, the tooltip is "The Google Earth Plugin is not currently installed."
It is always ok in IE, firefoxThe plugin works only on Windows (Firefox and IE).
http://googlesystem.blogspot.com/2008/05/google-earth-browser-plugin.html
HTH. -
Get Machine Name and IP Address from Air Flex App
New to Air..... Is there a way to get the name of the machine
and the ip address for the client running the Air application? Not
that this matters, but the applcation would be a Flex 3 application
built specifically to be deployed to the Air runtime. I need to be
able to have the Air/Flex application know what the client's
machine name and ip address is. Can this be done?
ThanksHi Frank,
Well I am using Developer Suite 10g Release (10.1.2.0.2) ..I've gone thru the link what you have sent me and noticed that whatever updations of conf file or classpath its already there so i guess needn't to modify cause I think my release 10.1.2.0.2 has did already as webutils been bundled with it.
Well What i did is to double click on ATTACH LIBRARY and browse the location to find webutil.pll and finally attached it...even though its showing me all the procedures like clientinfo and others...
on my block's canvas I've put a button and used this trigger to get client info function like this.
when-button-pressed trigger of INFOBUTTON
DECLARE
o_clientinfo varchar2(50) := Webutil_clientinfo.GET_HOST_NAME ;
begin
message(o_clientinfo);
end;
but when I am trying to open this form its simply not showing up..strange thing is that there is no error as well...so plz kindly guide me how to get clientinfo hostname or ipaddress using that library function.
thanks -
Is Adobe AIR/Flex good to begin in game creation ?
Hi all !
I have a little question, I want to begin to learn how to create little games (2D games first) (I'm more a Web/Server Side Programmer/Administrator than a Desktop pPogrammer), and I would like to know is Adobe AIR/Flex (without using the Flash IDE if possible) is good for that ?
It looks a lot easer than the others ways (Java, C++, python), no needs to think in "threads","mutex",etc and other things like that, and the multimedia API help a lot for the video/sound side
So, what about creating games with Adobe AIR ? What about performances ? Is it possible to create 3D games ?
Thank you !Personally I'm still debating whether to start learning iPhone development or AIR at this particular point.
At any rate, anything you can do in Flash you can do in Air, so I'd probably start with the Kongregate game creation tutorial. It's AS2 not AS3, but it will give you an idea what you can accomplish with a couple hours of development.
No idea how good it is for 3D, but a lot of those "virtual tour" things are done in Flash. Probably not your best starting point if your plan is to make your own FPS but... -
Flex Based AIR application & remote HTML
The question is ....from a flex based AIR application do you
always have full access to all of the HTML content loaded from a
remote site via the DOM (htmlLoader.window.document), or is the
'context' of what you can see limited to what the initial url
requested can see - i.e. the context is as if it were javascript
running in the page corresponding to the initial URL.
As far as i can see if i request say the page
http://www.abc.com/page1.htm
and it has content along the lines of
<IFRAME src="
http://www.xyz.com/page3.htm"
id="remoteframe" />
<IFRAME src="
http://www.abs.com/page2.htm"
id="localframe" /?
then using the htmlControl.htmlLoader.window.document i can
successfully navigate the DOM for the initial page loaded and
localframe, but
not remoteframe.
I've seen various comments about sandboxes, bridges and
applicationdomains in the documentation but i don't see how this
can help me.
Can someone please shed some light on this? Can i from the
AIR application access all of the DOM, or am i restricted to the
initially loaded page and pages referenced from the same domain in
the page?
Thanks
JamieHi,
From your AIR application, you can only access "exposed
properties" in remoteframe.
You expose a property by using the sandbox bridge mechanism:
http://livedocs.adobe.com/air/1/devappshtml/help.html?content=security_5.html#1092959 -
Dear webmates :
I have created a simple application in Flex / Air which embeds an HTML file, it was working fine, until the moment I used a swf animation inside that HTML... it is not being displayed in the Flex/Air app !! Why is that ? How am I supposed to make it work ? Please help..
Notice that I do not want to run only the SWF, but I want the whole HTML which contains the SWF... thanks in advance !Are you using HTMLLoader to load this HTML page? If not, I recommend to use it. Check it out here, there is an example at the end of the webpage.
-
I have a pretty robust Flex application that I am working on
and I have some Help documentation that is static HTML. I am using
the TabNavigator as my navigation and one of the tabs is this help
documentation. I have a couple of questions now:
1. Can a tab navigator load an HTML page?
2. Is there an eay way to render HTML on a Flex page?
3. What if I had a little dynamic content that was date
specific but my page was largely static text, what would be the
best approach for this page?
Thanks in advance for any help you can provide!!!i've use the htmlText property of TextArea to some effect.
there are SERIOUS limitations. for example, it's best if you
specify height and width for all your images so that the layout
happens as you expect. it also helps to set the condenseWhiteSpace
property to true.
for my wife's site, i have very static html that i render,
and for the most part it works ok. one thing i hate is that an
image can't be the first thing in the text. dunno why, but i've not
gotten that to work.
my wife's site is:
http://www.frozenfield.net -
to see an example, go to the Field Journal or the Profiles.
there was a guy who wrote an html component that he used to
charge for. i think he's a little disgruntled now because he was
trying to build a small business out it and then adobe came out
with AIR - not sure if you can still get it. but AIR still doesn't
deal with a fully net-deployed situation. so i think there is still
some need for such a component.
./paul -
Air Kiosk Project - HTML Viewer
I am looking to build a kiosk for display, no controls, no touch - basically a slideshow of html pages. I would like the AIR app to look in a folder with multiple html pages, take each html and display in a container, which would rotate through each page like a slideshow.
I am new to AIR, so looking for any direction. I have Flash Builder and Catalyst. I have found some pieces online using viewStack and html container. I am looking for best method to load html pages into containers and method of rotating through them.
DaveHi Dave,
Here's a simple example that I wrote in Flash Builder 4. It's very rudimentary but might help you get a start. It will search a directory named "html" located in the application directory for .htm and .html files. It then loads them into an HTML control, cycling through each every 5 seconds. The application runs in full screen (hit esc to exit).
Hope this helps,
Chris
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx" layout="absolute"
applicationComplete="init()">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.controls.Alert;
private var timer:Timer = null;
private var htmlFiles:Array = null;
private var currentFileIndex:Number = 0;
private function init():void
htmlFiles = new Array();
var htmlFolder:File = new File(File.applicationDirectory.nativePath + "/html/");
if (!htmlFolder.exists && !htmlFolder.isDirectory)
Alert.show("Please create a folder named 'html' in your application directory", "Error", 4, this, exitApp);
return;
htmlFolder.addEventListener(FileListEvent.DIRECTORY_LISTING, onDirectoryListing);
htmlFolder.getDirectoryListingAsync()
private function onDirectoryListing(event:FileListEvent):void
for each (var file:File in event.files)
file.canonicalize();
if (!file.isDirectory)
if (file.extension!= null &&
(file.extension.toLowerCase() == "htm" ||
file.extension.toLowerCase() == "html"))
htmlFiles.push(file);
if(htmlFiles.length == 0)
Alert.show("No HTML files found", "Error", 4, this, exitApp);
else
loadPages();
private function loadPages():void
// 5 second timer
timer = new Timer(5000);
timer.addEventListener(TimerEvent.TIMER, displayNewPage);
timer.start();
// Go full screen
systemManager.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
// display first page
displayNewPage();
private function displayNewPage(event:TimerEvent = null):void
// Loop through the url array
if (currentFileIndex > htmlFiles.length - 1)
currentFileIndex = 0;
// Load the file into the HTML control
var file:File = htmlFiles[currentFileIndex];
html.location = file.nativePath;
currentFileIndex++;
private function exitApp(event:Event):void
nativeApplication.exit();
]]>
</fx:Script>
<mx:HTML id="html" width="100%" height="100%"/>
</mx:WindowedApplication> -
Launch URL from AIR (Flex) App
Hi There,
Is it possible to launch a window containing a foreign URL
i.e. something that will launch cnn.com?
My customer wants an AIR App that will take the user to their
homepage..
Thanks,Hi
try navigateToURL()
http://livedocs.adobe.com/flex/2/langref/flash/net/package.html#navigateToURL()
A pretty simple browser can be built only by using mxml
tags
Maybe you are looking for
-
New MBP and Airport - reeeaaaal slow
Just got a new MBP (this could probably be posted in the MBP forum, too). For whatever reason, I'm getting very poor speeds with it. It's not my internet service or modem, because the iBook I just replaced got screaming speeds. I'm also getting the s
-
PMON: terminating instance due to error 28
Hi , OS : AIX 5.3 Oracle : 10.2.0.4 Problem : Database instance crashed . Alert log shows : Tue Jun 26 13:21:18 2012 Thread 1 advanced to log sequence 4097 (LGWR switch) Current log# 1 seq# 4097 mem# 0: /oracle/abcd/oradata1/redo/abcd_redo_g1m1.dbf C
-
We are manufacturing a assembly using alternate raw materials say RM1 or RM2 or RM3. We want to define these three raw materials alternately in such a way that; 1. If stock of RM1, RM2 & RM3 is available, then system should consume the RM1 first
-
Recovering information from OST files
Hi, I did a Exchange server change and before I did an copy of each mailbox to an pst file. As it turned out one off the out pst files is correupted. I found the original outlook.ost file. Is there any tool for revering the information to an pst file
-
How do I get clips resized for youtube without extra black borders?
Hi Ya, I have some concert footage that I edited in FCP (some in 4.3, some in 16.9) that I have montaged together to form a "sampler" of what the act in question have done over the years. I want to put this on youtube, which needs a 320x240 frame siz