Flex :: Alerts, Dropdown Calendar Of DateField, Cursors Resulting In Null Value References Once Embedded?
Aug 18, 2009
I have a Flex application embedded in a Flash application, which was working fine and currently works fine if not embedded. As of last Friday, when embedded the Alerts do not show (no error, just nothing), DateField Calendar dropdowns do not show (null value reference of DateField), and dynamically showing the busy cursor errors (null value reference). My code for the Flex app did not change, and I can't think of any reason outside of Flash Player updates (which I think unlikely) or something has changed in the Flash application that is embedding it.
i inserted a dateField component.on clicking it displays calender, i would like to add 2 comboboxes, i shows hours(0 to 23) other for minutes (0 to 59) to calender so tht the user can select the time along with the date and that wil be displayed in the text input as date and Time. one more thing i would like to add is clear button to clear the selected date to the calender.
I use a datefield on a form for user to pick an appointment date.All is working fine but I would like to make users cannot select previous date (ie yesterday).
I want to change the dropdown driection of the calender of datefield.since my width of the application is small.and also i want to reduce the size of the datefield's calender control.
Setting the text property of a flex DateField makes the selectedDate property of that DateField go to null.I need to set the text property so that I can use a particular format (DD-MMM-YYYY).
Boy, it feels like I'm here a lot more than I used to be. I'm currently switching tweens to use TweenLite and what happens is I now have a null reference.
What I don't understand is how to switch this code appropriately. The object begin tweened then has to be capable of being dragged again once it's scaled back down and incapble of being dragged while it's scaled up.
I am a new flash developer and I cannot seem to understand this problem. Whenever I try and trace one of these variables of type XMLList they all return NULL except for the last one in the array.The createDatsSets() function is designed to pull XMl data and copy it to an variable of type XMLList which resides in an array. This should happen 8 times to add data to all 8 variables.It works fine with a single variable but, in the for statement when.I try and trace any of the variables in the xmlList array only the last one has XML data in it.
I'm making a list of alarms to pick from. I've googled for answers the past two days but I cannot figure out what my problem is with this batch of code.
I've got 7 items in the menu and the dropdown works good as long as you do not select the item that is already displayed in the menu. You can select another item and then reselect the original item, but I get error "Cannot access a property or method of a null object reference." from
so heres the deal i have a drop down menu that for some reason is not picking up button presses, im starting to think its because the drop down menu is within another movie clip, but its driving me nuts, any reasons why an embeded movie clip wouldnt be picking up a hitTest or a this.onRelease ??? ahh driving me nuts heres my code im using the undocumented tween class
I have a Flash 10 program that locks up when running on a device, such as a netbook, that has a weak processor.Specifically, it goes into a state where it is doing very heavy processing within an ENTER_FRAME event handler following a mouse down event, and expects to stop doing this processing following a mouse up event. The problem is that, since there is no idle time left over following the frame event handlers, the mouse up event is never received, and consequently the process locks up in what amounts to an infinite loop. Yes I can do things like lower the frame rate and do what I can to reduce the processing taking place in each frame, but is there some iron clad way to break out of this? Is there some way to detect that no idle time exists? Or is there a way to force receipt of the interactive mouse events? Or could I, within the ENTER_FRAME code, detect the state of the mouse, up or down, without getting a mouse event?
User interacts with Adobe flex webpage to configure reports based on some data stored server side. They configure their view and have THAT view emailed to them daily. I've got the report builder, the part I'm trying to figure out is how to render the report server side and send it out as email (native flex functionality? convert to html? take screenshot? assume something is running client side?...)
I had an assessment i need to finish as my test for flash developer vacancy...i need to create a function that convert date Gregorian calendar to Hijri calendar in flashis that possible?I've search through google, but still doesnt find anything useful yet.
I have to set up an list of events in sort of a calendar format. I'm trying to figure out how I should bring in the data.The data will be stored in a mySQL database. Should I just bring it straight into flash with PHP, or should I use PHP to convert it to XML and then bring it to flash?
I would like to know if there is a way to create a calendar page on my site that will display the free Google Calendar? I have embedded code in a Myspace site before and it worked well, but have no experience with the IFrame code that Google Calendar uses. fyi- I just bought Flash a month ago and have been editing a template that I purchased to be my new website.
I am making a form that pass's the Variables over to php. I am using Input text feilds and also a combo box. The text fields were a breeze and the combo box took a little bit of research but I got that working by assigning it a instance name of cBox and then using the following code to pass it through:
Code: cBoxVar= cBox.getValue();
Now I want to add a DateField using the AS2 DateField Component. How would I pass it over to a variable so when the form collects at the end it will go over to the php?
I' m trying to use the DateField control.I can set the current value using the selectedDate field.Adobe says: "Selecting the currently selected date in the control deselects it, sets the selectedDate property to null", so when user selects other date the selectedDate = null. How do I can get the current selected value? I only saw in the debugger that DateField's text property contains the string with selected date? Do I need to parse it back?
I'm using a dateField component (with editable = true) as an itemEditor in a dataGrid. Interestingly, when editing the textInput part of the dateField it doesn't seem to react to an ESC keydown as I would expect, i.e. reload old dateField value and give up focus. This seems to be standard for most other components, but not for as most other components do.
How would you go about implementing such behavior? I can listen to keydown == escape on the TextInput portion, but just realized that I don't know how to tell dateField to give up focus and politely close - in fact I'm not even sure that's the right strategy (maybe I should work at the DataGrid level?
I'm using Flash builder, with flex 4 sdk, I'm trying to create a DateField in which the TextInput component has rounded corners, this is my code, for some reason it doesn't work, anyone knows why?
Is there a way to Set a a focus border on a datefield when it is selected and change the border to some other colour when we lose focus from the datefield.
according the documentation borderThickness is an applicable style, but when I try to set it to anything (would prefer '0') it says "The style 'borderThickness' is excluded by type 'mx.controls.DateField'."I could style the background color to be the same as the background, but I have an image behind so this will not work.
Is there any Flex control to select months (any)? Right now I'm using a DateField and allow the user to select any date in a month to select that month.
Is there anything wrong with following snippet of code?
var d:Date = DateField.dateToString(myDateField.text,"DD/MM/YYYY"); testTextArea.text = d.getSeconds().toString(); Error: Implicit coercion of a value of type String to an unrelated type Date.
How to create a DateField in flex, that would disable all the dates before today's current date.
<mx:DateField id="dateField2" yearNavigationEnabled="true" disabledRanges="{[ {rangeEnd: new Date(dateBeforeCurrentDate} ]}" color="0x000000"/>
I understand I will have to do sometime like the code above. But I don't know how to get dateBeforeCurrentDate, so that all the date from yesterday will be disabled.
The change event seems to only throw when using the calendar pop-up. It is not thrown when the user manually types in to the field. I also tried dataChange.
I'm using the MX DateField control in Flex and want to display the date as 01 Jul 2011 or 01 July 2011. Does anyone know how to do this? I tried setting the formatString to "DD MMM YYYY" but it didn't work.
I have two Datefields .Is there a way that i can set the date of second Datefield to a specified range(say three days ...?. I tried to do it but not worked .. dont know to convert date back to string and format it .. here is the code
I have a Form with several FormItems and one of those include an mx:DateField. I am not sure how I should bind the DateField values. I have tried the following which none work: