Need help in automating this popup

I have a button that pops up a box display
But I have so many its driving me nuts…

Someway to auto array this somehow would be nice… reading but just need a pointer somewhere



import com.mosesSupposes.fuse.*;
ZigoEngine.simpleSetup( Shortcuts, PennerEasing, Fuse );


 box1._scale = 0; 
  box2._scale = 0;  

// set 1 Start
// talk_window
var g:Fuse = Fuse.open();
g.label = "talk_window";
g.autoClear = false; // self-delete when done.
Fuse.openGroup();
box1.tween("_scale, _alpha", [100, 100], 1, "easeInExpo");
Fuse.close();

box1_B.onPress = function () {
	g.start();
}

// close_window
var p:Fuse = Fuse.open();
p.label = "close";
p.autoClear = false; // self-delete when done.
// the next action uses one tween call to group three properties.
box1.tween("_scale, _alpha", [0, 0], .5, "easeOutExpo");
Fuse.close();

box1.onPress = function () {
	p.start();
}
// set 1 End      

// set 2 Start
// talk_window
var g2:Fuse = Fuse.open();
g2.label = "talk_window";
g2.autoClear = false; // self-delete when done.
Fuse.openGroup();
box2.tween("_scale, _alpha", [100, 100], 1, "easeInExpo");
Fuse.close();

box2_B.onPress = function () {
	g2.start();
}

// close_window
var p2:Fuse = Fuse.open();
p2.label = "close";
p2.autoClear = false; // self-delete when done.
// the next action uses one tween call to group three properties.
box2.tween("_scale, _alpha", [0, 0], .5, "easeOutExpo");
Fuse.close();

box2.onPress = function () {
	p2.start();
}
// set 1 End