flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trevor Holman <tre...@cqproducts.com>
Subject Re: nativePath
Date Wed, 24 Sep 2014 11:40:31 GMT
the url worked perfect, thanks.



On Sep 23, 2014, at 5:42 PM, Subscriptions <subscriptions@leeburrows.com> wrote:

> if event.target.selectedItem is a File object, try event.target.selectedItem.url instead
> 
> On 23/09/2014 22:52, Justin Ransom Dallas wrote:
>> Are you sure you aren't dealing with a null event.target or selectedItem
>> 
>> On Tuesday, September 23, 2014, Trevor Holman <trevor@cqproducts.com> wrote:
>> 
>>> image.source = event.target.selectedItem.nativePath;
>>> 
>>> 
>>> I’m trying to grab the path of an image file to show a preview when a
>>> given file is selected from a file tree directory. However I’m getting a
>>> broken image symbol. This is a learning exercise for me so it’s hard for me
>>> to tell if the material I’m pulling this from is too outdated or not.
>>> 
>>> I’ve taken that same image and put it in a asset folder within my
>>> application just to make sure it will show up (which it does when I embed
>>> it). So I’m assuming my file path is not complete from the code above.
>>> 
>>> Trevor
>> 
>> 
> 
> -- 
> Lee Burrows
> ActionScripter
> 


Mime
View raw message