Actionscript :: HTML Generation From Adobe AIR?
Jan 19, 2012Which is the fastest way to generate HTML from a MXML GUI? I would like to print a complex GUI
View 1 RepliesWhich is the fastest way to generate HTML from a MXML GUI? I would like to print a complex GUI
View 1 RepliesWhat is the best way to convert a tlf markup to HTML? I want only standar HTML without the old font tag. I think I saw a utility created by someone for this, but I can remember where it is.
View 1 RepliesI am trying to load and parse html in adobe air. The main purpose being to extract title, meta tags and links. I have been trying the HTMLLoader but I get all sort of errors, mainly javascript uncaught exceptions.I also tried to load the html content directly (using URLLoader) and push the text into HTMLLoader (using loadString(...)) but got the same error. Last resort was to try and load the text into xml and then use E4X queries or xpath, no luck there cause the html is not well formed.Is there simple and reliable (air/action script) DOM component there (I do not need to display the page and headless mode will do)?Is there any library to convert (crappy) html into well formed xml so I can use xpath/E4X.
View 2 RepliesCan you use Html DOM in adobe flex to...
1) write/Auto fill in a form?
2) Read values in label? Textboxes? And use them in your program?
is it possible to get any information/text from JQuery Alert or a simple textbox (per ID)?
My Problem: I took a picture in Air 2.5, save it to my disk, load a locale HTML file with the new picture and JQuery detects faces on it. Then I place the coordinates of the face into the html box or show it in an alert box. How is it possible to get these coordinates from HTML/JQuery? Facedetection with JQuery needs 1-2seconds in the browser.
PS: I want to do this without php. only air, flash, HTML or JQuery or another Plugin (without an extra server/apache).
I am trying to input a form that I have the html coding into Adobe Flash CS4 and don't really know how to go about doing this. Could anyone briefly explain how to do this or link me to a guide on this. I have looked for a bit, but have not found anything. Would I need to use another Adobe CS4 Program. I have the entire website done in flash and would like to keep it in that instead of bringing it over to dreamweaver and losing all the flash animation.
View 4 RepliesI'm working in a flash template (like this one [URL] and I would like add a HTML code. Could I ? If I can, where insert him?
View 7 RepliesIs there any way to do something like Adobe P2P video with HTML5 and no Adobe software?
View 1 RepliesI've been searching for a way to prevent the download of a PDF and I finally found one in HTML5. The code is really simple and is [code]The things that suppress the adobe options is #toolbar=0&navpanes=0&scrollbar=0.My question is, is there a way to do this in non-html5 code? I've tried the following:[code]
View 2 RepliesI'm creating a desktop application with Adobe Flash CS 5 and AIR 2.5. Is it possible to display a banner through HTML and JavaScript inside the app?
JS:
<script type="text/javascript">
(function(){
[code].....
I am trying to include my Adobe Flash CS3 movies on my HTML websites. The website is validated XHTML 1.0 strict. It works fine in IE and is valid. (IE uses the OBJECT tag) In Firefox, I cannot have my movie since the EMBED tag is depreciated-If I do have the Flash movie included to work in Firefox, it will not validate since the EMBED tag is depreciated. Is there any way to have it work in FireFox and be XHTML 1.0 Strict valid? My URL is:(Flash on top)
View 1 RepliesIn flash as3 website How to open vcf file in html in browser or pdf in adobe?
I want all visitors to be able to view vcard info. What if visitor does not have software to view vcf file?
I have a SWF file I created using Adobe Flex and I cannot seem to properly embed it inside an HTML page. If I take another SWF file and use it instead, it works all the time. My SWF file is pretty big (1 MB) while the other one is tiny (25 KB). However, I can wait 5-10 minutes and the server connection is super fast and it still will never load. Is there something I need to do to the SWF to have it start up properly? My SWF almost never runs.
View 1 RepliesI am attempting to add google analytics tracking to an Adobe Air app created with HTML and javascript.I have tried adding the ga.js file and using it like I would in a webpage:
<script type="text/javascript" src="lib/js/ga.js"></script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-********-1");
pageTracker._initData();
pageTracker._trackPageview('/test');
</script>
But this doesn't seem to register anything on the analytics dashboard.Have also tried using the GA for flash actionscript library but I can't seem to create an instance of the GATracker as it needs a DisplayObject?
EDIT :using the information from grapefrukt I tried the following:
air.Sprite = window.runtime.flash.display.Sprite;
air.GATracker = window.runtime.com.google.analytics.GATracker;
var tracker = new air.GATracker( new air.Sprite(), "UA-XXXXXXX-X", "AS3", false );
but I get the following error:TypeError: Error #1009: Cannot access a property or method of a null object reference
I have the following component in an AIR application from Flex 4:
<mx:HTML id="viewObject"
x="10" y="42" width="634" height="313"
location="http;//localhost:8080/mypage.php" />
Now I want to run a javascript when the page loads but the javascript isn't inside the target page. I want to run the following javascript:
javascript:alert('Hello world.');
I tried approaching it by setting the location property again to the javascript after the page has loaded like below.
<s:Button x="10" y="10" label="Button">
<s:click>
<![CDATA[
[Code]....
Unfortunately for me, that doesn't seem to work.
Lets say i have a html file that contain a form:
<form method="post" action="url">
<input type="text" id="fullname" />
<input type="text" id="bodyText" />
<input type="submit">
</form>
we have load this html file using HTMLLoader inside an swf file.
_htmlLoader = new HTMLLoader();
_htmlLoader.paintsDefaultBackground = false;
var req:URLRequest = new URLRequest(urlValue);
_htmlLoader.load(req);
_stage.addChild(_htmlLoader);
After loading this Swf file using Loader inside main application, text boxes are readonly and can't type in it. But we can change focus of them using Mouse.
var loader1:Loader = new Loader();
loader1.load(new URLRequest("path to file.swf"));
// ...
this.addChild(loader1);
// ...
have no experience in Adobe Air/Flex and wanna know, Are there some principles(design patterns) for develop Adobe Air/Flex applicati
View 4 RepliesIs It possible to load Html page Inside Adobe Flash CS5.
Originally, i wanted to bring in through <IFRAME> but i don't see that flash understands that.
I'm writing an Adobe AIR app using plain HTML which needs to upload photos to Facebook. I don't think Facebook's JavaScript/Connect library includes photo uploading functionality, but their ActionScript library does. However, I'm having trouble loading the ActionScript library into the HTML page.
Adobe's documentation describes the process of loading ActionScript libraries into HTML AIR apps, which I tried using the compiled Flash library available here (specifically, Facebook_library_with_AIRConnect_v3.4_flash.swc). So my page looks something like:
<html>
<head>
<title>Hello World</title>
[code]....
Is the compiled library file I used the wrong one (do I need a .swf instead of a .swc)?If so, do I need to create my own compiled library somehow from the ActionScript source?Is the namespace I'm using incorrect? (in addition to com.facebook.Facebook() I tried .Facebook(), .fb.Facebook(), .facebook.Facebook(), etc)Should I just give up and try to learn Flex instead?
How can I get my Adobe Flex applications to seamlessly integrate with HTML pages? That is, I want Flex to: Not take up the entire page (make it any size page element I want). Talk back to the JavaScript on the page (further linking the Flash application with the HTML page).
View 1 RepliesI want to show a local html file into my application but I could't find to do that.
I used <mx:HTML> component with using its location property but it is not working when I try to do it with a local file which is in applicationdirectory.
EDIT: Here is my code :
<fx:Script>
<![CDATA[
private function init():void {
[Code].....
I have a task to built a simple Digital signage system which will display different kind of information on LCD panels. I am not sure if Adobe AIR with HTML / Javascript would be a good choice for the desktop part of this application, which will be responsible for displaying the content. The logics could be easily solved and coded in Javascript and the app should run for a long time.
View 2 RepliesI am looking for a tutorial on how to declare different attributes or capabilities for a Adobe Flash player. I have the following .html file:
[Code]...
How do tweet the parameter to get the video available with a fast forward that works, and a progress bar ( I do not know the correct name for this action) And in general where can I get instruction on how to program a Flash player in a .html file?
I need to pass multiple flash vars into my swf -- I see multiple places in the adobe-generated HTML in which to put the flash vars. While I can do this successfuly for one flash var, I can't for more than one (I'm using something like this at the moment, which works, but cannot be extended URL
[Code]....
I am unable to click on "Allow" button in my Adobe Flash Player Settings panel that pop's up because half of it is hidden behind divs making it "unclickable".I tried setting negative z-indices on the divs that are overlaying it and I also tried giving a prositive z-index to the div holding the Flash Player Settings panel
View 2 RepliesI am developing an Adobe AIR application which uses both native windows and floating panels. Is is possible to enable the creation of a floating window instead of a native window when a JavaScript window.open() function is called?
It is required that all of the floating windows are contained within one native window, therefore the creation of more native windows is not suitable.
I have used a Custom HTMLHost class in order to enable the creation of a native window but I can't work out a way of creating a MDI window instead. I am using the flexMDI framework for my floating panel interface.
In my project I am creating. jpg file from flash. But I am not getting the 100% quality. The aim of the project is to design something and convert into jpg file which will be printed. But as I told that I am not getting the 100% quality so the printd pictures are not so good.
View 1 Repliesw a website recently,I am curious about the 3D execution with XML generation. Does anyone know how this can be achieved.
View 1 Replies2d Landscape Generation with Midpoint Displacementhey everyone... I'm working on implementing the simple 2d algo. described here:[URL]...html in actionscript. It's a simple midpoint displacement scheme, and it's almost working correctly. The problem i'm having is that the array i'm generating isn't sorting correctly. I need to sort it so that the drawing loop cycles through from left to right (on the x axis)... For some reason, it's not sorting points that are between [0] and [1] in my array. because the algo. is iterative, the problem snowballs the more iterations you run it for.
here's the code i'm working on. it's in 3 frames, and init frame to get it going, and then a loop in frames 2 and three (so that i can see the iterations as they're drawn out):
[Code]...
I'm making a picture gallery program and making it so that it takes images and resizes them to fit the proper thumbnail size, using onInit from the clip loader object and _xcale/_yscale. The problem is, the first time the thumbnail scrolls into the visible area, massive lag results; the app freezes for a solid half second until the thumbnail bar resumes scrolling. This does not happen with smaller pictures: apparently, Flash is being stupid and is reducing the size, but not the resolution, of the images. Is there a way to solve this problem other than
a) loading each thumbnail on the visible stage at first, then immediately repositioning into the bar (this would multiply load time substantially) or b) a server-side jpg resizer?