Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

First time flexer long time flasher

Avatar

Level 1
Hi im having a bit of trouble getting an xml file that uses
namespaces parsed into my first flex app, the basic structure of
the xml is as follows::

<rss version='2.0' xmlns:IJKGD='
http://www.betadesigns.co.uk/RSS/'>

--------other stufff-------------contianer etc-----

<item>

<title>a title</title>

<description>a description</description>

<IJKGD:grammar>

<IJKGD:grammarID>1</IJKGD:grammar>

</IJKGD:grammar>

</item>



i can get the first two tags into the app ie title and
description however i cant get the< IJKGD:grammar> tag to
display this is the code i have attached to a text box



<mx:TextArea x="20" y="235" width="400"
htmlText="{dgGrammar.selectedItem.IJKGD:grammar.IJKGD:grammarID}"
/>



however this throws up an error:: unfortunately it displays
some characters in chinese dont know why.



Severity Description Resource In Folder Location Creation
Time Id

2 1084: 应该有 rightparen (在 colon
之前)。 IJKGD.mxml IJKGD line 17
2006年8月6日 0:35:54 59



Any help would be much appreciated thanks in advance

1 Reply

Avatar

Level 3
Hi,



I think you have to create a namespace to access that
property

something like

var ns:Namespace = new Namespace("IJKGD", "
http://www.betadesigns.co.uk/RSS");

...



htmlText.selectedItem="{dgGrammer.selectedItem.ns::grammer.grammerID}"



William Chan