Thanks Doug! This works:

public function doNavigate( ) : void 
{
navigateToURL(new URLRequest
("http://www.acerpanam.com/synapse/data/7117/documents/"+drivergrid.se
lectedItem.uploadedfile));
}

I really appreciate the help.

Don 







--- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]> 
wrote:
>
> 
> I would do this in a function rather than in mxml.
> 
>      function doNavigate( ) : void {
>          navigateToURL(new
> URLRequest("http://www.mydomain.com/synapse/data/7117/documents/"; +
> drivergrid.selectedItem.uploadedfile, "Download"));
>      }
> 
> ...
> 
> <mx:LinkButton label="Download" click="doNavigate()" ... />
> 
> 
> --- In flexcoders@yahoogroups.com, "nasawebguy" <dkerr@> wrote:
> >
> >
> > I have a linkbutton called Download
> > The downloaded filename is in a datagrid column called 
uploadedfile.
> > This uploaded filename varies, but the path stays the same
> > www.mydomain.com/synapse/data/7117/documents/#uploadedfile#
> >
> > When the user selects a row in drivergrid, the driver details 
appear
> > below the grid with a Download linkbutton.
> >
> > When the user clicks the download button, I want the driver file 
to
> > begin to download.
> >
> > I don't know how to write the url below so that it binds the
> > uploadedfile to the end of the url.
> >
> > This doesn't work.
> >
> > <mx:LinkButton label="Download" click="navigateToURL(new 
URLRequest
> > ('http://www.mydomain.com/synapse/data/7117/documents/
> > {drivergrid.selectedItem.uploadedfile}'), 'Download')"/>
> >
> > Will anyone help with the correct syntax?
> > Also, how would you do a url parameter in a similar way?
> >
> > Thanks,
> > Don
> >
>


Reply via email to