Creating snapshots off screen

It would appear that creating a snapshot offscreen causes it to be blank and calling invalidate on it does not get it to generate it’s content properly.

I ran into this when using snapshot to create thumbnails offscreen and have them slide on from the side, using composer transitions.

The solution appears to be to create them onscreen but with an alpha of 0, then add them to the group being transitioned on and transition their alpha back to 1.

Can anyone else confirm this?

Sorry for the lack of code samples.

Yeah, that’s how they seem to work.

I’ve tackled this issue via various different means, but often I’ve found it enough to create and add the display objects straight into the snapshot group without any gimmicks. If I’ve wanted to create some things out of sight, I’ve usually created the display objects behind my background group, which in my case has always included a rect/imageRect that covers the entire display.

Yeah, that’s how they seem to work.

I’ve tackled this issue via various different means, but often I’ve found it enough to create and add the display objects straight into the snapshot group without any gimmicks. If I’ve wanted to create some things out of sight, I’ve usually created the display objects behind my background group, which in my case has always included a rect/imageRect that covers the entire display.