A Flex App in browser is a swf file or translated to Javascript

A Flex App in browser is a swf file or translated to Javascript?
Like Flash web site plugins [not whole browser window], exist and Flex plugins?
These are both swf files only without other supporting files?

A Flex app is a SWF and is not translated to Javascript.  Many Flex apps do
use Javascript to handle history management and startup focus.

Similar Messages

  • Begginer Flex Apps for browser Questions:

    Begginer Flex Apps for browser Questions:
    To change Dim in Flex App I must change file in address bar of browser, in other words create another page?
    Usually Flex Web sites come in only one file or many [upper 10?]?
    Scrolled Area in Flex how called [I mean like XHTML DIV Scrolled area?
    I book Flex 4: vol. I , Tranning from the Source, from Adobe press, covered:
    Scrolled Areas
    email components
    publish to live server
    if not, then all these covered in vol.II?

    to change the dimension of your flash window inside the browser you can use javascript... or you can have your flash-element in full size of the browser window and handle the resizing flash-intern, so you do not need an extra page for that. Just take a look at the HTML-Code and ask again if you are not that skilled with HTML/JavaScript.
    usual you have only one SWF.
    You can use the spark Scroller (see http://blog.flexexamples.com/2009/05/01/creating-a-scrolling-spark-panel-container-in-flex -gumbo/ for example)
    Sorry, I don't know, but I can give you some hints:
    for scrolling you can use Scroller
    I don't know, what you mean by e-mail but you can use javascript to create a "mailto:"-link (see http://flexonblog.wordpress.com/2007/12/18/mailing-in-flex-using-javascript-function-mailt o/ )
    the easiest way to deploy you just have to copy your swf and html-files from your flex-project to a web-server.

  • Flex app calling CF cfc to download file gets "Channel disconnected" fault

    I am a newbie with ColdFusion and Flex. I am trying to implement file download/streaming functionality in my Flex 4.5 application and I am running ColdFusion 9 as my back end. More specifically, I have a component in my Flex app that displays a list of files - some of these files can be available for opening (or "previewing") via the client. I want the client to be able to click a button and download the file from the ColdFusion server, after the appropriate security checks are performed (also in ColdFusion). Right now I am just trying to get the basic download functionality to work with a very simple cfc. Here is the cfc code:
    <cfcomponent displayname="Preview Document"
         output="false">
         <cffunction name="streamFile" access="remote" returntype="any">
              <cfargument name="filename" displayName="Filename" type="string" required="true" />
              <cfheader name="Content-Disposition" value="attachment;filename=#filename#" >
              <cfcontent type="application/unknown" file="c:\myserverpath\#filename#">
         </cffunction>
    </cfcomponent>
    When I try this via a cfm, it works fine (I get a File Download window where I can choose to either open or save the file). But when I try to use this in my Flex app, I get an error.
    In my Flex app, I have a RemoteObject to access my cfc and a CallResponder:
    <s:RemoteObject id="PreviewDocument"
       source="PreviewDocument"
       destination="ColdFusion"
       showBusyCursor="true"/>
      <s:CallResponder id="PreviewDocumentResult"
        fault="Alert.show('CallResponder PreviewDocumentResult: ' +
        event.fault.faultString + '\n' + event.fault.faultDetail)"
        result="PreviewDocumentResult_resultHandler(event)"/>
    Then I created a button whose click even executes the following line:
    PreviewDocumentResult.token = PreviewDocument.streamFile("myfile.pdf");
    When I run my app, I get the following fault:
    faultCode = "Client.Error.DeliveryInDoubt"
    faultString = "Channel disconnected"
    faultDetail = "Channel disconnected before an acknowledgement was received"
    I have tried many different approaches and searched online for help with this fault, but I could not find any helpful clue to where I can start investigating this.
    Can anyone help with why I am getting this fault?
    Thanks in advance.

    @sir_teddy, thanks for your reply again.
    Yes I have created a simple cfc that returns a string successfully (in fact I had used the same cfc and basically just commented out the cfcontent and cfheader tags, and returned the name of the file being requested in the cfreturn tag). When I un-comment the cfcontent tag from the code, the error comes back.
    So I am really at a loss here...

  • Adobe AIR not playing sound from swf, but Flex-app in browser does. Why?

    Hi
    Why won't Adobe AIR play the sound in an swf animation I've got? It plays perfectly as an Flex Application in a browser.
    This works good (Animation is shown and sound is played):
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:SWFLoader id="testLoader" source="niceview.swf">
    </mx:SWFLoader>
    </mx:Application>
    This does not work: (Animation is shown BUT sound is NOT played):
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="500" height="400">
    <mx:SWFLoader id="testLoader" source="niceview.swf">
    </mx:SWFLoader>   
    </mx:WindowedApplication>
    I started out loading the swf from the filesystem, which is what I want to accomplish, but in this test the "niceview.swf" is located inside the source folder and therefore sandbox-violations should not be the issue here, right?

    A little bump.
    I still haven't found any solution to this.

  • Flex app behaves differently when Adobe automation files loaded

    We have an application built with Flex 3.1. I am attempting to create QTP tests for this application.  The instrumentation files are loaded at run time, not compiled into the application.
    I am using QTP 9.5 with the Adobe Flex Add-in 3.0.  I am able to see the controls an run tests to some extent.
    The main issue I am trying to resolve is that there is a difference in behavior of the application when it is started with the instrumentation files. The differences occur both inside and outside of the QTP environment.
    The observed differences are:
    The initial page is a login screen. After entering the id and password, I can click ‘Enter’ or click the “Log in” command button. With the instrumentation files loaded, the ‘Enter’ key no longer works.
    When I log out of the application, a progress screen displays while the environment clean-up occurs.  When the progress bar hits 100%, the original login screen is displayed. With instrumentation files loaded, activity stops when the progress bar hits 100% and the original login screen is never displayed.
    After logging in, a window with perspective tabs displays.  Each perspective tab page contains a window containing a list of resource associated with the perspective. When instrumentation files are loaded, the tab pages exist, but the perspective windows are not created.
    I realize I am dealing with application-specific behavior here and I am pursuing this with our developers. What I am looking for is any information related to differences in application behavior when instrumentation files are loaded.

    I can't seem to reproduce what you are seeing with this sample application:
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark">
        <s:states>
            <s:State name="state1" />
            <s:State name="state2" />
        </s:states>
        <s:controlBarContent>
            <s:Button label="change state" click="currentState=currentState=='state1'?'state2':'state1'" />
        </s:controlBarContent>
        <s:Button x="50" y="50" label.state1="state1" label.state2="state2" skinClass="CustomButtonSkin" />
    </s:Application>
    Can you provide a similar sample application that demonstrates the issue?

  • How to play a swf file without a browser

    I know it sounds bizzare, but not all machine have a
    compatible browser installed. I was using flash player stand alone
    version for playback of swf files. But, flash player 9 will only
    install if I have a browser installed.
    I can still play swf file on a machine with a browser, but
    the swf file does not come in with a built in playback control, so
    I have to watch the video without a playback control.
    Is there anyway I can download a standalone version of
    flashplayer, just like flashplayer 5.

    On Sat, 9 Feb 2008 16:22:40 +0000 (UTC), "Rothrock"
    <[email protected]> wrote:
    >Adobe doesn't offer a stand alone player.
    =8() Really??? And what SAFlashPlayer.exe is then?
    >The player is something that
    >comes with the offering environment and to the best of my
    knowledge has never
    >been available for download.
    Yes, because it is in Players\ subdirectory!
    > What you can do is create a brand new blank document
    with your copy of Flash
    >and publish a projector file. Then bring that projector
    over to your other
    >computer. Then you will be able to use the projector to
    play swf files.
    It's very ugly way for those who never tried to dig into
    Program Files
    subdirectory :)

  • How to call Flex app from Javascript in portal question

    I've setup my flex 4 app with a callback function. The flex app is embedded in a Java portlet on a WebLogic Portal 10.3.2. How can I call the Flex app from the portlets javascript function? Code below shows how the flex app is embedded in the wrapper jsp.
    <script language="JavaScript" type="text/javascript">
            AC_FL_RunContent(
                        "src", "<%= srcPath %>",
                        "id", "<%= (String)request.getAttribute("portlet_name") %>",
                        "name", "<%= (String)request.getAttribute("portlet_name") %>", 
                        "width", "<%= request.getAttribute("width") %>",
                        "height", "<%= request.getAttribute("height") %>",
                        "align", "middle",
                        "quality", "high",
                        "FlashVars", "PORTLET_WS=<%= request.getAttribute("window_state")%><%= wsrpEncodedChannel %>",
                        "allowScriptAccess","sameDomain",
                        "type", "application/x-shockwave-flash",
                        "pluginspage", "http://www.adobe.com/go/getflashplayer");         
    </script>

    Thanks for the response. I followed the instructions in the link, but it does not appear to work within a Weblogic 10.3.2 portal. My Flex app is wrapped in a Java JSR 286 portlet. Should this approach work or is there a different approach for the portlets wrapper JavaScript to call a Flex callback function?
    thanks
    Dan

  • Emdedding swf file as class throws error while previewing the component

    Dear all,
    I am using Flex SWFLoader to load an animated swf file and added it as a component in xcelsius by add on manager. When i click preview button it throws the folloing error.
    TypeError: Error #2023: Class must inherit from Sprite to link to the root.
    I am embedding swf file by using the following lines of code
    Embed('Animation_1.swf')
    public var Animation:Class;
    Then i tried to create my class by extending Sprite, i got the same error,
    Can you please anyone help me to solve this issue, all i need is the way to emded the swf file as class and using it in xcelsius. The embedded swf class is working fine alone (that is outside to the xcelsius).
    Thanks & Regards,
    Manimaran.
    Edited by: manimaraninfo on Jun 18, 2009 10:47 AM
    Edited by: manimaraninfo on Jun 18, 2009 10:48 AM

    Hi
    To embed a .swf file in xcelsius using SWFLoader, you have to pass the path of that swf file to the source property of SWFLoader.
    By using class concept xcelsius does not get the path of the swf file you have embeded.
    In flex It gets that file because that swf file is present in the same directory as your application.
    Hope this helps
    Regards
    Rush-me

  • Spreadsheet component - bottom grid line not displaying in swf file

    Hi,
    I'm having an issue with the spreadsheet component. I'm using the "Ignore blank cells in Values" option on the behavior tab. This works fine. The problem I'm having is the bottom grid line in the spreadsheet table is not displaying in the swf file. The bottom grid line displays correctly in Preview mode....but is not displaying in the swf file. Anyone have any ideas on why?
    Thanks

    I'm not sure if I've interpreted your response correctly.  Our entire dashboard app is built on the swf files being called from the URL buttons.  We are not using HTML files.  Are you saying that if I do a file export to HTML that the swf file generated from this will display the bottom grid lines?
    I noticed that the spreadsheet component grid lines display correctly in the swf when not checking the ignore blank cells option in the behavior tab.
    So what would be our options here.....either uncheck the display grid lines for the spreadsheet component to not display the grid lines at all, or do not use the ignore blank cells option in the behavior tab to display a fixed number of rows each time?
    Thanks for the response, Matt.

  • Cannot open .swf files what so ever

    Hi, I downloaded a few swf files and can't open it after trying everything.
    I've installed multiple versions of Flash on my computer and tried opening it in all latest versions of Firefox, Chrome and IE. I've downloaded multiple standalone versions of flash but as soon as I browse for the swf file, then press open it just closes the program. I've tried turning my firewall off just incase it could of been that and once again all the issues just repeated.
    In Firefox and Chrome I get a white screen and when I right click it says "Movie not loaded". In IE, I get a black screen and when I right click it says "Movie not loaded".

    Local SWF files will play with the standalone Flash Player (Projector).  You can download it from http://www.adobe.com/support/flashplayer/downloads.html
    Note that the download is the player, not an installer, so you will have to make the file association manually.

  • Loading purchased swf into Flash Builder 4 Flex app

    I have purchased a Flash "fundraising thermometer" from an online Flash components site. It takes input from an xml file and displays a thermometer with the goal at the top and the current amount raised indicated. It came with the following files:
    thermometer.swf
    thermometer01.fla
    thermometer01.html (A sample that works.)
    xml/thermometer.xml (The source file: goal amount, current amount, mark interval, etc.)
    caurina/transitions (Mostly .as files.)
    Since the test html (thermometer01.html) works fine, I thought this would be a no-brainer.
    I first unzipped the files into a "thermometer" folder in my current project. I then went into Flash Builder and created a SWFLoader object as follows:
    <mx:SWFLoader 
    id="myLoader" source="../thermometer/thermometer.swf" complete="initThermometer();" autoLoad="true" scaleContent="false"/>\
     private function initThermometer():void { 
         Alert.show('Thermometer loaded');
    The Design view looks fine. I can see the thermometer default image (see below).
    When I run the app, I get no errors, just a broken image link in a box (see below). The alert box also never shows up.
    I'm new to Flex, so I may be doing something stupid that keeps this from working. I contacted the author of the thermometer widget but he doesn't know anything about Flex.
    Any help figuring out how to get this to work in a flex app would be appreciated.

    You should probably add more event handlers to see what's going on.  Especially "ioError". The complete list is below.  For coverage, add a handler for each event. You can also use in MXML
         complete="initThermometer(event)
    and add an argument to your Actionscript method, to find out details about the event.
    private function initThermometer(event:Event):void { 
         Alert.show('Thermometer loaded ' + event.type);}
    Events
        complete="No default"
        httpStatus="No default"
        init="No default"
        ioError="No default"
        open="No default"
        progress="No default"
        securityError="No default"
        unload="No default
    General info here:
         http://livedocs.adobe.com/flex/3/langref/mx/controls/SWFLoader.html
    I did not test my code suggestions, but it's probably close.

  • Calling a function in a flex app from a loaded SWF

    How can I call a function in a flex application from a loaded
    swf file?

    Two ways:
    Application.application returns a reference to the top-level
    application scope. You can access any public member, var, function,
    component, etc through that reference.
    Dispatch an event event form the loaded swf and use a event
    handler in the main app. All the gurus advise this as best
    practice, to ensure "loose coupling" It is also pretty easy,
    especially if you use a bubbling event.
    Tracy

  • Can I load a swf into my Flex app that loads other swf's?

    The code below loads an AS2 swf into my Flex mobile for IOS app and it works.  If that AS2 swf has like a circle in it that runs across the stage, it loads and displays properly when run in FlashBuilder.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:mx="library://ns.adobe.com/flex/mx"
                                     initialize="init()">
              <fx:Script>
                        <![CDATA[
                                  import mx.core.UIComponent;
                                  private var request:URLRequest = new URLRequest("http://PATH_TO_AS2_SWF");
                                  private var loader:Loader = new Loader();
                                  private var myComponent:UIComponent = new UIComponent; 
                                  private function init():void{
                                            myComponent.percentHeight = 100;
                                            myComponent.percentWidth = 100;
                                            loader.load(request);
                                            myComponent.addChild(loader);
                                            player.addElement(myComponent);
                        ]]>
              </fx:Script>
              <s:Group id="player"
                                   height="100%" width="100%"/>
    </s:Application>
    But if that AS2 swf loads other swf's, they don't load or display.  My FlashBuilder debugger reports no errors or security sand box violations.   I'm using the most elemental code in my AS2 swf so as to not cause problems.  This is it in its entirety:
    this.onLoad = function(){
              _root.loadMovie("http://[PATH_TO_REMOTE_SWF]");
    The paths to the remote content are fine because swf's load and display fine from AS2 swf when run on it's own - not embedded in Flex app.  They also load and run fine if I cut out the AS2 swf and access directly from my Flex code.  So I know there isn't a path issue.  More likely not accessing the right layer in the AS2 swf from Flex or something.  Or maybe security sandbox violation but I don't see anything reported in the FlashBuilder debug console.  When run console just reports:
    [SWF] SwfMobile.swf - 2,639,761 bytes after decompression
    [SWF] assets/swf/AS2.swf - 1,470 bytes after decompression
    Is there something inherently wrong with loading swf's that load other things?  Even if I have the AS2 swf load jpgs they don't load so the format of the target content at the end of the chain doesn't seem to be the issue.  Just the act of embedding a swf that loads other things seems to be the problem.

    Ah, yes. Using an AVM1 SWF could prove difficult...
    I'm going on about 3 hours of sleep at the moment, but let me toss out a few thoughts I have and hopefully something will stick...
    Ok, so my first thought what to try and cast the loaded content as a MovieClip and call methods on that, but the fact they are AVM1 throws that out the window.
    That leaves LocalConnection, as you mentioned. But this would require you to have code on the receiving end to handle the connection... no good either.
    But what if you created a "bridge" in AS2 that holds all the code for the receiving end of LocalConnection (or has the control logic itself, perhaps even eliminating the need for LocalConnection all together!). I think maybe this is what you were trying to do already by loading a SWF into a SWF? Well instead of loading your bridge at runtime, what if you statically linked it into your project as a class?
    *a few moments later*
    Well it looks like you can in fact link in a a symbol created for AVM1, but it will only come in as a SpriteAsset, and will not include any custom code (which makes sense, since they use entirely different class constructs).
    To do the test, I created a symbol exported for actionscript (AS2/Flash8), then linked it in with a CSS style embed. I then instantiated the class and called describeType on it.
    So in summery, it looks like calling custom code on the bridge is out (I did not test this extensively, that was just my first impression with this simple test). However, if you may be able to perform the actions you need by attempting to cast the loaded content into something AVM2 can recognize. Apparently it does this automatically when linked in statically, so maybe there is something there worth looking into... mainly, can you do what you need using only the base class and no custom code?
    Keep me posted!

  • Running a Flex App using Coldfusion Flash Remoting Services gives me a blank SWF file but no errors

    I cannot get flex to compile to display anything. even if its
    just a single panel and some text. If I use the wizard and choose
    "Basic" or whatever, I get a flex app. But i am using cfcs so I
    selected "Coldfusion Flash Remoting Services" and when I select
    run, the browser pops up with a nice big blank screen. No loading
    progress bar, no errors, nothing.
    I am running cf8 as a standalone (developers edition)
    under project properites --> server
    root folder: C:\ColdFusion8\wwwroot
    root url
    http://localhost:8500/
    context: (blank)
    I have messed with context and webroot.
    I doesn't matter if I use a remoteObject or not. Nothing
    happens
    i through in a crossdomain.xml into the root to open it up,
    just to be sure.
    I am really stumped. I had this working fine on a previous pc
    (running cf7)
    any ideas anyone???

    I tried with some of the AS3 files from Adobe samples (http://www.adobe.com/devnet/actionscript/samples.html), for eg., the Drawing API. There are slider components in the flash app that don't show up either. Does that give anyone a clue as to what might be wrong? Thanks, Ramesh

  • Flex apps will not run in Browser after install

    I am running IE 6 (Wintel) and have tried both installers for
    the most recent Flash player -- activeX and the other standalone
    one. I cannot view any Flex apps now in my browser - most notably
    the derby examples. It seems to hang on a screen that has the title
    "Flash Player Installation" -- like something in the apps is
    sniffing for the player, not finding it, and then hanging on some
    "automatic" install hook that has been built for Flex but not
    completely implemented yet. That is my suspicion, but I just want
    it to work -- do I need to uninstall/reboot/install again ? Any
    tips would be greatly appreciated as I need to start a Flex 2
    project next week. thanks.

    You definatately need to run the unistaller 1st. Also make
    sure that all IE browser are closed, and that nothing that could
    possibly be using IE functionality (things like outlook, file
    manager etc...) are not running or the uninstall may well fail.
    Once this is succefully accomplished, re-install.

Maybe you are looking for

  • Tried to update itunes but now it wont open,an error message comes up ??

    i have tried to update my itunes but now i am not able to open it and an error message comes up saying "this application has failed to start because MSVCR80.dll was not found . re installing the application may fix the problem" . i dont know how to r

  • Problem in implementing forgotPassword function

    hi,     I need to implement forgotPassword function in my jsp. I followed everything from these links : - https://forums.oracle.com/message/10958330 Handling Forgotten Passwords I am not recieving any mails . In the logs there is no logs of EmailServ

  • White text turning black/grey in Safari 3.1/3.2

    I have a very odd problem I have not been able to find the answer to anywhere else.  I have created a website that has white text on dark blue background.  It looks fine in all other browsers except for Safari 3.1 and 3.2.  All of the <p> tags have t

  • Re confirmation of Routing Steps

    Dear Friends, Let's suppose I've done the confirmation of all steps in routing and then FG moved to stock with MIGO, and then unit is dispatched also, What if I can go to the confirmation (CO11N) and reverse any confirmation and then re define again

  • Domain Controller SystemState backup failing on 3 servers

    Hi, I've been puzzling over this for a few weeks - getting a bit desperate now... Seen a few similar issues on the forums, but no definitive answer that works... I have 3 2012R2 domain controllers - 2 are new, clean build, no AV installed, built in t