For the different backsides add this :
var brochureBack: Object = [
{ id: 'back1' },
{ id: 'back2' },
{ id: 'back3' },
{ id: 'back4' },
{ id: 'back5' },
];
Then change :
backMat = new BitmapAssetMaterial( "back" );
to
backMat = new BitmapAssetMaterial( this.brochureBack[i].id );
Of course you will actually have to import the new back page symbols and export for actionscript with the correct linkage names, the same as the front pages.
The only thing is this will put reversed images on the back planes – you will have to use a matrix to reverse the bitmap data – or simply create reverse them in photoshop before importing them.
Here is a working demo I made
Here is the fla file with the new bitmaps and linkages defined for you to copy.
I maYou can find a working version
I don’t have time to do the pivot thing at the moment
Posted about 1 month ago