-
1. Re: Interval between menu rows?
Rob Dillon Aug 7, 2013 1:33 PM (in response to kisjans)How did you make the menu? How do you get these buttons on the stage?
-
2. Re: Interval between menu rows?
kisjans Aug 23, 2013 12:29 AM (in response to Rob Dillon)It was a premade menu exported to swf, managed with xml database. I can't find any option to set this, only the text position and the flash box size :/
-
3. Re: Interval between menu rows?
Rob Dillon Aug 23, 2013 5:27 AM (in response to kisjans)It sounds like the controls that you are looking for are inside the .swf. Do you have access to the original .fla file that was used to make the menu?
-
4. Re: Interval between menu rows?
kisjans Aug 26, 2013 3:05 AM (in response to Rob Dillon)I can only decomply the swf and export into an fla file, i dont have the original fla sadly.
-
5. Re: Interval between menu rows?
kisjans Aug 26, 2013 3:56 AM (in response to kisjans)Found some editable sprites:
// Action script...
// [Action in Frame 1]
menu_label = new Array();
menu_url = new Array();
var flashmo_xml = new XML();
flashmo_xml.ignoreWhite = true;
flashmo_xml.onLoad = function ()
{
var _loc3 = this.firstChild.childNodes;
for (var _loc2 = 0; _loc2 < _loc3.length; ++_loc2)
{
menu_label.push(_loc3[_loc2].attributes.item_label);
menu_url.push(_loc3[_loc2].attributes.item_url);
} // end of for
};
flashmo_xml.load("menu_items.xml");
// Action script...
// [Action in Frame 2]
this.onEnterFrame = function ()
{
if (flashmo_xml.loaded)
{
play ();
delete this.onEnterFrame;
} // end if
};
stop ();
// Action script...
// [Action in Frame 3]
stop ();
menu_item_group.menu_item._visible = false;
var spacing = 5;
var total = menu_label.length;
var distance_x = menu_item_group.menu_item._width;
spacing;
var distance_y = menu_item_group.menu_item._height + spacing;
var i = 0;
var j = 0;
var k = -1;
while (i < total)
{
menu_item_group.menu_item.duplicateMovieClip("menu_item" + i, i);
menu_item_group["menu_item" + i].over = true;
menu_item_group["menu_item" + i].item_text.text = menu_label[i];
menu_item_group["menu_item" + i].item_url = menu_url[i];
if (i % 10 == 0)
{
j = 0;
++k;
} // end if
menu_item_group["menu_item" + i]._x = j * distance_x;
menu_item_group["menu_item" + i]._y = k * distance_y;
++j;
menu_item_group["menu_item" + i].onRollOver = function ()
{
this.over = false;
};
menu_item_group["menu_item" + i].onRollOut = menu_item_group["menu_item" + i].onDragOut = function ()
{
this.over = true;
};
menu_item_group["menu_item" + i].onRelease = function ()
{
getURL(this.item_url, "");
};
menu_item_group["menu_item" + i].onEnterFrame = function ()
{
if (this.over == true)
{
this.prevFrame();
}
else
{
this.nextFrame();
} // end else if
};
++i;
} // end while
-
6. Re: Interval between menu rows?
Rob Dillon Aug 26, 2013 4:33 AM (in response to kisjans)You have two variables that are defined in the frame 3 actionscript: distance_y and k. It looks like you can change the distance between the rows of buttons by changing the value of distance_y.


