Resize photo frame as photos change

I’ve been looking into how to change the size of a photo frame created in Flash as the image changes, something like this After looking at it, I figure it would be AS but I’m not sure where to start. Are there any tutorials available for something like this? I tried searching but I don’t even know what to call it.