Content of the image that is not defined in the TileList component

I have two images on a canvas, it is directly on the Web using the inline code, the other is embedded in a tilelist. The two images of rendering. When I click and drag the image online, the drag proxy appears normally. When I click on and drag the image in the tile list, I get an error when I try to make a copy of the bitmap image. This happens because the content of the image in the tile list is null, even if the source value is correct and the image has been loaded. I'm assuming that he is some kind of problem itemRenderer, but I'm not clear on how it retains the source of the image, but not the content. If it is the image of duplication and making reference to another bitmap, how do I enter this bitmap?

The code is lower except for the image.

<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "layout ="absolute"creationComplete =" init () "> "

< mx:Script >
<! [CDATA]
Import mx.collections.ArrayCollection;
Import mx.managers.DragManager;
Import mx.core.DragSource;

[Bindable] private var images: collection ArrayCollection = new ArrayCollection collection;

private function init (): void {}
i.source="images/1.PNG '; //Set the image source which is placed directly on the canvas, this image has a drag proxy
var i2:Image = new Image; //Create new image to add to the list of tile, this image is not a proxy valid drag because the content is missing
I2.source="images/1.PNG ';
images.addItem (i2);
}
private void mouseMoveHandlerTileList(event:MouseEvent):void
{
var tl:TileList = TileList (event.currentTarget);
var image: Image = tl.selectedItem as Image;
If {(image)
Here the image contains the right source, but no content.
initiateDrag (event, image);
}
}

private void mouseMoveHandlerImage(event:MouseEvent):void
{
var image: Image = Image (event.currentTarget);
If {(image)

Here the image contains content
initiateDrag (event, image);
}
}

private void initiateDrag(event:MouseEvent,_image:Image):void {}
var dragInitiator:Image = image;
var ds:DragSource = new DragSource();
ds.addData (image, "item");
var dragProxy:Image = new Image;
var data:BitmapData=Bitmap(image.content).bitmapData.clone(); /image. Happy is not null for canvas used, but has the null value for image in the list of tile
dragProxy.source = new Bitmap (data);
DragManager.doDrag (dragInitiator, ds, event, dragProxy);
}

[]] >
< / mx:Script >
< mx:Canvas id = 'c' width = '100 percent"height ="100% ">

< mx:Image id = 'i' mouseMove = "mouseMoveHandlerImage (event)" x = "400" y = "400" / > "
< mx:TileList id = dataProvider "t" = "{images}" mouseMove = "mouseMoveHandlerTileList (event)" "
x = "0" y = "0".
>

< mx:itemRenderer >
< mx:Component >
< mx:Image source = "{data.source}" / >
< / mx:Component >
< / mx:itemRenderer >
< / mx:TileList >
< / mx:Canvas >
< / mx:Application >

If this post has answered your question or helped, please mark it as such.

To access the items in the container when using some renders can be problematic, because Flex recycle items for large sets of data.

So this code works very well, but uses a Repeater. You may need to do some thinking to rework your concept, but it works:


http://www.Adobe.com/2006/mxml">
 
    Import mx.collections.ArrayCollection;
Import mx.managers.DragManager;
Import mx.core.DragSource;
       
[Bindable] private var images: ArrayCollection = new ArrayCollection([) collection

'assets/images/BobSmith.jpg '.
]);

private void mouseMoveHandlerTileList(event:MouseEvent):void {}
var image: Image = Image (event.currentTarget);
If {(image)
initiateDrag (event, image);
}
}
           
private void mouseMoveHandlerImage(event:MouseEvent):void {}
var image: Image = Image (event.currentTarget);
If {(image)
initiateDrag (event, image);
}
}
           
private void initiateDrag(event:MouseEvent,_image:Image):void {}
var dragInitiator:Image = image;
var ds:DragSource = new DragSource();
ds.addData (image, "item");
var dragProxy:Image = new Image;
var data:BitmapData=Bitmap(image.content).bitmapData.clone(); image. Happy is not null for canvas used, but has the null value for image in the tile list
dragProxy.source = new Bitmap (data);
DragManager.doDrag (dragInitiator, ds, event, dragProxy);
}
]]>
     
 
   
     
                 
     

   

   
 

Tags: Flex

Similar Questions

  • I continue to receive emails with images that do not appear?

    Hello

    I continue to receive emails with images that do not display, simply to show a Red Cross in the top left box from where the image should appear. I can download that will automatically open these emails?

    At soon AL

    Since it is a XP forum... I'm guessing that you are running Outlook Express?

    The following steps may be worth a try...

    Open Outlook Express and go to...

    Tools / Options / Security tab.

    Clear (clear) the box "block images and other external content in HTML e-mail" / apply / OK

    Also on the reading tab... Make sure that "Read all messages in plain text" is not checked.

  • How to show only images that do not have a card slot affected

    I just upgraded to PSE 11.  So far so good.  I am running Windows 7 64-bit, SP1.

    I would like to know how to find all my photos that do not have a card slot assigned to them.

    Is there a way to do this?  It can be built in, but so far I was not able to understand.

    Thank you.

    Title of the message was edited by: Brett N

    Hello

    I think that if you select the view of the places , the pictures shown are those you have already placed. If you then click Add locations (downstairs) film in the upper part shows the images that have not been placed.

    If you then place one of these images, a small icon appears in the film strip until you then close this window (click done).

    Hope that helps

    Brian

  • PSE9/Win 7: Can I create a Smart Album of all images that do not have a certain tag?

    With the help of PSE9 on Windows 7.

    I would like to create a Smart Album that contains all images that do not have a particular tag.

    When I click on create new Smart Album dialog box allows me to select "key words".

    But I'm calling "Include". I can select the tags I want.

    Basically, I want to include it in "exclude".

    Any way to do something like that?

    Hello

    You can try this.

    (1) view all photos

    (2) check the keyword tag you are interested in

    (3) under Options, Select hide correspond better results & show results that do not match (i.e. reverse the last two conditions).

    to read

    That should show you what you wanted to see

    (4) now use the option high save search criteria as Smart Album and give it a name

    This seems to remember the conditions reversed and the tag.

    Good luck

    Brian

  • Display the content of images that are not on the page

    I have some images containing the photos I would like to move out of the page completely while I rearrange accordingly. The problem is that I see then is not the content of the framework. How can I activate the visualization of images that have been moved out of the page content?

    You're in preview mode. With no text active cursor hit W or use the mode button on the bottom of the box tools, or lifetime the view menu to switch back to the normal display.

  • AF:inputListOfValues except the values that are not defined in LOV

    Hello

    I have a requirement where the user can select a value in the given list and if the desired value is not available,
    He can type a new value.

    Currently I use af:inputListOfValues and it tries to validate the new value with the list of values, he gives
    a mistake. True = immediate adjustment will not solve the problem.

    Is their all component which can solve the purpose. If not, how can I do af:inputListOfValues to accept a new
    a value that is not in lov.

    Thank you
    Amit

    Have you tried to delete f: validator in the component?
    Look here Re: inputLOV - disable autocommit

  • Background image that does not print.

    Hello Board,

    I need to catch up with a PDF form that we will use as a template to fill out slips.  The part of the form is easy to do, but it is possible to have a

    background image that appear on the screen, but not print?  that is, we'll get forms pre-printed through the printer, but want the image

    on the screen so the operator sees visually on the screen which slot they have tabulated above for information.  Ideally, the info in the slots of form will be

    paper, but we don't want the image of the form to print.  Hope that makes sense - if so, any ideas?

    Use the menu Document > background > add/replace...

    Change the appearance Options

  • How to approach the cell relative to the TileList component during drag-and-drop processing

    Is there a way to address the cell tile being hit against during the processing of dragDrop function?

    private void myDragDrop(e:DragEvent):void {}
    e.Whatthe #* &$
    }

    < mx:TileList id = number of rows 'tilelist1' = '9' columnCount = '9 '.
    dragDrop = "myDragDrop (event); "dataProvider ="{anyOldAC}"/ >

    If I drop something on the 3rd line and the 5th column, I would like to be able to manipulate the dataProvider the15th enter without having to understand the number of cells in the geometry of component and mouseX/mouseY. With the help of component geometries just seems too fragile.

    Got the answer from Joan Lafferty on the forum of programmers:

    Use calculateDropIndex(event:DragEvent) which is a function
    for a TileList component. Return the index where the item has been deleted.

    And it works:

    private void myDragDrop(e:DragEvent):void {}
    var dropIndex:int = tilelist1.calculateDropIndex (e);
    Alert.Show ("dropIndex:" + dropIndex);
    }

    Thank you, Joan!

  • How can I find the images that are not in the catalogue?

    I imported about 600 photos of a friend of Wakeboarding in Lightroom. I then analyzed quickly through them and remove those who were not good.

    I wanted to delete these photos in the album. However, in about 10 cases I accidentally their removed from the catalog, not from disk.

    All photos of the wakeboard are in the same folder; There are no other images in this folder.

    Is there a way to find out what images are in this folder, but are not in the Lightroom Catalog?

    Rotaluclac

    Probably the easiest way would be to reimport them in their folder (make sure that the box Import suspected duplicates is enabled).

    Those who imported will be reflected in import previous "collection." In the grid view, select all and press the delete key. Click the appropriate button on the box that appears.

    HAL

  • How to fix the slide show images that do not frame Muse

    I am building Muse site with several slideshows, Lightbox-style. A poster correctly, but in another, several images do not meet the framework. The two shows have identical settings: Full proportional Frame. In the exhibition of student work, proportioned panoramic images are reduced, and the upper part of the frame of image below is where I placed it in the design. Here's the URL:Gallery of work student in the subject hotel gallery, images are displayed correctly. Here's the URL: The hotel How can I fix the slideshow for images fill the frame? Thank you.

    Please try to check if any spacing or padding is added to the thumbnails, the student url does not work on my end.

    Thank you

    Sanjit

  • How can you change your icon of an image that is not on the list? 、

    I would change my icon of a picture。 custom how can I get there? 》》》

    Do you hear on these forums? If you do then you can not have a personalized avatar until you reach 500 points: levels and fringe benefits

    Forum tutorials: tutorials

  • How to cancel the setting of the image that is not the most recent change

    This question has been posted in response to the following article: http://help.Adobe.com/en_US/Lightroom/using/WS9AB9509C-05BE-4396-9ED2-313C0FF8A154.html

    Title of the message was edited by: Brett N

    Develop module, the left panel, history. Open this article and you will see a list of the settings, the most recent is at the top of the list. Select the step you want to come back and then start to make adjustments. Everything above this market will be replaced.

  • Apple 4th TV showing a larger image that will not fit my TV.

    It seems like I'm losing part of the image produced by the ATV. When I go into the settings, I don't see the maximum area showed on the screen. Apple suggests that I have to do the configuration on my TV, but my TV is an old LG TV, model 47LY3RF and has the option of 16:9, 4:3, zoom 1/2, option 1:1 is not accessible. It is not possible too change the size of the screen on this subject.
    I already tried without success to other options of resolution on the ATV.
    Does anyone have an idea how to fix?
    Thank you!

    This is due to "Overscan". Unless your TV has an option to change the zoom, you're out of luck.

    I'm in the same boat and think that Apple could fix this with a parameter of Apple TV. I have a zoom setting with my old LG TV but it only zooms to 100% no less.

    If you have any suggestions that you think might improve Apple TV you can send your feedback here at Apple

    To be quite honest, arguably isn't really matter of Apple. There are safety standard for video production areas, if the developers of applications actually apply these standards you will probably notice even the overscan at all.

  • WMP has a VERY small video image that will NOT grow everything.

    A few months ago my WMP was not and is still not functioning. I deleted all versions of WMP, until I had the original that came with my computer (WMP5 or 6, not sure). I reloaded my operating system twice. I deleted, reinstalled, downloaded the latest and best several times. I still can't WMP to play a video properly. Even when I set the video size to "Fit screen" or "200%" video is still about 1/10 the size of the screen. To 100% normal size is about 1/20 the size of the screen. The video image WILL NOT grow anything.
    What should I do to get this corrected?

    Hi shanevj,

    You can try to download the file and save it to a location, and then try to play the video.

    Step 1:

    You can try to play the video in full screen and check.

    a. open Windows media player, and then click view

    b. Select full screen and check.

    Also read the following article:

    Windows Media Player10 refuses to enter full screen mode

    http://support.Microsoft.com/kb/555475/en-us

    Step 2:

    You can also download the latest codecs for the media player in Windows XP

    You can use your favorite search engine to download and install the third-party codecs for windows media player.

    Note: The use of third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to make an album to show images that do not already appear as a thumbnail?

    I have pictures of individual projects. I want to click on the one that opens a viewer to view the enlarged thumbnail but with the possibility to continue to look at other images of this project by clicking forward or above (these pictures obviously don't need to appear as thumbnails, before the opening of the light table). How can I do this?

    It passes by the nesting of two kinds of widgets.

    Start with a Lightbox display of widgets Composition category and put any miniature "ground floor" or anything else in each area of the trigger , more a normal slide show widget with the secondary series of images in each of the target area.

Maybe you are looking for

  • Cannot send Mail - error number: 0x800CCC0E - "the connection to the server has failed..." »

    De : Sch202 I am currently using Windows Mail, I was for about 6 months, all of a sudden yesterday I can't send emails. I have several e-mail addresses that are sent to this main account... gmail, earthlink. The error I get isThe connection to the se

  • How to get the computer on the new CS6

    HelloYears, I bought CS3 and still have the disk. In 2012, I've upgraded to CS6 which was a download. Need to buy a new computer today. I was able to get the drive icon on the desktop of the new CS6 computer. However, when I try to install it, a mess

  • Replacement key caps.

    I have a Lenovo Thinkpad Edge 14 "model which is no longer under warranty and had the arrow down and arrow keys break so that they remain is more locked on. They just pop off when I hit them. I called Lenovo and they don't sell to the keyboard. Onlin

  • How can I add my signature to a document

    How can I add my signature to a document

  • Newb needs help with vectorization

    I use PS and AI CS5It is a newb here so keep it civil please!I want to take my scanned sketches HAVE so I can use the "live trace" function to smooth out them and vectorizes them.  I used to do that all the time that a couple of years ago, but I forg