How to load images side when the swf file is hosted on a server without uplaoding it to the server?

I am trying to build an online image resizing tool.
problem I encounter are:

1. create a button that allows the user to browse the file. Once the file is selected, it only shows the full path.
2 lets say if she shows fullpath, but I try to load it into a movieclip, and this does not work because the swf file is located on the server and put the client.
3. as far as I know, flash can only load the images located in the same server or internet.
4. If I use php, asp, cgi... It can only make me 1 upload the image then resize later, but this is not wat I want.
5. I need to 1 resize then download later, because if I have 100 and more photos taken of the digital camera, it's going to be very slow and cumbersome.

What I tried:
1. download 'image3.jpg' in the same directory as the "viewer.swf", and it works.
2. not to upload the swf file to the server, but locally managed from the user's computer and open 'image3.jpg' and it works.
3 upload the swf file to the server and open "image3.jpg" of the user's computer and the IT DOESN 'T WORK!

Please help me.

Thank you ~!


Adobe air is in Beta 2 and is free:

http://labs.Adobe.com/downloads/air.html

Tags: Adobe Animate

Similar Questions

  • How to solve a problem when the windows setup program does not open a program, says I need to install it. and an error message 1706

    How to solve a problem when the windows setup program does not open a program, says I need installation cd and a 1706 error message happens.

    Hi PAtwoodwu,

    1. what program are you trying to install?

    2. did you of recent changes on the computer?

    3 does happen with all programs?

    Check and make sure that the Windows service install is running on the computer.

    (a) click on start to reduce this includes this image, click run , type services.msc , and then press enter to open Services.

    (b) right click on the Windows Installer service and then click Properties.

    (c) if the box Startup type is set to Disabled, change it to Manual.

    (d) click on OK to close the Properties window.

    (e) right click on the Windows Installer service and then click Start. The service should start without errors.

    (f) click on the file menu, and then click exit.

  • If time machine is incremental how it removes previous versions when the disk is full, without breaking the chain, so do not be able to restore all changes since the first full file

    If time machine is incremental how it removes previous versions when the disk is full, without breaking the chain, so do not be able to restore the file with any changes made since the full backup first file...

    If the TM drive storage is full TM automatically deletes the version the oldest files for the new incremental backups can be made. Thus, in this case you cannot restore the versions that TM deleted because it takes more storage.

  • How to add multiple lines when the button is clicked

    How to add multiple lines when the click on button now is just add a row .plz give me idea how... waiting for answer

    / public final class screen extends MyScreen
    {
    /**
    * Creates a new object of MyScreen
    */
    ObjectChoiceField obj1 obj2, obj3, obj4.
    Table of String() = {'101 ', ' 102'};
    String of shadow [] = {"Shade1", "Shade2"};
    Rolls of string [] = {'101 ', ' 102'};
    String cutting [] = {"100-150", "150-200"};
    Chain of selectedindex1, selectedindex2, selectedindex3, selectedindex4;
    LabelField lbl1 lbl2, lbl3, lbl4;
        
    GFM LinedGridFieldManager;
    HFM HorizontalFieldManager, hfm1, hfm2 hfm3;
    VerticalFieldManager vfmMain;
        
    public MyScreen()
    {
        
    Set the displayed title of the screen
    hfm1 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    hfm2 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    hfm3 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    HFM = new HorizontalFieldManager (HorizontalFieldManager.FIELD_RIGHT);
    vfmMain = new VerticalFieldManager (Manager.NO_VERTICAL_SCROLL |) Manager.NO_HORIZONTAL_SCROLLBAR);
            
    obj1 = new ObjectChoiceField ("", graph, 0, FIELD_LEFT);
    obj2 = new ObjectChoiceField ("", blind, 0, FIELD_LEFT);
    Obj3 = new ObjectChoiceField ("", rolls, 0, FIELD_LEFT);
    Obj4 = new ObjectChoiceField ("", cuts, 0, FIELD_LEFT);
            
    LBL1 = new LabelField("");
    LBL2 = new LabelField("");
    lbl3 = new LabelField("");
    lbl4 = new LabelField("");
            
    ButtonField btnAdd = new ButtonField ("ADD", FIELD_RIGHT);
            
    GFM = new LinedGridFieldManager (4, LinedGridFieldManager.VERTICAL_SCROLL);
            
    hfm1.setMargin (20, 0, 10, 0);
    hfm1. Add (new LabelField ("Chart"));
    hfm1. Add (obj1);
    hfm1. Add (new LabelField ("Shade"));
    hfm1. Add (obj2);
            
    hfm2. Add (new LabelField ("Rolls"));
    hfm2. Add (Obj3);
    hfm2. Add (new LabelField ("Cuts"));
    hfm2. Add (Obj4);
    HFM. Add (btnAdd);
            
    GFM. Add (new LabelField ("Chart"));
    GFM. Add (new LabelField ("Shade"));
    GFM. Add (new LabelField ("Rolls"));
    GFM. Add (new LabelField ("Cuts"));
            
    vfmMain.add (hfm1);
    vfmMain.add (hfm2);
    vfmMain.add (hfm3);
    vfmMain.add (hfm);
    vfmMain.add (new SeparatorField());
    vfmMain.add (gfm);
    Add (vfmMain);
            
    btnAdd.setChangeListener (new FieldChangeListener()
    {
    ' Public Sub fieldChanged (field field, int context) {}
    TODO self-generating method stub
    selectedindex1 = chart [obj1.getSelectedIndex ()];
    selectedindex2 = shade [obj2.getSelectedIndex ()];
    selectedindex3 = rolls [obj3.getSelectedIndex ()];
    selectedindex4 = cuts [obj4.getSelectedIndex ()];
                    
    While (LBL1. GetText(). Equals("") | LBL2. GetText(). Equals("") | lbl3. GetText(). Equals("") | lbl4. GetText(). Equals(""))
    {
    LBL1. SetText (selectedindex1);
    LBL2. SetText (selectedindex2);
    lbl3. SetText (selectedindex3);
    lbl4. SetText (selectedindex4);
                    
    GFM. Add (LBL1);
    GFM. Add (LBL2);
    GFM. Add (lbl3);
    GFM. Add (lbl4);
                    
    }
    }
    });
    }
    }

    Hi Piya,

    I run your code, and according to your logic that it works correctly.

    It's adding that line only once because according to your logic that one line can be added to MDT, if you do not want to add line on each click on the button, follow these steps:

    selectedindex1 = chart [obj1.getSelectedIndex ()];
    selectedindex2 = shade [obj2.getSelectedIndex ()];
    selectedindex3 = rolls [obj3.getSelectedIndex ()];
    selectedindex4 = cuts [obj4.getSelectedIndex ()];

    Lbl1 LabelField = new LabelField("");
    Lbl2 LabelField = new LabelField("");
    LabelField lbl3 = new LabelField("");
    LabelField lbl4 = new LabelField("");
    If (LBL1. GetText(). Equals("") | LBL2. GetText(). Equals("") | lbl3. GetText(). Equals("") | lbl4. GetText(). Equals(""))
    {
    LBL1. SetText (selectedindex1);
    LBL2. SetText (selectedindex2);
    lbl3. SetText (selectedindex3);
    lbl4. SetText (selectedindex4);
                    
    GFM. Add (LBL1);
    GFM. Add (LBL2);
    GFM. Add (lbl3);
    GFM. Add (lbl4);
                    
    }

  • How to add two lines when the second row is not visible, but also gets the first data line too?

    Mr President

    Jdev worm is 12.2.1

    How to add two lines when the second row is not visible, but also gets the first data line too?

    I want to add two lines like below picture, but want the second to remain invisible.

    tworows.png

    I asked this question but my way of asking was wrong, that's why for me once again.

    Concerning

    Try to follow these steps:

    1. in the database table to add the new column "JOIN_COLUMN" and add the new sequence "JOIN_SEQ".

    2. Add this new column in the entity object. (You can add this in entity object by right clicking on the entity object and then select "Synchronize with database" then the new column and press on sync)

    3. in your bookmark create button to create only one line NOT 2 rows.

    4 - Open the object entity--> java--> java class--> on the entity object class generate and Tick tick on the accessors and methods of data manipulation

    5 - Open the generated class to EntityImpl and go to the doDML method and write this code

      protected void doDML(int operation, TransactionEvent e)
      {
        if(operation == DML_INSERT)
        {
          SequenceImpl seq = new SequenceImpl("JOIN_SEQ", getDBTransaction());
          oracle.jbo.domain.Number seqValue = seq.getSequenceNumber();
          setJoinColumn(seqValue);
          insertSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        if(operation == DML_UPDATE)
        {
          updateSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        super.doDML(operation, e);
      }
    
      private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "Insert into table_name (COLUMN_1,COLUMN_2,COLUMN_3,JOIN_COLUMN, HIDDEN_COLUMN) values ('" + value1 + "','" + value2 + "','" + value3 + "','" + joinColumn + "', 1)";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
      private void updateSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "update table_name set column_1='" + value1 + "', column_2='" + value2 + "', column_3='" + value3 + "' where JOIN_COLUMN='" + joinColumn + "'";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
  • How to load images into layers or project

    How to load images into layers or projects.  I know how to use open to open a picture, but I was looking for a way load an image to resize to fit in a specific part of a layer or load an image, then one more.

    Yes, a script would be best for what you want to do, but you might be able to do it with an action. I haven't used actions too because I prefer scripting.

  • Several images can be viewed at once, each in it so how can you images floating in the workspace has a window, which can be moved on

    How can you images floating in the workspace, so several images can be viewed at once, each in its own window, allowing the images to be moved. This function doesn't seem to work in items 12

    Go in Edition > Preferences > General. Check ": allow Documents floating in its entirety in Edit Mode."

    I hope that will allow you to view the 3 files simultaneously via the available option.

  • How to validate an entry when the focus leaves the intensity absorbed in

    How to validate an entry when the focus leaves the intensity absorbed in a form?

    "Ansury" wrote in message
    News:garo90$L71$1@forums. Macromedia.com...
    > Not AFAIK. Event.Target has a reference to the object that sent the
    > event. In livedocs:
    >
    > "Every event object has a goal and a currentTarget property that help."
    > you
    > Hold where it is being spread. The target
    > property
    "> return to the sender of the event.
    "
    >
    > BUT...
    > Your if statement will never evaluate true because you compare one
    > UITextField to a TextInput. A UITextField (stored internally in a
    (> TextInput, it makes the text) actually dispatches the event.

    currentTarget gives you the object on which the event actually listener
    attached to...

  • How to pass a variable to a swf file in another using the Loader?

    I'm loading a swf file from another swf using the method as follows:

    var myLoader:Loader = new Loader();

    addChild (myLoader);

    var url: URLRequest = new URLRequest ("myExternalMovie.swf");

    myLoader.load (url);

    How to pass a variable to the first SWF in the second?

    I'm not sure that "passage" is a term there, given that this generally applies to what happens with functions that can host variables to pass as arguments in the.

    When using the charger, you can assign an event listener to determine whether the activity of loading is complete and have an event handler that targets its contentLoaderInfo property to the event.currentTarget.content, which in your case would be the loaded swf file.  At this point, you can assign a value to a variable in this swf file by targeting...

    var myLoader:Loader = new Loader();

    addChild (myLoader);

    myLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, loadComplete);

    myLoader.load (url);

    var loadedSWF:MovieClip;

    function loadComplete(evt:Event):void {}

    loadedSWF = MovieClip (evt.currentTarget.content);

    loadedSWF.someVariable = ';?

    }

    It is probably possible you may also have the loaded swf the value rtrieve by targeting to the parent swf file, which would be both parents away because of the charger is the relative of the SWF loaded... unevariable = MovieClip (parent.parent) .someValue;

  • How to load a picture of the XYgraphs when running

    Hello everyone.  I need to load a picture of the XYgraphs when running.  Each element of the array is a collection, an item is an XY Chart.  Each curve on its own XYgragh is generated as part of a search optimization.  The number of curves generated based on input from the user during execution.  Resulting curves can be sorted by the user according to different criteria.  Using the sorted curves, the user selects one or more games associated with operating conditions.  So, only 1 curve by graphic, as each curve has its own functioning conditions who were responsible of his generation (the other members of the collection).

    When I try to connect the data a little test vi, I get the error listed... that seems to be complaining that my data types match actually! ??

    Thanks a bunch

    Terry

    Look more closely at your data types.  Upstairs, you have two tables 1 d of double grouped.  While done in a 1 d table.  It is a pink cluster, transformed into a table 1 d of pink cluster.

    Look at the empty table going into the shift register.  Your XY graph is a table 1 d with a bunch of Brown.  This Brown cluster consists of two double scalars, not the two table 1 d double you up there.

    In your loop For on the top, try to convert the blue Angelfish in doubles, then the two values to group together.  Feed this cluster at the edge of the loop For and auto-index on this tunnel. Now, you will have a table 1 d with a bunch of doubles.  Which feed the element of the XY cluster at the bottom.

  • How to load images with a delay?

    Let's say I have a JSON from an HTTP request. The JSON contains several JPG and text links.

    For each JPG link and text, I want that they be displayed in a field like that.

    And here is the code in the field:

    public ProductField extends Field {
    
        String text;
        Bitmap bmp
    
        public CustomField(String text, String imageURL){
            bmp = Bitmap.getBitmapResource("blank.png");
        }
    
        public void paint(Graphics g){
            //....
        }
    
        public void updateBitmap(String url){
            bitmap = BitmapUtil.loadBitmapFromURL(url);
    
            // draw the bitmap on XYRect
            dest = new XYRect(0, 0, bitmap.getWidth(), bitmap.getHeight());
            invalidate();
        }
    }
    

    I realize that load images takes time, so I don't load them immediately. I have only to load the text and display an empty bitmap in the bitmap field. The actual bitmap will be charged when the updateBitmap() method is called.

    And here's how to add these field on the screen (not a 100% valid code, but I hope you will illustrate the idea)

    VerticalFieldManager vfm = new VerticalFieldManager
    
    // an array of bitmap URLS, which will be loaded later
    final String[] urls = new String[json_array_size];
    
    for (int x = 0; x < json_array.size; x++){
        CustomField field = new CustomField(..);
    
        // store bitmap URLs in array
        urls[x] = json_array.getJSONObject(x).getString("url");
        vfm.add(field);
        vfm.add(new SeparatorField());
    }
    
    Thread t = new Thread( new Runnable() {
        public void run() {
            for(int i = 0; i < len;i += 2) {
                synchronized(UiApplication.getEventLock()) {
                    CustomField cf = (CustomField) vfm.getField(i);
                    cf.updateBitmap(urls[i]);
               }
                try{
                    Thread.sleep(2000);
                }
                catch(Exception e){ }
                }
            }
    });
    

    Seems that all the images are loaded simultaneously. What I want is something like:

    display bitmap #1-2 seconds of delay - display bitmap #2 - delay 2 sec - display bitmap #3 - delay 2 sec etc..

    How to solve this problem?

    You can remove the block synchronized as you don't make any changes to the user interface, you read a value of a UI element.
    About your son, I can't get started, maybe a start() would help. do not race

  • See the selection in the image selected when the use of invokeFilePicker() second time

    Hello

    I use invokeFilepicker() to select images to my Gallery.

    The code I'm usign is like that, and it works fine.

    function openFilepicker() {
    // filepicker options
    var details = {
    mode: blackberry.invoke.card.FILEPICKER_MODE_PICKER_MULTIPLE,
    type: [blackberry.invoke.card.FILEPICKER_TYPE_PICTURE],
    viewMode: blackberry.invoke.card.FILEPICKER_VIEWER_MODE_GRID,
    sortBy: blackberry.invoke.card.FILEPICKER_SORT_BY_NAME,
    sortOrder: blackberry.invoke.card.FILEPICKER_SORT_ORDER_DESCENDING
    };
    blackberry.invoke.card.invokeFilePicker(details, function(path) {
    patharray = path;
    //blackberry.system.setWallpaper('file://' + path);
    showToast('Wallpaper changed!');
    var tempChose = selectedPhotosDiv();
    $('.chat-input-container').prepend(tempChose);
    },
    // cancel callback
    function(reason) {
    showToast("cancelled " + reason);
    },
    // error callback
    function(error) {
    if(error) {
    alert("invoke error " + error);
    } else {
    console.log("invoke success ");
    }
    });
    }
    function showToast(msg) {
    blackberry.ui.toast.show(msg);
    }
    

    Now after selecting images and choice made, I want to again select some pictures more.

    So here, I want to make the selected alreay images selected.

    I already have the list of the table that is selected, but I don't know how to make the selection.

    Waiting for more

    Thank you

    Hi there, I took a quick glance through the docs:
    https://developer.BlackBerry.com/HTML5/APIs/beta/BlackBerry.Invoke.card.filepickeroptions.html

    And AFAIK, the API will not lets you specify a file to be highlighted when the selector is presented. You could present this as a JIRA / fiction asks through the developer Issue Tracker.

  • How do I add text when the button is in short

    Hi friends,

    I am the third party application.

    This header contains the BitmapFields when the focus moves to this imageat the bottom of the image, I want to mention the name of the image.

    Please tell me how to do this.

    Thank you in advance.

    Hello

    The descriptor, you're trying to find is known as ToolTip.

    Try this link.

    http://supportforums.BlackBerry.com/rim/attachments/rim/java_dev/163809/1/ToolTip_1.txt

    Thank you

    Krishnan

  • How to load images into memory

    I want to get the jpg of my webcam

    yesterday thanks to you

    I loaded jpg to the Simulator

    , but it has been imported to res java project

    How can I load the jpg into memory and read from the memory in the bb?

    If you know, or you know some post

    hot please answer T T

    This article will tell you how to read the jpg file in your project in memory.

    How - to add plain text or binary files to an application
    Article number: DB-00148
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/How_To _...

    Then, you must convert the bytes into something that the BlackBerry can handle.  To do this, you use:

    EncodedImage.createEncodedImage (.);

    Now you get to get a Bitmap image, whose form the BlackBerry uses to display images on the screen.  This encodedImage object, you have created in the previous step and be used to get the bitmap image, simply use the

    getBitmap()

    method

    Now, the screen BlackBerry fields on the screen, so you must create a field for display, a BitmapField and tell him to use the bitmap image that you created.  It's easy, you just build a new BitmapField:

    BitmapField (bitmap Bitmap)

    Finally, you add the BitmapField to the screen you are viewing.

    There are shorter ways to do this, if you create a png rather than jpg images.

  • corrupted image displayed when the value horizontal elasticity 'contract '.

    Hello.

    Using forms and reports 10.1.2.3.0

    I got a report where I'm trying to show the images centered horizontally in their surroundings.

    To do this, I created an image element within the framework (a rehearsal setting, because the images are extracted from the DB), manually it centered within the frame, attached with an anchor to his surroundings and define its horizontal elasticity of 'contract' (vertical elasticity is set to "fixed"). It is actually the preferred method to do this and some threads in this forum recommend it.

    What I got in the PDF file was an image corrupted in some circumstances.

    To refine what I've created three different images (width * height)

    1. 1000 * 666

    2. 1000 * 750

    3. 1000 * 800

    load in the DB and tried to run the PDF file. You can see the result in the following screenshot:

    garbage_example.jpg

    When I put the horizontal elasticity "fixed", the image is not damaged (this is not a solution because the image is left aligned then).

    Setting the OUTPUTIMAGEFORMAT to something different than default (JPEG) has not changed anything.

    Interestingly enough the Foxit PDF Reader it shows correctly, while AdobeReader X and XI and Inkscape even show the image corrupted (not only on my PC).

    We tried with multiple images/photos, and the only ones to be displayed correctly seem to be images with a 4:3 aspect or higher report. I was not able to determine exactly to what extent this behaviour.

    Anyone have any idea what may have caused this?

    Thanks in advance

    Markus

    Found a solution that is rather surprising for me: the value of the vertical elasticity of the image of "contract".

Maybe you are looking for

  • Pavilion dv6: laptop won't restart after restoration

    Recently, a friend gave me his old laptop HP Pavilion. I thought I would do a factory reset top, just to clean and start over. However, I can't start after having done a system restore on it. It gets to the screen that says "Install the software", an

  • RAM memory upgrade

    I have an iMac 2009 end 27 "running iOS 10.7.5.  Can I replace the four slots of RAM with 4 gigs each card to replace my two 2 Gig cards without losing anything on the hard drive of my computer?  My computer starts to become slow and I guess having m

  • Online games will not play

    Hello I don't know if this is the right forum :) But I tried to play a game of trial and a game I bought at BigFish and all I get is a blue box. Manager tasks indicates their execution. I also bought Dream Chronicles (in a store) and installed, but a

  • 4.6 compatibility + curve

    Hi alll,. I want to know is app build on 4.6 runs on curve or not. Thank you Stephenson

  • Problem installing printer, can't seem to get the driver for my printer HP Officejet 4500 G510n-z

    Can't seem to get the driver for my printer HP Officejet 4500 G510n-z... error message is displayed when using the floppy... same error message when trying to install it directly from the HP website for downloads but will not be installed, then unins