Hello!
I have to ask you a question.
I'm trying to make the game camera zoom in and zoom out during the game. I'm using the following code that I found here on the forums:
scene.parent.scaleX = _scaleXpercent;
scene.parent.scaleY = _scaleYpercent;
I'm using this code block in the behavior of the game scene.
The problem is that when I zoom the camera out I can see that the area around the camera is cropping.
I examined an article in the ActionScript help system about the
DisplayObject and found out that this object has the
scrollRect property. If I understand correctly, this property is responsible for defining the size of the viewable area on the game screen. But I can't change values of this Rectangle object - when I try to do it, the behavior stops working. I think the reason is that
flash.geom.Rectangle is not imported in the behavior. But when I put the code line to import it in the behavior, the whole game fails to execute.
I know that there is a Freeform mode where I can write the pure AS3 code. Is there any way to implement the camera zooming without screen cropping in this mode?
Can you give any advise how to solve this problem? I would be happy to resume the work on my project as soon as the camera will zoom correctly

Thanks for reading this and sorry for my poor English. Please, help!