public
Description: iPhone UI as Rich Symbols for Adobe Fireworks
Homepage:
Clone URL: git://github.com/hipster/iphone_ui_fireworks.git
iphone_ui_fireworks / navigation_item.jsf
100644 1 lines (1 sloc) 0.8 kb
1
// Button Arrow Script function setDefaultValues() { var values = new Array(); // Button Label values.push({ name:"Label", type:"text", value:"Label" }); // Button Direction values.push({ name:"Direction", type:"ComboBox", value:"Right,Right,Left"}); Widget.elem.customData["currentValues"] = values; } function applyCurrentValues() { var values = Widget.elem.customData["currentValues"]; var direction = values[1].value.split(",")[0].toString(); Widget.GetObjectByName("active").textChars = values[0].value; Widget.GetObjectByName("arrow_right").visible = (direction == "Right"); Widget.GetObjectByName("arrow_left").visible = (direction == "Left"); } switch (Widget.opCode) { case 1: setDefaultValues(); break; case 2: applyCurrentValues(); break; }