Flex :: DateChooser Updating Correctly Only If Visible At Start

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


Similar Posts:


ActionScript 3.0 :: String Value Not Updating Correctly?

Oct 19, 2011

I want to write a function that updates a string value, but doesn't return a value. In the snippit below, Id like to pass the variable "testString" into the function and change its value. When I do this however, the value does not change.

var testString:String = "this is the test string";
testFunction(testString);
function testFunction(newString:String):void{

[code].......

View 10 Replies

ActionScript 3.0 :: Movieclip X Coordinates Not Updating Correctly

Nov 25, 2008

Im having a problem with movement in flash cs3 using as3, im basically moving 2 movie clips back and forth along the x axis using the following formular to calculate the x velocity.[code]

View 3 Replies

ActionScript 2.0 :: _visible.variable Not Updating Correctly?

Feb 28, 2009

I am a little new to actionscript and I have run into a wall that I can't break down. Basically, I am using the _visible. command to turn on and off some overlapping movie objects (it's a complex actionscript button). The actionscript works just fine click on a button and it turns red click on another button and the first button turns black while the latter now turns red. The problem is that something in my actionscript is causing the following to occur. I click the first button and it goes red. I click the second button and it goes read. The first button stays red until I rollover my mouse on the button (I don't have any rollover functions) and all of a sudden it seems to refresh and go back to black as it should have done automatically..

/*
var frameStop:String = null; // stop current external swf movie from playing
var xy:Number = null; //level number of the movie clip to be stopped

[code].....

View 1 Replies

ActionScript 1/2 :: Not Visible At Start, Then Visible After Something Happens?

Sep 7, 2010

Okay, this should be relatively easy but I'm running into errors. My main character is visible in the beginning of the game (where the main menu is) and because I coded it so that all of the enemies don't spawn unless the main character is visible, the enemies spawn too. As a result, if you stay at the main menu for long enough, the score continues to go up, the health goes down when enemies attack, etc.

View 1 Replies

ActionScript 3.0 :: Property Updating Once, At Program Start Up Only?

May 13, 2009

I have two classes (shown below, after the problem description).The first class , InteractiveStrategy, is the main class definition. In there I declare and instantiate a variable download of DataTxRx class. Once the data download is COMPLETE, I trace the length of the property questions.The second class, DataTxRx has a method DownloadData() , and a property questions of Array type. In the constructor, I am calling the DownloadData() method. The property questions is(MUST be) updated whenever the DownloadData method is called.The problem is that the property is updated only once, at progran start up. Subsquent executions of the DownloadData() are not updating the property. How can I get around this problem?
 
package strategy{
import flash.display.Sprite;  import flash.events.*;
import strategy.*;

[code].....

View 11 Replies

Actionscript 2.0 :: Netstream Buffer Visible From Start?

Jan 23, 2009

I have made a video player based on the code from Lee's tutorial and I have modified it with help from code found in this forum. The video is paused from start and thats fine, but the bufferClip shows all the time (like forever) until i press the play button, I just want the bufferClip to be visible for as long the video is buffering.

Code: Select allns.setBufferTime(4);
var firstPlay:Boolean = true;
ns.onStatus = function(info){

[code].....

View 1 Replies

ActionScript 2.0 :: Make Visible Object Invisible At Start?

Mar 1, 2010

I have a simple FLA that pans through an image up/down/left/right. There are several hotspots (transparent buttons) that popup simple captions when the user rolls over them and launches a URL when clicked.

The captions are actually one caption that I dynamically write text to, size, and _x, _y locate when the rollover event occurs.

The caption (cap) is a rectangle and text box MC symbol which is grouped with the graphic and buttons as another MC symbol. It all works great, panning, captions.

The problem is, when the mouse is first moved, the caption box appears over the graphic. I want it invisible until a rollover occurs. I have tried a setup function action in the first frame that performs cap._visible = false;, which did not solve it. That syntax works fine following the first rollout.

on (rollOver) {
cap.desc.text = "Mr Reynolds";
cap._width = 7*cap.desc.text.length;

[Code].....

View 8 Replies

Flex :: DateChooser - Disable Year And Month?

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

Actionscript 3 :: Flex DateChooser In Japanese Style?

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

ActionScript 2.0 :: Visible Loading Of Layers Won't Start Movie At Beginning?

Oct 2, 2011

I am working on a tabular file that when you click on one of the tabs (there is 7) you view the content of that layer.

The code I am using works fine:

on (release) {
land._visible = true;
Tab1._visible = false;

[Code]....

but when you view the "land" layer, go back to another tab and go back to the "land" layer it doesn't reload and start at frame 1 but the last frame you were at.

I desperately need it to "reload" when you release on the action above and to GoToAndPlay frame 1 but whatever code I try it won't do it.

View 4 Replies

Actionscript :: Flex Extending DateChooser - Events In Calendar

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

Flex :: Days To Have A Different Background-color In The DateChooser Component?

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

Flex :: Date - Make DateChooser Show SelectedDate?

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

Flex :: 3 DateChooser Control - Date Selection Changes On MouseUp Event

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

Flex :: Changing Left / Right Arrow Button Styles For DateChooser?

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

ActionScript 2.0 :: XML - Preload Bar Flashes Slightly At The Start Then Is Visible As Scroll Through Each Image In The Galleries

Oct 16, 2006

Have set up a file which preloads all of my images from an XML before displaying. However I'm having problems, one is the preload bar flashes slightly at the start, then is visible as I scroll through each image in the galleries. I've attached my fla file >> here <<

View 12 Replies

Flex :: DateChooser - Difference In Font-color For Week/weekend Days?

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

Actionscript 3 :: Get Array Of Dates For Saturday And Sunday Column In A Datechooser In Flex?

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

Flex :: DateChooser Component, 42 Days, Show Days Of Previous/next Month?

Jun 5, 2011

On the DateChooser component, it shows the days for only the current month... but i'd like to show some of the previous month's days and some of the next month's days.Is there a property to set on the DateChooser component to show 42 days. I mean, to show some of the previous month's days + the current month's days + some of the next month's days. I'm not sure what this is called...If you look at a typical month calendar, for example for June 2011 it shows:

S M T W Th F Sa
20 30 31 1 2 3 4
5 6 7 8 9 10 11

[code].....

Is there a property that I've overlooked which shows some of the days from the prev. month and next month in the current month view? Or would I need to extend the DateChooser component and override a method?

View 1 Replies

Flex :: Datechooser Can't Select First "selectable" Date

Aug 7, 2010

I'm using the selectableRange property of a DateChooser, but the DateChooser will not allow me to "select" the first date within the selectableRange.

Here is the code. Give it a go.

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:comps="comps.*"
backgroundColor="0xFFFFFF"
layout="vertical" xmlns:text="flash.text.*">

[Code].....

Try selecting Jan 1 - Jan 10 using Shift-click. No go. But try selecting Jan 2 - Jan 11, works fine. What's up with Jan 1?

You can also find the app here:[URL]

View 1 Replies

Flex - Updating An AIR Application?

Aug 6, 2011

I know there is a built-in update framework inside AIR but finding valid code samples for the latest versions proves to be hard. Some code for simple updating (assuming ActionScript 3,

View 1 Replies

Flex :: Tell When A Component (and It's Children) Are Done Updating?

May 28, 2011

I'm resizing a chart and want to take a picture of it when all the children of that chart are done updating.

For example I'm drawing some stuff on the chart after the size changes. I've tried chaining a bunch of callLater() but I'm still running into problems on slow computers.

Raising an event when the last children has executed doesn't seem to work as it might take a while to draw (hence the callLaters).

Is there a best practice to find out when something is done updating?

View 1 Replies

Flex :: Combobox Not Updating With Bindable Data

Jan 28, 2011

My Combobox is not alway updating when I update the ArrayCollection.[code]...

the first time it updates the combobox fine and sometimes it works the 2nd, 3rd, etc time is might update the combo box. After it stops updating the combobox, it never does until I restart the app. I have verified that the ArrayCollection is updated via the debug data, it is just the combobox is not updating the display.

View 1 Replies

Mysql :: Updating From Adobe Flex Application

Apr 18, 2011

I am very new to Flex. I want to build an application that will contain many radio buttons. I want to know how to update mysql by the status of radio buttons.

View 3 Replies

Flex :: Global Variable - Updating To Current ID

Aug 10, 2011

I am trying to work with a global variable in Flex and it does not appear to be working correctly. In my default mxml file I declare the following
public var appID:int;

This variable keeps track of the session ID across my application for SQL purposes. On another mxml page I call the following code which should update the global variable to the current ID.

// Get the ID
sqlStatement.text =
"SELECT Max(id)FROM applications";
sqlStatement.execute();
var result:SQLResult;
result = sqlStatement.getResult();
FlexGlobals.topLevelApplication.appID = result.data[0];

Lastly I run a SQL Update query using the ID as a parameter. My problem is that the FlexGlobals.topLevelApplication.appID is always 0, for some reason the global variable never gets updated, I have checked to ensure that result.data[0] is correct but the value never gets passed to the global variable.

View 2 Replies

Flex :: Update - Updating A Mobile Application

Sep 1, 2011

Is updating a Flex Mobile Application done in the same way an Air application is updated? Can't seem to find information specifically for mobile on this. Apparently, if I trace out Updater.isSupported, it gives back false. From the Adobe documentation: The AIR update framework is only supported in the desktop profile. It is not supported for extended desktop applications (applications installed with a native installer), and it is not supported on the mobile profile (iPhone applications written with ActionScript 3.0). Check the Updater.isSupported property at runtime to see if the update framework is supported. So how do you implement updates for Mobile Apps created with Flex (Android + iOs)?

View 1 Replies

Flex :: Events - Updating External Components From An Action?

Apr 6, 2010

I'm new to Flex and am having trouble understanding Events. I think Events are what I want to use for my situation. I have 2 components, addUser.mxml and listUsers.mxml. I access these from a ViewStack in my main application. When I load listUsers.mxml it shows a list of current users in a datagrid via a HTTPService call. When I add a user using the form on addUser.mxml I would like the datagrid in listUsers.mxml to refresh when I return to that view to show the new user. I've tried several different things with addEventListener and dispatchEvent but can't seem to get it working. Can someone help me with this logic?

[Code]...

View 2 Replies

Actionscript 3 :: Flex Textarea Control Not Updating Properly

Apr 19, 2010

I am writing a flex application that involves modifying a textarea very frequently. I have encountered issues with the textarea sometimes not displaying my modifications.[code]When you run the above code in a flex project, it should repeatedly print, character by character, the sentence "The big brown fox jumps over the lazy dog.". But, if you are typing into the textarea at the same time, you will notice the text the timer prints is distorted.I am really curious as to why this happens. The single-threaded nature of flex and disabling user input for the textarea when I make modifications should prevent this from happening, but for some reason this doesn't seem to be working.I must note too that, when running the timer at larger intervals (around 100ms) it seems to work perfectly, so I am tempted to think it's some kind of synchronization issue in the internals of the flex framework.

View 2 Replies

Flex :: ComboBox LabelFunction Not Refreshing With Updating Of An ArrayCollection?

Aug 11, 2010

My first issue is that when my ArrayCollection only has one item, for some reason I cannot select that first item. The change function set on the mxml never gets called when I try to select that one item. If I set a prompt, it works. I know that the item is not already selected because when debugging, the selected item shows null. I do not want to use a prompt. I want the first item in the ArrayCollection to be selected automatically. So if there is only one item, I want the selected item to be that. FYI - I am using a labelFunction to format the data in the Array Collection. why I cannot select the first item or set the first item in the ArrayCollection to be the selected item?

My bigger issue is that when my Array Collection gets updated, my label function must not be refreshing because when I first open the dropdown, it has specfic data. When the Array Collection gets updated and I open the dropdown again, I see the old data in the dropdown, yet it doesn't exist anymore.

So let's say I have a ComboBox that has a datasource of an array collection of one state code and it's state name. Their is a labelFunction that puts a dash in between the state code and the state name. Their is no prompt, so the ComboBox would look like GA - Georgia and when you open the dropdown, that would be all that is there. I want that item to be selected automatically. why the old data shows up when opening the dropdown after the array collection was updated with new data?

<mx:ComboBox labelFunction="getFormattedNpaNxxCollectionList()"
dataProvider="arrayColl" change="doSomething()"/>
public function getFormattedNpaNxxCollectionList(item:Object):String
{
return StringUtil.substitute("{0} - {1}", item.stateCode, item.stateName);
}

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved