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 6985377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:40:20+00:00 2026-05-27T18:40:20+00:00

Lets say i have a html file that contain a form: <form method=post action=url>

  • 0

Lets say i have a html file that contain a form:

<form method="post" action="url">
    <input type="text" id="fullname" />
    <input type="text" id="bodyText" />
    <input type="submit">
</form>

we have load this html file using HTMLLoader inside an swf file.

_htmlLoader = new HTMLLoader();
_htmlLoader.paintsDefaultBackground = false;
var req:URLRequest = new URLRequest(urlValue);
_htmlLoader.load(req);
_stage.addChild(_htmlLoader);

After loading this Swf file using Loader inside main application, text boxes are readonly and can’t type in it.
But we can change focus of them using Mouse.

var loader1:Loader = new Loader();
loader1.load(new URLRequest("path to file.swf"));
// ...
this.addChild(loader1);
// ...

What is the problem?

  • 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-27T18:40:21+00:00Added an answer on May 27, 2026 at 6:40 pm

    Is the HTMLLoader being attached after the Event.COMPLETE event has been fired? It may even be worth waiting for the HTMLLoader’s document to fire a DOMReady event before attaching it the stage.

    Try something like this:

    _htmlLoader = new HTMLLoader();
    _htmlLoader.paintsDefaultBackground = false;
    var urlRequest:URLRequest = new URLRequest(urlRequest);
    _htmlLoader.addEventListener(Event.COMPLETE, completeHandler);
    _htmlLoader.load(urlRequest);
    
    function completeHandler(event:Event):void { _htmlLoader.window.document.addEventListener("DOMContentLoaded", readyHandler); }
    
    function readyHandler(event:Event):void { _stage.addChild(_htmlLoader); }
    

    The Flex documentation about handling HTML events mentions this:

    When a listener refers to a specific DOM element, it is good practice
    to wait for the parent HTMLLoader to dispatch the complete event
    before adding the event listeners. HTML pages often load multiple
    files and the HTML DOM is not fully built until all the files are
    loaded and parsed. The HTMLLoader dispatches the complete event when
    all elements have been created.

    It might be possible that the HTMLLoader is being attached the stage before the document is actually ready, which may explain some of the weirdness.

    If you have any more information that would be an awesome help…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

lets say that we are studding a url string: http:/domain.com/en/#the-file.html/section-4 where i have codified:
Lets say I have a view file that is built like this: <html> ...
Let's say I have an html form. Each input/select/textarea will have a corresponding <label>
I have a php file that show the friends requests, lets say there are
Let's say I'm including a file which contains html. The html have characters as
Let's say I have a string holding a mess of text and (x)HTML tags.
Let's say I have a large HTML file with different kinds of tags, similar
Let's say i have 2 files located in the same folder. /Test/View.cshtml <h1>File that
Let's say I have an index.js.erb file that gets called remotely. How would I
Well lets say I have this follow code in my htaccess file, Options +FollowSymlinks

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.