I found that the documentation for the component was very thorough and I was able to create a menu in a few minutes. When I did encounter something that I didn't understand, I sent an email to frogstyle, not really expecting to get a reply. I was pleasantly surprised to receive a prompt reply with some tips on how to solve my problem.

I have played around with many different settings using the component inspector to achieve some great variations -- I love your menu.
Susan H. (USA)

 
only US$ 20.00
DAVID reference
DAVID2 is a horizontal pop down menu component you can use for linking html sides or to use as navigation construct for your own functions.

to add a menu to your component use the following function:
myComponent.addMenu(label:String, href:String, target:String)
label: the text appearing on the menu
href, target: an url to open a website, e.g. "http://www.frogstyle.ch/en/", "new"

to add a submenu use this function:
myMenu.addSubMenu(label:String, href:String, target:String, icon:String, indented:Boolean)
icon: the linkage name of the movie clip symbol in the library to attach to a movie clip on the stage
indented: if set to true this puts a submenu in another subordinated position that is indented


important! to assign a submenu to a specific menu you have to define your menu by a variable. The submenu in this example has no url linking but a icon on it, that's why the 2nd and 3rd parameter are set to undefined.
var menu1:MovieClip = myComponent.addMenu("menuLabel");
menu1.addSubmenu("submenuLabel", undefined, undefined, "iconLabel");
properties panel
_Delay: Number
the delay time of the outfading onMouseOver effect in milliseconds
_Miliseconds: Number
the velocity of the extending submenus
_RollOverAlpha: Number
alpha value of the glowing mask onMouseOver
_RollOverColor: Color
color of the glowing mask onMouseOver
_ShellAlpha :Number
the container square behind the submenus
_ShellColor: Color
_Space: Number
Gap between two following menu buttons (horizontal)
_UseHandCursor: Boolean
_YSpace: Number
Gap between two following submenu buttons (vertical)

in the following are the m (for menu) describing features that affect the menu buttons and sm (for submenu) those that affect the submenus

Alpha: Number
Bold: Boolean
BorderColor: Color
BorderThickness: Number
ButtonHeight: Number
Color1: Color
the first color of the linear color gradient
Color2: Color
Color3: Color
Font: String
FontSize: Number
GradientRotation: Number
the orientation of the gradient vector (1.57 for horizontal)
Italic: Boolean
LabelPositionX: Enummeration
the textfields relative position to the button (horizontal)
LabelPositionY: Enummeration
vertical)
Radius: Number
corner radius of the buttons
Ratio1: Number
defines the percentage of the width where the color is sampled at 100 percent (0 - 255)
Ratio2: Number
Ratio3: Number
TextColor: Color
user defined functions
When you like to use DAVID component in other ways than linking to html sites you may set your own functions. First define your function:
var myObject:Object = new Object();
	myObject.click = function() {
		trace("write your executable code here");
	}
then you can add the component structure:
var myMenu:MovieClip = myComponent.addMenu("Menu1");
	var mySubMenu:MovieClip = myMenu.addSubMenu("SubMenu1", undefined, undefined, "iconLabel");
			mySubMenu.addEventListener("click", myObject);

 
drag the DAVID component from the components panel (frog style components) (Ctrl-F7) to your stage.
name the instance in the properties panel, e.g. myComponent
create a new layer in your timeline and name it actions (that's not neccessary, but nice to do)
select the first frame of layer actions. Press F9 to open the Actions window
add a menu by typing 'myComponent.addMenu("1st Button", "http//www.frogstyle.ch/en/", "new");
repeat step 5 as you please
use the component inspector (Alt-F7) to set different parameters

David Fuersinger
David Fuersinger
David Fürsinger is a Flash Programmer and is currently studying Biology at the ETH Zurich.

david@frogstyle.ch

 
157 ms
© 2000 - 2004 frog style web engineering, all rights reserved