Re: TypeError: Error #1088: The markup in the document following the root element must be well-formed.

2020-04-28 Thread Alex Harui
I’m not sure what the example is supposed to produce, but I got two MenuBar entries if the XMLList looked like this: And yes, there is a caught exception, but

Re: TypeError: Error #1088: The markup in the document following the root element must be well-formed.

2020-04-28 Thread Greg Dove
You might see this sort of error during first use of XML in some browsers via the debug console. Royale's XML class uses some native parsing support in the browser, but because different browsers report parsing errors in different ways, an initial parsing test is done with a known error to prepare

TypeError: Error #1088: The markup in the document following the root element must be well-formed.

2020-04-28 Thread serkan
This error is thrown in only debugger not in console. But this exception does not prevent the menu to be constructed. I discovered that it is because of the inline xml which has no root element. When i add root element the exception goes away. But this time the menu is not constructed. So I

Assistance Needed: DataContainer alignments

2020-04-28 Thread Brian Raymes
Hello all, How does one manipulate the padding, margins and gaps of a DataContainer with the HorizontalFlowLayout? I would like to be able to use the DataContainer with flow layout without the inherited margin (green). Honestly, I'm a bit confused as to why it exists in the first place for all

Re: Emulation question : mx.controls.Menu and mx.controls.listClasses.ListBase

2020-04-28 Thread serkan
Created case #815 Thanks Serkan 28.04.2020 19:34 tarihinde Alex Harui yazdı: In theory, the various list classes have moved away from assuming an Array to working with Collections.  Pretty sure MenuBar is handling XML correctly, but it uses

Re: Emulation question : mx.controls.Menu and mx.controls.listClasses.ListBase

2020-04-28 Thread Alex Harui
In theory, the various list classes have moved away from assuming an Array to working with Collections. Pretty sure MenuBar is handling XML correctly, but it uses Basic Menus underneath. I expect that similar changes need to be made for mx:Menu. You might be able to tell from the MenuBar or C

Re: XML construction from resource throws exception : TypeError: Cannot read property 'setAttribute' of undefined

2020-04-28 Thread serkan
Hi Greg, I tested the XMLList version it looks like can work after the issues with menu resolved. I can access the index : this.filterMenuData[1] and so. If it is planned to support the same approach as flex I may create and issue. If not than I can use XMLLlist Thanks, Serkan 28.04.202

Emulation question : mx.controls.Menu and mx.controls.listClasses.ListBase

2020-04-28 Thread serkan
Hi Alex, I need the Menu class to be constructed with xml (which has some issues and followed by another thread). I checked the class and I can see that some methods are not complete like show, looks like not emulated yet. it is extending the class ListBase which is somehow not completely co

Re: XML construction from resource throws exception : TypeError: Cannot read property 'setAttribute' of undefined

2020-04-28 Thread Greg Dove
Hi Serkan, If it's the same as Flex, then please log an issue with that same example code (if you can swap all the resourceManager requests to plain strings, it will be easier for us to use it when investigating/fixing the issue) I am not sure yet why that would be valid in Flex, unless it is treat

Re: XML construction from resource throws exception : TypeError: Cannot read property 'setAttribute' of undefined

2020-04-28 Thread serkan
Hi Greg, It is just same as as in flex. Do you advise me to convert to XMLList ? Thanks, Serkan 28.04.2020 08:56 tarihinde Greg Dove yazdı: if it is XML, then it index [1] should not work. Only index [0] is valid for an XML instance; when you access [0] on an XML instance it returns the sa