Flash as a UI: Integration with HDP Applications

AID: 4123
  • Status: Published

2420 points

  • Bygbanik
  • TypeGeneral
  • Posted on2010-11-15 at 16:27:48
Awards
  • Community Pick
Flash has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with the great filters, makes it ideal for User Interface development.

On the other hand, languages like C#, VB, VB6 and Java are very strong from a programming point of view.  Memory handling, disk and shell interaction, interaction with the OS and now more recently web services are better handled by heavy-duty developer platforms (HDP).  But the HDP have typically lacked a pretty graphical UI.  A complex user interface does not have to NOT look chic.

The midway -- a combination of using Flash UI for a HDP app -- has a lot of potential in store.  A probable contender is Adobe AIR, but it would lose out owing to the fact that legacy applications are still on the HDP (the developers lobby!). Also, AIR may be (at least initially) viewed as, not sturdy enough for HD applications. Let's look at the "Flash UI for a HDP app" approach.

Below, I am posting a liunk to a sample application of the flash Dial component used from within a C# app. During this exercise, I have learned a few good things. Flash can easily be used as a frontend for a traditional application written in .NET or Java.

The problem has always been the interaction of the HDP with Flash. The common (unwilling crime) has been taking the "SetVariable" route.  Here, we update a variable from outside Flash and wait for it to detect the change asynchronously. The "ChangeVariable" event is fired and all the processing is done within Flash without an active feedback back to the HDP app. This seems more of a HACK rather than a solution.

1Async.gif
  • 21 KB
  • ASYNC
ASYNC

Long awaited, there is now a mechanism to run an operation synchronously from a HDP app to Flash and back.  It is done through "ExternalInterface" and can be smoothly called from HDP as well as JavaScript.

2Sync1.gif
  • 19 KB
  • SYNC1
SYNC1

- or -
3Sync2.gif
  • 20 KB
  • SYNC2
SYNC2

Here is an example project:
      DialCode.ZIP
that has been created to demonstrate the above in .NET using an earlier created Flash component. Google out "ExternalInterface Flash Samples" for links that will help you in understanding the concepts.

4Dial.NET.png
  • 90 KB
  • Dial (Gauge) component
Dial (Gauge) component


Another big advantage of using a Flash UI is that it is usable both in desktop applications as well as web apps.  You develop a single UI... and it is deployable both on desktop and web; it looks and interacts exactly the same way.  Sometime back, I came across a paper (PDF report) done around this area (* link updated below) that talks about Flash as a frontend.  Go ahead, indulge... You can even afford to keep f-in-box aside and start on your own!

To sum up, Flash needs to be seriously tried as a front-end for complex, enterprise "user interaction intensive" applications like ERP, industrial automation, simulation, etc. I foresee frameworks, interface layers and design templates in the Open Source being developed to support and enhance such initiatives. A Flash UI could give a product company that small winning oomph over competition.

Here is the PDF file: Macromedia Flash and VB: A Potent Combination that I mentioned above.

This article was published previously in my blog:
   http://baniks.com/blog/2010/02/flash-as-ui-for-hdp-applications.html
    Asked On
    2010-11-15 at 16:27:48ID4123
    Tags

    .NET

    ,

    C#

    ,

    FLASH

    ,

    INTEGRATION

    ,

    UI

    ,

    CS3

    Topic

    .NET

    Views
    1288

    Comments

    Add your Comment

    Please Sign up or Log in to comment on this article.

    Join Experts Exchange Today

    Gain Access to all our Tech Resources

    Get personalized answers

    Ask unlimited questions

    Access Proven Solutions

    Search 3.2 million solutions

    Read In-Depth How-To Guides

    1000+ articles, demos, & tips

    Watch Step by Step Tutorials

    Learn direct from top tech pros

    And Much More!

    Your complete tech resource

    See Plans and Pricing

    30-day free trial. Register in 60 seconds.

    Loading Advertisement...

    Top .NET Programming Experts

    1. CodeCruiser

      588,856

      Sage

      6,000 points yesterday

      Profile
      Rank: Genius
    2. kaufmed

      377,702

      Wizard

      10 points yesterday

      Profile
      Rank: Genius
    3. BuggyCoder

      268,007

      Guru

      1,600 points yesterday

      Profile
      Rank: Sage
    4. TheLearnedOne

      232,552

      Guru

      4,900 points yesterday

      Profile
      Rank: Savant
    5. Idle_Mind

      193,005

      Guru

      0 points yesterday

      Profile
      Rank: Savant
    6. JamesBurger

      156,812

      Guru

      2,000 points yesterday

      Profile
      Rank: Sage
    7. wdosanjos

      124,308

      Master

      2,000 points yesterday

      Profile
      Rank: Genius
    8. Dhaest

      115,720

      Master

      0 points yesterday

      Profile
      Rank: Genius
    9. sedgwick

      112,918

      Master

      1,600 points yesterday

      Profile
      Rank: Genius
    10. nepaluz

      101,325

      Master

      0 points yesterday

      Profile
      Rank: Sage
    11. MlandaT

      95,921

      Master

      2,100 points yesterday

      Profile
      Rank: Genius
    12. navneethegde

      74,442

      Master

      0 points yesterday

      Profile
      Rank: Wizard
    13. Masteraco

      70,367

      Master

      0 points yesterday

      Profile
      Rank: Wizard
    14. binaryevo

      70,365

      Master

      0 points yesterday

      Profile
      Rank: Guru
    15. ambience

      69,104

      Master

      0 points yesterday

      Profile
      Rank: Sage
    16. emoreau

      68,230

      Master

      0 points yesterday

      Profile
      Rank: Genius
    17. PaulHews

      49,486

      0 points yesterday

      Profile
      Rank: Genius
    18. AndyAinscow

      45,290

      0 points yesterday

      Profile
      Rank: Genius
    19. Chinmay_Patel

      43,411

      0 points yesterday

      Profile
      Rank: Genius
    20. ged325

      41,700

      2,600 points yesterday

      Profile
      Rank: Genius
    21. RolandDeschain

      41,317

      0 points yesterday

      Profile
      Rank: Sage
    22. nishantcomp2512

      39,486

      0 points yesterday

      Profile
      Rank: Wizard
    23. tommyBoy

      36,550

      0 points yesterday

      Profile
      Rank: Genius
    24. mroonal

      35,000

      0 points yesterday

      Profile
      Rank: Sage
    25. santhimurthyd

      34,650

      0 points yesterday

      Profile
      Rank: Wizard

    Hall Of Fame