Professional :: Use The Date Field Component To Control Another Field?
May 19, 2010
I am trying to use the date field component to control another field... I need the user to select a date from the date field componet this date will display in the field and an additional date in another field will then display with 280 days added. This action will also control the timeline by displaying a graphic overlay at the appropriate frame.
View 4 Replies
Similar Posts:
Sep 21, 2011
I have an mx:DateField in my Flex UI that has a formatString="dd.mm.yyyy" attached to it. However, the initial value for that field may not be in the format specified/defined for the DateField (due to legacy reasons). So, currently, if I just set that value (text) on the DateField, the field is shown empty. I think because it fails to accept the value in a format different than what's configured.
View 1 Replies
Feb 12, 2005
I'm currently using a datefield compinent to assess a window for customers to have work done. Problem is, automatic e-mails generated by my ASP server page look a little bit shoddy when they are received because of the long format of the selectdate variable return:Mon Feb 7 00:00:00 GMT+0000 2005Is there an easy way to perform this formatting or would i need to use a string function to substring the field?
View 5 Replies
Aug 25, 2009
So I've searched for everything I can possibly think of and I can't find an answer to my particular problem. Although I've found many similar problems that people have with the date formatting from DateFields.I'm using the DateField component along with PHP to create a simple reservation form which sends an email with the information.I was able to change the format of the date that the user selects (from the DateField) WITHIN Flash. Ex: ("29 Aug 2009" to "September 29, 2009") -- which is what I want. However the e-mail that gets sent out is formatted as ---- "Sun Aug 30 00:00:00 GMT-0400 2009".Is it possible that I can remove the time portion and reformat the date in the DateField within Flash or using PHP? I have tried both methods but I keep getting the same results within my e-mails.[code]
View 9 Replies
Nov 8, 2010
I've created a dynamic text field - mediaImportName001 (created , and populated it with the name of a file that I choose to import using a browse button (as3 and AIR).This works fine - I can import the file, and the name appears in the field.
I'd now like to pass the contents of the text field to another text field. But I can't get the contents. If I try to trace the contents of the textField trace("mediaImportName"+thisNum).text - Flash returns "undefined" (even though I'm asking it to trace after the field has been populated).
I use the following code to check that the field really is there and named correctly (the code returns the children):
for (var i:uint = 0; i < this.numChildren; i++){ trace (this.getChildAt(i).name + ' type:' + typeof (this.getChildAt(i))+ ' ' + this.getChildAt(i));}
it returns:
instance370 type:object [object Shape]mediaImportName001 type:object [object TextField]mediaFiletype001 type:object [object TextField]
How do I get Flash to give me the text in mediaImportName001?
It's bizarre - this.getChildAt(i).name
from above gives me...
mediaImportName001 ,
yet
trace (["mediaImportName"+thisNum].name);
returns undefined (thisNum represents an increment I use to name multiple clips and text fields, and in this case trace(thisNum); returns 001)
View 4 Replies
Sep 5, 2009
I have a datefield labeled my_datefieldI have a dynamic text field labeled my_textWhat code can I use for the selected date of my_datefield to display in my_text?So say in the datefield I click on October 11th
View 2 Replies
Feb 12, 2010
If I have my date field/chooser set to show today (current day will be highlighted when selecting a date) can I disable the user from choosing dates that fall before the current day?
PHP Code: <mx:DateField id="choosedate" showToday="true"
This is from the adobe live docs. I'm trying to figure out if there's a way to change it to suit what I've stated above. Or maybe it's done a completely different way...
[Code]...
View 3 Replies
Aug 24, 2009
I want to make a search button on my site. I have a bunch of pdf files in a specific location on my site. I want to create a search field where the end user inputs text into a field and flash locates and opens the corresponding pdf file.
View 1 Replies
Jul 28, 2004
The problem is simple all the field work except the Phone field. I am sure it is somethign to do with the variables, as i don;t know if i am missing a chunk of code or not. [URL] THis contain a php file n flash file
View 3 Replies
Aug 26, 2007
Trying to get a text field in my Flash MX movie to pull from and XML file with CDATA tags to show as HTML. I've checked the box to render as HTML for the text data field... but I'm having problems with the Actionscripting.
The field from this line is what I need to recognize as HTML reading CDATA tags:
this.ref["textField"+i].text = subnodes[3].firstChild.toString()
I know I need to do more than just change it to ".html" instead of ".text" and have tried a couple things, but nothing seems to work.
Code:
//Create the XML Object
myXML = new XML ();
myXML.load(newXml);
[Code].....
View 1 Replies
Jan 20, 2009
is there a way to make it so when you are done putting something into an input field it will automaticly add/subtract from a dynamic field.Dynamic1 + Input = Dynamic2where each time you change the input text it will readd dynamic1 and input show it on dynamic2
View 5 Replies
Jun 8, 2011
I have made this before with one simple line of code but I just cant seem to remember...
View 2 Replies
Nov 6, 2009
here's what I want to do: I need a simple CV search function for a small site. There will be two fields: on the first field the user will input a Name or Surname and on the second field the script should return one or more results taken from a pool of names + surnames that should be clickable links to the respective .htm page of each cv. Is this possible?
View 0 Replies
Sep 27, 2006
How can I type something in my input text field without clicking on the field first? Basically I just have one input text field on the stage and when I Test Movie I would like to just type in some text without clicking on the field...
View 1 Replies
Mar 18, 2008
AS2 selection.setFocus (someTxt); someTxt field would be selected with cursor in field.
AS3 someTxt.setFocus(); focused on but not with cursor in field.
View 8 Replies
Nov 6, 2009
here's what I want to do: I need a simple CV search function for a small site. There will be two fields: on the first field the user will input a Name or Surname and on the second field the script should return one or more results taken from a pool of names + surnames that should be clickable links to the respective .htm page of each cv. Is this possible? From what I've seen people use the replies in the second field as simple text and not as links.
View 2 Replies
Dec 8, 2010
i have one text field named "priyan" in the fla file. I want to control that text field from the external class. In the time line i can easily put:
var letter:String = "hi priyan";
priyan.text = letter;
if i use class, what i have to do?i tried,
package
{
import flash.display.MovieClip;
import flash.text.TextField;
[code]....
i got error...
View 2 Replies
Jan 17, 2003
You can refer to the attached excel file. my boss wanted me to make a replica of it in flash. the problem is I don't kno how to do it. In the excel file he wanted some cells - in orange - be available for user to input data at same time display the data. I find it difficult to do. I don't know if it is possible to display output in an input field.
View 1 Replies
Mar 27, 2009
I am having trouble with the scroll bar component with a text field on a website. I made a text field and am dynamically loading html text into the field. On one page I have a single text field with a single html document loaded into it. On another page I have a single text field that has buttons to swap out the html documents to view different docs. When test the movie in Flash everything works fine. When the files are uploaded online the text scroll bars disappear on both pages for the single doc and the other page with multiple docs, and I can't scroll them.
View 3 Replies
Nov 4, 2009
what i would like to do is create a search field that as the user types in the search bar if there are any matching entries in the list, the focus/selection jumps to that particular item in list. i don't want to clear the list just go to the item that matches.i would like it to be predictive so if i have these entries:and the user types "s" in the search box to the first "s" entry in the list (samson) is selected, if they type "se" the selection jumps to the first entry with "se" in it (seek) if they type "seet" the selection jumps to "seether" and so on.i have absolutely no idea how to do it, but more importantly...is this possible? Attachments: glossary.zip (1.0 MB)
View 6 Replies
Aug 7, 2009
Im using a DateField component and i would like to set the selectableRange so that the rangeStart is set for yesterday (the day before today). I have another DateField where the rangeStart is "today" and im using this:
Code:
selectableRange = {rangeStart:new Date(now)};
Is there any similar solution for "yesterday".
View 2 Replies
Aug 7, 2009
Im using a DateField component and i would like to set the selectableRange so that the rangeStart is set for yesterday (the day before today). I have another DateField where the rangeStart is "today" and im using this:
Code:
selectableRange = {rangeStart:new Date(now)};
Is there any similar solution for "yesterday"?
View 5 Replies
Jun 27, 2009
What I am trying to do is rather simple, but I am having problems. All I want to do is pass the values entered into a TextInput component into a Dynamic Text Field I need this to be realtime, so when the user is entering the values it is updating in the text fields. I have 5 TextInput instances and 5 Dynamic Text Fields on the stage The TextInput values need to be passed to the Dynamic Text Boxes.
View 3 Replies
May 9, 2006
I have inserted a TextArea component and i can add text normally by changing it in the parameters tab. but i was wondering if anyone knew the code so i can make it show and input text field ? (call a .txt file in to the TextArea component)
View 1 Replies
Jun 28, 2009
The update to the Dynamic Text Box is always one character behind what is entered into the TextInput component. For instance my name is Shawn, if I enter "Shawn" into the Text Input the Dynamic Text Boxes will display "Shaw". It will only enter the "n" if I type another character then backspace it, deleting the extra character.
View 7 Replies
Jul 17, 2009
I have a flex MXML UI that is building a set of radio buttons using the Repeater component:
<mx:Repeater id="radios"
dataProvider="{_lists.(@id == _question.single.@response_list).group.listItem}">
<mx:RadioButton groupName="responses"
[Code].....
View 3 Replies
Jul 17, 2003
Is it possible to login through flash using one Dynamic Text Field and one Input Text Field and no buttons? If so how? I have seen many tutorials dealing with logging in to PHP using flash but it requires you to make your own php scripts which i am not familiar with. Can some one tell me how to do this with PHPBBs existing php scripts... I want to be able to login thorugh a Input Text Field box and have it verify it in PHP and also be able to register and view other PHP info such as users online and FAQ..
View 2 Replies
Mar 30, 2006
I'm making a calculator using Flash MX that works the same way as the basic calculator found on windows (not the scientific one). But having the user input a number, store it as a variable, store which function the user wants to perform and clear the text field then store the new input in the same text field as a different variable and multiply or add or divide or subtract the 2 numbers and getting the equals sign to display the answer when clicked is harder than I thought it would be.
View 3 Replies
Nov 15, 2004
I am working on a file that has a rotating dial, and I'd like the dial to reveal contents of a text field (a link) as the dial points in the direction of the text field. I have 4 text fields located at 90, 180, 270 and 360 degrees (top, bottom, left and right). I have it controlled via AS, so I've got all the Math but I was hoping someone might know how to reveal the links when the arrow (in the dial) is pointing in these directions.I set up a text field for testing, which shows the degrees, but I'm getting 'NaN' in the field (problems with Theta and converting degrees to Radians, I think). I thought this might help me figure out how to reveal those links, if I can get the NaN to work.Currently, the file is rotating with an onPress, but I'm going to convert it to a mouse follow, instead, so the user only has to float around to see the links.
View 5 Replies
Jan 21, 2010
How to import sound with AS? Cuz i have tried it and my sound just wount play. Can you explain me where my sound should be and what is the as code for importing cuz i use
mysound = new Sound();
mysound.attachSound("SoundOn");
mysound.start();
and this SoundON from where i get it, i try to add linkage to the sound file but in CS4 i cant find the option;. I do it from the library, adding text into the linkage field but still my sound doesn't want to play?
View 15 Replies