Displaying the same Image in two different Image controls

We use 2 Flex to dynamically display a large image (2 MB +) that is downloaded from an external web server on a different domain. We would like to take that same image, to scale down and post it in along side the version full size of the image in a thumbnail viewer bit that we wrote. This works very well that if I put just the attributes of the source on the two controls Image to the same URL, however, this results in the Image being uploaded twice. Since the image is so large, it is not very desirable behavior.

Another option that we tried is cloning the bitmapData after one of the images has finished loading and then put back the clone for the second image.

private void image1Loaded(e:Event): void
{
var bmp1:Bitmap = Bitmap (image1.content);
Image2.source = new Bitmap (bmp1.bitmapData.clone ());
}

The problem with this method is that, since the image is downloaded from a server with a different area of our web server, a security sandbox exception is thrown. Because we have no access to this web server, using a crossdomain.xml file is not an option. We looked at the image transmission by proxy through our web server, but given the size of the image, this isn't the best solution either.

Does anyone know how to do what we try to do without generating a security exception? We don't need to change the image anyway, we just want to display it inside two different Image controls without having to download it twice.

The image must not be downloaded twice. Flash Player is very picky about it because of the problems you mention. If you download an image from a specific URL and then try to do it again, the image will be have been cached.

However, if you do this: the image can indeed be charged twice. Why? Because the 2 requests are sent at the same time because no image has been loaded. This translates into the image loaded twice.

If you have a large image to display, wait for it to load once before the second request. Complete event of the Image will tell you when its bytes have been received.

Tags: Flex

Similar Questions

  • Link to graphic images and display the same image on two different series

    I create a brochure DIN A5 landscape (l x h - 210 x 148) that has two pages each Board. Now, I want to connect two graphic frames on two different series (starting page 4 continued on page 5) to display the same image. This image is then next to each other after printing.

    Please take a look at the photos (situation and endresult).

    Could you please help!

    Thank you!

    Phil

    CURRENT situation

    link-image-to-another-page_1.jpg

    endresult

    link-image-to-another-page_endresult.jpg

    It is not clear to me that you understand that you should be setting this up as a file "facing pages" where each page is half of a spread, not the full-spread by page you started with. In order to impose the pages must be independent of each other in the file.

    From the screen shot it seems that when folded your book will be A5 landscape format, so if this is the case, you will want to set up as faced with pages A5 landscape. Guests will have a single page for the first and last pages, and the rest will be displayed as two-page spreads, just like your reader will see them. Given that this seems to be a folded booklet, you should also keep in mind that the number of pages should be a multiple of 4 - two sides of two pages per sheet.

    To a printer you will probably offer a PDF file, exported as a single document with individual pages in the reading order. If you want to print yourself, InDesign has a module simple integrated tax called booklet print in the file menu.

  • Possible to define strategies of OAM configuration on the same site on two different

    Is it possible to define strategies of OAM configuration on the same site on two different servers?

    One of the sites to have anonymous access but it to be protected. How to set up a policy without it automatically applies to all Web sites that match regardless of the host.

    How to differentiate the two OAM sites so that I can apply security different strategies for each of them?

    Thank you.

    You can refer to this [recent thread | http://forums.oracle.com/forums/thread.jspa?threadID=878094&tstart=0].

    Also, if one of the sites requires anonymous access for all the content and it's not going to change in the foreseeable future, just don't install/activate webgate on that.

    -Vinod

  • Why I have two different execution plans for the same query on two different servers

    Hello everyone.

    I need your help to solve the problem quickly.

    In a nutshell, we have two servers that have the same version of Oracle RDBMS (11.2.0.4 EE). One of them for purposes of development and another is a production one.

    We have therefore two different execution plans for the same query executed on both servers. The only case of execution is OK and another is too slow.

    So I have to slow down the work of query using the same scheme to explain that young.

    Fence wire.

  • How can I align two different text lines in the same table in two different directions (centered on one and one on the left)?

    Hello

    I want to focus the two different text lines that are in the same table, but one on the Center and the other on the left. I put a < span > tag in the hope that he was overwhelmed the family of police .bottomsel table class properties and the. Police-family Cig84 and color but the text-align only: they are both on the left.

    Here is my source and CSS codes:

    Source:

    < table width = "600" border = "0" >

    < b >

    < class td = "bottomref" > < p > < span class = "bottomsel" > | < a href = "index.html" target = "_self" > Main < /a > | " < a href = "about.html" target = "_self" > on < /a > | " < a href = "clients.html" target = "_self" > customers < /a > | " < a href = "contact.html" target = "_self" > Contact < /a > | " </span > < br / >

    < span class = 'credits' > credits: < span class = "Cig84" > Cig84 </span > < / span > < /p > < table >

    < /tr >

    < /table >

    CSS:

    {.bottomsel}

    text-align: center;

    do-family: Georgia, "Times New Roman", Times, serif;

    }

    {.credits}

    text-align: left;

    }

    . {Cig84}

    Color: #F00;

    do-family: "Comic Sans MS", cursive;

    }

    Use tags to paragraph with CSS classes.

    CSS:

    . Center {text-align: center}

    .the {text-align: left}

    HTML:

    This text is centered

    This text is left-aligned

    Nancy O.

  • How to associate the same contact with two different accounts to import

    Hello

    (1) I want to associate the same contact (ex: person) to two different accounts (account A and account B) import.

    I tried with the Unique ID from outside Contact but it is accidental and in the end, I am able to associate this Contact with a single account.



    (2) I also can't records to import custom object with the same name through the import process.



    Could someone advice on the same.

    With regard to your questions:

    (1) currently, it is not possible using the Import Wizard. However, it could be done using web services.
    (2) the name must be different.

  • split the data belonging to the same group at two different levels

    Hello

    I have data in the same group I want to split into two levels.

    For example: If the XML is:

    < data >
    Taxable < Type > < / type >
    < value1 > one < / value1 >
    b < value2 > < / value2 >
    < / data >
    < data >
    Taxable < Type > < / type >
    e < value1 > < / 1 >
    f < value2 > < / value2 >
    < / data >
    < data >
    Taxable < Type > < / type >
    g < value1 > < / 1 >
    h < value2 > < / value2 >
    < / data >
    < data >
    Taxable < Type > < / type >
    u < value1 > < / 1 >
    v < value2 > < / value2 >
    < / data >
    < data >
    Taxable < Type > < / type >
    o < value1 > < / 1 >
    < value2 > x < / value2 >
    < / data >


    The output using the RTF model should be:

    Taxable
    a and b
    e f
    g h

    Not taxable
    u v
    l x

    I can't change the query to add a group.

    Kindly, if anyone can help

    Published by: user10606061 on 25/06/2012 01:05


    delete a table with 2 columns and two rows. In the second column of row 1

    in column 2

    table below

    PS: your must be within a root element

  • Can I run outlook and outlook Express on the same computer with two different e-mail addresses?

    My e-mail with outlook express and my wife with outlook email address.

    Yes. You can run them with the same email address as well.

  • Comparing the same tables of two schemas

    I had already posted a similair on this thread. So, I thought I would start a new thread on this to avoid confusion

    I want to generate a report that shows the difference in the data type of the columns in the same table in two different patterns.

    The query using LESS shows the difference below.

    create table SCOTT.mytab1 (empid number);
    create table HR.mytab1 (empid varchar2(34));
    
    
    SELECT   table_name, column_name, OWNER schema, data_type
    FROM     dba_tab_cols where owner = 'SCOTT'
    AND TABLE_NAME = 'MYTAB1'
    MINUS
    SELECT   table_name, column_name, OWNER schema, data_type
    FROM     dba_tab_cols where owner = 'HR'
    AND TABLE_NAME = 'MYTAB1'
    
    Result:
    TABLE_NAME      COLUMN_NAME     SCHEMA     DATA_TYPE
    --------------- --------------- ---------- ------------
    MYTAB1          EMPID           SCOTT      NUMBER
    But, since it is a report, I want to see the form of results the two schemas that has column of different data types with the same names of table

    Expected results:
    TABLE_NAME      COLUMN_NAME     SCHEMA     DATA_TYPE
    --------------- --------------- ---------- ------------
    MYTAB1          EMPID           SCOTT      NUMBER
    MYTAB1          EMPID           HR         VARCHAR2
    Anyway I could do this?

    Why not get a single line with two types of data:

    select a.table_name, a.column_name, a.data_type schema1_type, b.data_type schema2_type
    from all_tab_columns a, all_tab_columns b
    where a.owner = 'SCOTT'
    and b.owner = 'HR'
    and a.table_name=b.table_name
    and a.column_name=b.column_name
    and a.data_type!=b.data_type;
    

    This extracted single query columns present on the two schemas but with different data types. These columns only on one of the two schemas are not extracted.

    Max

  • Why I get two files with different names but the same image when I save in 2015 CC Photoshop?

    Why I get two files with different names but the same image when I save in 2015 CC Photoshop?

    Try resetting the PS preferences - Preferences in Photoshop

    ~ Rohit

  • When you add pictures to the Vista image folder it creates a folder HIDDEN of the same name with two copies of the same image inside

    I use Vista 32 bit. I started to see this problem when I recently copy photos from an SD card.

    When you add pictures to the Vista image folder it creates a folder HIDDEN of the same name with two copies of the same image inside

    I saw hidden files enabled in folder options.

    Any help is appreciated.

    Hey guys... I found the answer... Problem is with the software vaio content analyzer that comes with the vaio...

    It just search for Vaio Content Analyzer (parameters) and deselect

    Video analysis
    image analysis
    analysis of the music

    I went looking for this crazy thing... used almost all types of online scan, and finally to find that it is caused by an internal software only...
    anyway thanks to all... Hope it helps someone in the future :)
  • LR synchronize the same images in different folders

    I need to keep multiple copies of the same images in different folders (to follow the presentations to different agencies), but LR seems very erratic in the synchronization of the images that he considers already exist in the catalog - some duplicates appear, others do not, but it seems impossible to get all records to synchronize correctly. Is there a way to get around this?

    Yes, I remember, David. Happy, is always working.

    Assuming that the current workflow, I think that the answer will lie to determine which files are omitted. If file names don't match all files already in the catalog, I expect to arrive safely. But if the name a jpg corresponds to an existing file (ignoring the extensions) then there might be a conflict. A field's Edit > Preferences > Import where you can try JPEG process next to delayed raw files as separate files. But see if you can establish the model of which is imported and what is not.

    A pure solution of Lightroom would be not not to keep all these files. If you would have the main image (a gross or a tif worked) and then create virtual copies for each of the uses that you want to track - right - click on a thumbnail and create a virtual copy. Each CV has a copy name, which I would say setting (metadata Panel) use, Getty, Alamy etc. When you need to send it to the Agency, get the VC and export to the size and the required format, send the exported file, but do not keep a copy of the actual file - the VC could suffice. I put is more for you think more.

    John

  • I have 2 folders with the same image

    I am new to lightroom and downloaded 7 years worth of photos. Before making this download of mass I had practiced setting up files and importing images in files. After I did the download of mass I have now 2 folders with some of the same images. How can I remove photos from a file and store it in the other. When I remove the image it removes them both files. Thank you

    No image files are in LR. They are just referenced where they are stored on your hard drive in the LR database file, catalog file. So if you have the same image in LR 2 different folders on your drive then you have the same image in 2 different folders. Go to one of the folders using the Manager program for your OS files and remove, delete, move to the trash or recycle bin, images which are duplicates of the other folder.

    You can also do in LR, displaying the contents of two folders and by selecting one of the duplicate images, then right-click on one of the selected images, and select Delete Images. then remove the disc to the next dialog box.

  • Use the same image twice column in a report

    Hello

    I have a question which is, I can use the same column (column A in the example) picture twice in a report? first occurrence (column A) will show the thumbnail of the image and the second occurrence (column A) will display the image download link that opens the picture in a new window. Is this possible?

    Thank you

    Alexander

    -APEX-perf wrote:

    Yes, it is possible. However, if you intend to have two different images, then I would suggest you use javascript to link or download the blob.

    What's happening on Earth? Why JavaScript is necessary to download two different images? Even if he was in any real way, the OP is clear that the link posted of thumbnails and download involves the same image.

    To accomplish this task, you use decode or create a union query.

    No, all that should be necessary is the image column twice in the projection of the reference report query and apply a mask download format to a column and one mask of the image to the other. That the OP apparently did not this probably indicates that they are unnecessarily complicate things.

    For example:

    Select '' link_col

    table

    where allow_view = 'Y '.

    Union of all the

    Select '' link_col

    table

    where allow_view = ' don't

    or

    Select decode (allow_view, 'Y',

    '',

    ("") link_col

    table

    What is downloadImg? It is not a Standard API JavaScript APEX. Therefore, it is highly unlikely that this is of no use to the op.

  • Service existing AppleScript Automator to cut and paste the same image in a conversation of Messages

    New to Applescript/Automator-

    I want to be able to have a simple shot that will allow me to paste a particular image in a conversation in Messages... It is the same image that I want every time. But I want to avoid having to go to Messages, search for image copy and then turn over Messages to paste.  I didn't need the script to automatically display the message, simply cut and paste of the pictures folder so that I am in Messages in a new message to the existing message thread (it makes no sense to me). Be good for this service in the Messages and be available to a hot key combination!

    You might want to try the following script to copy and paste an image in the images folder. To launch the script with a quick access key, use FastScripts (free up to 10 keyboard shortcuts).

    the value thePictureName to "Test.jpg".

    value thePicture to (path to the folder images as text) & thePictureName as alias

    say application 'Finder '.

    activate

    thePicture reveal

    end say

    delay 1

    say application 'System events' to hit 'c' using {control down}

    say application "Messages".

    activate

    if not visible from the window 1 then

    say application 'System events' to hit '0' using {control down}

    end if

    end say

    delay 1

    say application 'System events' to hit 'v' {control down}

Maybe you are looking for

  • I have a list in Word of e-mail addresses. How can I get in the field bcc of email

    I want to write an email to 50 recipients. I have a list of e-mail addresses in Word. I can separate them by points or commas etc. How can I get them, en masse, in my email as BCC addresses. I agree not to go in my address book. This is an email at o

  • Kept deleted Hulu please Apple TV

    Eddd not order HULU.please cancel because I did not How does Hulu get my ID. N passsword

  • DVD-missing encoder?

    Hello! I just updated my 1700-500 Satellite since the age of Pierre Windows Me middle ages Windows 2000 pro :-). Everything works much more sure now, but I can't use my DVD-rom. There is no hardware problem since the device is indicated in the system

  • Opening of TDMS files larger than 500 MB in LabVIEW

    Hello We were faced with a problem when opening files TDMS connected using a LabVIEW, PDM Viewer (the vi in palette Advanced TDMS) application, or by creating a new PDM vi player. The recorder app is built using TDMS functions in palette file. When t

  • Mac Book Pro oxC004F061 error code

    Hello I lost my phone and recently bought MacBookPro. Now mac provide us Dule-boot installation. Previously when lunch Win8Pro I bought the same Microsoft online. Now when I install the same MacBook Pro while I can't active my window. I get the error