When to use Flex Or Flash Or HTML-Javascript

I am Experimenting with Adobe AIR. I know AIR Applications
can be developed either using Html-Javascript Or Flex Or Flash.
But can anybody HELP me understand when do i exactly use Flex
or HTML-JS.
Well i know one of the reason to use Flex is to build
RIA's.What are the other Possible reasons ?? can i draw a Decision
Boundry between them??

The best reason to choose one tool over the other is that you
have something working in that language already, and are just
extending it into the AIR world.
If you're starting a new project, you then have to balance
tools you have and know how to use against the strengths of the
tools. A tool you don't know has to have some pretty compelling
strengths to make you take the time to learn it, unless you're just
doing it for fun. If not for fun, the effort has to pay off, yes?
Very generally speaking, here are the strengths of the tools,
as I see it.
For HTML + Javascript, just look at what you see on the web
today. People are pushing browsers pretty hard these days with web
apps, so that gives you a good first-order idea of the power of
this tool set. The AIR environment does give you some more power,
not just in the AIR APIs, but also in having a single modern
browser to develop for, so you don't have to limit yourself to IE6
compatible code. Still, it's not yet the equal of the other tools
in some areas.
Flash's main advantage over the others is in applications
with lots of graphics and animation. The reason for this is purely
because that's what the Flash authoring environment is geared to
produce. It's not got a very good ActionScript editor, and as a
consequence there's a practical limit on how much code you want to
write in a given project. It's not a question of whether you
can write a 20,000 line ActionScript program within the
Flash environment, it's a question of whether it's better done in
another tool.
One of the best "other tools" when you end up with lots of
code is Flex. With the "Builder", you get Ecipse, and without, you
are presumably using some other worthy programming environment.
But, you give up the graphic and animation tools from Flash, and
you give up a lot of the simplicity of HTML + Javascript.
You can combine them, of course. You could build a whizzy GUI
control in Flash to use in a Flex application which is hosted
inside a web page, for instance.

Similar Messages

  • Flash CS3 HTML/Javascript template files

    Has anyone heard of the javascript file that flash cs3
    produces causing .swfs to behave differently between browsers? It's
    happening to me and can't figure out why. If I use the basic of
    html to get the .swf to work, it behaves properly. When I use the
    CS3 HTML template chosen from publish settings, the file doesn't
    work properly in Internet Explorer but still works in Firefox and
    Safari. Anyone ever hear of problems with this code?

    Todd Bluewater;
    Hard to guess based on the information provided. Is
    index.html
    configured as a home page name on that particular server? Can
    you provide a
    url to check? -Tom Unger

  • Can I use Struts Validator Plugin's html:javascript tag?

    Hi:
    Is it possible to incorporate the client-side validation using Struts Validator
    Plugin's tag <html:javascript>?
    i.e.
    1) Insert the following tag to A.jsp and define a taglib:
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <html:javascript formName="aForm" staticJavascript="true"/>
    2) Define validation.xml as follows:
    <form-validation>
    <formset>
    <form name="aForm">
    <field property="aField"
    depends="required">
    <msg name="required" key="FieldMissingError"/>
    </field>
    </form>
    </formset>
    </form-validation>
    3) Insert the onSubmit event in aForm:
    <netui:form action="SubmitAForm" style="border-width:1px;" onSubmit="validateAForm(this)">

    Instead of writing something like this -
    <p class="logos">Logo1<a href="...></a></p>
    <p class="logos">Logo2<a href="...></a></p>
    <p class="logos">Logo3<a href="...></a></p>
    <p class="logos">Logo4<a href="...></a></p>
    <p class="logos">Logo5<a href="...></a></p>
    <p class="logos">Logo6<a href="...></a></p>
    Why not have something like this -
    <div id="logodiv">
    <p>Logo1<a href="...></a></p>
    <p>Logo2<a href="...></a></p>
    <p>Logo3<a href="...></a></p>
    <p>Logo4<a href="...></a></p>
    <p>Logo5<a href="...></a></p>
    <p>Logo6<a href="...></a></p>
    </div>
    with CSS like this -
    #logodiv p { ... }

  • Where do the Datavisualization files go when not using Flex Builder?

    My application has charting and I use the sdk and ant
    directly, not flex builder. I know where those files are under FB
    but where do I place the datavisualization swf, swc and swz files
    in the sdk in order to have charting without flex builder?
    Thanks!

    Hey lllaass,
    Thanks for your response.
    I basically got an email from a friend with a link to google drive, that link took me to drive n then there was a download bottom which popped when I clicked on the files icon, these are 3 audio files which are recorded on a computer n sent to me via drive..
    I too think it opened directly from drive.. Let me know though if u do come across some solution.
    Thanks

  • How to use Flex to obtain the HTML login data

    Hi,
    Before the user accesses our application, a login screen
    (HTML) has to be passed. I sthere a way for the Flex program to
    obtain the username that the user entered in the HTML login page?
    Thanks!

    When you call your SWF (flexapp.swf), you can give it some
    variables (flexapp.swf?user=username). In your FlexApp, you can
    read these variables (Application.application.parameters.user).
    I hope this will help.

  • Why use Flex over Flash 8

    I would like to know what makes Flex more useful than Flash
    8? Is Flex basically replacing the Flash SDK? I looked into Flex a
    little bit and it looks like it has an awesome integration of Flash
    and XML. I was also wondering if Flex integrates other development
    technologies with Flash, such as PHP.
    Currently I am working for a gaming company and would like to
    get Flex pretty soon.
    -Thanks in Advance :)
    Flash Development at
    Vectorflash.net

    i think it is not "more useful" but both got different
    strength.
    flash is for animation, presentation, interactive website
    & etc but flex is more to web application.

  • AIR apps developed using HTML+Javascript

    Hi…
    I am working on Adobe AIR.
    And now I have 3 options to develop AIR applications 1)Flex
    2) Flash 3) HTML+javascript.
    But can you please explain me when do I exactly use Flex Or
    HTML+JS Or Flash.
    One of the reason I know is Flex used for Rich UI
    applications
    Is there any list of requirements for which one of the 3
    option is most suitable to use.
    And I have some more questions.
    1) Can AIR applications(developed using HTML+Js) invoke a web
    service running on a different server
    2) Can AIR application(developed using HTML+Js) detect the
    connectivity of USB drive (I have developed 1 application that can
    detect the Network connectivity and periodically reports the status
    I want the same in case of USB(plug & play) connectivity)
    3) I have one AIR application that has one HTML form on click
    of button I am posting the form Data to Java Servlet using
    “air.sendToURL()” as shown
    <script src="AIRAliases.js" />
    <script>
    function sendURL()
    var url = "
    http://localhost:8080/InvokingServlet/Registration";
    var variables = new air.URLVariables();
    variables.username = document.f1.username.value;
    variables.password = document.f1.password.value;
    var request = new air.URLRequest(url);
    request.data = variables;
    air.sendToURL(request);
    alert("Data has been added to Remote DB...");
    </script>
    The data goes to Servlet and then Servlet thru Jdbc
    Connectivity adds the data to database “MySQL” database
    named “user”
    If I read the data from database and print in Servlet it
    displays that to “tomcat server window(log)” But 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. So even if
    I put the result into some Scope like session or request, but Can I
    read that it in HTML+Javascript page .
    [email protected]

    quote:
    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.

  • Using papervision in flash builder and getting TypeError: Error #1009: when using object.pitch(5)

    When i use papervision in flash builder and i am doing a test, when i render a sphere using papervision with the following code it renders me the sphere.
    When i add a line sphere.pitch(2);      ||
    sphere.yaw(2);
    sphere.roll(2);
    i get the following error,
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at PvTest/onRenderTick()[D:\Android 3D\PvTest\src\PvTest.as:39]
    Can anyone help me figure out the error
    For additional Info, these are the imports i am doing:
    import org.papervision3d.objects.primitives.Sphere;
    import org.papervision3d.view.BasicView;

    I followed the steps and read some of your comments on the same top topic in another thread. When I put it on the first frame it was okay but the next button on that page had the same problem.  So what I am guessing is that I have to either create a document class or put the actions where the buttons are.  Am I understanding that correctly?  In the other thread in which you helped someone else; there was so comments about document class.  I found a tutorial on it and the way I understand it is that it you can put you actions in an external document.  But you have to include in the event listener the frame in which you want that action to happen.
    Thaks for your help.  And patience.

  • Can any one tell me when i use adobe flash media encoder how can i see my live vidoes on flash media

    can any one tell me when i use adobe flash media encoder how can i see my live vidoes on flash media server . thnx

    Flash Player version 10.1.102.64 is the last version available to PPC Mac users. However, this Flash version won't work for many videos on Facebook, YouTube and other sites. Adobe's latest version, 10.2.x or later, is only for Intel Macs. Adobe will not provide a newer Flash version for PPC Macs.
    The message requesting that you download Adobe Flash Player takes you to Flash Player requiring an Intel processor. Doesn't work on a PowerPC processor. I found a hack, installed it & it works with Firefox, TenFourFox & Safari.
    Download this http://www.steelbin.com/FPforFBPPC.zip to your desktop, unzip it, and replace the current Flash Player plug-in which is in your main/Library/Internet Plug-Ins folder, (not the user Library). Save the old one just in case this one doesn't work.
    Hack Allows PowerPC Macs to Access Flash 11 Content
    http://lowendmac.com/ed/royal/12sr/flash-11-and-powerpc.html
     Cheers, Tom

  • Live video feed using Flex/Flash

    Hi,
    I have a question if someone doesn't mind giving me a "yes"
    or "no" answer, please.
    My developers have created a program for me that lets me
    broadcast my LIVE web cam feed right on my web site in real time so
    I can provide customer support and allow me to engage with web site
    visitors. We are using Flash, Flex, and Adobe AIR.
    The broadcast window size is 320 x 240 pixels. The problem is
    the frame rate. I am only able to broadcast between 5 - 9 frames
    per second whereas other people have been able to broadcast at
    around 14 FPS.
    Question: is it possible to use these applications
    (Flash/Flex/Adobe AIR) to stream live video at 320 X 240 at frame
    rates at least 24 or higher?
    Thanks in advance for an answer. I don't expect a solution.
    Just a yes or no from some experience(d) developer(s).
    All the best.
    Rodney

    Lucas,
    Here's what I do for multi-camera live shoots:
    1. Connect all cameras to a switcher/DVE (looped through preview monitors) - I use a Panasonic WJ-MX50 or Sony DFS-300 Since you have five cameras, you'll obviously need a switcher with more inputs, or gang two of the above together. You'll need a switcher capable of the signal output your cameras offer, ie: composite, Y/C, component, triax .. whatever.
    2a. Output of switcher goes to DVCam VTR.
    2b. Audio is fed through a mixer and output to the VTR.
    3. Firewire out from the VTR to the Mac/FCP.
    4. In FCP, choose "Non-Controllable Device" and use Capture Now.
    5. Use one of the analog outputs from the VTR to feed the projector(s) and the another analog output to a program monitor for the TD.
    I always run safety tapes in each camera while the VTR is recording a switched master tape in case there's a problem with the capture in FCP (it can happen).
    I also equip each cam-op with a 8" or 9" monitor, typically using the camera's composite output. And everyone is able to communicate using a Clear-Com system.
    In 5 years, doing several shows per year, the capture in FCP has only failed three times and all of those times were when I was using a laptop. Whenever I've used my old G4 tower, capturing to one of the internal drives, its worked flawlessly each time. Fortunately, having a Master DVCam tape saved the day. The camera safety tapes are used just in case of a bad switch by the TD (usually me).
    -DH
    PS I should add that if you're feeding multiple projectors, you'll need a simple DA.

  • Incorrect ADT version when compiling using updated AIR SDK in Flash Builder

    I was wondering if anyone else has come across adt version issues when compiling with Flash Builder.
    I just downloaded Flash Builder 4.7 (I had 4.6 installed previously).  I upgraded due to AIR SDK issues when trying to send my app to iOS.  I downloaded AIR 3.7 SDK and done the whole "overlay" described here http://helpx.adobe.com/flash-builder/kb/overlay-air-sdk-flash-builder.html but when trying to compile it Flash Builder, it states that version 3.7 is not only up to 3.1  I did a check of the adt that is being used (adt -version) and it returns back that it is version 3.1  This is the one contained within the sdks/4.6.0/lib folder.  If I copy the one from the AIRSDK folder and check the version on that 3.7 comes up correctly, but it needs files that are contained in the AIRSDK folder, so I'll need to copy more than just the adt.jar file.
    Really I'm just trying to see if anyone knows what I can change in Flash Builder to point to the AIRSDK folder instead of the sdks/4.6.0/lib folder so I'm not constantly updating my adt.jar file each time I install a new AIR SDK.

    OK, not the best solution (hopefully someone will be able to tell me where to update Flash Builder to point to the AIRSDK directory instead of {FB install dir}/sdks/4.6.0/lib, but until then, here's a work around.
    First make sure to backup your old aot and android directories in your {FB install dir}/sdks/4.6.0/lib and your original adt file (I just renamed them to fileOrDir_original)
    Then copy your adt.jar file, aot dir, android dir, and I copied legacy dir also to your {FB install dir}/sdks/4.6.0/lib
    You should now be able to compile using the 3.7 AIR SDK.  There's another fix for PIE in AIR 3.8, so I may be updating again soon to the labs build.  I'm hesitant to copy any more files over in case it stops my non-mobile AIR builds from working, but hopefully this will be good enough for mobile builds and for anyone else having this issue in Flash Builder.

  • How to use Flex mx.charts component in flash project?

    Can anyone enlighten me on how I can use the Flex mx.charts component in my Flash Project? I am using Flash Professional CS4
    Are there any tutourials on the subject.
    Thanks in advance.

    http://www.designscripting.com/2011/03/filtering-flex-chart-data-by-consuming-xml-data/
    http://www.roseindia.net/tutorial/flex/flex4/components/chartactionscript.html
    Or otherwise you can use the below link to use the fusioncharts components
    http://www.fusioncharts.com/

  • Flash Builder 4: "Flex 2 is not supported; use Flex 3.0.0 or higher "

    In our project we have to maintain an application developed in Flex 2, but we have licensed Flash Builder 4, which is now available for Adobe only. When we tried to configure Flash Builder 4 with Flex 2 SDK we get the following error: "Flex 2 is not supported; use Flex 3.0.0 or higher "
    What should we do to work with Flex 2 in Flash Builder 4?
    Thanks for the help

    In our project we have to maintain an application developed in Flex 2, but we have licensed Flash Builder 4, which is now available for Adobe only. When we tried to configure Flash Builder 4 with Flex 2 SDK we get the following error: "Flex 2 is not supported; use Flex 3.0.0 or higher "
    What should we do to work with Flex 2 in Flash Builder 4?
    Thanks for the help

  • When is Firefox metro going to come to 32 bit windows 8? and can improve flash and html 5 performance!

    When is Firefox metro going to come to 32 bit windows 8 and can you improve flash and html 5 performance it cant play 1080p videos smoothly I love Firefox but I'm using IE 10 for browsing and video, then Firefox for developing but want to use it for everything!

    This article might answer your Windows 8 questions:
    [[Does Firefox work on Windows 8 and Windows RT?]]
    Link: https://support.mozilla.org/kb/does-firefox-work-windows-8-and-windows-rt?
    As for performance issues in Firefox with Flash 1080p videos, Information about your graphics driver might help. See:
    *[[Use the Troubleshooting Information page to help fix Firefox issues]]
    This Adobe page might also be helpful (it recommends disabling hardware acceleration in Flash settings as a possible workaround):
    *http://helpx.adobe.com/flash-player/kb/video-playback-issues.html#main_Solve_video_playback_issues

  • Can't see any text members when I use flash 8.

    I'm using flash 8 and some of my users are having trouble
    seeing my site because they can't see any of the text!!! In some
    computers it works ok but some users can't see any text member even
    if they upgrade the flash player to 8 version. How do I correct
    this!
    I had had problems with this when I ran a swf directly, I
    couldn't see any text; but when I put the swf into a html file I
    can see the text members that the web page has. Why is this
    happening!!! This did'nt happend with version mx. How can I correct
    this problem!
    Please help!
    Thanks a lot!
    Brenda Sanchez.

    just because people say they have flash 8 doesn't mean they
    actually have flash 8 have any of them navigated to a flash player
    detection site and confirmed they have flash 8? have any of them
    right clicked on an embedded swf and confirmed they have flash
    8?

Maybe you are looking for