Flash target, OnResize causing loss of bitmapData

Monkey Forums/Monkey Bug Reports/Flash target, OnResize causing loss of bitmapData

Rhodesy(Posted 2013) [#1]
Please see:

http://www.monkeycoder.co.nz/Community/posts.php?topic=4929


Skn3(Posted 2013) [#2]
Whilst the topic is being looked at, would it be possible to add a new monkey app event. OnResize(). Triggered on platforms that resize and on resolution change (if supported in the future). That way we can respond to resize events in monkey code.

e.g.


Perhaps could be split into two events OnResizing() and OnResized(). OnResizing gets called multiple times while resizing and OnResized gets called at the end?


marksibly(Posted 2013) [#3]
Some sample code? I am unsure what you're doing so can't test your fix.

> would it be possible to add a new monkey app event. OnResize()

You should poll for size changes at start of OnRender.


Rhodesy(Posted 2013) [#4]
It's more that I've made a custom target that resizes the flash object.

The OnResize event in flash triggers, and I get a bluescreen.


marksibly(Posted 2013) [#5]
Without your custom target code I can't apply or test the fix - from your link above, I can't even tell where the fix is meant to be made.

Could you either post a link to a runnable example (eg: test source + custom .build folder) or email one to me?