Find minimum or maximum value from Array

Browsing through the questions at the Adobe Flex forum again and came across one about having an issue with the Y-axis display on a dual-Y axis column/line chart. I’m not sure I gave the answer the poster was looking for, but my guess was that the minimum and maximum values for each LinearAxis was not set. You could set them to static values, but that wouldn’t be too useful. So, I did a quick search for some code to find the max value of an array and then modified it for AS3. — update — There is apparently even an Continue reading Find minimum or maximum value from Array

Simple DataGrid with Row Background Update

On the Adobe Flex forum, a question was asked about changing the background color for a row to a different color if the user selected it and hit the DELETE key. So, I updated the Simple Data Grid to include this feature. It doesn’t delete the row, but changes the background color to grey. The first step is to capture the keyboard action. To do this, a listener has to be created and set to listen for a KeyBoard event. I set it for the stage, but doing so requires that the function is called when applicationComplete instead of earlier. Continue reading Simple DataGrid with Row Background Update

Simple Chart Overlay

One of the screens I created for work is a “dashboard” type that allows the view to quickly see the current status of service call volume.   There are multiple charts on the display, but one of them is a column chart that shows the current day’s numbers vs. the prior week of the same day.  By having this information, the viewer can see if the volume of calls is in a “normal” range, because the it fluctuates throughout the day and the week, but is similar based on the day of the week.  Friday’s call volume is usually lower than Continue reading Simple Chart Overlay

Using BlackBerry Z10 and your game controller to play games

When I started hearing about QNX and BB10, I have always had the impression that the goal of the BB10 phones is that everything is an accessory to the phone.  Since… forever, there has been talk of wearable computers.  There have been many attempts at doing this, but most are clunky and not very practical.  As cell phones morphed from brinks to smart phones, the capabilities have increased to the point where today’s phones are more powerful than the computers I used in the 90s.  This advancement in technology pushes us closer to the wearable computer.  The main downfall to Continue reading Using BlackBerry Z10 and your game controller to play games

Update to Egg Timer

On one of my projects at work I ended up using two Egg Timers but in different states. Since it would be easier to know if the correct Egg Timer was in the correct state, I added a couple of new parameters to the Egg Timer. Then I replaced the static colors with these defined variables to make it work. After those simple changes, the Egg Timer parameters can easily be added when placing the component. Fairly simple. Since the color parameters are already set as uint, there is no for any further conversion to make the color. I also Continue reading Update to Egg Timer

ArrayCollection SortOn before a Sort

I have a display screen that shows a list of items waiting to be acknowledged by technicians. If the page isn’t acknowledged, then the page is escalated up to the next level. The display uses a DataGrid and when the number of items exceeds the displayable rows on the DataGrid, it uses pagination functions to create multiple pages for viewing the other items. When an ArrayCollection is sliced for each page, it causes an issue with sorting. When the data was sorted by level and datetime, it would only sort on the current slice of data, even if I sorted Continue reading ArrayCollection SortOn before a Sort