PhotoTiles block doesn't empty tiles before adding new tiles

PhotoTiles block doesn't empty tiles before adding new tiles. It just adds them to the end of already existing tiles.

Checkhttp://www.popfly.ms/users/praveenreddy/Flicker%20Image%20search

search 2 different tags. On first search you will see 50 tiles and on second search you will see 100 tiles. Its appending tiles to the end.

Advanced view shows the below line.

data["PhotoTiles"] = new Array(); Doesn't this clear out existing tiles?

[637 byte] By [PraveenLR] at [2008-1-25]
# 1

Hi Praveen thanks for bringing this one up. I'll put in a suggestion to add a "clearPhotos" sort of method.

Anyways, to make it work for now, all you need to do is add:

Code Snippet

photoTiles.scene.PicsArray = new Array();

to the top of the advanced view of the photoTiles block. The:

Code Snippet
data["PhotoTiles"] = new Array();

bit is actually creating a new array to pass data to the next block. (although there isn't one in this case!)

have fun!

- tim

TimothyRiceMSFT at 2007-9-25 > top of Msdn Tech,Popfly,Popfly Bugs and Suggestions...