Maximise components

Hi all,

I’ve got a flex project made up of muliple components! What I want to do is give the user the option of maximising certain components so that all of the other components black out and the selected component takes up most of the screen!

The way I was thinking of doing this was snapping the component as a bitmap and using a pop-up window to overlay a bigger version of this bitmap on the screen!

Does anyone have any ideas on how I could get a snapshot of the component as a bitmap? Or even a different way of doing this? Any help really would be greatly appreciated!

Thanks,
Derm

Ok,

In case anyone else is wondering how to do this, I used the ImageSnapShot function available in the mx graphics package to take a snapshot!

[SIZE=2][COLOR=#0033ff][LEFT]public[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#339966]function[/COLOR][/SIZE][SIZE=2] takeSnapshot():[/SIZE][SIZE=2][COLOR=#0033ff]void[/COLOR][/SIZE][SIZE=2] {
[/SIZE][SIZE=2][COLOR=#6699cc]var[/COLOR][/SIZE][SIZE=2] imageBitmapData:BitmapData = ImageSnapshot.captureBitmapData(source);
swfLoader.source = [/SIZE][SIZE=2][COLOR=#0033ff]new[/COLOR][/SIZE][SIZE=2] Bitmap(imageBitmapData);[/LEFT]
}

with source been an IBitMapDrawablke component! I then creat a swf loader on my pop-up screen to load the bitmap! Going to have a look at resizing it now!
[/SIZE]