How to put a image url to a text field in flex

I am facing problem when getting
a image  url  with the help
of    FileReference ..  Actuallly  i want to display the  image url to a text field after browsing the image location when I press
a button............. my code is given below
private function getImageUrl():void {
               private var fileRef:FileReference = new FileReference();
               fileRef.browse();
Any one can help me to solve the problem

Hi,
If you use file reference with an AIR app you have access to the file path, with a browser based app security prevents you from having access to the file path you can access the name of the file only.
this is an example of grab a list of files(images) using filereferencelist and filereference and displaying the image in a list, its a similar process for just getting a list of file names
http://gumbo.flashhub.net/pagedrop/  sourcecode enabled (right click in the browser and select view source)
for filereference  the name property will return the file name only not the path
for filereferencelist you have the .filelist[X].name to get the file name.
hope this helps
David

Similar Messages

  • Any one know how to put an image in a textarea?

    Any one know how to put an image in a textarea?

    yes, it is post on the forum, did you search?

  • How I put photos / images at facebook page? The files do not open.

    How I put photos / images at facebook page? The files do not open.

    The crash happens on setting up the audio hardware. Either you have a broken driver or your preferences is damaged. You can try deleting the MainStage preferences.

  • How to put an image in the popup help of a page item?

    I am using APEX 2.2. I want to put an image in the help text of a page input item.
    This is the help text:
    Some help text....
    <p><img src="&APP_IMAGES.auto_lov.jpg" /></p>This is rendered as:
    <p><img src="wwv_flow_file_mgr.get_file?p_security_group_id=0&p_flow_id=103&p_fname=auto_lov.jpg" /></p>As you can see, the application id is not returned.
    If I put exactly the same text in a html region, the image is correctly displayed:
    <p><img src="wwv_flow_file_mgr.get_file?p_security_group_id=844129086577364&p_flow_id=103&p_fname=auto_lov.jpg" />So, is it possible at all to put in image in the popup help text of a page item?

    I solved it by putting the jpg file in an images directory on the web server instead of in the database. Not really what I want, but it works.
    <p><img src="&IMAGE_PREFIX./apps/auto_lov.jpg" /></p>

  • How to convert a image layer to a text layer any idea? a image looks like a text in layers box

    How to convert a image layer to a text layer any idea? a image looks like a text in layers box

    You can't convert an image into a text layer.  What you can do is clip an image to a text layer so that just the image layer shows up where there is text.  Create a text layer, then above it put your image layer.  Hold down the alt/opt key and click between the two layers to clip them.

  • How to convert from image based pdf to text based pdf

    I have Adobe 9 Pro. How to convert from image based pdf to text based pdf? For example, if someone emails a scanned pdf to me, how do I convert that document into a text based pdf?

    To perform OCR, open the document and select: Document > OCR Text Recognition > Recognize Text Using OCR
    More information on the various options is in the Acrobat help doc.

  • How does APEX check for null values in Text Fields on the forms?

    Hello all,
    How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
    I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
    All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
    Declare
    v_valid boolean;
    Begin
    IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := FALSE;
    ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := FALSE;
    END IF;
    return v_valid;
    END;
    My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
    Thanks

    See SQL report for LIKE SEARCH I have just explained how Select list return value works..
    Cheers,
    Hari

  • How can I limit numeric codes in a text field?

    How can I limit numeric codes in a text field? For example I want to list Industry SIC codes and I want to block someone from inputting an exlcuded industry code.

    We don't offer that type of input restriction for a text field. 
    Can you create a list of all allowed codes and use a Drop Down menu or Single/multiple Choice field? 
    Thanks,
    Josh

  • How do I auto populate the date into text fields when form is first opened?

    Hello,
    I read all about the changing the scripts but its not really working for me. I was hoping someone could help me with directions on how to auto populate the date into designated text fields when my adobe document is first opened?
    I am working in Adobe Acrobat 9.
    Thank you,
    Sheri

    When you add a new document JavaScript (Advanced > Document Processing > Document JavaScripts > Script Name (enter something) > Add), you will be given a function skeleton by default. Just delete it and enter the line of code I showed above. Now, whenever the document is opened, the code will get triggered and the field will be updated with the current date. There is no "Document Open" action (at least that's accessible via Acrobat's UI), but this is effectively the same thing since any document-level JavaScripts are executed when the document is opened.

  • I don't know how to put an image instead of colours for background

    I am usin awt and I want to put an image from my HD as background instead typical colours. How can I do this?

    Ah. This one is mine. You can try making a Frame anonymus class and overriding paint(). Do you know how to get your picture?
    {=^)                                                                                                                                                                                                                                                                           

  • How to put an image in Webdynpro

    HI,
    I want to piut a logo in Webdynpro view.I have put the image(logo) in proper place.But I am not able to fetch the data from that folder in to my WD view.
    pLease suggest
    Regards
    -Sandip

    Hi Sandip,
    You want to embed a TextView UI element and an Image UI element in a Group UI element, kindly have a look :-
    http://help.sap.com/saphelp_nw70/helpdata/EN/5d/1d353ed106ec2ce10000000a114084/frameset.htm
    URL Generation Service :-
    http://help.sap.com/saphelp_nw70/helpdata/EN/9e/a073001903c9419592b14c2aa63669/frameset.htm
    Hope this is useful.
    Regards,
    Anagha

  • How to extract all images url just by specifying a url of a website?

    Hello
    i wanted to know if there is any add-on available or any other trick where i can EXTRACT/COPY all "Images url" just by specifying a website?
    For example:
    Consider this website:http://freeprintable-cards.com/free-printable-birthday-cards/
    Now is there any "Add-on" or any other way where i just paste the url of above website(say in the text box) & it automatically copies all images url at once simply by specifying "only" the website name..
    Thanks

    Addon ''save images 1.0.3'' https://addons.mozilla.org/firefox/addon/save-images may do something similar.
    See also my answer to your question
    * ''How to copy url of all images present in a tab?'' [/questions/1015761#answer-616667]
    Many other addons are available.

  • How to put an image infront of a link as in the Oracle E-Business Suite

    I have noticed that when the main page opens in the EBS after login, the links that we see has a small square icon infront of it.
    Can anyone let me know whats the name of this image and how to put it infront of the links on my main page.
    Regards

    Hi Gaurav,
    I have just found out that in the E-business suite, when you click a link with the icon as fwkhp_formsfunc.gif then it opens up Oracle Forms based interfaces, whereas when you click on a link with fwkhp_sswafunc.gif as an icon, then OAF based pages opens up.
    Just thought of sharing with you.
    Regards

  • How to put an Image as a background of Portal

    Hi All,
    I was exploring of possibility of how to include an image as background of portal. I want to see in backdrop ,instead of default portal them ,an image as background.
    Thanks
    Srikant

    Hi Srikant,
    This url will help you in creating a new portal theme and assigning them to your application.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/help/sdn_nw04/saphelp_nw04/helpdata/en/1a/d7c1617dd29e4d85064b467636fada/content.htm
    Best Regards,
    Nibu.
    (Please close your queries if you get your problem solved).

  • How to reference background image url from css?

    Hello,
    I have uploaded some images and css files to the "Shared Components > Images".
    How can I reference my images as "background-image:url('XXX.gif')" for a css element?
    Thanks,
    John

    To make what Tyler said explicit: APEX doesn't perform recursive (or indeed any) substitution on static files, Re: Use uploaded images in uploaded CSS, so images in static files can't be referenced using #APPLICATION_IMAGES# or #WORKSPACE_IMAGES# in style sheets that are themselves static files. The Re: Help with STATIC HTML file reference another STATIC HTML/CSS file..

Maybe you are looking for

  • Limitation on Client VPN for RV220W?

    Is there a limitation on using the Client VPN to connect to the RV220W from the same location (site)? Here's what happened: One of our RV220W's went down and we UPS'd it back to Cisco for replacement; so that was the end of our site-to-site connectio

  • PO good receipt amt local currency is difference

    Dear Experts, We have 1 PO with USD currency and GR (qty = 1) was posted to local currency. However, the gr qty (1qty) was posted wrongly. We're using the mvt 122 for return delivery with qty 0.900. Then, we cancel the matl. document (mvt 122) using

  • Purchase Requisition Document Upload Though Web Service

    Hi! I really hope someone can help me with this one. My client creates purchase requisitions from an external system that interfaces into SAP. In SAP there is functionality to attach documents to a purchase req by choosing "Services for object". Howe

  • Brand-new PS3 is unbearably slow online!

    Hi guys, So, I took the plunge on Black Friday and managed to get myself a great deal on a PlayStation 3 via a promotion held by Amazon. The system arrived today, and I couldn't wait to get home and start playing with it! To make a long story (somewh

  • Importing flash

    does anyone know if sun java can import flash into it? if can, how is the coding like? thanks