User Tools

Site Tools


orbmenu

OrbMenu

The OrbMenu creates a free-floating menu that optionally randomly floats around the stage in a screen-saver mode.

An orb menu with buttons to call colors.
OrbMenu screenshot

Characteristic

Definition
Type Interactive Display Object
Category Element
Scope Local
Position *
Parents Container
Children Buttons
Gestures Drag, Tap
Attributes
Requirements none

Attribute

Type

Description
attractMode true/false defines whether OrbMenu is floating or not
background object reference sets the background in rectangle of OrbMenu
backgroundColor number sets the background color
backgroundLineStroke number sets the background line stroke
backgroundOutlineColor number sets the line color of the background
coverage number sets the coverage of text
curveText text sets the text
gradientAlphas text sets the alpha of the gradient shapes
gradientColors text sets the array of color values of gradient shapes
gradientHeight number the height in pixels to which the gradient will spread
gradientRatios number sets the ratios of the gradient shapes
gradientType text sets the gradient type fro shapes
gradientWidth number the width in pixels to which the gradient will spread
gradientX number how far in pixels the gradient is shifted horizontally
gradientY number how far in pixels the gradient is shifted vertically
line object reference sets the intersection lines of background
matrix object reference sets matrix to control gradient appearance of shapes
orbRadius number sets the radius of the orb menu
repeatTimer number sets the number of times the timer will tick before the timer stops itself
shape1 object reference sets the outer circle shape
shape1LineStroke number sets the line stroke of shape1
shape1OutlineColor number sets the outline color of shape1
shape2 object reference sets the inner circle shape
shape2LineStroke number sets the line stroke of shape2
shape2OutlineColor number sets the outline color of shape2
startAngle number sets the start angle for text
stopAngle number defines the stop angle for text
textRadius number defines radius of text
textX number sets the centerX position of text
textY number sets the centerY position of text

See Also: Display Attributes

<OrbMenu id="ob1" repeatTimer="1" attractMode="true" textX="90" textY="80" textRadius="100" curveText="MENU" coverage="0.4" startAngle="100" stopAngle="100" orbRadius="100"x="700" y="200" gradientType="linear" gradientColors="0x404040,0x404040" gradientAlphas="1,1" gradientRatios="0,255" gradientHeight="100" gradientWidth="50" gradientRotation="0" gradientX="25" gradientY="0" shape1LineStoke="3" shape1OutlineColor="0x000000" shape2LineStoke="3" shape2OutlineColor="0x000000" backgroundColor="0x808080" backgroundOutlineColor="0x000000" backgroundLineStoke="3">

    <Button id="btn0" dispatch="down:btn0" hit="close-hit" initial="close-up" down="close-down" up="close-up" out="close-up">
	<Container id="close-up">
            <Text text="grey" selectable="false" color="0x151B54" fontSize="18" x="15" y="20" font="OpenSansRegular"/>
	</Container>
	<Container id="close-down">
            <Text text="grey" selectable="false" color="0x151B54" fontSize="18" x="15" y="20" font="OpenSansRegular"/>
	</Container>
	<Container id="close-hit">
            <Graphic shape="rectangle" width="100" height="100" alpha="0"/>	
        </Container>    
    </Button>
    <Button id="btn1" dispatch="down:btn1" hit="close-hit" initial="close-up" down="close-down" up="close-up" out="close-up">
	<Container id="close-up">
            <Text text="purple" selectable="false" color="0x151B54" fontSize="18" x="15" y="20" font="OpenSansRegular"/>	
	</Container>
	<Container id="close-down">
            <Text text="purple" selectable="false" color="0x151B54" fontSize="18" x="15" y="20" font="OpenSansRegular"/>
	</Container>
	<Container id="close-hit">
            <Graphic shape="rectangle" width="100" height="100" alpha="0"/>	
        </Container>
    </Button>
    <Button id="btn2" dispatch="down:btn2" hit="close-hit" initial="close-up" down="close-down" up="close-up" out="close-up">
	<Container id="close-up">
            <Text text="pink" selectable="false" color="0x151B54" fontSize="18" x="15" y="20" font="OpenSansRegular"/>	
	</Container>
	<Container id="close-down">
            <Text text="pink" selectable="false" color="0x151B54" fontSize="18" x="15" y="20" font="OpenSansRegular"/>
	</Container>
        <Container id="close-hit">
            <Graphic shape="rectangle" width="100" height="100" alpha="0"/>	
        </Container>
    </Button>
</OrbMenu>
orbmenu.txt · Last modified: 2015/09/18 15:47 by glass