Well, now im getting an "Error #1502: A script has executed for longer than the default timeout period of 15 seconds." error at line 274 of the Merge class. I've already tried with both merger.apply(cubeContainer, cube) and with merger.applyToContainer(cubeContainer), and this just gives this error. This only happens if i try to add 2 types of cubes to the same mesh and i think its because the cubeContainer keeps getting so bigger, with so many vertices, that it takes an year to loop through them... So, (finally), i've created an example to show what im saying.
I have uploaded 3 files: MergeTester.fla - the fla of the test :-D MergeTester.as - the file where the code is. If you want to switch from 1 single mesh to 2 meshes (one for the floor cubes and other for the wall cubes), please follow the instructions in the code comments. Input3D.as - this is a class i created, based on Flare3D's one, that is used for handling keyboard input. It is still uncompleted, but it works. I've added this file because in the project i have a camera which you can move with your keyboard. CAMERA INSTRUCTIONS: W - Increase Y S - Decrease Y A - Increase X D - Decrease X UP arrow - Increase Z DOWN arrow - Decrease Z I've also added a WireframeAxesGrid, to help orientating :-). NOTES: If you only use 1 mesh, it gives the time-out error, but if you use the 2 meshes, it works like a charm. The question remains: is this the expected behavior? If yes, so in that case i need to create a Mesh, that will represent a map, with various submeshes, each one for 1 type of cube, right? Thanks, rjgtav
MergeTester.fla
Description: Binary data
MergeTester.as
Description: Binary data
Input3D.as
Description: Binary data
