Co-mingling Flex and HTML

I have a fairly reliable Flex application I'm working on and I have a few static HTML Help documentation. I use the TabNavigator as my navigation and one of the tabs is this help documentation. Now I have a few questions:
1. can you a browser tab to load a HTML page?
2. is there a way to eay for HTML rendering on a page of Flex?
3. what happens if I had a little dynamic content that was the specific date but my page was static text in a large extent, what would be the best approach for this page?

Thanks in advance for any help you can provide!

Greg is correct - you need to use the AIR. Flash Player is not a rendering HTML inside engine. Think about it - rendered HTML is a pretty hefty thing and it would increase the size of the footprint of Flash Player by an order of magnitude. Flash Player is a small download and we do not want to be a burden for anyone to obtain and use.

AIR, however, is a separate download that has an inside HTML rendering engine. You can put your AIR applications on a web site and let people to download (they are about the same size as any Flex application) - the end user installs the AIR application as any other desktop software.

Tags: Flex

Similar Questions

  • Flex and HTML displayed shift in Safari under Mac OS

    When a popup is displayed in Flex app, Flex display gets moved down in Safari under Mac OS only. However, even if the screen is shifted down, orders appear to be in the correct position. For example, to click on a button, the cursor must be a few pixels above illustrated screen. Not only the Flex display moves down. Display of HTML links also moves down with Flex and the links are clickable a few pixels above the screen.

    The problem occurs only when to trigger the display of popup Flex flex long screen. On a screen of Flex in the height of the browser, with the same actionscript and Javacsript code there is no problem.

    It works fine in all other browsers like Safari in windows.

    All the world is facing this scenario? Any help will be much appreciated.

    The following code is used for the popup to display in the center of the viewable area.

    callLater (SMBObjectUtil.changePosition, args);

    In the SMBObjectUtil.as file.

    public static function changePosition (int x, y, obj:UIComponent):void { }

         var yPos:int = ExternalInterface.call("saveglobalscore",score) ("findScrollTop");

         var winHeight:int = ExternalInterface.call("saveglobalscore",score) ("getWindowHeight");

         var appHeight:int = Application.application.height;

         var objectWidth:int = obj.width;

         var objectHeight:int = obj.height;

         var calculatedX:int = 0;

         var calculatedY:int = 0;

    If(Application.application.width > obj.width) { }

              try {

    calculatedX = (Application.application.width - obj.width) / 2;

                   if (yPos < = 0) {}

    calculatedY = ((winHeight-objectHeight)/2-100) > 0? (winHeight-objectHeight) / 2 - 100:50;

    }

    else If(yPos < =(appHeight-winHeight)) {}

    calculatedY = (((winHeight-objectHeight)/2) + yPos-100) > 0? ((winHeight-objectHeight)/2) + yPos - 100:50;

    }

    else If(Posy >(appHeight-winHeight)) {}

    calculatedY = appHeight - objectHeight - (winHeight-objectHeight) / 2;

    }

    }

              catch (error) {}

    }

    }

    else {

    }

    obj.x = calculatedX;

    obj.y = calculatedY;

    }

    Used JavaScript functions are:

    function findScrollTop()
    {
    var ScrollTop = document.body.scrollTop;
    If (ScrollTop == 0)
    {
    If (window.pageYOffset)
    ScrollTop = window.pageYOffset;
    on the other
    ScrollTop = (document.body.parentElement)? document.body.parentElement.scrollTop: 0;
    }
    ScrollTop return;
    }

    function getWindowHeight()
    {
    var y = 0;
    If {(self.innerHeight)
    y = self.innerHeight;
    } Else if (document.documentElement & & document.documentElement.clientHeight) {}
    y = document.documentElement.clientHeight;
    } Else if (document.body) {}
    y = document.body.clientHeight;
    }
    Return y;
    }

    Found a solution for this. CallLater() appeared the problem in Safari. Once I deleted CallLater and directly called my function, the problem has been resolved.

  • Flex and its future

    After that I spent almost three years to design an application (Flex and Air), my developer are now telling me that Flex as a language is dying and that I should consider a re - write using HTML and Java.

    My investment was considerable, so it was a shock for me - especially since I'm close to launch the application on the desktop and smartphone.

    Someone in this community reassure can me (or confirm), or maybe give me an idea. The application in question is very sophisticated and a rewrite just seems like a lot of work. I mean, who really knows what is the future of software in languages, it seems to change on a six pence.

    I would be grateful if someone could perhaps look at the app, give me an idea.

    Thank you very much (I'll post the link if anyone wants to watch the app).

    Where the hell were you, wordtapper? This kind of question/discussion has come the forums for a while.

    If the application works and is usable on the target platforms, then I'd go with it, BUT keep in mind that the long term future of flex as a programming language is very much in the balance. Adobe has little interest in it and the platform it runs on (Flash runtime) is not viable on Apple Mobile products in the browser and run on other mobile browsers in the long term.

    who really knows what is the future of software in languages, it seems to change on a six pence.

    Quite right, but it has not been filled since Mobile really took off and changed the whole game plan, so the tech world is rapidly changing.

    If you are close to launch, personally I go ahead with Flex and then look at your options if the application takes off. Better to re-think, if necessary with a successful delaying application there and gamble that this restructuring will be useful.

    If your application runs in the browser and mobile target, I'd be nervous.

  • Applications created using Flex and their response time

    Hello

    I observe that Flex front-end Applications are very slow to be honest same Adobe site itself is slow .

    Please tell me what should be the size of a swf file so that the time which will be at least satisfactory.

    I don't think that every piece of the Flash on the site of Adobe's Flex and there is

    still a lot of HTML code on the site as well.

    You build an application, and the basic principles still apply.  Less

    code runs faster, the modularity allows to make to the code on demand, throw

    things you don't need.  Allows you to run a really small SWF file wrong and really

    bigger may well perform after the start.  It's all in how you write

    it.

  • States in Flex and Page Navigation

    I have a doubt regarding the page navigation in flex. How to navigate from one page to the other for example on the presentation of a flex form? If the States are used so not the entire application will be a file single mxmxl?

    Please help me

    Hi there, you can use viewstacks instead of viewstates or any other navigator container, and divide you app as files as much as you want you can read more about this here:


    http://livedocs.Adobe.com/Flex/3/HTML/modular_1.html

  • Upload file multiple with Flex and ColdFusion problem

    Hi all

    I'm trying to resize images after download using the "multiple".
    Upload with Flex and ColdFusion"to

    http://www.Adobe.com/devnet/coldfusion/articles/multifile_upload.html

    In fact, everyone has a script that resizes the images successfully
    After the download of the images with this method?

    The reason why I ask is that I can't work properly, I tried
    all I can think and ended up with the code below. Which
    resizes the images, but does not delete the original file. The error
    who gets dumped is:

    "ColdFusion could not remove the file C:\ColdFusion8\wwwroot.
    \MultiFileUpload\uploadedfiles\0040.jpg for a
    unknown reason. »

    That does not really help. So I try to delete the original files
    manually, but windows will not let me also and wrote its been used by an application.
    If I download files over that I can then delete the original files
    the previous download.

    To me, it seems that the flash drive is not release the file

    Any help would be greatly appretiated.

    Richard


    Do you have applied the latest patches? There was a problem with locked files after using imageResize.

    http://cfsearching.blogspot.com/2008/04/ColdFusion-801-patch-issue-image-files.html
    http://KB.Adobe.com/selfservice/viewContent.do?externalId=kb402604

  • Where is the icon of firefox on the document htm and html files?

    Today, I noticed for the first time... The icon to look like a blank page with a firefox icon on this mini... Htm and html icon now looks like a blank white page which is curved on the upper right... I tried a reset of firefox and it did not help... I don't want to do a reinstall of firefox because I want to keep the old firefox download manager and not one which is on the right side of the search bar... (I saw it on my linux ubuntu computer) BUT my computer with the html file icon problem is Windows 7 x 64

    It does not say it is a Firefox HTML Document, but it does not show the icon of firefox on the html file icon... I will uninstall and reinstall... I hope this will help

  • Is there a way to shrink js, css and html in DreamweaverCC?

    Is there a way to shrink js, css and html in DreamweaverCC or on-line what program is best to use?  When I minify the css just replace what is in my models or what is the process?  Thanks in advance.

    I don't shrink HTML code. I believe that it is very little reward for any problems this may cause.   My server GZIP compression is sufficient.

    Code editor in parentheses with at LEAST the module automatically minifies CSS code when you save the file UNDER.  It is a nice feature.  For now, DW doesn't have this option.  Maybe it will be in 2016 when the media is integrated in DW.  Will have to wait and see.

    My CSS code is still in external style sheets.

    • stylsheet.min.CSS
    • StyleSheet.CSS

    I keep a non-compressed for backup.  I have download the compressed on the server version.

    There are also online minification tools, that you can use.  A Google search will reveal many each with their own advantages and disadvantages.   In order to test before replace you the original code with the compressed versions.

    JavaScript Minifier

    Nancy O.

  • the .swf and .html files does not work while the .fla file works great

    Hi I'm new to actionscript, and I have a question. The fla file works perfectly and runs the timer function and reads the xml file to create an RSS feed, but when I publish and choose HTML wrapper and then choose 14 Flash swf and html file load the photos and the text field but isn't something else please help.

    Thanks in advance.

    import flash.net.URLLoader;

    import flash.net.URLRequest;

    import flash.events.Event;

    import flash.text.TextField;

    import flash.text. *;

    import flash.utils.Timer;

    import flash.events.TimerEvent;

    var RSSLoader:URLLoader = new URLLoader();

    var RSSURL:URLRequest = new URLRequest ("http://sports.yahoo.com/soccer//rss.xml");

    RSSLoader.addEventListener (Event.COMPLETE, RSSLoaded);

    RSSLoader.load (RSSURL);

    var RSSXML:XML = new XML();

    RSSXML.ignoreWhitespace = true;

    var title: TextField;

    var desc:TextField;

    var allText:TextField;

    title = new TextField();

    allText = new TextField();

    var i: int;

    function RSSLoaded(e:Event):void {}

    trace ("xml load file here");

    RSSXML = XML (RSSLoader.data);

    for {(var selectedItems:String in RSSXML.channel.item)

    title. Text = (RSSXML.channel.item [selectedItems] .title + "/");

    title.wordWrap = true;

    tfLog.text += title.text;

    tfLog.wordWrap = true;

    trace (title. (Text);

    }

    }

    var t:Timer = new Timer (200);

    t.addEventListener)

    TimerEvent.TIMER,

    function(EV:TimerEvent): void

    {

    tfLog.text tfLog.text.substr = (1) + tfLog.text.charAt (0);

    }

    );

    t.Start ();

    var picTimer:Timer = new Timer (2000);

    picTimer.start ();

    picTimer.addEventListener (TimerEvent.TIMER, timehandler);

    function timehandler(event:TimerEvent):void {}

    setChildIndex (getChildAt (7), 0);

    }

    A way around that is to have a PHP file on your server that reads the XML feed and your swf reads the data from the PHP file rather than directly from the external domain.

  • Is it possible to export a page as muse and html associated individual with css?

    Is it possible to export a page as muse and html associated individual with css?

    Yes, Muse has an export as HTML feature.

  • I can not compile for iOS more with Flex and AIR 3.8

    Hello team Adobe and others.

    I use for my business framework 4.10 Apache projects Flex and adobe Air 3.8.

    I always had problems to compile and publish iOS apps (with Air 3.5 front), but with AIR 3.8, it was a miracle, I compile my projects without error on Windows... until today.

    I am running this command in DOS to compile my project:

    "C:\Program Files\Java\jre7\bin\java.exe" - jar "C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\4.10 - 3.8\lib\adt.jar AIR ' - package - target the ipa-app-store - hideAneLibSymbols non - implementation service-profile 'S:\Directory_to_MobileProvision.mobileprovision' - shops pkcs12 - keystore"S:\Directory_to_Certificats_ios.p12"- storepass my_private_password Proginov_FVTE_V45.ipa Proginov_FVTE_V45 - app.xml active com config_app.xml [email protected] Proginov_FVTE_V45.swf - extdir"S:/Directory_to_ANE/air_3.8_pnv_3.00 ".

    And I get this result after 1 hour of compilation:

    Bug iOS.png

    If you want, I can send you my file bin-release-temp and DONKEY to try for yourself, but I need to private messaging, because I don't want to publish my project private to everyone.

    Thank you

    Could you please try the growing size of the java heap in your order.

    for example, "C:\Program Files\Java\jre7\bin\java.exe" - Xmx2048m-jar...

  • Problem with the publication of a swf and html in CS5 file

    Hey, I'm a newbee in flash. I use Flsh cs5. I created a simple .fla file. But when I publish, .swf and .html file are not created in the folder.

    And when I test the movie (control-> test movie), it does not open any window to display the flash.

    Help, please.

    Click on file/publish/formats settings, make sure that the swf and html boxes are selected, and click the button use default namespace.  then click on file/publish.  are the files in your directory with your fla?

    Otherwise, create a new directory (which has no subdirectory), save your fla to this new directory using a new name (it is, click File/Save as).  then click on file/publish.  see the new directory for your 3 files.

  • In FLex and Flash action script

    Please give me advice.

    I understand just that flex and different flash actionscript?

    If so can you give me the reference material action script in flex?

    ActionScript is the same in flash & flex.   Think that flex is a framework actionscript for the flash player.

  • Flex and InDesign application WYSIWYG editing

    Hello

    I'm creating an application using Flex and InDesign Server. I am facing an interesting problem with it.

    Flex application renders a model (contain images or text) based on XML. After editing the text content by the user, this XML model will change to InDesign server and will generate PDFS. It works very well. But if I compare the PDF model and model in Flex then I sometimes noticed the problem about text WYSIWYG template.

    I noticed this problem in the content of multiline text.

    Can someone help me?

    Thanks in advance.

    Pierrel

    To do this, create a custom algorithm to map the online composer and InDesign text rendering style line.

  • Application modular Flex and BlazeDS serialization problem

    Hey there,
    I write modular Flex application using BlazeDS to communicate with managed by backend Java spring. I created Java objects on the server side and the relevant ActionScript objects in flex.

    I used RemoteClass metatag to serialize objects from flex to java. Everything works perfectly fine, when I work with the objects that first loaded module. I am able to serialize the form of objects as Java. But when I reload module or load another flex module I'm losing the types of objects serialized. I get this error message then:

    faultCode:Server.ResourceUnavailable faultString: 'Can't call method "updateProfile".' faultDetail: ' types of expected arguments are (com.konrady.cms.entity.User), but provided types have been (flex.messaging.io.amf.ASObject) and processed (null).

    I tried to invesigate this question, and I'm sure this is the problem with loading flex modules. When I insert ModuleA first of all, I am able to serialize the quant to Java objects. But when I load moduleB, I can't serialize objects and more. Loading moduleA again after that ModuleB are also not possible to serialize objects.
    When I load moduleB firstly I can serialize objects of it. Reloading flex modules brokes Serialization...

    Someone has encountered this problem before? I will be grateful for any piece of advice.

    Ouch, I hope that someone with a full understanding of these multi-application configurations will come to your front rescure I spoil completely.

    I would like to tell you of a long series of publications dealing with the complexity of such a request in the middle of the AIR [which is my case], but due to the mishandling of the code formatted in this forum tool, which deals as the thread to 'How to Test AIR 1.5' in the developer forum is almost impossible to follow and , at the end of the day, he never gave a "How-to" document as I had hoped.  Under "can someone Open the Black Box" in the Adobe AIR forum, there are some ideas that might be relevant.  To reduce the time of download of network for the scheme - not really reduce congestion of memory - I configured my use of SWFLoader in the AIR application to successfully benefit from the Flex Framework RSL.  I don't think that the possibility of using BlazeDS classes in the scheme is directly related to this difference, but it can be indirectly related.

    Following this line of thought, you could get the 'how to debug Actionscript to Java serialization problem' that I posted on the forum Configuration and commissioning, which can help, but it seems that you have found the information of stack trace good to help in your search for failures.

    The new information - or at least what I had not detected from your previous post - seems to be this:

    Home - or not properly accesses remote objects, I'm not clear.

    Load A sub-application successfully access Remote Objects.

    Load sub-application B fails when you try to access remote objects.

    This seems to make clear that "dumping" is not what is causing the failure.  I think, then, is that your problem has to do with loading, and now I have to expose my ignorance to the world and how it was that I finally managed to get my multi-application to subsequently work issues at stake.  If it helps your big case, or if only it gives off just using one or several of the teams in question Adobe - Flex SDK team, team air, BlazeDS team - then we all benefit.

    Somewhere that I can't find now, there is this big PDF file describing the scenarios to pump Flex of MashUps and other environments where a disconnnected development team may have to deal with different versions of RSL - done one or two side-notes on the AIR, it focuses on the Flex.  From there on, I won some glimmer of an idea of the ApplicationDomain class and class related SecurityDomain.  I could not, on a bet, give you a clear statement on the results of the use of the different options.  The code I use to achieve successfully the dynamic loading of my scheme via the SWFLoader is loaded with comments showing that I n "t got a clue.  I tried all combinations; This is what works for me:

    var context: LoaderContext = new LoaderContext();

    context.allowLoadBytesCodeExcecution = true;

    context.applicationDomain = ApplicationDomain.currentDomain;

    var swfLoader:SWFLoader = new SWFLoader();

    swfLoader.trustContent = true;

    swfLoader.loaderContext = context;

    swfLoader.source = byteArray;

    The byteArray was populated by readBytes() starting from a FileStream.  As I said, my use case is sub-appliciations Flex and/or air base running in an envelope of AIR.  Presumably, you get to the same place in pure Flex using SWFLoader.load () after you have configured the ApplicationDomain or SecurityDomain via the LoaderContext.

    All I can hope. After dragging you in all this rubbish is the link of the duration of the BlazeDS code begins to work for you, as it did for me.  In particular, which does not [even though I was debugging problems other than BlazeDS in time] was to set the LoaderContext this way:

    context.applicationDomain = new ApplicationDomain (ApplicationDomain.currentDomain);

    or was this another incantation:

    context.applicationDomain = new ApplicationDomain (null);

    These three variants have the world to do with the way the runtime detects and calls methods on classes in the application.  Only the first allows me to work successfully with RemoteObjects in any subsidiary application that happens to need support on the server side.

Maybe you are looking for