[flexcoders] Bug in Flex Chart in Flash Builder?

2010-06-10 Thread Raymond Brown
I have created a simple chart in flex, if I resize the window by dragging the 
corner edge everything works.  If I try to click a button and change the graph 
screen width and height via a state the Y scale of the graph resets to 0 
through 100.  When my data is between 0 and 3 obviously this doesn't work.  The 
only way to fix it is reload the entire page which stinks for user interaction. 
 I have asked this question before on this list with no answer - am I the only 
person hitting this or rather using flex charts and changing their size via a 
state?

i.e.

 ...width.state1="100%" width.state2="250"...

 I capture the resize event and tried to invalidate the display list and 
refresh the data provider but nothing works.

-r


  

[flexcoders] Problems getting a DataGroup to scroll

2010-06-10 Thread Raymond Brown
I have attempted twice to get a tileList of data in a DataGroup to scroll, here 
are my two attempts:

ATTEMPT ONE:







ATTEMPT TWO:








So as you can see the first attempt was to use a skinnableContainer, and the 
second was to use a Scroller.  What happens is the tileList layout works great 
but there is NEVER a scroll bar so that I can see all the data.  What happens 
is as I resize and move the window around I can see more and more of the data 
but when the window gets a little smaller I miss data - is there something I am 
missing?

-r


  

[flexcoders] Can someone point out a tutorial or sample about moving panels?

2010-05-28 Thread Raymond Brown
I was looking for a way to move panels freely within a container, like the tool 
on http://www.splashup.com/splashup/ and I was wondering how to do the same.  I 
have no interest in duplicating the site, just want to know how to drop two or 
more panels into a container such that my users can move them about freely.   
(The thought being if you have a toolbar - you can let users select a button 
which in turn loads a module onto the container and then the users can move the 
modules as they wish on the container.)

-r



  

[flexcoders] Chart Bug in Flash Builer?

2010-05-25 Thread Raymond Brown
Anyone else have this problem with charts in Flash Builder 4? - before making a 
bug submit I want to know if I am missing something.

I place a chart into a panel - and as I drag the corner of the browser around, 
the panel resizes and the graph resizes.  If, however, I add a button and then 
click it to set the panel width and height to 100%, the chart resizes the 
y-axis to an un-usuable number.  i.e. the axis ranges between 1 and 5 during 
resizing, but when I click the button the axis becomes 1 to 100.  Thus my data 
is smushed on the bottom of the page.  I tried catching the resize event and 
invalidating the vertical axis along with refreshing the data sources.  All 
attempts have failed.

-ray



  

[flexcoders] Module help in flash builder

2010-05-24 Thread Raymond Brown
Does anyone know how to have multiple modules load inside a view stack in flash 
builder?

So you have something like this:


  

 
  

 
  

 


 The problem is this - when the app first loads, the modules within the first 
navigatorContent show fine the others just load as a blank screen and do 
nothing.  Now granted some of the modules may make the same restful interface 
call and flex doesn't enable anything to run in a thread like system but why 
can't I get the modules to load?  I am not working on a web page but a real 
time monitor and control system and so to save bandwidth and memory I want to 
load and unload the modules based on which navigatorContent is active.  I have 
googled and tried many solutions, all to no avail.  I have resorted back to 
pulling out the code from the modules and adding them as direct components 
which works but isn't optimized.  PLEASE HELP!

-ray


  

[flexcoders] A way to animate or move a list smoothly? My attempt in Flex 3 works, Flash builder not so much.

2010-05-03 Thread Raymond Brown
I have a horizontal list of objects (image and labels) that I want to slide to 
the left smoothly, in a consistent speed till the last object goes off screen 
and then repeat.  However my code, as seen below has two weird effects.  First 
it hauls butt across the screen way to fast to be readable and second somewhere 
around the middle of the screen the speed jumps up a notch till the very end 
where it seems to slow down.  Can someone point me to where I may be working 
the Move function wrong?





   xmlns:s="library://ns.adobe.com/flex/spark" 
   xmlns:mx="library://ns.adobe.com/flex/mx" 
   minWidth="955" minHeight="600" backgroundColor="0x00" 
   preinitialize="preInit()" creationComplete="complete()">














   












  

[flexcoders] A way to removeAllChildren in a panel in flash builder 4?

2010-05-02 Thread Raymond Brown
Is their a flash builder 4 equivalent of ->

  public function set dataItems(dataItemsCollection:ListCollectionView):void
{
//trace("set DataItems");
_dataItems = dataItemsCollection;
removeAllChildren();
rowsArray = [];
  
will removeAllElements() really achieve the same result - it just doesn't seem 
to work right.

-r


  

[flexcoders] Verticalscrollposition in flashbuilder?

2010-05-02 Thread Raymond Brown
Anyone know the equivalent of 

var scrollUpPropertyAction:AnimateProperty = new AnimateProperty(this);
scrollUpPropertyAction.property = "verticalScrollPosition";

scrollUpPropertyAction.fromValue = this.verticalScrollPosition;


in a panel for flash builder 4?  In addition in flex you use to be able to turn 
on the scrollpolicy via the mxml tag like this -


verticalScrollPolicy="auto"
horizontalScrollPolicy="off"

 Is their an equivalent know in flash builder?

-r


  

[flexcoders] ResultEvent from HttpService not parsing xml

2010-04-22 Thread Raymond Brown
I have an xml doc:


 
  Bob
 


 I have a Httpservice tage with url, resulthandler, faulthandler and 
resultformat="e4x".  In my resulthandler, I have this:

var ourXML:XML = event.result as XML;
var name:String = ourXML.one.two.name;
var x:int = 0;

Here is the problem, I put a break point on the int assignment and look at the 
variables.  I see that event.result AND ourXML both have the xml document in 
them but my name variable is empty.  I even tried something like this -
if (event.result.one.two.name =="Bob) and it fails.  What are we missing?  The 
debugger clearly shows the data is there but I can never seem to get it out.


  

[flexcoders] Flex 4 has radically changed my components

2010-04-02 Thread Raymond Brown
Any suggestions on the two idea's below (In Flex 3 it was easy and there is no 
samples yet that I have seen.)

1.  Create an controlBar that is consisting of a list of 80x50 buttons with 
images and read in from an xml.  i.e. xml document tells them the list of 
"buttons" to read in.

2.  A list container that allows one to create a series of widgets that are say 
200x400.  The widgets are swf's on the server waiting to be loaded.  

If anyone has a real handle on this can you send me an email and we can chat 
offline - I want to upgrade to flash builder but I am dead in the water on 
these two concepts.



  

[flexcoders] https in flex 4?

2010-04-02 Thread Raymond Brown
can i make a simple call like this?

https://127.0.0.1:8443/HalDS/hal/siteid"; 
result="siteID_resultHandler(event)" fault="siteID_faultHandler(event)"/>

it should return an xml file like this -





But I get stream errors when I issue the command siteID.send();

If I simply enter the url into my web browser it works.


  

[flexcoders] Question about the flash detection kit script

2010-04-01 Thread Raymond Brown
Can anyone give advice on how best to use the flash detection kit.  My users 
have 4.0 minimum so I should be able to use the flash_AS_detection.as but I am 
not sure how to use it.  I want to achieve the following:

1.  My users go to page https://127.0.0.1:8443/initial/startPage.swf
 - if they are not the right flash then they are transferred to the page 
upgrade_flash.html (Which of course takes them adobe.)
 - how do I use the flash_AS_detection.as in a swf to achieve this?

2.  If users are at right level then they are transferred to my swf
 - https://127.0.0.1:8443/Frank/rockOn.swf
 - again how do I add this to the startPage.swf noted in line 1.

-ray


  

[flexcoders] Change TileList background color via actionscript

2010-03-03 Thread Raymond Brown
We have a TileList that when a user clicks a checkbox we would like to change 
the background color from white to red and backwards.  Is this possible?  Do we 
have to override a function because it doesn't seem like we can when we try to 
do it.  We create a TileList using  and then in a 
function we try to do something like list.backgroundColor.



  

[flexcoders] Change grid font size via actionscript?

2010-03-03 Thread Raymond Brown
We have a datagrid which we would like to change the fontsize of dynamically. 
i.e.




private function increaseFontSize(): void {
table.fontSize += 4;
}

The problem is you can't do something like table.fontSize.  At least it doesn't 
work for me.  I want to use a function so we can restrict the size increase and 
decrease in another function.


  

[flexcoders] Progress bar in place over a component?

2010-03-03 Thread Raymond Brown
Is it possible to have several components inside a panel and as one of the 
components does something in the background can you place a progress bar over 
the component itself - NOT the whole page ?


  

[flexcoders] Multiple initializers for property 'dataProvider'

2010-01-07 Thread Raymond Brown
Below is a snapshot of one of my components. However I am always getting an 
error on the Datagrid (id="cmdTable') and the error is:

Multiple initializers for property 'dataProvider'. (note: 'dataProvider' is the 
default property of  'mx.controls.DataGrid').

Does this mean you can't keep more than one datagrid or datagrid type in a file?

Here is my source -


http://www.adobe.com/2006/mxml"; xmlns:comp="components.*" 
width="100%" height="100%" backgroundAlpha="0.0" fontSize="14" 
initialize="init()">



   




























   







  
  



  
  

  
  


thanks for the insights or help to solving this.


  

[flexcoders] Beginner "Event" Question

2009-12-12 Thread Raymond Brown
I created a custom event to pass a string with, shown here:

package events
{
import flash.events.Event;
public class ConfigFileEvent extends Event
{
public var configFile:String;
public function ConfigFileEvent(type:String, configFile:String)
{
super(type);
this.configFile = configFile;
}
override public function clone():Event {
return new ConfigFileEvent(type, configFile);
}
}
}

I then have in my main class an event metadata tag, a dispatch and event 
listener shown here:


http://www.adobe.com/2006/mxml"; 
creationComplete="initApp()" >

[Event(name="ConfigFileEvent", type="event.ConfigFileEvent")]







 However Flex builder won't compile because of the error:

Access of possibly undefined property CONFIG_FILE_EVENT through a reference 
with static type Class. in the addEventListener line.  Can someone provide a 
better insight as to this error and what it is that I am doing wrong? 


  

[flexcoders] unsubscribe

2009-11-01 Thread Raymond Brown
unsubscribe


  

[flexcoders] Someone have sometime to help me develop a datagrid before this weekend? Key word is help me - not write for me.

2009-08-12 Thread Raymond Brown
Anyone, Wwas wondering if I could ask a couple of questions - aside from this 
one. 1.  Is it possible to 'solely' in actionscript make a datagrid from an 
arraycollection?  I am trying and it keeps dying. 2.  Is it possible to have 
the cells in a datagrid show one of three png images all changing on the fly as 
the data changes?  I figure if I build the grid correctly in AS then when I 
update the dataprovider it will update the grid in real time. 3.  Is it 
possible to put a different tooltip on each cell in the datagrid? - so I can 
say show the IP address as seen below in the arraycollection but not in the 
grid itself. 4.  Would you have the time and/interest in helping me forge my 
way through this?  I don't want you to write it all - I just want someone to 
help me think my way through it before this weekend.  I want to write it myself 
- i.e. learn but need someone available to point me toward my mistakes and help 
me through it via code suggestion and or
 known tutorials.

Sample of my what I am dealing with

private var _columnHeaderArray:Array = ["3750", "Serimux", "Novatel", "4033", 
"4039"];
private var _aliveDeadArrayCollection:ArrayCollection;

Then when the httpservice call returns my xml file I do this:

_aliveDeadArrayCollection = result as ArrayCollection;



My mxml from before was like this  - 












-r


  

[flexcoders] Linux says corrupt file when clicking on an air app.

2009-07-14 Thread Raymond Brown
Question for anyone who can point to a better answer than what google has 
currently provided:

 We wrote a adobe air app on OSX using the latest version of flex builder (3 
series) and the latest adobe air sdk.  When we export the air app and double 
click it on windows or OSX it installs fine and runs.  When we try the same on 
Linux we get an error message saying the file is corrupt and we need to contact 
ourselves (developers) for another copy.  I have tried this as root and general 
user on the linux system.  Any pointers is appreciated.

-Ray


  

[flexcoders] How do I create in ActionScript what MXML lets me do?

2009-06-27 Thread Raymond Brown
Data can be found at http://www.silenttrace.com/deviceData.xml

Question one - How can I create my list, "onList" in pure actionscript vice 
mxml?  The reason I want to do this is because I get a null exception 
otherwise.  I imagine its because I am instantiating the itemrenderer before I 
have any data in my arraycollection since a http service call needs to get the 
data.  So I thought if I wait till line 35 and then instantiate the list in 
pure actionscript I am golden.  Can someone let me know if that is possible or 
how I could achieve this?  Things like setting itemChangeEffect and such seem 
to be only in mxml.

Question two ignore the itemRenderer of "onList" and you will see that I get an 
error ever time I select the zero Item in the list on the left and click the 
addToOffBtn.

here is main code


http://www.adobe.com/2006/mxml"; 
layout="absolute"
 creationComplete="init()" width="800" height="600">



http://www.silenttrace.com/deviceData.xml"; 
result="getDeviceDataRequest(event)"/>



 
 
 

 
 











Here is itemRenderer


http://www.adobe.com/2006/mxml"; width="100%" height="65" 
cornerRadius="10" 
borderStyle="solid" backgroundAlpha=".3" backgroundColor="#00">



















  

[flexcoders] Updating WITHOUT human intervention

2009-06-23 Thread Raymond Brown
Say your school has a remote system collecting data miles away and you need to 
update it with no one there to help click through the dialog.  Is there a way 
to do an update in adobe air without human intervention?  Meaning we post a new 
update on the server and the next time the remote app comes online it sees the 
new update and self updates without a human clicking a button.

A small tutorial, blog pointer or even small sample idea would be helpful.  
Every time I try it on my own I seem to be missing something.

-ray


  

[flexcoders] Question about ArrayCollections

2009-06-05 Thread Raymond Brown
Here is some code of what I am using today:

private function startAliveDeadCheck():void {
startMonitor("127.0.0.1", 80);
}
  
private function startMonitor(location:String, port:uint):void {
monitor = new SocketMonitor(location, port);
monitor.addEventListener(StatusEvent.STATUS, checkStatus);
monitor.pollInterval = 1000; // every second
monitor.start();
}
private function checkStatus(e:StatusEvent):void {
if (monitor.available) {
connectFlag.text = "ONLINE";
} else {
connectFlag.text = "OFFLINE";
}
}

 The code works fine if you are monitoring one and only one socket.  I wanted 
to modify the code to handle a bindable arraycollection but can never seem to 
pull the data out. I try changing the first function to use this:

[Bindable] private var socketsToMonitor:ArrayCollection = new ArrayCollection([
{ip:"127.0.0.1", port:80, aliveOrDead:false, monitor:},

{ip:"127.0.0.1", port:8080, aliveOrDead:false, monitor:}

]);


everything is fine.  but I hit errors when trying to pull out each array and 
starting a monitor on it.  I tried
for each (item in socketsToMonitor) {
trace(it...@ip);

}

 I get an [Object object] and not the IP address.  Any idea's of where I am 
going wrong.  Once I even achieve this I am assuming my attempt to monitor 
function will need to be redone.  I welcome any pointers and thanks for the 
help.

-ray