473,700 Members | 3,078 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AIR error 2006 after loading <mx:HTML>

39 New Member
I am new in AIR/Flex. I have created a browser using <mx:HTML>. During the loading, I am getting the following error:

RangeError: Error #2006: The supplied index is out of bounds.
at flash.display:: DisplayObjectCo ntainer/getChildAt()
at mx.core::Contai ner/getChildAt()
at mx.containers.u tilityClasses:: BoxLayout/updateDisplayLi st()
at mx.containers:: Box/updateDisplayLi st()
at mx.core::UIComp onent/validateDisplay List()
at mx.core::Contai ner/validateDisplay List()
at mx.managers::La youtManager/validateDisplay List()
at mx.managers::La youtManager/doPhasedInstant iation()
at Function/http://adobe.com/AS3/2006/builtin::apply( )
at mx.core::UIComp onent/callLaterDispat cher2()
at mx.core::UIComp onent/callLaterDispat cher()


I did not creating or adding or removing any child from my mxml file. My code snippet of mxml file is:

Expand|Select|Wrap|Line Numbers
  1.  
  2. ..........
  3.             public function set jumpToUrl(value:String):void
  4.             {
  5.                 _jumpToUrl = value;
  6.  
  7.                 if (value != "" && value != null)
  8.                 {
  9.                     txtLocation.text = value;
  10.                     launchURL();
  11.                 }
  12.             }
  13.  
  14.             private function launchURL():void
  15.             {                
  16.                 htmlBrowser.location = txtLocation.text;        
  17.             }
  18.  
  19. .........
  20. .........
  21.         <controls:TextInputOnScreen id="txtLocation"
  22.                                     height="100%"
  23.                                     styleName="urlBox"
  24.                                     width="100%"
  25.                                     click="_modifyLocation(event)"
  26.                                     editable="false">
  27.             <controls:filters>
  28.                 <mx:DropShadowFilter alpha="0.5"
  29.                                      inner="true" />
  30.             </controls:filters>
  31. <mx:HTML id="htmlBrowser"
  32.              height="{this.height - 50}"
  33.              width="{this.width}"
  34.              x="0"
  35.              y="50"/>
  36.  
  37. ................
  38.  
  39.              />
I would be glad if anyone help me about this issue.
Feb 12 '10 #1
0 1394

Sign in to post your reply or Sign up for a free account.

Similar topics

4
4561
by: Christopher Finke | last post by:
I have a site wherein the clients can update the individual pages by editing the text of that page in a <textarea>. Then, when the page is displayed, all of the newlines (\n) are converted to HTML line breaks (<br />). However, I have come across some instances where I do not want to convert the newlines, such as the following: <table> <tr> .... </tr>
3
3595
by: NotGiven | last post by:
I have a form that inserts records in a database. When I display records, the paragraphs don't show up. I am using dreamweaver MX, PHP, and MySQL.
1
2209
by: Michael R Seefelt | last post by:
I have written a simple C-program that loads a Python Function that connects to a PostgreSQL database> When I only load and execute the Python function all works OK. If I call the Python function a second time I get the following: Called PyObject_CallObject Traceback (most recent call last): File "/home/mike/src/arthur/query_server/query_analyzer/Query_Analyzer.py", line 25, in processQuery from pyPgSQL import PgSQL File...
4
5101
by: Bruce W...1 | last post by:
IE 6 supports the DOM for the most part. Am I missing something or is this absent from Visual Studio 2003? Does Web Matrix have it? You see, I'm trying to get Visual Studio and Dreamweaver MX to play together nicely. And with html tables they do. So I thought I'd try some layers instead of tables. I created some layers in Dreamweaver then in VS put in some ASP.NET hyperlink, but then Dreamweaver wouln't let me edit the layer...
7
6377
by: TLM | last post by:
I am trying to build a web application that will contain links to files on a users local computer. I am assuming that the files will be in a known location and can display in a browser window. I have my ASP.NET application building links along the lines of file://c:/<path to file>
34
18253
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow "127.0.0.1". 4. Authentication: "Anonymous access" only. 5. Outbound connection listen to TCP 25. Besides,
6
4885
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still submits the form. Also I can't get it to transfer the file in the upload section. The file name...
37
4186
by: Jan Wagner | last post by:
Hi, can't figure this one out, what's the CSS way to specify the language? In HTML it would be simply an lang="xx" attribute, or XHTML xml:lang="xx", but, how about in CSS? This would be required for a screen reader (text to speech) for accessibility, to help the reader software use the correct presentation method (e.g. correct language module).
22
28308
by: Ubi | last post by:
I am looking for a list of countries and nationalities, against the top level domain. es: ..ar ==Argentina ==Argentinian ..al ==Albania ==Albanian etc. etc.
5
13364
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL http://mghospedagem.com/images/controlpanel.jpg instead of http://mghospedagem.comhttp://mghospedagem.com/images/controlpanel.jpg As u see, there's the website URL before the image URL.
0
8712
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8639
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9058
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8911
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7794
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6555
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5895
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4395
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2375
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.