…after much tries… and exploring the Flex builder’s help, Adobe Developer connection and some articles… I managed to modify the application further… now the search can be started by pressing the return key and when a photo is selected, it will be displayed in a bigger format in a window…
You can click on the link to see how it looks like…
In this example, besides keyboard and list events… I have learnt more about the PopUpManager as well…
I have added a new TitleWindow component, photoPanel, in this modification to display the selected photo… So how the application works now….. When an item in the TileList is selected, it will trigger the openPhoto function.. and uses PopUpManager to create a photoPanel… it will, then, send the parameters of the selected photo to photoPanel… photoPanel will make use of these parameters and display the correct photo…
public function openPhoto( e2:ListEvent ):void {
var oSelectedPhoto:photoPanel = photoPanel( PopUpManager.createPopUp( this, photoPanel, false ));
oSelectedPhoto.photoTitle = e2.itemRenderer.data.title;
oSelectedPhoto.photoURL = e2.itemRenderer.data.content.url;
}
Below, I have included the codings for my application here…..
