ActionScript 2.0 :: XMLConnector + DateChooser -> DataGrid?
Aug 6, 2004
Id like to have an XMLConnector read an xml-file (containing dates, and a "To Do" string for each date).A DateChooser should be on stage, enabling the user to select a date, and view the textstring for that specific date pop up in a DataGrid.Something very similar to this tutorial, in the section "Arrays and Indexing", replacing the ComboBox with a DateChooser:
http:[url].....I tried modifying the tutorial accordingly, but without success. I guess my skills aint good enough to accomplish this yet.
View 2 Replies
Similar Posts:
Jan 22, 2007
I have developped a actionScript interface which connects a mySQL database to get data trough an XMLConncetor and fill a datagrid on the stage. When I test the swf locally with the SWFplayer it works perfectly. To make long story short, the xmlConnector connects the database and fill the datagrid. You can modify the data by clicking on buttons because they are bounded to xmlconnector and this one update the database and the refresh function opf the datagrid works.
The problem comes when I upload the swf on a web server and I try to connect the database. The first connection is okay but when I click on buttons, the request is sended to the database but the datagrid is not updated, even if I set an intervall or I code a function wich refresh the data...However, in IE, if you erase the cache and reload the page, modifications are there...
View 3 Replies
Oct 26, 2006
I have a Flash output file that uses both LoadVars and XMLConnectors. While LoadVars all work on all tested browsers, XMLConnector does something very strange and ONLY on Internet Explorer. When I try to use it, the listeners for the XMLConnector say send (using GET Method), status is correct (StatusChange), but the data that returns is crazy (outputs 11). I am suppose to get a full xml data stream, but all I get is 11. This happens in IE (PC) only. In Netscape on PC or Mac) it is fine, on Firefox (PC or Mac) is it fine, on Safari it is fine. SO, has anyone able to use the XMLConnector properly on IE (FP8)? The parameters for the problem are: Flash Player 8, Internet Explorer 6, PC.
View 3 Replies
May 22, 2009
I'm writing a game that use the XMLConnector object to bring local xml data into a DataSet object. My URL is, for example: data/quiz.xml. I have everything working well. But I'm localizing my game for Czech and Russian and when the game is installed to a path with Czech specific (high ascii) characters, the data import fails. This is strange because the relative path (data/quiz.xml) doesn't change. For example, my Czech install path contains the partial path: Vyšetřit Bobíčka. If I just use normal English characters for this, I don't have a problem. The swf is an embedded sprite in a Director game, but I don't think this is relevant.
I looked into using fl.mapPlayerURL to format the path as UTF-8 but it doesn't look like this is the solution. Another thing I thought of would be embed the xml data inside Flash and copy it to a temp folder when needed. I'm using AS2.
View 3 Replies
May 15, 2007
If I use an XMLConnector component to access variables inside a 5mb XML file, does this mean that flash will (implicitly) download that full XML file to the local computer and then parse it to get the requested variables???
View 3 Replies
Jul 9, 2008
how to populate List component by XMLConnector or by something else to the XML file?
View 1 Replies
Jul 15, 2004
I have an XMLConnector component instance that is communicating fine with the external XML file from which it is reading the data. The XML file is structured like so:
Code:
<data>
<category id="0">
<name>Category 0's name</name>
[code]....
Now that you've got a general idea of what I'm working with, I'll move onto what I want to do with it. Let's say when the 1st frame (which has the XMLConnector on it) loads, we want to calculate the sum of all the values from the XML categories. It seems like an easy concept, but I can't figure out how to traverse through the array of objects without user intervention.
View 1 Replies
Mar 16, 2007
I need to dynamically insert (attachedMovie) a movie that has a ComboBox with in and then I need to bind this ComboBox to an existing _root.myXMLConnector.
View 1 Replies
Aug 23, 2005
I want to use the XMLConnector component to read and update XMLdocuments, binding it to a DataGrid.
As long as I only receive data there is no problem. As soon as I want to work with send/receive nothing works anymore. Unfortunately all tutorials I can find only show how to receive data.
View 1 Replies
Dec 13, 2006
so my XML looks like this:
<root>
<level1>
<level2>
<level3-array-start->
<name text="Dolphins"/>
</level3>
[Code]...
View 1 Replies
Oct 4, 2006
I am trying to run some code after the XMLConnector triggerfunction is completely done loading all of the xml data into theflash file and the bindings are updated. Is there an event or somekind of way to pause and run the code after all the radiobuttonsand checkboxes are updated with the xml boolean values?
View 1 Replies
May 8, 2008
I need only a little bit to finish something that I am doing.I make a calendar, using Flash and AmfPHP, the calendar load the reservations informations in a MySql table. After the flash movie, takes the information relating to the reserved days of the calendar, and then, the calendar would have to take the information of the MySQL table, the column of (date visits) for deactivate, the previous selected date by others users.Im using this code:
Either how I have to pass the information stored in the table(Date Visits), to the calendar in order that it deactivates the dates stored in the database?
View 1 Replies
Apr 15, 2009
Where and how do I get the datechooser for Flash CS3, AS3.0?
View 2 Replies
Jan 22, 2010
I have a DateChooser component that is on a masked layer along with TextFields. I can set Character Embedding for the TextFields and they render fine, but the DateChooser does not.
How do I apply Character Embedding
View 2 Replies
Mar 16, 2012
I want to know the Difference between DateField and DateChooser in FLEX. I know the UI changes but i want the difference other than its UI, Properties, Method etc...
View 1 Replies
Aug 2, 2010
I want a to user a DateChooser to allow a user to select a date in a given month and year. I want to set the month and year programmatically and only allow the user to select the date/day. I can do this for the year easily by setting the minYear and maxYear to whatever year I want, but I am not seeing a strait forward way of disallowing the user to select a different month?
View 4 Replies
Aug 17, 2011
How I can change the display of Month and Year display to Japanese style (i.e. Year Month) as in Header of Flex Date Chooser. What I would like to convert the style
8月 2011年 to 2011年 8月.
Code I used to do that,
dateFrom.dayNames = ['日', '月', '火', '水', '木', '金', '土'];
dateFrom.monthNames = ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'];
dateFrom.yearSymbol = "年";
where dateFrom is the id of the DateField.
View 1 Replies
Oct 16, 2010
all I want to do is check to see if a date is selected, trace something; else, trace something else. simple enough right?assuming my_dc as DateChooser instance name, I use:
this.onEnterFrame = function() {
yesterday = new Date(2009, 0, 22);
my_dc.selectedDate = yesterday;
[code].....
View 5 Replies
Sep 3, 2009
I have written code to read an XML file by using URLRequest and URLLoader in ActionScript 3.0. Code is pasted below. This runs well in AS3.Problem I am facing is because I wrote this in AS3, I am not able to use the DateChooser component in another part of the flash module because it seems like DateChooser component is not supported in AS3. So I want to migrate my below AS3 code back to AS2.
**** Code in AS3 (I need help in writing equivalent code in AS2) :-
var xmlText:XML ;var xmlReq:URLRequest = new URLRequest("myFile.xml");var xmlLoader:URLLoader = new URLLoader();
View 3 Replies
Mar 18, 2010
I'm writing a Flex application and I came across what I think is a weird problem. I want to create a text box and a DateChooser as the datefield didn't do what I wanted and it's Halo so I can't skin it easily. I want the DateChooser to show when I click on the text input. Here is an except from my code:
[Code]...
View 1 Replies
Mar 29, 2010
ExtendedDateChooser class is great solution for simple event calendar used in my flex project. You can find it if google for "Adding-Calendar-Event-Entries-to-the-Flex-DateChooser-Component" with a link of updated solution in comments of the post. I posted files below. Problem in that calendar is text events are missing when month is changed. Is there updateCompleted event in Actionscript just like in dateChooser flex component? Like in:
[Code]...
View 1 Replies
Sep 28, 2010
I have an Array of days. I want those days to have a different background-color in the DateChooser component, say red.
View 3 Replies
May 26, 2011
I got a Problem with my DateChooser. When clicking the control directly it highlights the date as it should. When selecting the date programmatically it won't show.
var date:Date = notification.getBody() as Date;
_view.dcMiniCalendar.selectedDate = date;
trace tells me, that date and _view.dcMiniCalendar.selectedDate carry the correct values. I already tried to use _view.dcMiniCalendar.invalidateDisplayList() (and some other invalidate functions as well) but neither with nor without them I get that date to be shown selected in the control.
View 1 Replies
Sep 12, 2007
The AS2 DateChooser has just the functionality I need to build the events calendar that I have to build .. however .. while I know what to do in theory, I'm stumbling on (a) whether it will work and (b) syntax.
I want to display an instance of the DateChooser (myDate) and access the selectedDate property when the user selects a date. Then I need to pass it to the main events page preferably on the same page with something like this:
SELECT EventTitle. EventDescription, EventLink FROM Events
WHERE EventDate = MMColParam
MMColParam 1 myDate.selectedDate
The page itself is ASP. I am thinking I would probably define a variable and perhaps use LoadVars to load the selected date from Flash .. not something I have done before.
Perhsps something like
dim eventDate
eventDate = myDate.selectedDate
I'm sure that's not the syntax .. but I think that is the theory. I should be able to access the selectedDate property of the Date Chooser instance and feed the date into the query to select the events on that date and list them.
View 2 Replies
Nov 19, 2010
I'm new to flash, and using Macromedia flash 8.
I'd like to use in-built DateChooser component in my flash project.
So How do I bind an even handler on selection of any date? let's say I want to display selected date in another dynamic text element.
View 1 Replies
Dec 13, 2010
If you have a DateChooser control next to a text control and you left click your mouse to select the text then continue holding down the mouse button and letting the mouse button up while over the datechooser control, the selectedDate value changes to the date you are hovering over. I have users that are having issues with this and it happens unintentionally because of the proximity of the two controls. I cannot find a way to stop this effect. Basically I would want the selectedDate to only change if the user actually clicks the calendar control ie. mouseDown or click. Calling functions in those events do not change this behavior. I need a way to disable the control from changing the date on the mouseUpEvent (I think).
View 1 Replies
Jul 25, 2011
My DateChooser code and its style code is shown below:
<mx:DateChooser id="dc" cornerRadius="0" bottom="0" width="100%" allowMultipleSelection="true" allowDisjointSelection="false" styleName="dateChooserGradient" change="fetchDateAgenda(dc.selectedDate)"/>
And the dateChooserGradient:
.dateChooserGradient {
header-colors: #133c59, #29506c;
todayStyleName: myTodayStyleName;
headerStyleName: myHeaderStyleName;
weekDayStyleName: myWeekDayStyleName;
dropShadowEnabled: false;
arrowBorderThickness:2;
arrowColor: #062338;
arrowAlpha: 0.1;
}
What I actually want for my arrows is a transparent background, with borderthickness to be 2, and the arrows and bordercolor to be #062338. Also if I can make the width and height of the arrow itself a bit bigger then what it is as default.
View 1 Replies
Aug 31, 2011
i downloaded sickworks datechooser AS3, i can change the display properties using flash code , i need to display the date in textbox when i click the date from datechooser in AS3
View 3 Replies
May 5, 2011
I would like to see different colors in my DateChooser / CalendarLayout for weekdays and weekend days. I would also like to achieve this using a custom stylename (for example: "weekColor" and "weekendColor".
View 2 Replies
Mar 13, 2012
In a datechooser component i want to get the all date values of a particular column in a month eg: All date values that occur in saturday in an array.
View 2 Replies