hi, i have a little problem, what i want to do is set the visible
propertie to true only if there is a video file (flv) in my xml but
since there has to be a video tag in the xml even if there is no
video, my code always sets the videoD visible propertie to true
//******AS CODE
...
private function onDGCV( event:Event ):void
{
if( datagrid.selectedItem.video) videoD.source =
datagrid.selectedItem.video;
videoD.visible=true;
}
//******MXML
Datagrid
...
change="onDGCV(event)"
//***XML File
..
<catalog>
<book>
<name>Abdo Alberto.</name>
<desc><![CDATA[Médico Cirujano. <font size="10">DACS</font>]]></desc>
<video>VIDEOS/lema.flv</video>
</book>
<book>
<name>Abdo José.</name>
<desc><![CDATA[Médico Cirujano. <font size="10">DACEA</font>]]
></desc>
<video></video>
</book>
</catalog>
...
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/