Flex :: Layout - Horizontal MX Form Or Vertical Spark Form Flex?
Oct 5, 2011
I have noticed two differences between spark and mx forms which are causing me some problems. It seems by default the mx forms are arranged to the label is above the form input item. In Spark they are arranged next to each other. Also the label in spark forms are bold by default.For example MX code could be
<mx:Form width="100%">
<mx:FormItem indicatorGap="0">
<s:Label text="label1"/>
[code].....
View 1 Replies
Similar Posts:
Mar 15, 2011
I need an horizontal layout on my forms, they look like this:
[Code]...
I'm very confused about the new Flex 4 architecture...
View 1 Replies
Jun 9, 2011
I am going through the flex in a week training and I'm trying to use the Spark form in Flashbuilder 4, but it does not appear in the components windows. When I drag a form from there it is an mx form control. The project is set to use the 4.5 sdk and I can even create the tag in the code view, but when I do that is doesn't show up in the designer... How can I get the spark form control to either show up in the designer when created in the code view, or get the control to show up in the components window so I can drag it in?
View 1 Replies
Sep 22, 2010
In flex form layout
<mx:Form id="form">
<mx:FormItem label="horizontal:">
<mx:Text text="test"/>
</mx:FormItem>
</mx:Form>
the output will be horizontal 'test' But my constraint is i want to align the textbox(first child of the form item ) vertically with the label. How can i do this?
View 3 Replies
Feb 26, 2011
Is there a way to change the space between a spark form item and its content (textinput, combobox)? I already set to 0 the "gap" property of the form, but still there is a lot of vertical space left between the form inputs.
View 5 Replies
Aug 5, 2011
I found this example [URL].. which works great but only if you have the focussable elements in a VGroup.
However I have a Form inside the VGroup which means that the focussable elements are in FormItems of the Form. The Form can't be added directly into the Scroller and doesn't have a layout property.
I could use form.getElementIndex(formItem) and then do some math using the formItem y position but that's very ugly. Anyone have an idea how to get this working in a clean way like the above example?
View 1 Replies
Nov 28, 2009
am sending one user object from java to flex using remote object,now i want to get each item from that array to display in text boxes...how can i do this ?
userInfo=event.result as Array;
<mx:FormItem label="FirstName" fontWeight="bold" width="325" required="true">[code].....
View 1 Replies
Apr 22, 2010
How can i make the Legend Horizontal or Vertical.
View 1 Replies
Apr 2, 2012
I've created a skin that allows me to have two labels on a spark button, but the button text won't center vertically. It stays at the top of the button no matter what settings I give it. The icon in the skin DOES however, center vertically. This is the skin:
[Code]...
View 2 Replies
Jun 18, 2010
I am trying to do the move vertically animation on a button nested in the vertical layout. I am not sure if the Hgroup restricts the button moving vertically.
<s:states>
<s:State name="default"/>
<s:State name="addRecommend"/>
<s:State name="seeOther"/>
[code]....
View 1 Replies
Aug 30, 2010
I'm pretty sure my dynamic mxml layout must give me two scrollbars (horizontal and vertical) but it only shows vertical one.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%" xmlns:local="*">
<fx:Script>
[Code] .....
View 2 Replies
Aug 1, 2011
I have a canvas lets say the size of it on the screen is 500x500. But I want the actual canvas size to be 1000x500 making the other half scrollable. How can I make a blank canvas with that specification?
View 1 Replies
Apr 12, 2010
I have:
an ArrayCollection of Numbers;
a List using the above ArrayCollection as it's dataprovider, and virtualLayout=true;
a custom ItemRenderer that shows a label with:
a) the number
b) an y position depending on the number AND the highest number visible
In another words, if I have 10 numbers in the AC, and only 5 appear on the screen, the y position of those 5 will depend on the value of the maximum number for those 5. When the user scrolls, of course those 5 elements change so the position of the label in item renderers will change.
1) How can I get the list of items that are "currently" visible?
2) Which event/method to override will help me know that the List was scrolled/the visible items changed?
View 3 Replies
Oct 12, 2011
I am trying to have a tool-tip in Flex 3, where in when my mouse is over the some value, it should show a tool-tip just like you get it for any classes in Eclipse IDE. Suppose, your mouse is over word "String" in java, you get a tool-tip stating the description of java.lang.String and its syntax. It also allows to copy the contents. Is it possible to create such a tool-tip in Flex 3 ? I want this kind of tool-tip to appear, and when pressed F2, it should have horizontal and vertical scroll bars and we should be able to copy the contents from tool-tip.
View 3 Replies
Jul 11, 2011
How can I make my datagrid have its first column fixed and scroll the reset horizontally and vertically?
View 1 Replies
Oct 7, 2011
has their own web-to-lead form that can be used to send leads from a website contact form. But I want to submit leads from a contact form inside a flex application. I can't see anything in the documentation, or on Google about this. Is it possible?
View 1 Replies
May 10, 2011
Is there a way to get the columns to resize to the width of the new Datagrid instead of overflowing and showing the scrollbar? I've tried on the skin, setting all relevant properties and ran out of options. I just want it to behave like the previous Datagrid where the columns would resize to the width of the datagrid.
View 1 Replies
Jul 20, 2010
I created a form dynamically by adding each component in action script,now i want to get back the text/data entered in to that each component dynamically?[code]...
View 2 Replies
Dec 8, 2009
I have a Flex application that edits a moderately complex object, and I'd like to put some client-side validation in place on multiple parts of the editor.The editor is a set of nested objects:[code]The structure echoes the data model fairly closely, and the UI is what the project requires, so I'm not going to be too quick to restructure the classes there if I don't have to -- time is an issue too. What I want to do is have validators for each of the Component* instances that:[code]Show the validation tool tips and UI hints on the relevant UI element.Disable the SubmitButton when any part of the form is not valid(Optionally) provide enough information that I can display an error message in the form.
View 3 Replies
Feb 3, 2011
I'm designing a data entry app that allows multiple entries to its subject. For example, a person might have received education from multiple institutions. Each educational entry is a form and app user can click on a button to add another entry, which is a blank but identical form.I figure it involves states and custom form components but not sure how everything fits together.
View 1 Replies
Jul 13, 2011
I have a simple Form containing two input boxes. as shown in the code below :
<s:Form>
<s:FormItem width="242" label="Name:">
<s:TextInput x="1" y="0"/>
</s:FormItem>
[code]....
the problem is the input boxes are y distances apart and i want to bring them a little bit closer. if i had used the <s:VGroup/> or <s:HGroup/>, there is the gap property to close up the gap but that property is not in the Form tag.How can I close the gaps using the Form tag?
View 3 Replies
Feb 4, 2009
I am having some issues with a php email form that I am using in my AS3 project. the form works perfect and all communication is good.however when the user is on the page and wants to tab to the next text field it jumps to one of my hyperlinks on the same page and not to the next text field down on the php form.
is there any way to stop this from happening.I have tried placing the php form on a seperate layer in a seperate mc and I have done the same with the hyperlinks .you can see what I mean by visiting this development site.(after entering go to contact)http:[url].....
View 2 Replies
Jul 17, 2010
I have only two fields Name and Email in a Order form and a PayPal button for payment at PayPal ( into my account).I can do the mail portion but have no idea about PayPal code, however on search here I found one code and after pasting this one to the PayPal button it redirects to my PayPal account.But the question is anybody can post a message and leave the site without paying me. How can I do this thing so that the user will forced to pay before posting the mail form.
View 1 Replies
Feb 17, 2010
I have a super involved and somewhat silly site I've been working on for a long time piecing together fragments of AS2 code and modifying them to the best of my limited ability.The site is here:http:[url]....I am finally adding the last steps, a series of contact forms with a PHP script in the back end. Anyway, I implemented a form script and have it triggered by clicking the "CONTACT" button you can see on the lower bar. So, click contact and once the form opens (an external SWF loaded into an MC), type away and everything works fine unless you use the letter "f" in either upper or lowercase. It causes the screen to flash and for the form input to lose focus.It works (in that you can enter everything normally -- the form doesn't function, but that's just the PHP which I have yet to edit.)
View 0 Replies
Feb 12, 2012
How can I replace the value in the getstring for parameter partNumber=a100 with whatever the user typed into the search box.
[URL]
AS3 Code
var link:URLRequest=new URLRequest("http://www.stockmarket.aero/StockMarket/SearchActionR.do?partNumber=a100&communityName=BLU E&partial=true&theAction=search" + search_txt.text);
[Code]....
View 3 Replies
Feb 4, 2010
Let's say I have this function
function Do(x:String){}
How can I make so that each time this function is called, it will add a form into a hbox, and that form will have 2 buttons yes and no and put x into the text of a label.When the user is going to click on Yes I need to trace(x) and remove the Form from the hbox
View 1 Replies
Feb 16, 2010
I have a form that is written in MXML that allows a user to create/add a User.I need to add a form that allows a user to modify SOME but NOT ALL of the fields for this user.The forms are so similar, I don't want to have to create two separate forms, one for Add and one for Modify.For example, in the Add form, the user specifies a user id. In the Modify form, the "user id" field is not editable.I'm wondering how I can initialize the MXML form (i.e. pass in a parameter?) so that it knows whether it is in the Add state or the Modif state.I know I can't do the following but this is what I would like to do (pseudocode):[code]
View 1 Replies
Mar 4, 2011
I have a flex business application and need to create some control that will show a small picture symbol of given user's MSN messenger status (online, away etc.)
Alternatively, how to insert an html page inside flex form?
There is a HTML code snippet on MSN site (supposed to be) doing exactly what I want, here it is:
[Code].....
Also I'll need to replace eb892994c712bb83 in this snippet with user's cid code.
View 2 Replies
Apr 22, 2011
in my application im using a form...
<mx:Form x="10" y="22" id="f1" >
<mx:FormItem label="Location Code" id="labandtext">
<mx:TextInput id="locCodeTxt" editable="false"/>
</mx:FormItem>
</mx:Form>
for removing the form im using the following:
f1.removeAllChildren();
If i want to get the removedChildren (FormItems,TextInput)...how can i get back those childrens(FormItems,TextInput)...
View 3 Replies
Aug 1, 2011
I made a very simple component to replace any component (e.g. a comboBox) on a form that is hidden if a user does not have access to change the value:
[Code].....
But regardless of whether or not objControl is visible, it doesn't get displayed.
View 1 Replies