states

Tiger/Lines or shapefiles of USA states and cities?

Hi folks, i've been asked to generate some demographic reports (crime rates, birth/deaths, etc) based on state and cities for the USA. I have all the demographic data (provided by our client) but can't seem to find any places which have the boundaries (read: LAT/LONG's) of the USA States and their cities. Our data are Lat/Long points o...

How do you handle 'actions' on resources in a RESTful design, like marking an email read?

How would you integrate things like this in a RESTful design? Marking an email as read Voting on a story Reporting a message as inappropriate Additionally, how would you do it in such a way that one could make a small icon link or button to do the action without too much wizardry? ...

Flex 3 using nested states

Hi, Im using states in my flex form application. The base state is the regular form. I then have an advanced form button which calls the advanced state. Once inside the advanced state form if a user enters invalid data an error will be displayed using another error state which just adds a text field to the lastChild element of the adv...

How do you model application states?

I'm writing a game, and I want to model its different states (the Game Maker analogy would be frames, I guess) in a clean, object-oriented way. Previously, I've done it in the following way: class Game { enum AppStates { APP_STARTING, APP_TITLE, APP_NEWGAME, APP_NEWLEVEL, APP_PLAYING, APP_PAUSED, APP_ENDE...

Flex - returning a window to its original state

I have been tearing my hair out now for a week or so, it's time I sought some help... I am coding a small app to show me the next train leaving the station. Normally only the hour of the next train is shown, but if you click on the prefs button, the application window enlarges and a datagrid is shown with the trains and hours. Clicking ...

Flex layout : Changes made to a single state

I was modifying the layout of a Flex application in Flex Builder. What I didn't realize was that the changes I made, were made for a particular state. There are around 6-7 states in my application. Now, I need those changes to be made to all of those states. How do I do it? As of now there are multiple lines like this in one state : <...

Linux Process States

In Linux, what happens to the state of a process when it needs to read blocks from a disk? Is it blocked? If so, how is another process chosen to execute? ...

Blend 3 - States ??

Hi! I've just downloaded Expression Blend 3 from DreamSpark (for free because I'm a student :)) and read about states. I came across this and I was very impressed. And then I tried it on my own, I created a style, created a template, simply selected a button - but I cannot make those default styles like MouseOver, Pressed, etc. appear i...

ASP MVC storing page states for later restoring

I have a fairly complex ASP MVC set of controls that set a data filter (account ID range, cost range, carrier, dates etc). This also creates a data table object with the standard result set type object. The user might wonder away from the page and then come back. I want to restore the previous filter control states and also pull the cur...

flex state basedOn multiple states

Is it possible, in flex, to assign multiple states as base for another state? Say I have state "stateA" that adds a button "buttonA" and state "stateB" that adds a button "buttonB". Is it possible to create a state "stateC" that is based on state "stateA" and "stateB"? If not, is there a workaround to accomplish that? Also notice that t...

changing children of dynamic created states

I'm building an Xml-driven application. I create new states in a seperate actionscript-class. These states all contain a DataGrid. I can switch the states in the Main.mxml. But now I would like to access certain children of the DataGrid. In this case I would like to toggle the visibility of GridItems, from a Button in the Main.mxml. ...

CheckedListBox SetItemCheckState

i have: ListenCheckedListBox.SetItemCheckState(0, CheckState.Unchecked); will this assignment trigger the ListBox's ItemCheck event? because the above statement is not changing its status from checked to unchecked. and in the ItemCheck im toggling its CheckState also. that why im wondering that because of this code the checked status...

How can I use VisualStates in a ChildWindow?

Is there any way to use the VisualStateManager with my ChildWindow subclass? Calls to VisualStateManager do nothing, and the googling I did implied the only way to achieve this is with manual calls to Storyboards. That's so much sloppier and prone to error. Has anyone found a way to achieve it? Updated with example code. To use it, just...

What does mx:target do in Flex 3?

There is an example on Adobe livedocs for using states: <!-- Define one view state, in addition to the base state.--> <mx:states> <mx:State name="Register"> <mx:AddChild relativeTo="{loginForm}" position="lastChild"> <mx:target> <mx:FormItem id="confirm" label="Confirm:"> ...

I have a problem implementing states in my Flex app, please help!

Hey guys, I'm trying to work out how to use states in my Flex app. I've created two states, State1 and Stage 2. Both are based off the base state. I've created a few visual elements for State1, and given each of them includeIn="State1". But when I'm in design mode and click on State2, these elements are still visible? Why is that? If ...

Flash Builder 4 "includeIn" property causing design view error

I am creating a custom TextInput component that will define an "error" state. I have extended the TextInput class to change the state to "error" if the errorString property's length is greater than 0. In the skin class, I have defined an "error" state, and added some logic to detect the size and position of the error icon. However, if...

Dealing with infinite loops when constructing states for LR(1) parsing

I'm currently constructing LR(1) states from the following grammar. S->AS S->c A->aA A->b where A,S are nonterminals and a,b,c are terminals. This is the construction of I0 I0: S' -> .S, epsilon --------------- S -> .AS, epsilon S -> .c, epsilon --------------- S -> .AS, a S -> .c, c A -> .aA, a A -> ...

State Animation on ListBox ItemTemplate

I have a listbox which reads from Observable collection, and is ItemTemplate'ed: <DataTemplate x:Key="DataTemplate1"> <Grid x:Name="grid" Height="47.333" Width="577" Opacity="0.495"> <Image HorizontalAlignment="Left" Margin="10.668,8,0,8" Width="34" Source="{Binding ImageLocation}"/> <TextBlock Margin="56,8,172.334,8...

Flex 4 / Flash 4 Add to Current State

I am having a little difficulty working with states in Flex (or Flash) 4. Lets say that my application has three states; the default (base) state, state 1, and state 2. State 1 should always be based on the base state, that's easy enough to accomplish. However, I would like state 2 to be based on the current state (either base or stat...

Changing Background Images per state

I have a Component that has a specific background image. The code looks like: <mx:backgroundImage>@Embed(source='img1.png')</mx:backgroundImage> <mx:states> <mx:State name='state2'> <mx:SetStyle name="backgroundImage"> <mx:value>@Embed(source='img2.png')</mx:value> </mx:SetStyle> </mx:State> </mx:states> But when I ...