URLRequest / NavigatoURL control

I have an advanced data grid that is being loaded from an XML file.  I also have a panel which loads an image also from the XML file based on the selected item on the grid.  They would like to be able to either double click the image or have a link such that when clicked a full size PDF will open of the drawing. If I use NavigatoURL with the PDF path hard coded this works, but it does me no good as I need this to be loaded from the xml file as well.

Using navigatoURL ({datagrtid.selecteditem.linkurl}) = does not appear to work. Is there some way to make this work?

Thanks
interstateSystems AdministratorAsked:
Who is Participating?
 
danyul_cConnect With a Mentor Commented:
try:
var urlRequest:URLRequest = new URLRequest(datagrid.selectedItem.linkurl);
navigateToURL(urlRequest);

Open in new window

0
 
interstateSystems AdministratorAuthor Commented:
I took your suggestion and did this right on the object itself and it worked!!!!

doubleClick="navigateToURL(new URLRequest(intbaseboardsDatagrid0.selectedItem.url),'_blank')"

Life is good

Thanks
0
All Courses

From novice to tech pro — start learning today.