Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








DateField


I am not able to link a DateField component in Flash to a php page. Is there a way to add a var to the DateField because everything works fine when a var is added to a text field? Thanks




Adobe > Flash General Discussion
Posted on: 12/10/2007 09:14:51 PM


View Complete Forum Thread with Replies

Sponsored Links:

DateField
I am using Flash MX 2004 Pro and trying to use the DateField.

I am having no luck returning the date. I can get the Year and Month be using displayedYear and displayedMonth but no luck with date.

I have done endless searching and cant figure it out. Any help would be much appreciated.

View Replies !    View Related
Get Value From Datefield?
dear all,

i'm a newbie too, and i tried to make a simple survey.

one of item, i used the datefield component.
the problem is, how to make/get value from this component in order to be displayed as a dynamic text field? example for the combobox, i used this script


Code:
answer = combobox.getValue();


thanks.

View Replies !    View Related
Datefield / AS3
Does anyone have a datefield class or component for AS3 Flash they'd be willing to share? I haven't used DF for a long time and didn't even notice it wasn't included in CS3...those cheapskates...I got a tight deadline and didn't figure in time to code my own date component ..............arggggggghhh!!!
Josh

View Replies !    View Related
DateField
I was wondering how to store a DATE value, selected from the DATEFIELD component into a variable.

I.e. so that the user will enter a date (Sept. 12, 2005), and on subsequent frame, that date will be written as text. Thus, how can I store a selected date into a variable??


Thanks,
D dot B

View Replies !    View Related
DateField - Please Help
I have asked this before on this site but I havent got even a reply yet!!!!

does any one know how to select a start date and then a finnish date then find out how many days had gone between!??!!!??!?!?!

View Replies !    View Related
DateField - Please Help
does any one know how to use the date picker to select a start date and an end date and then find out how many days are in between?????

any help would be massively helpful!!!!!!!!!!!

View Replies !    View Related
DateField - Please Help
I have asked about this before but no one ever replied

how would I use a date filed and then get a start date and end date then work out how many days were in between??/

can any one help me at all??/

View Replies !    View Related
Datefield
Hi guys,
I'm trying to put something together and could use some help. I'm trying to use actionscript and a datefield component to load a picture (with the same name as the date chosen in the date field +.gif) into an empty movie clip. My experience with actionscript has been pretty basic so far, and I've searched all over and can't figure this out. If anyone can help or point me in the right direction please please please please help .

If I haven't explained what I'm trying to do very well let me know and I'll try give more details.

Thanks

View Replies !    View Related
Datefield Use In CF
Hi there,
I'm a new member since today and I am pretty new to Flash. I have a question related to the datefield component in Flash and how to post the selected date in a form variable for later use in ColdFusion.

Thanks / Frank.

My code is the following:

<form method="post" action="demo2a.cfm">
Please select the criteria you want to appear on your checklistbr>

<cfoutput query="recordset1">
<cfloop index="option" list="#recordset1.ref#">
Criteria #option#<input type="checkbox" name="checklist" value="#option#"/>
<br>
</cfloop>

</cfoutput>

<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="32" height="32">
<param name="movie" value="calendartest.swf">
<param name="quality" value="high">
<embed src="calendartest.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32"></embed>
</object>


<br>
<input type="submit">

</form>

View Replies !    View Related
How Use Datefield Components?
Hi, I using flashMX UI components - datefield. But how do I add in a script using 'trace()' to show which date the user have selected??

Thanks..

View Replies !    View Related
Datefield Instability
Can anyone help me with the datefield component. seems to cease up and not allow you to pick a date or scroll through months?

View Replies !    View Related
DateField Problem
I have a flash page where user selects two dates through datefield components.
and the on next button press the selected dates are stored in vars.

when he comes back dates are loaded to the components back.if datefields are not undefined.

systax is
_root.arr.selectedDate = _global.arrDateT;

this works fine...

but if the user goes two steps further by pressing the next btn after selecting the dates, and again pressing the next btn from that page after making some check butoon selection...now he's in the third page and vars that has the date values are unchanged...now if he decides to com back to the first page to reselect dates..he comes two steps by pressing back buttons...

now comes the problem...datefieds are unsigned...and he can select new dates even its still unsigned...

but i trace the vars they still contain the saved values...

any idea why this happens?

Nameez

View Replies !    View Related
DateField Component WTF?
WTF???!!!

Am I missing something here? I drag the component on the stage it works the first few times I test the movie, however it just stops working after a while without me chaning the code or anything.

Can someone tell me what I'm doing wrong?

View Replies !    View Related
[F8] Datefield Problem
My datefield is part of movieclip A.

When i click on the calendar part of the datefiled componet it expands showing the calendar - as it should - and it expands overtop of movieclip A - however it doesnt expand overtop of movieclip B - which is next to it - so essentially i have 1/2 the calendar showing .- This is obviously a depth problem.

As a result i do a swapdepth with movieclip A
swapDepths(_root.getNextHighestDepth());

Which works fine and now movieclip A is the highest on the stage.

Now when i click on the datefiled to expand the calendar. The Calendar is below Movieclip A.

So it seems as if movieclip A swaps depths fine, but the pop-out calendar componet stays on a lower depth.

What am i doing wrong here?

Thanks in advance.

View Replies !    View Related
[F8] Datefield Problem
My datefield is part of movieclip A.

When i click on the calendar part of the datefiled componet it expands showing the calendar - as it should - and it expands overtop of movieclip A - however it doesnt expand overtop of movieclip B - which is next to it - so essentially i have 1/2 the calendar showing .- This is obviously a depth problem.

As a result i do a swapdepth with movieclip A
swapDepths(_root.getNextHighestDepth());

Which works fine and now movieclip A is the highest on the stage.

Now when i click on the datefiled to expand the calendar. The Calendar is below Movieclip A.

So it seems as if movieclip A swaps depths fine, but the pop-out calendar componet stays on a lower depth.

What am i doing wrong here?

Thanks in advance.

View Replies !    View Related
Datefield Component Help
Hi all!

i'm having trouble with the datefield (selector) - when i preview publish the file it works fine (when i click the text box or the little calendar icon the calendar comes up for selection) however when i publish/upload it the calendar pop up doesn't work. (the drop down menu doesn't work either)

I've published it with actionscript 2 and for player=6

any help would be great
thanks

View Replies !    View Related
DateField Component?
(got to be the WORST component I have used yet)..

anyways..

ok..

Im confused, and maybe someone who has experience with it can help me out.

two DateField components on the stage

From
&
To


I have the dateFormatter added, and I can pull the data from the components..

but I have went back and am trying to add a 'control check' (trap) so that the any date chosen in the FROM compoenent is not a date BEYOND the TO date chosen... and if so.. then just choose the day BEFORE the TO date.,


same thing fro the TO field (eventually).. cant choose a TO date BEFORE the FROM date..

when tracing things.. I am creating/setting a new DATE object as the selectedDate...

everythign is tracing fine..the conditional check between the two components (dates) is working fine.... (getTime() and then compare)..

and when I trace out the new Date() obj I am applying.settign as the new selectedDate for the component.. it is correct..

however the DISPLAY (field) will NOT update to the new selectedDate obj?

I saw a method for the displayMonth and displayFullYear I think..but nothign for displayDay... nor any mention on how to update the display (text field) to the correct date obj that the selectedDate is set to..


hope this make sense.. LOL open to whatever you got..

Thanks

View Replies !    View Related
SelectableRange In DateField
Hello,
I have two dateFields in my movie, one for "check in" and the second for "check out" in a hotel.
I have this code in the "check in dF" to disable dates before today
_root.intro.selectableRange = {rangeStart:new Date(now)};

Now I'd like to show in the "checkout df" only the days after the date selected in the "check in df"

How could I do that?
Thank you to everybody.

View Replies !    View Related
Datefield UI Component
Hi!
I am new to Flash 8 Pro. I am trying to use a datefield component where you can scroll through months and years to easily go back 30 or 40 years.
When I place the datefield on the stage I can only move back or forward one month per click, and holding the mouse down does not move the date.
I wonder if the component that I saw was customized, or am I doing something wrong with the datefield component that is bundled with Flash 8?
Thanks

View Replies !    View Related
Datefield Component
Hi guys,
I am having a bit of an issue with the datefield component.

If i run the swf containing the component then it works fine.
If i then load this swf inot another swf then it stops working.

Anyone?

thanks

View Replies !    View Related
DateField / DateChooser In CS3/AS3
I'm puzzled beyond wildest dreams why I don't have a date picker component when I'm doing a AS3 (actually an Air application) in Flash CS3. When I make an AS2 project the DateField and DateChooser is listed, but in AS3 they are gone along with other components as well. Several times I have had the feeling now that going to AS3 gives me less options in Flash!! Is it just me or how do I do these things in an AS3/Adobe Air application?!

I would prefer to have a visual component I can move around on the stage, just like with the text fields, dropdowns etc., rather than writing it in AS3 where I don't see it until I run the application...

Regards,
Allan Jensen

View Replies !    View Related
DateField Questions
Hi

I'm really hoping someone can help me here as I've looked for hours and can't find exactly what I need.

Basically, I want to use a dateField on a booking enquiry form. I want to display diferent accomodation price values in another text box depending on the date that has been selected in the dateField component. I can define the different ranges using the selectableRange statement but I'm not sure how to proceed from here.

Thanks in advance!

View Replies !    View Related
DateField/DateChooser
Hi guys,
I'm trying to use the DateField component to enable only certain days, like imagine a roster for the nights a play will be showing. Does anyone know how I can do this? I hope this isn't too newbie-ish, but I have looked for a solution--go easy on me.

I've searched around, and with the DateField component I found out how to enable only one day and have the rest disabled using quote:instancename.selectableRange = new Date(2007, 8, 6);
I know I can disable ranges / enable them, but the nights aren't on specific days, so I'd have to use more than one enabled range or something, and that I don't know how to do.
So my problem is enabling more than one day, if anyone knows or knows where I can look--please help.

Thanks.
Josh






























Edited: 09/05/2007 at 07:10:41 PM by JoshuaR

View Replies !    View Related
DateField Component ?
Hello everyone,

I am trying to create a form within my flash movie that allows the user to select the date(for scheduling purposes).

I came across the "dateField" component in Flash 8 and thought it might be something worth looking into. I have never worked with components, so I am not sure what is involved in setting them up. I have tried looking into some resources and most talk about Cold Fusion. Is this required to activate components? If not, does anyone know of a tutorial that could help me with this? Also I have noticed that my navigation gets screwed up once I drag the component into my movie. My form is located within a movie clip that is not on the main timeline. Not sure if this is part of the problem. Any help would be "extremely" appreciated. Thanks in advance!


Here is the link if anyones interested (located on the "quote and schedule" page)

http://www.duvalldesigns.com/test_site3/index2.html

View Replies !    View Related
DateField Component
I am not able to link a DateField component in Flash to a php page. Is there a way to add a var to the DateField because everything works fine when a var is added to a text field? Thanks

View Replies !    View Related
Datefield Component
I'm using the datefield component in flash and what I'm trying to accomplish is when the user clicks a date in the datefield, it displays the date in a dynamic text field and shows the data in an XML file that is related to the date clicked? Any help at all would be cool.

Thanks

View Replies !    View Related
DateField Component And PHP
Hello All,
Im creating a form for a booking system. When the user chooses the date and submits. The booking gets emailed to a specific address. Im using the datefield component in flash. I usually use PHP to push data from a text field and email. But i'm stuck here, because the datefield is not a text field. Can anyone please help me.

someone gave me this code to trace the date.

myDateField.addEventListener("change", this.getDate);
function getDate(evt:Object):Void {
trace(evt.target.selectedDate);
}

The above code traces the output.

Can someone also please tell me, the code for how to push the data to a PHP email script that i have. I have defined the text fields with variables.

Thanks so much. The script for the Submit button is as follows:

on (release) {
if (startDate eq "" or endDate eq "" or registrationType eq "" or messasge eq "") {
stop ();
} else {
loadVariablesNum ("form.php", 0, "POST");
gotoAndStop (21);
}
}

I'm not a pro in flash. Please help me.

Cheers

View Replies !    View Related
Datefield UI Component
Hi!
I am new to Flash 8 and I'm trying to use a datefield. I've seen it used in many sites and I've seen you can quickly scroll through months and years to arrive at the date you desire.

However, when I put my datefield on the stage, I can only move month by month, and only by clicking with no scrolling functionality.

Can anyone explain how to get my datefield to work with all its functions?
Thanks

View Replies !    View Related
Datefield Question
Hi!
I am new to Flash 8 Pro. I am trying to use a datefield component where you can scroll through months and years to easily go back 30 or 40 years.
When I place the datefield on the stage I can only move back or forward one month per click, and holding the mouse down does not move the date.
I wonder if the component that I saw was customized, or am I doing something wrong with the datefield component that is bundled with Flash 8?
Thanks

View Replies !    View Related
Datefield Component
I'm using the datefield component in flash and what I'm trying to accomplish is when the user clicks a date in the datefield, it displays the date in a dynamic text field and shows the data in an XML file that is related to the date clicked? Any help at all would be cool.

Thanks

View Replies !    View Related
The Illusive Datefield And Other Components
ok, I tried to work this out aabout 4-5 months ago with not much luck.

I have MAIN MC, image of a tv screen, where at a press of a button, it loads an ext swf into the screen , which is masked to keep the shape of the TV screen.

Anyway, I have a combo, check and DateField box in the ext SWF,, and they simply wont show or i see the outline of the box. Embedding I hear u say, well can anyone remind me how to imbed for the above componants,,,,

There is also that pain in the £$%@ solution of puting the componants off screen on the Main MC however, this does not work.

Please can anyone help me with this, it would be much appreciated.

Avi

View Replies !    View Related
Anyone Good In Datefield Component ?
Hi, I using the below code to display my selected date:

//Date Object
FormFrom = new Object();
FormFrom.change = function(eventObj){
//trace(eventObj.target.selectedDate);
SelectedDateFrom = eventObj.target.selectedDate;
}
MyDFFrom.addEventListener("change", FormFrom);
trace(SelectedDateFrom);

The result:

Sun Apr 10 00:00:00 GMT+0800 2005

===>
But I just want to display:

Apr 10 2005.

How can I do that????

Thanks alot!

View Replies !    View Related
DateField Compoent Woes
I am having an issue with the datefield component where it is opening up the calendar and only half of it is on the stage in the viewable area. Is there a way I can control where the caledar pops up so it is fully viewable and usable on my stage?

Thanks in advance,

Mike

View Replies !    View Related
Load Date Into DateField
Hi,
Does anybody know how to load a predefined date into the datefield and have it display in the textbox attached as i have used DF.selectedDate as shown in the following, but that only selects the date as the default when i launch the date selector.

if(evYearSet!=undefined && evMonthSet!=undefined && evDaySet!=undefined) {
eDate.selectedDate = new Date(evYearSet, evMonthSet, evDaySet);

}

Regards,
Lowpr0fi1e

View Replies !    View Related
DateField Component Trouble
Hi!
I am completely new to Flash 8. I am trying to use a datefield. I've seen it used in many sites and I've seen you can quickly scroll through months and years to quickly arrive at the date you desire.

However, when I put my datefield on the stage, I can only move month by month, and only by clicking with no scrolling functionality.

Can anyone explain how to get my datefield to work with all its functions, and why is this datefield not working as others I have seen?

Thanks

View Replies !    View Related
Trying To Focus In On A DateField Component
Has anyone ever had trouble sending keyboard focus to the DateField component? Try this: create a new Flash document and insert a TextInput component named textItem, a DateField component named dateItem and a ComboBox component named ComboItem. Then insert the following code:

textItem.tabIndex=1;
dateItem.tabIndex=2;
comboItem.tabIndex=3;
stop();

Test the movie and try to tab over to the DateField component from the TextInput component. Why does the focus skip over the DateField? Is this something easy to fix, or are we going to have to wait and spend more $$$ for a new release from Adobe/Macromedia?

View Replies !    View Related
Problem With DateField Component
...rendering it useless. When I positioned this component higher in the form, it worked fine. Why does it stop working properly when I change it's X Y position?
Relevant URL: http://resortvacations.com/New/contact.html

View Replies !    View Related
Using The DateField In An Externally Loaded SWF
Hello,

I have been having major trouble trying to get a basic PHP contact form to work within an externally loaded SWF file inside of a parent SWF. When I test the movie on its own it seems to work fine (example: I'm able to select a date from the DateField component). However, when I open up the parent SWF file and call the external SWF file with the form the DateField is basically unusable (example: when you click on it nothing happens, no calendar pops up to select a date).

I have no ActionScript on it yet, simply because I figure I need it to work before I tell it what to do with the PHP file. The instance name on the DateField is "theDate". Any help is very much appreciated. Thank you.

Also, I have just successfully used the contact form on the web. But, the only user interface components I am able to edit are the input text boxes, not the DateField or the ComboBox I have in it as well. This is very odd, I was not aware that anything special had to be done using these UI components within an external file.

Elijah

View Replies !    View Related
DateField Component Question
Hello.
I have a problem using the DateField trying to send it´s value to a php form in order to send an email.
The problem is simple....to get the value of the DateField into a text i used a code like this:

this.Data.DateField=DateField.text;

The result of this is: 14 Dec 2006....

What I need to do is to get the month data but not abbreviated. I need to date text would be 14 December 2006.

How can I do this?

Thanks

View Replies !    View Related
Datefield Format Date - How Do I ?
Hi,
How do I select from a Datefield, where the output will read the format 2008-02-09 ? Currently I am using:
date_str:String = (thisDate.getFullYear()+ "-" +(thisDate.getMonth()+1)+"-"+thisDate.getDate());
and the result I get is the format: 2008-2-9

Thanks,
Paul

View Replies !    View Related
Contact Form With DateField
I hope someone can help me with this because I can't get it to work myself. I have created an contact form with Flash and in this form there is a Datefield and I want the value of this Datefield to be send to my email by php. I can't figure it out how I can set the selected date to an variable which can be send by php, perhaps someone can me? (the rest of the contact form works fine)

Thanks in advance,

Remco

View Replies !    View Related
DateField Component Customization
I'm having a hard time customizing the DateField Component. I would change the outer border to match the ComboBox (halo theme) with rounded corners and without the internal shadow. Has anyone achieved this or have some resources that you can point me to?

View Replies !    View Related
Catching DateField Component With ASP
Hi.

I have a simple form that contains a DateField component and I want to catch the value in asp file and write it to my database, how can I do that ?? where do I put the variable value ??

Thanks.

View Replies !    View Related
DateField Output Format
Hi.

This should be easy. How do i format the output from a dataField component? I can format what the user sees on the screen, but not what AS sends to PHP.

Right now this is what i get:

Wed Mar 23 00:00:00 GMT+0100 2005

I´m in spain so i need to change it up quite a bit. The hour is useless, it doesn´t work as u can see. By the way i get this using:


Code:

_root.fechaLlegada.selectedDate;
I´ve changed the parameters of my component instance so it´s all in spanish. Works on the screen but not in the output as you can see above.

View Replies !    View Related
Inital Value For DateField/DateChooser
Hi

I have the following problem:

I read a date from a database into Flash and want to display it with DateField or DateChooser, so that the user can change it. Or with other words I want to intialize the component with an initial date (the user shall be able to change a delivery date for goods).

Getting a choosen date with DateField.selectedDate is not a problem, but the other way round, set DateField.selectedDate to a specific value does not work.

Can somebody help me?

regards

Peter

View Replies !    View Related
Does Any One Know How Datefield Component Works?
I really am stuck with this!!!!!!!

how do I make it so I can count the number days from start to end using the datefield compoinet so the user can select the start day and then the end daye and work out how many days were in between.

I have no idea how to do this and have tried all of the help stuff in flash but its not so help ful!

View Replies !    View Related
Help Getting Day Of Week From DateField Component
Hi again,
So I making a flash contact form for reservations. I dragged the DateField component onto the stage, gave it an instance name of rDate_txt and it works great in picking a date and sending to my php emailer. Its formatted like 10 Apr 2008.

Now, Im trying to calculate the day of the week based on the date. I can calculate todays date with...


Code:
myDate = new Date();
daytext = myDate.getDay();
switch (daytext)
{
case 0:
{
daytext = "SUNDAY";
break;
}
case 1:
{
daytext = "MONDAY";
break;
}
case 2:
{
daytext = "TUESDAY";
break;
}
case 3:
{
daytext = "WEDNESDAY";
break;
}
case 4:
{
daytext = "THURSDAY";
break;
}
case 5:
{
daytext = "FRIDAY";
break;
}
case 6:
{
daytext = "SATURDAY";
break;
}
} // End of switch
Can anyone help me get the date chosen from the DateField component?

Once I get the day of the week, I need to make a different ComboBox visible if its a Friday or Saturday. So I would think I need to set up an onchange listener?

Thanks In Advance!
Rich

View Replies !    View Related
Binding DateField SelectedDate
I have all the data loading just fine. The only problem is, the DateField does not show a selected date. If I put in an explicit number in the Date constuctor, it works. If I assign the selectedDate after a change event for the combobox it works. However, binding it isnt working. Any ideas?


Code:
<mx:Canvas id="Articles1" name="Articles1" label="Edit Article" width="100%" height="100%">
<mx:ComboBox dataProvider="{rowsXML.row}" labelField="@tagline" x="72" y="44" width="270" id="editArticleSelectionData"/>
<mx:Label x="10" y="10" text="Edit an Article" id="editArticleTitle" styleName="h1"/>
<mx:Label x="10" y="93" text="Tagline: " id="editArticleTaglineLabel" styleName="formLabel" width="54"/>
<mx:Label x="10" y="46" text="Article:" id="editArticleSelectionLabel" styleName="formLabel" width="54"/>
<mx:Label x="289" y="93" text="Date:" id="editArticleDateLabel" styleName="formLabel" enabled="true"/>
<mx:TextInput id="editArticleTaglineData" x="72" y="91" maxChars="255" text="{editArticleSelectionData.selectedItem.@tagline}"/>
<mx:RichTextEditor x="10" y="121" title="Content:" width="780" height="648" id="editArticleContentData" htmlText="{editArticleSelectionData.selectedItem.@content}">
</mx:RichTextEditor>
<mx:DateField x="334" y="91" id="editArticleDateData" selectedDate="{new Date(editArticleSelectionData.selectedItem.@date)}">
</mx:DateField>
<mx:Button x="725" y="91" label="Cancel" id="cancelEditArticle"/>
<mx:Button x="663" y="91" label="Save" id="saveEditArticle"/>
</mx:Canvas>

View Replies !    View Related
DateField Component Customization
I'm having a hard time customizing the DateField Component. I would change the outer border to match the ComboBox (halo theme) with rounded corners and without the internal shadow. Has anyone achieved this or have some resources that you can point me to?

View Replies !    View Related
Catching DateField Component With ASP
Hi.

I have a simple form that contains a DateField component and I want to catch the value in asp file and write it to my database, how can I do that ?? where do I put the variable value ??

Thanks.

View Replies !    View Related
DateField Output Format
Hi.

This should be easy. How do i format the output from a dataField component? I can format what the user sees on the screen, but not what AS sends to PHP.

Right now this is what i get:

Wed Mar 23 00:00:00 GMT+0100 2005

I´m in spain so i need to change it up quite a bit. The hour is useless, it doesn´t work as u can see. By the way i get this using:


Code:

_root.fechaLlegada.selectedDate;
I´ve changed the parameters of my component instance so it´s all in spanish. Works on the screen but not in the output as you can see above.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved