Question to browse FileReference

Hello

I need the user to select the image using the Browse dialog box.

My problem is: dialog box browse Simulator is always empty, no top file...

After research, I have activated the share folder in the Simulator and add 2 files contain images and still no way always empty... tried file.browse and file.browseForOpen and no way.

Note: this works great outside Simulator (Air)

Please suggest. Thank you very much

Simulator and SDK (0.9.3)

Watch .nativePath and .url methods in the Select browser recalls. They are not the same. Basically, you can't trust the FILE objects returned by the methods of navigation. Here is my code I use.

       private function save(e:MouseEvent):void
        {
            trace("saving");

            var myFile:File = File.documentsDirectory;
            myFile.browseForSave("Save Image");
            myFile.addEventListener(Event.SELECT, chooseSave);
            menu.close();
        }

        private function chooseSave(e:Event):void
        {
            var sel:File = e.target as File;
            var name2:File = File.documentsDirectory.resolvePath(sel.name);
            trace (sel.nativePath);
            trace (name2.nativePath);

                        // create data to save...

            var file:FileStream = new FileStream();
            file.open(name2, FileMode.WRITE);
            file.writeBytes(data);
            file.close();
        }

Basically, I only use the dialogs go as a way to let the user enter a file name, or select a file name. Then, I create a new FILE object using the documentsDirectory path and the name of the selected file.

It's not ideal, but it works. The user cannot change its not in one of the 'predefined' subdirectories and directories. I think this will have to be changed when we get the next rev of the SDK and browse dialog boxes are fixed (I hope).

Bill

Tags: BlackBerry Developers

Similar Questions

  • Question on browser Edition.

    Hello, I have on the issue in the edition browser, before I buy muse.

    Is it possible to add pictures to the Gallery of your site in the browser, when the site is finished.

    Thanks in advance,

    Kristjan Hinno

    Hi, Kristjan,

    Images can be replaced, not added or deleted. For more information on this subject, visit this link

    Adobe help Muse | In the browser edition of Web sites using third-party providers of hosting services

    Let me know if you have any question.

  • Formatting question between browser

    Hello

    I don't usually have problems between browsers, however, I encounter a major problem of formatting this morning that I can't understand.

    Because in general, I don't have this problem, I have no idea how to solve this problem.

    http://online.saintleo.edu/request-info-splash.html

    Look perfect in Firefox, but in Chrome and IE, spacing and formatting is far away.

    What is the best way to fix this?

    Thanks in advance for your time and your help.

    Your

    generates one - line of 30px in all browsers but FF does not display it. Looks than Chrome and IE display it correctly. Add a bottom margin of 0 in the entry class and leaving only the other margins.

    As this form is generated with nested divs, and each of these div tags has a bottom margin, you will need to try to define each of them at a narrower margin, so that the fields get closer together again.

  • Path of FileReference

    Help! In Flex Builder, I'm trying to retrieve information about an image, the user selected using the browse FileReference.  No idea how I can get the local path to the file?   Can I use something other than FileReference?  Here's a code snipit of what I do:

    private

    var fileRef:FileReference;

    ...

    fileRef =

    new FileReference();

    ...

    private

    function onSelectFile(event:Event): Sub {

    imageLocationText.text = ?

    imageNameText.text = fileRef.name;

    fileRef.load ();

    ...

    }

    You can get the full of a file using FileReference path, since it can contain sensitive information.

    http://blog.flexexamples.com/2007/09/21/uploading-files-in-Flex-using-the-FileReference-CL ass / # comment - 14807

    HTH

  • HTTPS sites do not work correctly in Firefox.

    Currently using FF 38.0.5 in Windows 7. I posted about a related issue in the past, but basically, I gave up on it. It has now become more widespread, so I'll take another shot at this. When you browse HTTPS sites, I can't leave a page and come back without it autorefreshing. For example: Reddit has updated their site to force HTTPS for all users. If I collapse a few remarks and then click a link when I get back, all these comments have will expand once again. If I then go back to the home page, all updated. Basically, Firefox is not saving the State of the page when I go forwards or backwards. This happens with all sites that use the HTTPS protocol. It is extremely annoying and he very tempted me to switch to another browser. I was informed that others have encountered this problem, but I can't find anything about this and I have not found solutions.

    I have cleared my cache and cookies and I tried also to forget afflicted sites and Firefox running in Mode without failure. I have nothing made a difference. I tried to install an add-on called RefreshBlocker, but it works sometimes.

    Another question while browsing HTTPS sites is that I can't use the previous/next buttons to go through several pages. If I press back three times, it will not go back three pages; He will only return to the previous page and I have to wait for it to start loading until I go back another page. I can use the dropmenu to select a specific page, but I like to use my keyboard for navigation, because it is usually faster.

    These two HTTPS problems exist for FF24, maybe even longer. Is there something I can do? Of more and more sites are application HTTPS and my navigation time increases unnecessarily.

    This problem was published yesterday, although at the time I didn't realize HTTPS was the problem because I tried using HTTP (do not connect): return to the previous page refreshes the whole page.

    Reddit user in this thread has found a solution, which is to use an add-on to block instructions Reddit sends not to cache pages. You can see that in this post: https://support.mozilla.org/questions/1069550#answer-747393

  • How can I remove mackeeper to my macbook pro

    I went on tvfun.com and he told me that I had to install adobe flash player, so I could watch and after that there is mackeeper. It doesn't let me do something when I go to the browser, it take me from my page and having to scan a lot.

    How to manually remove MacKeeper from your Mac.

    How do I uninstall MacKeeper since your Mac | Macworld

    Also, try to use DetectX 2.11 which supposedly it will remove. For any question on browser see:

    Remove the browser pop up problems

    Malwarebytes | Free Anti-Malware Detection & removal software for

    Apple Macintosh computers

    Adblock Plus 1.8.9, GlimmerBlockeror AdBlock

    Remove the adware that displays pop-up ads and graphics on your Mac

    How to remove adware FlashMall of OS X

    Stop advertising and pop-up advertising windows in Safari - Apple Support

    2.11 DetectX

  • modem stopped working with xp restore

    perform a restore to factory settings on dell desktop inspiron 531 with windows XP cd from another computer with xp home and modem now, home not work and yellow several items marked peripheral handle - how can I fix it, please?

    Two questions: which browser do you use?  Allow you to jump - rises from Dell.Com?

    I agree with Chris, what is the exact error message, do not paraphrase, please.

    Also, direct downloads here-onlineDell tune-up 2.0,  D850 56 K V.9X DF of PCI Modem ULD - Application,  D850 56 K V.9X DF of PCI Modem ULD - Driver,  driver Chipset AMD,  nVidia nForce network controller driver

    What else do you think you will need?

  • Samsung recovery CD

    After too many things does not work properly after the system recovery in Windows 7. He returned to 2011 and too many updates, they don't download. Try using any browser help or download of specific updates was out of what they call into question. Browser has frozen, the slider disappeared and then Ctrl alt del has never worked. So to turn off every time. Then you know the etc SafeMode Somehow got Samsung recovery CD provided with the laptop in 2011. Don't know if I did it correctly. Laptop, inserted the cd, then on screen instructions, asked if I wanted to install updated updated. I thought that Yes that I do it, he can solve all my problems. But it was two hours ago and he's still looking for them. Installation barely moved, he said: information collection. What should I now please.

    You don't need the BT software disk, less install you the best.

  • My command prompt opens and closes quickly until I can read anything.

    I am trying to open a Python file via the command prompt but whenever he opens, it closes immediately before I can even read anything. I understood once the question involving browser windows, etc, but now I can't understand for the life of me how to solve this problem again.

    Could contribute to this article on the opening of a Python file in the command prompt.
    http://www.Voidspace.org.UK/Python/articles/COMMAND_LINE.shtml

    Thank you

  • shortcut to the online site

    I've always been able to copy an address online (Http: / / etc.), the office click Create a shortcut paste the address in and name
    When I click on the shortcut, he went on the site.
    All of a sudden when I click the icon I get the message "Http Protocol has no a program" I have Windows 7 and have never had a problem.
    What could wrong?

    Can someone help me with this problem

    Bill K

    Hi Bill,

    Thanks for posting your query in Microsoft Community.

    It seems that you are unable to open Web sites by using the shortcut on the desktop, you get an error: the Http Protocol has no program. I'll be happy to help you. This problem could be caused when the shortcut fails to find the default program to open this link.

    I would be grateful if you could answer the following question:
    What browser you use as default browser?

    I suggest to follow the steps below and we update on the State of the question.

    Method 1: Try to set the Internet Explorer browser as the default browser, follow these steps and check if that helps:

    (a) click on Control Panel - default programs.

    (b) set your default programs: select Internet Explorer to open http.

    ' (c) ' set this program as default "or"Choose defaults for this program", then under protocols, select HTTP.

    You can read the following article: change that uses default Windows programs

    http://Windows.Microsoft.com/en-us/Windows7/change-which-programs-Windows-uses-by-default

    Method 2: You can run Microsoft fix mentioned article and check if the problem still persists.

    Difficulty of broken desktop shortcuts and common system maintenance tasks

    http://support.Microsoft.com/mats/system_maintenance_for_windows/en-us

    If you have additional questions, or if this problem persists, come in and we will be happy to help you.

  • Download newsletter (free version of ESXI 5)

    I've searched the forums and can't find answers to my question, that being that I don't see anything in "my products" tab in my VMware > downloads > all downloads. The message I get is 'you do not have access to an account. Check with your administrator Super user, Contact purchases.'

    If I click on the historic "My download" link on the right side, then I see what I am after, this being VMware vSphere Hypervisor 5 and the link 'view downloads and licenses' additional

    When I click on this link a new page/tab open in my browser displaying "VSpere of VMware Hypervisor 5.5 Download Center" > license & Download tab, showing the "license information" with my license keys and registration "download packages" as you would expect, and here the question:

    (1) if I click on a link 'Download manually' on what anyone in the list, the page scrolls to the top and is not actually download anything.

    (2) if I click a button 'Start the Download Manager' on what anyone in the list, nothing happens at all. No scrolling to the top of the page, nothing.

    This before everyone knows or knows how to fix this?

    Thanks in advance for your help

    OK, so I feel like a right button. My question is browser related and has nothing to do with the pages themselves. The links work perfectly well in Firefox and IE.

  • Failed to retrieve the target data system for FDM 11.1.2.3 HFM adapter

    Hello gurus,

    : Server 1 HFM

    : Server 2 FDM

    Server 3: Database server

    1. I have managed to create an application of FDM using FDM web client.

    2. later I imported the FDM adapter - FM11X-G6-C in the Workbench of FDM and also saved the file fdmFM11XG6C.dll successfully.

    3. We then defined the Machine profile and also specified with the custom sizes available in our HFM application.

    4. we have then configured the adapter with success.

    5. we get the following question when browse us the metadata -> control tables

    Cannot retrieve the data on the target system

    6 log has the following entry

    Error:

    Code...-2147220966

    Description... System.Runtime.InteropServices.COMException (0x8004021A):

    {0F677127-F815-4495-8290-AF2899C9482F}1-2147220966010/16/2013 07:41:57< servername FDM >CHsxClient.cpp282011.1.2.3.000.4045Unknown error

    at HSXCLIENTLib.HsxClientClass.OpenApplication (String bstrClusterName, String bstrProduct, String bstrApp, ppIUnkServer, & object object & ppIUnkSession)

    at fdmFM11XG6C.clsHFMadapter.fConnect)

    Process... clsFMAdapter.fConnect

    Component... D:\FM11X-G6-C_1002\AdapterComponents\fdmFM11XG6C\fdmFM11XG6C.dll

    Version... 1116

    Identification:

    ... The admin user

    ... Computer name < servername FDM >

    Connection of FINANCIAL MANAGEMENT:

    Name of the application...

    Name of the cluster...

    Field...

    Connect status... No open connection

    * Start the journal entry for the Runtime Error FDM [2013-10-16 07:41:57] *.

    -------------------------------------------------------------

    ERROR:

    Code............................................. 10054

    Description... Adapter function [fConnect] failed.

    Process... clsBlockProcessor.DimensionList

    The component... upsWBlockProcessorDM

    Version.......................................... 1112

    Thread........................................... 80304

    IDENTIFICATION:

    User............................................. admin

    ... Computer name < servername FDM >

    Name of the application... < name of application of FDM >

    Client App....................................... WebClient

    CONNECTION:

    Provider......................................... SQLOLEDB

    Server data... < database server name >

    Name of database < database name >

    Trust connect... Fake

    Connect status... Open connection

    GLOBALS:

    Location......................................... Sample

    Location ID... 748

    Location Seg... 2

    Category......................................... WLCat

    ID of the category... 12

    Period........................................... Oct - 2013

    Period ID........................................ 10/31/2013

    POV Local........................................ Fake

    Language......................................... 1033

    User Level....................................... 1

    All Partitions... True

    Is Auditor....................................... Fake

    * Start the journal entry for the Runtime Error FDM [2013-10-16 07:41:58] *.

    -------------------------------------------------------------

    ERROR:

    Code...-2146818234

    Description... Adapter function [fConnect] failed.

    Procedure........................................ ObjScriptReturnMarshaler.GetDimensionList

    Any help will be much appreciated.

    Thank you all for your help...

    It was a problem with the Machine profile configuration, where I had updated the username and password and it had to remain a Virgin.

    Keep the username blank password in the configuration of the machine profile has solved the problem.

  • Input parameters of the task flow and "back" button

    Hello experts. I have two stubborn workflow created by page; say they are TF1 and TF2. Each workflow task has their own controlled beans. These controlled beans are kept in the Page flow scope. The two task-flow has their own of initializers.

    By an action on TF1, I redirect to the TF2. During this redirection, I pass some parameters. After redirection when it enters the TF2, I extract the parameters programmatically. Now I'm back on TF1 and TF2 of TF1, I'm clicking on the back button of the browser. Note that I put anything if the re-entry allowed or not in TF2. After clicking the browser back button access me for the new TF2. TF2 called if I generate any action of the initializer. BUT now I can not get the input parameter values more. All values in the set of input null parameter.

    My question is:

    • Why have defined null values?
    • How can I make persistent values?

    Any pointer would be very useful.

    I use JDeveloper 11.1.1.6.0, WebLogic 10.3.5.

    Thanks in advance.

    Tapas

    There is a way. Click on "back" button is not invoke the lifecycle JSF and browser displays the previous pages in its cache. If somehow, I can say browser not to cache the page, then every time a click the back or next button, the browser would GET the page headed from the server, which would eventually be my.

    So I added a filter to achieve this:

    public class NoCacheFilter implements Filter {
        @SuppressWarnings("unused")
      private FilterConfig _filterConfig = null;
    
        public void init(FilterConfig filterConfig) throws ServletException {
            _filterConfig = filterConfig;
        }
    
        public void destroy() {
            _filterConfig = null;
        }
    
        public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
            HttpServletResponse servletResponse = (HttpServletResponse) response;
            servletResponse.setHeader("Cache-Control","no-cache, no-store, must-revalidate, private, max-stale=0, post-check=0, pre-check=0");
            servletResponse.setHeader("Pragma", "no-cache");
            servletResponse.setHeader("Expires", "Sun, 16 Dec 1984 07:48:00 GMT");
            chain.doFilter(request, response);
        }
    }
    

    Note that I have to specify browser to cache resources, I do R & D to change this filter.

    It works. Hope, now I can spend my weekend peacefully :-).

    Ref:

    Tapas

  • Control DPS with an animation on board

    I'm looking for a way to interact in a DPS file with animation on board.

    For example: want to press on button does on board and make editing a page in a DPS file...

    Other examples are possible, but above all I want to 'control' the navigation of DPS with a menu nav of edge.

    Think it's possible?

    Months later, I answered my own question by browsing the forum:

    Here and there are 2 solutions , I found to navigate in the Folio.

    First one and easy to animate, replace window.open ("navto://url", "_self"); by window.location = "navto://url"

    "navtos" work on board with:

    Window.Location = "navto://articlename".

    Secondly, it is more complex but likely to help you automate:

    This problem is caused because Edge uses window.open JavaScript method to open URLs.

    We have created a work around by adding an anchor tag inside the

    which should be linked. Here are the details:

    1. You no longer need to add an Action to the
      who will be clickable.
    2. Instead, add the following code as a trigger. By going to the timeline -online Insert trigger

      var myElementVar = sym.lookupSelector ('myElementID');

      $(myElementVar) .append ($("navto://MyArticleLink">"));

      * Note that the 'myElementID' must be the ID of the clickable

      element.
      * You can also change the myElementVar to distinguish it from other variables.
      * You can repeat the above code for each clickable element. Note that you need to change myElementID and myElementVar are unique.
    3. Save the test and relaxation .

    This will create a tag inside the

    Hope this helps someone else

    BTW, these functions don't seem to work on Desktop viewer, but works on the device, then you must try it for real.

    Oh, by the way, Piotr Walczyszyn did a youtube video explaining the complete workflow (look at beginning at 5'30)

  • Divide the load of courses on the role.

    Hello

    I want all learners to display the first narration 10 exam questions, but then a group working at a different place on the first group need to answer different questions.  I have not tried this, but probably quiz review will spoil it.

    I don't know I know how to get the second group to go in a different direction (see different questions) but when they come back on the same results page, in my opinion, there will be problems.

    Any idea of it please!

    Ken

    There are ways to use user-defined Variables and actions Advanced conditional in Captivate to achieve the type of selective navigation that you describe.

    Revision quiz (oddly) is not necessarily going to be your biggest problem.  If you find a way to show only specific learners some quiz questions then this mechanism will probably also be able to show them that the same questions during the review of Quiz.

    Your biggest problem is likely to be the fact that if the learner did not all questions (because browsing them heading elsewhere so that they never see all questions), then the learner can never reach a score of 100%.  You can set the percentage Score move to something less than 100% to allow this, but it's maybe not what your client wants to see.

    If this is likely to be a problem, you could be better off having several versions of your course set up and divide your users into groups to determine which version of the course they get.

Maybe you are looking for

  • FaceTime Activation error

    I have been using facetime on my apple devices. 2 days before all of a sudden my all my devices apple facetime has disconnected. Now on Iphone 6 when I try to connect it gives me error "ACTIVATION of FACETIME, an error occurred during activation. Try

  • How can I catch the .webloc?

    I'm on Firefox 26.0. Back around seven or more, or maybe seventeen, he had this feature: you could grab the little icon on the right to the left of the URL and drag it to a container of Finder, and... a teensy file appears, named something clever, wi

  • On the purchase of an iphone unlocked in store.

    Hello I read here that non-citizens of the United States cannot buy an iPhone Unlocked at the actual store. I'm confused because when the iPhone 4S came out, I was visiting the States and bought a unlocked right there in an Apple Store in a mall. Soo

  • Pavilion 15-P189sa: for HP 15-P189sa HARD drive replacement procedure

    Just bought this laptop (HP-P189sa) of curries and you want to immediately share the 1.5 Tb HARD disk drive for a 256 GB SSD.  I have cloned SSD and ready to install, but can't for the life of me work out how to get into the case.  There are no plate

  • Why I have to restart my brand new monster Vista 64 machine whenever I want to play a game online?

    I have a new brand, solid as a rock, high-end, cry of monster machine, fresh out of the box, fully updated with all updates from MS:Intel Core i7 920 @ 2.67GHz12 GB DDR3 RAM2 TB of hard drive space64-bit Edition of Windows Vista Home premium.2 x Nvid