Help With Buttonbar
I am making a button bar for my uncle.
When i hover the mouse pointer over the button, you zoom in on it, and you get a small, three button menu up on the side.
But I can't the button to stay up when i want to click one of
the menu buttons. Can anybody please tell me how i can make it work????
Please help!!!!
View Replies !
View Related
Data Validation Using Buttonbar
In my app, I have a button bar with data provider as an arraycollection and a text field. I want to validate user input in the text field based on the item selected in button bar.
my sample code is like this....
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var actions:ArrayCollection = new ArrayCollection([
{label:'Save Changes', action:"Save"},
{label:'Cancel', action:"Cancel"}
]);
]]>
</mx:Script>
<mx:StringValidator id="reqV"
source="{inputA}"
property="text"
required="true"
trigger="........" // I want ot validate the data in inputA when i click save changes not before that
triggerEvent="click"/>
<mx:TextInput id="inputA"/>
<mx:HBox width="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off" horizontalAlign="right" verticalAlign="top" styleName="BoxTopPadding5">
<mx:ButtonBar horizontalAlign="right" dataProvider="{actions}" id="SaveOrCancel" creationComplete="Alert.show(''+actions[0].action)"/>
</mx:HBox>
</mx:Application>
can somebody halp me in this regard.
thanks in advance.
View Replies !
View Related
Buttonbar: OnRollOver - Button OnRelease : Problem
Hey,
I have created a buttonbar wich contains some buttons. This bar is at the bottom of my screen and you only see the top of it. If you put your mouse over this top it reveals itself.
The buttonbar is inside a movieclip and inside i have tweens for an open & close event. This tweening is with an image.
This is the code on the first frame of the movieclip: (this works perfectly)
Code:
stop();
this.onRollOver = function(){
if(up != true) {
this.gotoAndPlay("open");
}
}
this.onRollOut = function(){
if(!_root.mc_paused.vis) {
this.gotoAndPlay("close");
}
}
Now my problem:
The layer above the image that goes up and down, I have a button that also goes up and down.
This button has an on(release) function, but I cannot addres this function... I have a trace in there.
It seems that I can't click on the button (it doesn't even change color when i go with my mouse over it), it looks like the onRollOver has all the power.
Anyone an idea? Thanks
Pete
View Replies !
View Related