Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 716721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:19:53+00:00 2026-05-14T05:19:53+00:00

So we have three FLEX controls hosted within a JBOSS server instance, and an

  • 0

So we have three FLEX controls hosted within a JBOSS server instance, and an IIS (MVC) application which has pages that have the object (and embed) tags to render the controls. We are wanting to setup HTTP basic authentication on the jboss server which is hosting other services (Solr, some custom webservices, and tika) and have figured out how to pass the credentials.

How can you send those basic http authentication credentials to a flex control in object/embed tags??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T05:19:53+00:00Added an answer on May 14, 2026 at 5:19 am

    Be fully aware that this option is very insecure as simply viewing the HTML source will reveal the user’s credentials.

    First Step

    If what you want is to pass credentials (demouser/demouser) to the Flash control declared inside object/embed tags during development you can modify the noscript section and several other places where you pass in flash vars using JavaScript in the html-template/index.template.html file inside your Flex builder project –

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                id="${application}" width="${width}" height="${height}"
                codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
                <param name="movie" value="${swf}.swf" />
                <param name="quality" value="high" />
                <param name="bgcolor" value="${bgcolor}" />
                <param name="allowScriptAccess" value="sameDomain" />
                <param name="http_user" value="demouser" />
                        <param name="http_password" value="demouser" />
                <embed src="${swf}.swf" quality="high" bgcolor="${bgcolor}"
                    width="${width}" height="${height}" name="${application}" align="middle"
                    play="true"
                    loop="false"
                    quality="high"
                    allowScriptAccess="sameDomain"
                    type="application/x-shockwave-flash"
                    flashVars="http_user=demouser&http_password=demouser"
                    pluginspage="http://www.adobe.com/go/getflashplayer">
                </embed>
        </object>
    

    When deploying you would need to wrap the generated HTML wrapper file (usually in your bin-debug/ folder in a JSP page and use scriptlets or JSTL tags to write out the credentials on a per user basis). So for instance,

    flashVars="http_user=demouser&http_password=demouser"
    

    would become

    flashVars="http_user=<%=username%>&http_password=<%=password%>"
    

    Second Step

    In your Flex code, retrieve the username and password via:

    import mx.core.Application;
    
    var username:String = Application.application.parameters["http_user"];
    var password:String = Application.application.parameters["http_password"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Flex application with three different views. Only one view is shown
i have three java based web application app1,app2 and app3 at production. All 3
I have three divs, within a content div. Container width 70%. Within that I
In a Flex application, I'm have an xml object that I'm binding to a
I have created a Flex project in Flash Builder 4.5. Next I added fl.controls
I have a requirement on my current project (a Flex app which will be
I have built a Flex application that composes image resources, color layers, blurs etc
In my Flex application, I have a TextInput box that a user may enter
I am developing an application which contains controls like tree,grid and chart. I personally
I have a Flex application where I'm using a Canvas to contain several other

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.