Flash Tile List with Drag and Drop Functionality
-
21-06-2021 - |
質問
I can easily done the drag and drop functionality in FLEX using DragManager class but enable to do same in Flash CS-5. I also want to show the preloader with each tile of tileList before image appear in tileList.Please help me on this.Thanks in advance.
解決
Yes, check this one out on google code, it's extending the TileList from the Flash UI components.
Regarding a preloader, the TileList should already use an ImageCell which contains an UILoader (so you can access bytesLoaded/bytesTotal) and it also inherits from the LabelButton UIComponent (so you have a label propert/textField available). It's up to you how you implement the preloader (either following how the label text is changed by the component to use that to display a percentage(%) based text while the tile is loading or using a custom preloader clip).
You might find these older answers helpful:
- How to handle Unhandled #2044 errors from Flash tilelist when changing dataprovider? (to be on the safe side)
- how to create a custom cell renderer for a tile list in flash - especially this post and the imageCaching post linked in it.