[flexcoders] Re: Flex4 PixelBender .pbj param error message

2009-01-29 Thread Mic
Solved - found the PixelBender SDK - have to compile the .pbk into a
.pbj not just rename the .pbk to .pbj :-). Flex 4 is getting pretty
interesting!

Mic. 


--- In flexcoders@yahoogroups.com, "Mic"  wrote:
>
> [Better place for this?] Getting a constant ArgumentError: Error
> #2004: One of the parameters is invalid message.
> 
> [Embed(source="assets/BrightnessThreshold.pbj")]
> public var ThresholdShader:Class;
> public var brightnessShader:Shader = new Shader();
> 
> brightnessShader.byteCode = new ThresholdShader(); //ERROR
> brightnessShader.data.threshold.value = [0.75];
> 
> in .pbj:
> 
> parameter float threshold
> <
> minValue: float(0.0);
> maxValue: float(1.0);
> defaultValue: float(0.5);
> >;
> 
> In following multiple examples, it seemes that the
> 
> brightnessShader.byteCode = new ThresholdShader();
> 
> syntax is correct - passing a 0.75 param to it gives a 
> 
> Argument count mismatch on Flex4Project6_ThresholdShader(). Expected
> 0, got 1.
> 
> message. I get this on any .pbj file I use, thinking it is something
> basic. TIA,
> 
> Mic.
>




[flexcoders] tiltle window called through states disabling application

2009-01-29 Thread stinasius
hi guys i have a title window that i call through view states. i would
like to know how to disable the whole application when the title
window is opened without using the popup class. thanks



[flexcoders] Re: flex 2 tilelist datachange effects

2009-01-29 Thread johndoematrix
please guys help needed on this issue. am a newbie in flex and reading
through the way this was done in the flex 2 flex store is confusing
coz its mainly done in actionscript. would like to know how to achieve
the same result using mxml or if there is a datachange effect for a
flex 2 tile list like there is for flex 3. thanks




RE: [flexcoders] Charting 1 minute data over 1 year

2009-01-29 Thread Mark Easton
Greg, I really like that idea. Will factor it in to our design discussions
here.

Many thanks,
Mark


  -Original Message-
  From: Gregory Kelley [mailto:flexcod...@yahoogroups.com]on Behalf Of
Gregory Kelley
  Sent: Friday, 30 January 2009 5:47 p.m.
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Charting 1 minute data over 1 year


  Just a thought but if you are limited by pixels maybe you can make pixel
represent a subset of data. Then if you can use that subset to test for
outliers at certain deviations you color it differently then a red dot needs
further review yellow dots are not that bad and blue dots are
inconsequential. (hot - cold colors). Each dot would represent a plotable
set of data.

  Greg

  

  From: flexcoders@yahoogroups.com on behalf of Mark Easton
  Sent: Thu 1/29/2009 7:59 PM
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Charting 1 minute data over 1 year

  ? 
  Definitely will do Doug. Its going to test my flex skills, but I hope to
have done it by the end of next week. It is complicated in that we have a
dashboard that allows the users to see many graphs for all the different
sensors, contact inputs and actuators at the same time - and move them in to
display groups (each display group has its own tab). I am taking the
approach that these "display group" graphs will all be displayed for the
last 24 hours or the last hour (switchable by the user). Then if the user
wants to do further analysis he/she can select the graph to analyse it
further and we will do that in a full size window. That is where we will
apply what is discussed below.

  Graphing actuators and contact inputs is also interesting as they only
have three values - Nan, 0 and 1. I will used a stepped line for those, but
will still need to be massaging data depending on the sample size required
to fit the data into the available x-axis pixels. In this case the client
does not want the sampling to miss any state change activity. Obviously we
cant average the sample data, so for this I am thinking I will plot the
sample entry point and exit point. Then, in another series I will also plot
the number of state changes in the sample. Then the user can slice using the
slider to look at parts of the graph in more detail and thus be able to see
exactly what the activity was.

  Thanks!



  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on
Behalf Of Doug McCune
  Sent: Friday, 30 January 2009 1:43 p.m.
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Charting 1 minute data over 1 year



  Hey Mark, 

  This might be out of the question due to client restrictions, but I'd be
very interested in seeing a screenshot of the solution you come up with
(even if you have to use some fake data to show us). It's an interesting
data visualization problem and I think it would benefit many people here (or
maybe just me) to see how you decided to solve it. So if after you figure
out a workable solution you can share what you did and how well it worked,
I'd be interested.

  Best of luck,
  Doug


  On Thu, Jan 29, 2009 at 4:12 PM, Mark Easton mailto:mar...@azurebell.co.nz> > wrote:


  ? 

  Thanks Doug,

  Yes I have been thinking (the last hour) of using such a representation or
alternatively of plotting a graph of floating columns, with each column
starting at min and ending at max, combined with a line graph in a different
colour showing the averages. BUT (and this is a big but) the client said he
was not interested in min and max, but rather exceptional values. Although I
have to take his requirements with a grain of salt sometimes it does pay to
listen to him - he is the client! :)

  The exceptions may be a single solitary value or a series of values. So,
if I were to grab the points that within each sample are 1 or 2 std
deviations outside the normal then I wont always have these points - so they
may just be the odd value. Hence using floating columns to display these
seems to make sense. 

  Mark



  -Original Message-
  From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]On
Behalf Of Doug McCune
  Sent: Friday, 30 January 2009 12:34 p.m.
  To: flexcoders@yahoogroups.com  
  Subject: Re: [flexcoders] Charting 1 minute data over 1 year



  What if you aggregate your data by some amount (say the maximum resolution
you can display on the x-axis), and then for each data point you plot the
min, max, and average, kind of like the HLOCChart that's used to show stock
data. That would let you see the average trend as well as identify any peaks
or valleys that were out of the ordinary. So then the task involves being
able to efficiently take 500,000 points and turn it into 2,000 aggregated
points with min/max/avg.

  Or even just do 3 completely separate line series for the min, max

[flexcoders] Re: Does anyone know how to disable mouseover for a button.

2009-01-29 Thread yms0411
I set the fillAlphas and fillColors to be the same as the default in 
the event handler. This works but I don't know if this is the proper 
way to do this.

this.setStyle("fillAlphas",[this.getStyle("fillAlphas")[0], 
this.getStyle("fillAlphas")[1]]);

this.setStyle("fillColors",[this.getStyle("fillColors")[0], 
this.getStyle("fillColors")[1]]);

Additionally, if i moveover the mouse to the button, blue colored 
border appears. Any ideas on how i can get rid of this?

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> There is no capture phase at the target.  Try using a higher 
priority instead, or just set the overSkin to be the same as the 
upSkin
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcod...@yahoogroups.com] On Behalf Of yms0411
> Sent: Thursday, January 29, 2009 8:26 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Does anyone know how to disable mouseover 
for a button.
> 
> 
> not really.
> when mouseover event triggers, I want to cancel the default
> highlighting of the button (not necessary when u have a touch 
screen)
> 
> --- In flexcoders@yahoogroups.com, Guy Morton  wrote:
> >
> > button.enable=false is not what you want?
> >
> >
> > On 30/01/2009, at 1:54 PM, yms0411 wrote:
> >
> > > Hi i'm making a kiosk application at the moment and I want to
> disable
> > > all mouse actions on a button such as mouseover, rollover,
> rollout,
> > > etc
> > >
> > > I've extended Button and wrote the following code on the
> constructor
> > >
> > > this.addEventListener(MouseEvent.MOUSE_OVER, ignoreMouseEvent,
> true);
> > >
> > > private function ignoreMouseEvent(event:MouseEvent):void
> > > {
> > > event.stopPropagation();
> > > }
> > >
> > > I've tried this, but it doesn't seem to be working.
> > > Any suggestions to how i can approach this?
> > >
> > > Thanks
> > >
> > >
> > >
> >
>




RE: [flexcoders] ItemEditors and rowHeight

2009-01-29 Thread Randy Martin
Here you go:

 

http://livedocs.adobe.com/flex/3/html/help.html?content=celleditor_5.html

 

HTH,

~randy

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Gregor Kiddie
Sent: Thursday, January 29, 2009 9:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ItemEditors and rowHeight

 

Looking through SearchCoders, it looks like this question has been asked
repeatedly, and never with a good solution, but hey, I may as well ask
again!

I have an AdvancedDataGrid using the default renderer. When I edit a cell
though, I want to show an ItemEditor that is taller than the row. I've tried
numerous combinations of events and setting height properties to no good
effect.

So while I go away and delve into the ADG code to try and work out a
solution, has anyone managed this successfully, and is willing to save me
some head scratching time?

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at  http://www.inps.co.uk/>
www.inps.co.uk

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it by
anyone else is not authorised. Any views or opinions presented are solely
those of the author and do not necessarily represent those of INPS or any of
its affiliates. If you are not the intended recipient please contact
is.helpd...@inps.co.uk

 

 



RE: [flexcoders] Re: Does anyone know how to disable mouseover for a button.

2009-01-29 Thread Alex Harui
There is no capture phase at the target.  Try using a higher priority instead, 
or just set the overSkin to be the same as the upSkin

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of yms0411
Sent: Thursday, January 29, 2009 8:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Does anyone know how to disable mouseover for a 
button.


not really.
when mouseover event triggers, I want to cancel the default
highlighting of the button (not necessary when u have a touch screen)

--- In flexcoders@yahoogroups.com, Guy 
Morton  wrote:
>
> button.enable=false is not what you want?
>
>
> On 30/01/2009, at 1:54 PM, yms0411 wrote:
>
> > Hi i'm making a kiosk application at the moment and I want to
disable
> > all mouse actions on a button such as mouseover, rollover,
rollout,
> > etc
> >
> > I've extended Button and wrote the following code on the
constructor
> >
> > this.addEventListener(MouseEvent.MOUSE_OVER, ignoreMouseEvent,
true);
> >
> > private function ignoreMouseEvent(event:MouseEvent):void
> > {
> > event.stopPropagation();
> > }
> >
> > I've tried this, but it doesn't seem to be working.
> > Any suggestions to how i can approach this?
> >
> > Thanks
> >
> >
> >
>



[flexcoders] Re: Does anyone know how to disable mouseover for a button.

2009-01-29 Thread yms0411
not really.
when mouseover event triggers, I want to cancel the default
highlighting of the button (not necessary when u have a touch screen)



--- In flexcoders@yahoogroups.com, Guy Morton  wrote:
>
> button.enable=false is not what you want?
> 
> 
> On 30/01/2009, at 1:54 PM, yms0411 wrote:
> 
> > Hi i'm making a kiosk application at the moment and I want to 
disable
> > all mouse actions on a button such as mouseover, rollover, 
rollout,
> > etc
> >
> > I've extended Button and wrote the following code on the 
constructor
> >
> > this.addEventListener(MouseEvent.MOUSE_OVER, ignoreMouseEvent, 
true);
> >
> > private function ignoreMouseEvent(event:MouseEvent):void
> > {
> > event.stopPropagation();
> > }
> >
> > I've tried this, but it doesn't seem to be working.
> > Any suggestions to how i can approach this?
> >
> > Thanks
> >
> >
> >
>




RE: [flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)?

2009-01-29 Thread Tracy Spratt
Better set resultFormat="e4x" and look at ther real xml data instead of
the converted object tree.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Thursday, January 29, 2009 9:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Oh WTF? Web Services: Anyone work with Blue
Disaster (I mean Dragon)?

 

I have 2 mirrored environments. One on my laptop running Adobe CF8 and
one at the University running Blue Dragon 7. I have the same  CFCs set
to remote, the same database stucture, and the same  on
both. I am just switching the wsdl location between the 2 and I am
getting COMPLETELY diffferent responses. The only difference is the
actual Servers.

When I return a query via web service with Adobe and render it out with
Alert.show(ObjectUtil.toString(e.result),'Result');, I get this:

(mx.collections::ArrayCollection)#0
  filterFunction = (null)
  length = 1
  list = (mx.collections::ArrayList)#1
length = 1
source = (Array)#2
  [0] (Object)#3
DEPARTMENT = "PRMC"
FIRSTNAME = "Wally"
ISACTIVE = 1
LASTNAME = "Kolcz"
POSITION = "Senior ColdFusion Architect"
ROLE = "admin"
UNIQNAME = "wkolcz"
uid = "12003FBD-127E-EEEB-4E25-22A5E6599FF8"
  sort = (null)
  source = (Array)#2

With Blue Dragon I get this:

(Object)#0
  columnList = (mx.collections::ArrayCollection)#1
filterFunction = (null)
length = 8
list = (mx.collections::ArrayList)#2
  length = 8
  source = (Array)#3
[0] "uniqname"
[1] "lastName"
[2] "firstName"
[3] "position"
[4] "department"
[5] "role"
[6] "isActive"
  uid = "A8A6C52F-5FDD-35DA-8364-22A4F7846DEB"
sort = (null)
source = (Array)#3
  data = (mx.collections::ArrayCollection)#4
filterFunction = (null)
length = 1
list = (mx.collections::ArrayList)#5
  length = 1
  source = (Array)#6
[0] (mx.collections::ArrayCollection)#7
  filterFunction = (null)
  length = 8
  list = (mx.collections::ArrayList)#8
length = 8
source = (Array)#9
  [0] "wkolcz"
  [1] "Kolcz"
  [2] "Wally"
  [3] "ColdFusion / Flex Developer"
  [4] "PRMC"
  [5] "admin"
  [6] 1
uid = "1226A691-AB75-70F7-DA33-22A4F7A30F01"
  sort = (null)
  source = (Array)#9
  uid = "2A52253B-DDF8-716E-0A74-22A4F7A38643"
sort = (null)
source = (Array)#6

I then added
Alert.show(ObjectUtil.toString(e.result.list.source),'source'); and got
this with Adobe:

(Array)#0
  [0] (Object)#1
DEPARTMENT = "PRMC"
FIRSTNAME = "Wally"
ISACTIVE = 1
LASTNAME = "Kolcz"
PASSWORD = "2113"
POSITION = "Senior ColdFusion Architect"
ROLE = "admin"
UNIQNAME = "wkolcz"

And this with Blue Dragon:

TypeError: Error #1010: A term is undefined and has no properties.

Anyone know a work around to get the same results? I was able to get my
'uniqname' with Adobe by using userData.getItemArt(0).UNIQNAME but it
fails in BD.

Thanks for ANY help in this Blue Disaster.

 



RE: [flexcoders] Re: Setting data from web service to ArrayCollection.

2009-01-29 Thread Tracy Spratt
Or, if you are committed to WebService:

ResultFormat = "object" causes Flex to convert the WebService SOAP xml
into a tree of dynamic objects.  This has many drawbacks and few
benefits.

 

Set resultFormat="e4x" and either use the XML directly, or wrap the
desired XMLList in an XMLListCollection, or loop over the XMLList and
build an ArrayCollection of strongly typed value objects.

 

If you go this way, be sure to inspect the result xml.  SOAP adds
several layers you will need to navigat through to get to your real
data.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Amy
Sent: Wednesday, January 28, 2009 11:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Setting data from web service to
ArrayCollection.

 

--- In flexcoders@yahoogroups.com 
, "Wally Kolcz"  wrote:
>
> Well, since this is question only contains a single example, the 
issue of not knowing is going to be more for other items in this 
project such as a list of ALL the projects, or ALL the teams, or ALL 
the users, etc. I suppose returning a single object with the logged in 
user's information is the best way to approach my login, but when it 
comes to the next items, I am still going to have the issue with not 
knowing how to capture all the information. Guess I'll have to wait and 
see.

I think you said that your resultFormat was set to "Object". That 
being the case, Flex isn't going to take that one Object and make an 
ArrayCollection out of it.

Why are you bothering with the extra hassle of WebServices anyway? Why 
not use Remoting?

 



[flexcoders] Re: flex color pickers

2009-01-29 Thread tchredeemed
anyone know??



RE: [flexcoders] itemRenderer data question (recycling)

2009-01-29 Thread Tracy Spratt
"...repeater is rarely the sollution..."  

 

I disagree intensely.  It depends entirely on the problem.  Repeater
should not be used to replace a List-based control for a large number of
items.

 

But it should always be considered when you start using addChild()
statements driven by some data structure.

 

And it can replace List for a limited number of items, or if you use a
paged navigation instead of scroll.

 

Repeater has gotten an undeserved "bad rap" from folks using it
improperly.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Johannes Nel
Sent: Wednesday, January 28, 2009 5:05 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] itemRenderer data question (recycling)

 

mmm, repeater is rarely the sollution IMO. remember that they render all
the items (when they do not recycle) and not only the visible parts like
a list. 

On Wed, Jan 28, 2009 at 11:23 AM, nwebb mailto:neilw...@gmail.com> > wrote:

Ah right - wasn't aware that repeaters didn't recycle - thanks.

 

On Fri, Jan 23, 2009 at 6:34 PM, Alex Harui mailto:aha...@adobe.com> > wrote:

If there aren't going to me more than a few dozen funds you can use
repeater and avoid recycling.  Otherwise, you'll have to live with
recycling and add other data like when it changed last so you can
determine whether to color it or not.

 

From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of nwebb
Sent: Friday, January 23, 2009 12:54 AM
To: flexcoders@yahoogroups.com  
Subject: Re: [flexcoders] itemRenderer data question (recycling)

 

Yes sorry - I was scant with the details because I know people don't
read long posts.

I'm just using a standard array for the dp rather than an
ArrayCollection and I am overwriting the array each time. Eventually I
think that each bundle may have completely different items (they are
actually funds - this is a financial app) , but in my test data I just
have 4 funds. It was a question out of curiosity more than anything
else. I was trying to knock something together quickly as this is just a
prototype screen.

at the moment (in the test data) I have the same 4 funds for each
bundle. From the UIDs I get, it looks like the renderers get recycled
and always in the same order - ie the renderer that was last used to
display item4 is then used to display item1 the next time around. If you
knew your List would never scroll, and you had the same four items, I
wondered if there was a way to turn off recycling, or at least get the
renderer in position1 to be in position1 again after a refresh.


n.b. Currently I send in the old percent & new percent, the override set
data and determine the state using those values, so the uissue is
solved, but curious to know if there is a way to get the same renderers
being reused in the same order for a scenario like i described.

On Thu, Jan 22, 2009 at 6:43 PM, Alex Harui mailto:aha...@adobe.com> > wrote:

That didn't quite make sense.  What is the dataprovider for the % list?
Why would different bundles have data items with the same UID?  Are you
resetting the dataProvider when someone selects a different bundle?

 

If the dp for the % list is a set of fields computed from the selected
bundle, don't reset the dp and have those items in the dp dispatch
change events.  That should keep recycling to a minimum.  If that
doesn't work, try using a DataGrid with 1 column and headers turned off.
It is possible that List has a different recycling algorithm than DG

 

From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of nwebb
Sent: Thursday, January 22, 2009 4:14 AM
To: flexcoders
Subject: [flexcoders] itemRenderer data question (recycling)

 

Hi, 


I have 2 List components on a page.
The one on the left displays the names of some  "bundles" - e.g. "Bundle
1"
The one on the right displays the items in the selected bundle, plus a
percentage value - e.g. "item1 - 10%" "item2 - 55%"  "item3 -
61%"

The items are the same for all bundles, but their percentages may change
as the user selects different bundles. If that happens I want to
highlight that itemRenderer. (eg when the percentage changes, highlight
renderer)


I looked at a similar example from Alex Harui - he compares a DataGrid's
listData.UID to the previous UID (stored as a property on the renderer).
If they match, he knows he has the same item and changes that value.

I have implemented IDropInListItemRenderer (so I have access to the UID)
but the renderer-recycling of the List means that even when the UID's
match, the "oldPercent" value I stored doesn't actually match up to item
being displayed - in other words, the renderer which previously

[flexcoders] Flex4 PixelBender .pbj param error message

2009-01-29 Thread Mic
[Better place for this?] Getting a constant ArgumentError: Error
#2004: One of the parameters is invalid message.

[Embed(source="assets/BrightnessThreshold.pbj")]
public var ThresholdShader:Class;
public var brightnessShader:Shader = new Shader();

brightnessShader.byteCode = new ThresholdShader(); //ERROR
brightnessShader.data.threshold.value = [0.75];

in .pbj:

parameter float threshold
<
minValue: float(0.0);
maxValue: float(1.0);
defaultValue: float(0.5);
>;

In following multiple examples, it seemes that the

brightnessShader.byteCode = new ThresholdShader();

syntax is correct - passing a 0.75 param to it gives a 

Argument count mismatch on Flex4Project6_ThresholdShader(). Expected
0, got 1.

message. I get this on any .pbj file I use, thinking it is something
basic. TIA,

Mic.



Re: [flexcoders] Does anyone know how to disable mouseover for a button.

2009-01-29 Thread Guy Morton

button.enable=false is not what you want?


On 30/01/2009, at 1:54 PM, yms0411 wrote:


Hi i'm making a kiosk application at the moment and I want to disable
all mouse actions on a button such as mouseover, rollover, rollout,
etc

I've extended Button and wrote the following code on the constructor

this.addEventListener(MouseEvent.MOUSE_OVER, ignoreMouseEvent, true);

private function ignoreMouseEvent(event:MouseEvent):void
{
event.stopPropagation();
}

I've tried this, but it doesn't seem to be working.
Any suggestions to how i can approach this?

Thanks







[flexcoders] Does anyone know how to disable mouseover for a button.

2009-01-29 Thread yms0411
Hi i'm making a kiosk application at the moment and I want to disable 
all mouse actions on a button such as mouseover, rollover, rollout, 
etc

I've extended Button and wrote the following code on the constructor

this.addEventListener(MouseEvent.MOUSE_OVER, ignoreMouseEvent, true);

private function ignoreMouseEvent(event:MouseEvent):void
{
event.stopPropagation();
}

I've tried this, but it doesn't seem to be working. 
Any suggestions to how i can approach this?

Thanks



RE: [flexcoders] LCDS : Managed associations - creating new Items

2009-01-29 Thread Jeff Vroom
Hi Bart,

Sorry for the delay in my reply.   Unfortunately that "undefined" error is a 
player bug which is effectively hiding from us the real source of the error.   
The line number in the stack trace is a finally clause... the player is 
misreporting the source of the actual error.

The CommitResponder class is going to be calling your responder functions so if 
one of them gets a runtime time error, it would end up showing that stack 
trace. In the past, to find particularly nasty errors like this I've had to 
rewrite the code to eliminate the finally clause so we can find the actual 
error.

If you use the  we print messages before and after calling the 
user result handlers so that might help track down where the error is 
occurring.   I'd probably stop in the userCreated function and step through it 
in the debugger first just to be sure it completes successfully.

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Besite - Bart
Sent: Tuesday, January 27, 2009 5:03 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] LCDS : Managed associations - creating new Items


Hi Jeff,

I was now trying to use the createItem method (because adding an Item to a 
managed collection
resulted in the "Null identity map for destination" error), altough I do not 
need to have a client reference for this specific item...

But when I run the following code :

  var token1:AsyncToken = ds.createItem(user1);
  token1.addResponder(new ItemResponder(userCreated, userFault));
  token1.chatRoom = room;

  var token2:AsyncToken = ds.createItem(user2);
  token2.addResponder(new ItemResponder(userCreated, userFault));
  token2.chatRoom = room;

  ds.commit();

I get the following error (which actually has no clear error message, just an 
error stack trace ...

undefined
at 
mx.data::CommitResponder/result()[C:\depot\DataServices\branches\lcds26_hotfixes\frameworks\projects\data\src\mx\data\CommitResponder.as:432]
at 
mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74]
at 
NetConnectionMessageResponder/resultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:491]
at 
mx.messaging::MessageResponder/result()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:199]

I will send you also my server log for the other error "Null identity map for 
destination" ...

Kind regards,
Bart Ronsyn

Just adding an item to a managed collection will implicitly queue up a "create" 
for the child item.If you call "createItem" it also adds a new client 
reference just for that specific item.   So usually you want to avoid calling 
createItem unless that item lives all by itself.

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Besite - Bart
Sent: Monday, January 26, 2009 3:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LCDS : Managed associations - creating new Items


Hello,
Another Livecycle question..

I have a managed collection of Companies. Eeach company contains a list
of employees.
The Company-object and Employee-object are Managed objects, tagged with
the [Managed] metadata tag. They each have
an associated destination on the server (configured in the
data-management-config.xml). There exists a one-to-many managed
association between
these two objects.

When I add a new Employee to the managed arraycollection "companies"
like this :

Employee newEmployee = new Employee("John Smith", "Engineer");
companies.addItem(newEployee);
companyDS.commit();

Should this result in a createItem() in the EmployeeAssembler ?
Or should I explicitly call employeeDS.createItem(newEployee); ?

Thanks for your help..
Bart


<><>

[flexcoders] How to cancel HTTPRequest?

2009-01-29 Thread Dmitri Girski
Hi everybody,

How can I cancel the http request? Is there a way to close the
underlying socket?
I've got a situation when first HTTP request is in progress
(waiting/receiving the results), and I have to fetch the data again,
as I know that the dataset I am expecting to get is already obsolete. 

I tried to do this:

requst.cancel();
request.disconnect();
request = new HTTPService() 

But looking at the server logs I can see that connection is still
there and backend performs everything it has to and closes the
connection only when all data is sent. (Apache is at the backend) 

Any comments or help is appreciated!

Thanks!

Cheers,
Dmitri.



RE: [flexcoders] Charting 1 minute data over 1 year

2009-01-29 Thread Mark Easton
Definitely will do Doug. Its going to test my flex skills, but I hope to have 
done it by the end of next week. It is complicated in that we have a dashboard 
that allows the users to see many graphs for all the different sensors, contact 
inputs and actuators at the same time - and move them in to display groups 
(each display group has its own tab). I am taking the approach that these 
"display group" graphs will all be displayed for the last 24 hours or the last 
hour (switchable by the user). Then if the user wants to do further analysis 
he/she can select the graph to analyse it further and we will do that in a full 
size window. That is where we will apply what is discussed below.

Graphing actuators and contact inputs is also interesting as they only have 
three values - Nan, 0 and 1. I will used a stepped line for those, but will 
still need to be massaging data depending on the sample size required to fit 
the data into the available x-axis pixels. In this case the client does not 
want the sampling to miss any state change activity. Obviously we cant average 
the sample data, so for this I am thinking I will plot the sample entry point 
and exit point. Then, in another series I will also plot the number of state 
changes in the sample. Then the user can slice using the slider to look at 
parts of the graph in more detail and thus be able to see exactly what the 
activity was.

Thanks!


  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on Behalf 
Of Doug McCune
  Sent: Friday, 30 January 2009 1:43 p.m.
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Charting 1 minute data over 1 year


  Hey Mark, 

  This might be out of the question due to client restrictions, but I'd be very 
interested in seeing a screenshot of the solution you come up with (even if you 
have to use some fake data to show us). It's an interesting data visualization 
problem and I think it would benefit many people here (or maybe just me) to see 
how you decided to solve it. So if after you figure out a workable solution you 
can share what you did and how well it worked, I'd be interested.

  Best of luck,
  Doug



  On Thu, Jan 29, 2009 at 4:12 PM, Mark Easton  wrote:

 

Thanks Doug,

Yes I have been thinking (the last hour) of using such a representation or 
alternatively of plotting a graph of floating columns, with each column 
starting at min and ending at max, combined with a line graph in a different 
colour showing the averages. BUT (and this is a big but) the client said he was 
not interested in min and max, but rather exceptional values. Although I have 
to take his requirements with a grain of salt sometimes it does pay to listen 
to him - he is the client! :)

The exceptions may be a single solitary value or a series of values. So, if 
I were to grab the points that within each sample are 1 or 2 std deviations 
outside the normal then I wont always have these points - so they may just be 
the odd value. Hence using floating columns to display these seems to make 
sense. 

Mark


  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on 
Behalf Of Doug McCune
  Sent: Friday, 30 January 2009 12:34 p.m.
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Charting 1 minute data over 1 year


  What if you aggregate your data by some amount (say the maximum 
resolution you can display on the x-axis), and then for each data point you 
plot the min, max, and average, kind of like the HLOCChart that's used to show 
stock data. That would let you see the average trend as well as identify any 
peaks or valleys that were out of the ordinary. So then the task involves being 
able to efficiently take 500,000 points and turn it into 2,000 aggregated 
points with min/max/avg.

  Or even just do 3 completely separate line series for the min, max, and 
avg. There's only so much information you can show in a single horizontal 
pixel, so there's simply no way to show all the data. But showing min/max/avg 
might get you the info you need.

  Doug



  On Thu, Jan 29, 2009 at 3:27 PM, Maciek Sakrejda  
wrote:

How about, on the main graph, showing the raw data as limited by the
slider, but on the slider, show points that average over some period of
time, combined with a separate series for outlying points (those outside
1 or 2 standard deviations from the mean)?

This gives you an overview of the general trends, a quick indication of
outliers, and an ability to zoom in on any single section fairly easily.


-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Mark Easton 
Reply-To: flexcoders@yahoogroups.com

To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Charting 1 minute data over 1 year

Re: [flexcoders] Charting 1 minute data over 1 year

2009-01-29 Thread Doug McCune
Hey Mark,

This might be out of the question due to client restrictions, but I'd be
very interested in seeing a screenshot of the solution you come up with
(even if you have to use some fake data to show us). It's an interesting
data visualization problem and I think it would benefit many people here (or
maybe just me) to see how you decided to solve it. So if after you figure
out a workable solution you can share what you did and how well it worked,
I'd be interested.

Best of luck,
Doug

On Thu, Jan 29, 2009 at 4:12 PM, Mark Easton  wrote:

>   
> Thanks Doug,
>
> Yes I have been thinking (the last hour) of using such a representation or
> alternatively of plotting a graph of floating columns, with each column
> starting at min and ending at max, combined with a line graph in a different
> colour showing the averages. BUT (and this is a big but) the client said he
> was not interested in min and max, but rather exceptional values. Although I
> have to take his requirements with a grain of salt sometimes it does pay to
> listen to him - he is the client! :)
>
> The exceptions may be a single solitary value or a series of values. So, if
> I were to grab the points that within each sample are 1 or 2 std deviations
> outside the normal then I wont always have these points - so they may just
> be the odd value. Hence using floating columns to display these seems to
> make sense.
>
> Mark
>
>
>
> -Original Message-
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]*on
> Behalf Of *Doug McCune
> *Sent:* Friday, 30 January 2009 12:34 p.m.
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Charting 1 minute data over 1 year
>
>  What if you aggregate your data by some amount (say the maximum
> resolution you can display on the x-axis), and then for each data point you
> plot the min, max, and average, kind of like the HLOCChart that's used to
> show stock data. That would let you see the average trend as well as
> identify any peaks or valleys that were out of the ordinary. So then the
> task involves being able to efficiently take 500,000 points and turn it into
> 2,000 aggregated points with min/max/avg.
>
> Or even just do 3 completely separate line series for the min, max, and
> avg. There's only so much information you can show in a single horizontal
> pixel, so there's simply no way to show all the data. But showing
> min/max/avg might get you the info you need.
>
> Doug
>
> On Thu, Jan 29, 2009 at 3:27 PM, Maciek Sakrejda wrote:
>
>>   How about, on the main graph, showing the raw data as limited by the
>> slider, but on the slider, show points that average over some period of
>> time, combined with a separate series for outlying points (those outside
>> 1 or 2 standard deviations from the mean)?
>>
>> This gives you an overview of the general trends, a quick indication of
>> outliers, and an ability to zoom in on any single section fairly easily.
>>
>> --
>> Maciek Sakrejda
>> Truviso, Inc.
>> http://www.truviso.com
>>
>> -Original Message-
>> From: Mark Easton >
>> Reply-To: flexcoders@yahoogroups.com 
>>  To: flexcoders@yahoogroups.com 
>> Subject: RE: [flexcoders] Charting 1 minute data over 1 year
>> Date: Fri, 30 Jan 2009 12:16:16 +1300
>>
>> 
>>
>> Hi Maciek,
>>
>> Thanks for your response.
>>
>> Yes I have seen that example and I liked it. We still need to contend,
>> though, with having 500,000 values to plot for the full graph. Using
>> standard graphing that takes for ever to plot - in fact I could not get
>> it to plot. 2000 values seems to the maximum number of points that can
>> be plotted, or to be exact the number of pixels available on x-axis. So
>> how can I take 500,000 points and :
>>
>> 1. Producre a graph that as closely as possible retains its shape?
>> 2. Shows exceptional values
>>
>> If I were to massage the 500,000 points by taking sample of 250 points
>> and averaging them, then I can miss important detail. I could use a
>> vertical column graph with floating columns, where I plotted the line
>> starting at min and ending at max for the plot point.
>>
>> Furthermore as the user used the slider to look at a smaller portion of
>> the graph I would still want to plot at maximum pixel detail. That is if
>> the user uses the slider to look at 1 month then that would allow me to
>> plot points where each point was calculated from a smaller sample size.
>>
>> Cheers
>> Mark
>>
>> -Original Message-
>> From: flexcoders@yahoogroups.com 
>> [mailto:flexcoders@yahoogroups.com ]On
>> Behalf Of Maciek Sakrejda
>> Sent: Friday, 30 January 2009 11:21 a.m.
>> To: flexcoders@yahoogroups.com 
>> Subject: Re: [flexcoders] Charting 1 minute data over 1 year
>>
>>
>> Have you suggested a thumbnail slider solution à la Google
>> Finance (say,
>> like here:
>>
>> http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night)?
>>  We've implemented something similar, and it works quite well. I can't
>> sh

RE: [flexcoders] Charting 1 minute data over 1 year

2009-01-29 Thread Mark Easton
Thanks Doug,

Yes I have been thinking (the last hour) of using such a representation or 
alternatively of plotting a graph of floating columns, with each column 
starting at min and ending at max, combined with a line graph in a different 
colour showing the averages. BUT (and this is a big but) the client said he was 
not interested in min and max, but rather exceptional values. Although I have 
to take his requirements with a grain of salt sometimes it does pay to listen 
to him - he is the client! :)

The exceptions may be a single solitary value or a series of values. So, if I 
were to grab the points that within each sample are 1 or 2 std deviations 
outside the normal then I wont always have these points - so they may just be 
the odd value. Hence using floating columns to display these seems to make 
sense. 

Mark


  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on Behalf 
Of Doug McCune
  Sent: Friday, 30 January 2009 12:34 p.m.
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Charting 1 minute data over 1 year


  What if you aggregate your data by some amount (say the maximum resolution 
you can display on the x-axis), and then for each data point you plot the min, 
max, and average, kind of like the HLOCChart that's used to show stock data. 
That would let you see the average trend as well as identify any peaks or 
valleys that were out of the ordinary. So then the task involves being able to 
efficiently take 500,000 points and turn it into 2,000 aggregated points with 
min/max/avg.

  Or even just do 3 completely separate line series for the min, max, and avg. 
There's only so much information you can show in a single horizontal pixel, so 
there's simply no way to show all the data. But showing min/max/avg might get 
you the info you need.

  Doug



  On Thu, Jan 29, 2009 at 3:27 PM, Maciek Sakrejda  
wrote:

How about, on the main graph, showing the raw data as limited by the
slider, but on the slider, show points that average over some period of
time, combined with a separate series for outlying points (those outside
1 or 2 standard deviations from the mean)?

This gives you an overview of the general trends, a quick indication of
outliers, and an ability to zoom in on any single section fairly easily.


-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Mark Easton 
Reply-To: flexcoders@yahoogroups.com

To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Charting 1 minute data over 1 year
Date: Fri, 30 Jan 2009 12:16:16 +1300

 

Hi Maciek,

Thanks for your response. 

Yes I have seen that example and I liked it. We still need to contend,
though, with having 500,000 values to plot for the full graph. Using
standard graphing that takes for ever to plot - in fact I could not get
it to plot. 2000 values seems to the maximum number of points that can
be plotted, or to be exact the number of pixels available on x-axis. So
how can I take 500,000 points and :

1. Producre a graph that as closely as possible retains its shape?
2. Shows exceptional values

If I were to massage the 500,000 points by taking sample of 250 points
and averaging them, then I can miss important detail. I could use a
vertical column graph with floating columns, where I plotted the line
starting at min and ending at max for the plot point.

Furthermore as the user used the slider to look at a smaller portion of
the graph I would still want to plot at maximum pixel detail. That is if
the user uses the slider to look at 1 month then that would allow me to
plot points where each point was calculated from a smaller sample size.

Cheers
Mark

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com]on Behalf Of Maciek Sakrejda
Sent: Friday, 30 January 2009 11:21 a.m.
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Charting 1 minute data over 1 year


Have you suggested a thumbnail slider solution à la Google
Finance (say,
like here:

http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night
 )? We've implemented something similar, and it works quite well. I can't share 
our implementation, but the example I linked has source.
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Mark Easton 
Reply-To: flexcoders@yahoogroups.com
To: Flexcoders 
Subject: [flexcoders] Charting 1 minute data over 1 year
Date: Fri, 30 Jan 2009 11:04:42 +1300

Hi,

I am trying to work out how best to produce a chart which allows
a user
to
make sense of data logged every minute for up to 12 months (ie
524160
values). To complicate matters the graphs are are presented on

RE: [flexcoders] Charting 1 minute data over 1 year

2009-01-29 Thread Mark Easton
I like the idea of the separate series for the outlying points. 

With respect to the main graph showing raw data ...I am not sure that would be 
acceptable to the client. Depending on the range selected by the slider the 
main graph would still be limited by available x-axis pixels in terms of what 
it can display. At one extreme the user could user the slider to select the 
whole graph - that dataset is 500,000 points. We could limit the slider to the 
detail that can be displayed in the main graph. But that means that only a 
small slice can be viewed at any one time, and the added user problem of having 
to move two sliders to keep the slice small.

I think if we went this way then when the slider is resposition I would need to 
look at the data population size for that and base on available x-axis pixels 
produce a new dataset to display the top graph. But I believe this would make 
the slider, slow and difficult to use, unless I allowed the sliders to be 
positioned and then the user clicked some button to generate the new graph.


  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on Behalf 
Of Maciek Sakrejda
  Sent: Friday, 30 January 2009 12:27 p.m.
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Charting 1 minute data over 1 year


  How about, on the main graph, showing the raw data as limited by the
  slider, but on the slider, show points that average over some period of
  time, combined with a separate series for outlying points (those outside
  1 or 2 standard deviations from the mean)?

  This gives you an overview of the general trends, a quick indication of
  outliers, and an ability to zoom in on any single section fairly easily.
  -- 
  Maciek Sakrejda
  Truviso, Inc.
  http://www.truviso.com

  -Original Message-
  From: Mark Easton 
  Reply-To: flexcoders@yahoogroups.com
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Charting 1 minute data over 1 year
  Date: Fri, 30 Jan 2009 12:16:16 +1300

   

  Hi Maciek,

  Thanks for your response. 

  Yes I have seen that example and I liked it. We still need to contend,
  though, with having 500,000 values to plot for the full graph. Using
  standard graphing that takes for ever to plot - in fact I could not get
  it to plot. 2000 values seems to the maximum number of points that can
  be plotted, or to be exact the number of pixels available on x-axis. So
  how can I take 500,000 points and :

  1. Producre a graph that as closely as possible retains its shape?
  2. Shows exceptional values

  If I were to massage the 500,000 points by taking sample of 250 points
  and averaging them, then I can miss important detail. I could use a
  vertical column graph with floating columns, where I plotted the line
  starting at min and ending at max for the plot point.

  Furthermore as the user used the slider to look at a smaller portion of
  the graph I would still want to plot at maximum pixel detail. That is if
  the user uses the slider to look at 1 month then that would allow me to
  plot points where each point was calculated from a smaller sample size.

  Cheers
  Mark

  -Original Message-
  From: flexcoders@yahoogroups.com
  [mailto:flexcod...@yahoogroups.com]on Behalf Of Maciek Sakrejda
  Sent: Friday, 30 January 2009 11:21 a.m.
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Charting 1 minute data over 1 year


  Have you suggested a thumbnail slider solution à la Google
  Finance (say,
  like here:
  
http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night
 )? We've implemented something similar, and it works quite well. I can't share 
our implementation, but the example I linked has source.
  -- 
  Maciek Sakrejda
  Truviso, Inc.
  http://www.truviso.com

  -Original Message-
  From: Mark Easton 
  Reply-To: flexcoders@yahoogroups.com
  To: Flexcoders 
  Subject: [flexcoders] Charting 1 minute data over 1 year
  Date: Fri, 30 Jan 2009 11:04:42 +1300

  Hi,

  I am trying to work out how best to produce a chart which allows
  a user
  to
  make sense of data logged every minute for up to 12 months (ie
  524160
  values). To complicate matters the graphs are are presented on a
  dashboard
  where the user can display many graphs at once - so we are not
  just
  displaying the one graph and the size of the graph will change
  depending
  on
  how many graphs are being displayed in the dashboard window.

  We are logging sensor data (temperature, current, vibration,
  humidity,
  wind
  speed etc). Client does not like a month, week, day, hour,
  minute drill
  down
  scenario - I tried that and it was rejected. He wants a line
  graph, but
  where we do have to average data would like to some idea of max
  and mins
  -
  maybe that can be done in point comment. Trouble is if we chart
  so many
  points then there are too many points for the mouse click to
  discern.

  Essentially the cli

Re: [flexcoders] Charting 1 minute data over 1 year

2009-01-29 Thread Doug McCune
What if you aggregate your data by some amount (say the maximum resolution
you can display on the x-axis), and then for each data point you plot the
min, max, and average, kind of like the HLOCChart that's used to show stock
data. That would let you see the average trend as well as identify any peaks
or valleys that were out of the ordinary. So then the task involves being
able to efficiently take 500,000 points and turn it into 2,000 aggregated
points with min/max/avg.

Or even just do 3 completely separate line series for the min, max, and avg.
There's only so much information you can show in a single horizontal pixel,
so there's simply no way to show all the data. But showing min/max/avg might
get you the info you need.

Doug

On Thu, Jan 29, 2009 at 3:27 PM, Maciek Sakrejda wrote:

>   How about, on the main graph, showing the raw data as limited by the
> slider, but on the slider, show points that average over some period of
> time, combined with a separate series for outlying points (those outside
> 1 or 2 standard deviations from the mean)?
>
> This gives you an overview of the general trends, a quick indication of
> outliers, and an ability to zoom in on any single section fairly easily.
>
> --
> Maciek Sakrejda
> Truviso, Inc.
> http://www.truviso.com
>
> -Original Message-
> From: Mark Easton >
> Reply-To: flexcoders@yahoogroups.com 
> To: flexcoders@yahoogroups.com 
> Subject: RE: [flexcoders] Charting 1 minute data over 1 year
> Date: Fri, 30 Jan 2009 12:16:16 +1300
>
> 
>
> Hi Maciek,
>
> Thanks for your response.
>
> Yes I have seen that example and I liked it. We still need to contend,
> though, with having 500,000 values to plot for the full graph. Using
> standard graphing that takes for ever to plot - in fact I could not get
> it to plot. 2000 values seems to the maximum number of points that can
> be plotted, or to be exact the number of pixels available on x-axis. So
> how can I take 500,000 points and :
>
> 1. Producre a graph that as closely as possible retains its shape?
> 2. Shows exceptional values
>
> If I were to massage the 500,000 points by taking sample of 250 points
> and averaging them, then I can miss important detail. I could use a
> vertical column graph with floating columns, where I plotted the line
> starting at min and ending at max for the plot point.
>
> Furthermore as the user used the slider to look at a smaller portion of
> the graph I would still want to plot at maximum pixel detail. That is if
> the user uses the slider to look at 1 month then that would allow me to
> plot points where each point was calculated from a smaller sample size.
>
> Cheers
> Mark
>
> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com ]On
> Behalf Of Maciek Sakrejda
> Sent: Friday, 30 January 2009 11:21 a.m.
> To: flexcoders@yahoogroups.com 
> Subject: Re: [flexcoders] Charting 1 minute data over 1 year
>
>
> Have you suggested a thumbnail slider solution à la Google
> Finance (say,
> like here:
>
> http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night)?
>  We've implemented something similar, and it works quite well. I can't
> share our implementation, but the example I linked has source.
> --
> Maciek Sakrejda
> Truviso, Inc.
> http://www.truviso.com
>
> -Original Message-
> From: Mark Easton >
> Reply-To: flexcoders@yahoogroups.com 
> To: Flexcoders >
> Subject: [flexcoders] Charting 1 minute data over 1 year
> Date: Fri, 30 Jan 2009 11:04:42 +1300
>
> Hi,
>
> I am trying to work out how best to produce a chart which allows
> a user
> to
> make sense of data logged every minute for up to 12 months (ie
> 524160
> values). To complicate matters the graphs are are presented on a
> dashboard
> where the user can display many graphs at once - so we are not
> just
> displaying the one graph and the size of the graph will change
> depending
> on
> how many graphs are being displayed in the dashboard window.
>
> We are logging sensor data (temperature, current, vibration,
> humidity,
> wind
> speed etc). Client does not like a month, week, day, hour,
> minute drill
> down
> scenario - I tried that and it was rejected. He wants a line
> graph, but
> where we do have to average data would like to some idea of max
> and mins
> -
> maybe that can be done in point comment. Trouble is if we chart
> so many
> points then there are too many points for the mouse click to
> discern.
>
> Essentially the client would like to see the data always at
> maximum
> detail
> no matter what period is being looked at. I have read this
>
> http://www.cynergysystems.com/blogs/page/andrewtrice?entry=visualizing_large
> _data_sets, and am thinking that I will need to proceed in kind
> and to
> use
> an Image object and set BitmapData pixels directly - depending
> on how I
> decide to reimplement this thing. Of course I am limited by the
> number
> of
> pixels available along the x-axis for a given chart si

RE: [flexcoders] Charting 1 minute data over 1 year

2009-01-29 Thread Maciek Sakrejda
How about, on the main graph, showing the raw data as limited by the
slider, but on the slider, show points that average over some period of
time, combined with a separate series for outlying points (those outside
1 or 2 standard deviations from the mean)?

This gives you an overview of the general trends, a quick indication of
outliers, and an ability to zoom in on any single section fairly easily.
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Mark Easton 
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Charting 1 minute data over 1 year
Date: Fri, 30 Jan 2009 12:16:16 +1300

 

Hi Maciek,
 
Thanks for your response. 
 
Yes I have seen that example and I liked it. We still need to contend,
though, with having 500,000 values to plot for the full graph. Using
standard graphing that takes for ever to plot - in fact I could not get
it to plot. 2000 values seems to the maximum number of points that can
be plotted, or to be exact the number of pixels available on x-axis. So
how can I take 500,000 points and :
 
1. Producre a graph that as closely as possible retains its shape?
2. Shows exceptional values
 
If I were to massage the 500,000 points by taking sample of 250 points
and averaging them, then I can miss important detail. I could use a
vertical column graph with floating columns, where I plotted the line
starting at min and ending at max for the plot point.
 
Furthermore as the user used the slider to look at a smaller portion of
the graph I would still want to plot at maximum pixel detail. That is if
the user uses the slider to look at 1 month then that would allow me to
plot points where each point was calculated from a smaller sample size.
 
Cheers
Mark
 
-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com]on Behalf Of Maciek Sakrejda
Sent: Friday, 30 January 2009 11:21 a.m.
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Charting 1 minute data over 1 year


Have you suggested a thumbnail slider solution à la Google
Finance (say,
like here:

http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night
 )? We've implemented something similar, and it works quite well. I can't share 
our implementation, but the example I linked has source.
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Mark Easton 
Reply-To: flexcoders@yahoogroups.com
To: Flexcoders 
Subject: [flexcoders] Charting 1 minute data over 1 year
Date: Fri, 30 Jan 2009 11:04:42 +1300

Hi,

I am trying to work out how best to produce a chart which allows
a user
to
make sense of data logged every minute for up to 12 months (ie
524160
values). To complicate matters the graphs are are presented on a
dashboard
where the user can display many graphs at once - so we are not
just
displaying the one graph and the size of the graph will change
depending
on
how many graphs are being displayed in the dashboard window.

We are logging sensor data (temperature, current, vibration,
humidity,
wind
speed etc). Client does not like a month, week, day, hour,
minute drill
down
scenario - I tried that and it was rejected. He wants a line
graph, but
where we do have to average data would like to some idea of max
and mins
-
maybe that can be done in point comment. Trouble is if we chart
so many
points then there are too many points for the mouse click to
discern.

Essentially the client would like to see the data always at
maximum
detail
no matter what period is being looked at. I have read this

http://www.cynergysystems.com/blogs/page/andrewtrice?entry=visualizing_large
_data_sets, and am thinking that I will need to proceed in kind
and to
use
an Image object and set BitmapData pixels directly - depending
on how I
decide to reimplement this thing. Of course I am limited by the
number
of
pixels available along the x-axis for a given chart size.

This is complicated as the client would like to zoom on the
graph and
also
look at time slices. The client would also like to be able to
see
exceptions
clearly on the graph - for example if there was a vibration
spike. Also
sometimes the sensor might not be operational so we need to see
those
breaks
in the graph when no data was captured.


[flexcoders] Re: flex color pickers

2009-01-29 Thread tchredeemed
Actually, I need one that is much more open then that... a 'millions
of colors' color picker..!



RE: [flexcoders] Charting 1 minute data over 1 year

2009-01-29 Thread Mark Easton
Hi Maciek,

Thanks for your response. 

Yes I have seen that example and I liked it. We still need to contend, though, 
with having 500,000 values to plot for the full graph. Using standard graphing 
that takes for ever to plot - in fact I could not get it to plot. 2000 values 
seems to the maximum number of points that can be plotted, or to be exact the 
number of pixels available on x-axis. So how can I take 500,000 points and :

1. Producre a graph that as closely as possible retains its shape?
2. Shows exceptional values

If I were to massage the 500,000 points by taking sample of 250 points and 
averaging them, then I can miss important detail. I could use a vertical column 
graph with floating columns, where I plotted the line starting at min and 
ending at max for the plot point.

Furthermore as the user used the slider to look at a smaller portion of the 
graph I would still want to plot at maximum pixel detail. That is if the user 
uses the slider to look at 1 month then that would allow me to plot points 
where each point was calculated from a smaller sample size.

Cheers
Mark

  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on Behalf 
Of Maciek Sakrejda
  Sent: Friday, 30 January 2009 11:21 a.m.
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Charting 1 minute data over 1 year


  Have you suggested a thumbnail slider solution à la Google Finance (say,
  like here:
  
http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night
 )? We've implemented something similar, and it works quite well. I can't share 
our implementation, but the example I linked has source.
  -- 
  Maciek Sakrejda
  Truviso, Inc.
  http://www.truviso.com

  -Original Message-
  From: Mark Easton 
  Reply-To: flexcoders@yahoogroups.com
  To: Flexcoders 
  Subject: [flexcoders] Charting 1 minute data over 1 year
  Date: Fri, 30 Jan 2009 11:04:42 +1300

  Hi,

  I am trying to work out how best to produce a chart which allows a user
  to
  make sense of data logged every minute for up to 12 months (ie 524160
  values). To complicate matters the graphs are are presented on a
  dashboard
  where the user can display many graphs at once - so we are not just
  displaying the one graph and the size of the graph will change depending
  on
  how many graphs are being displayed in the dashboard window.

  We are logging sensor data (temperature, current, vibration, humidity,
  wind
  speed etc). Client does not like a month, week, day, hour, minute drill
  down
  scenario - I tried that and it was rejected. He wants a line graph, but
  where we do have to average data would like to some idea of max and mins
  -
  maybe that can be done in point comment. Trouble is if we chart so many
  points then there are too many points for the mouse click to discern.

  Essentially the client would like to see the data always at maximum
  detail
  no matter what period is being looked at. I have read this
  http://www.cynergysystems.com/blogs/page/andrewtrice?entry=visualizing_large
  _data_sets, and am thinking that I will need to proceed in kind and to
  use
  an Image object and set BitmapData pixels directly - depending on how I
  decide to reimplement this thing. Of course I am limited by the number
  of
  pixels available along the x-axis for a given chart size.

  This is complicated as the client would like to zoom on the graph and
  also
  look at time slices. The client would also like to be able to see
  exceptions
  clearly on the graph - for example if there was a vibration spike. Also
  sometimes the sensor might not be operational so we need to see those
  breaks
  in the graph when no data was captured.

  All in all I am finding this a complicated requirement to unravel, as
  some
  of the requirements seem to be nonsensical - eg having a zoom - when the
  client always wants to see maximum detail???

  So, I need to work out a design for this which will best meet the
  clients
  requirement and which flex can handle.

  Any comments and ideas are appreciated. I am working on this presently,
  so
  as I come up with ideas on how to proceed I will post them here.

  Cheers
  Mark



   

RE: [flexcoders] Re: DataGrid Drop Deny based on dropIndex

2009-01-29 Thread Alex Harui
Try putting a DRAG_ENTER listener on each renderer and call 
DragManager.acceptDragDrop(null) if you don't want the drop.

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Adrian Williams
Sent: Thursday, January 29, 2009 12:33 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: DataGrid Drop Deny based on dropIndex


Hi S,

That's a toughie...I haven't tried to selectively deny a drop depending on 
an index...

I don't know of any methods that will reject the drag-drop other than the 
stopPropagation and stopImmediatePropagation methods.  You might try looking 
the DRAG_OVER event to see if you can selectively showDropFeedback and 
hideDropFeedback depending on what rows you are over and then in your listener, 
if it's dropped where its not supposed to be cancel the op. Another idea would 
be if you know which row's you don't want drop enabled on, see if you can 
manipulate the drop properties of those row to deny the drop??

Not really sure what else to do herebut am interested to know if you 
find out how!

Best,
Adrian

park96 wrote:

Hi Adrian,

Thanks for the response. So I didn't know about the hideDropFeedback
method on the ListBase class. That helps a bit but the problem I'm
encountering now, is that when I start dragging, it denies it at
first, but once it passed over a row that it's able to drop, it
becomes droppable over all the rows. It looks like the
DragManager.acceptDragDrop() toggles on and won't turn back off even
if I hide the dragDropFeedback. Is there a method like
DragManager.rejectDragDrop() so that when I'm dragging a row over all
the rows, that it will reject certain rows, but accepts others?

Thanks

s.park

--- In flexcoders@yahoogroups.com, Adrian 
Williams  wrote:
>
> Hi,
>
> We handle something very similar to this, and although we don't deny a
> drop based on the index, we use the index to persist the drop location
> in the database...the same logic applies. We are using this on an ADG
> and hence my example below:
>
> You could grab the internal targetGrids dropData get the
> dropData.index...check it and if its not the value you want, perform an
> event.preventDefault and stopPropagation...
>
> private function adg_DragEvent(event:DragEvent):void
> {
> var targetGrid:AdvancedDataGrid = event.currentTarget as
> AdvancedDataGrid;
>
> use namespace mx_internal;
> var dropData:Object = targetGrid.mx_internal::_dropData;
>
> adgIndex = dropData.index;
>
> if (adgIndex > 4)
> {
> targetGrid.hideDropFeedback(event);
> targetGrid.selectedItems = new Array();
> event.preventDefault();
> event.stopPropagation();
> }
> }
>
> HTH!
> Adrian
>
>
> park96 wrote:
> >
> > Anyone have an example of how to deny a drop based on the drop index?
> > The problem I'm facing is that even though my dragEnter event handler
> > doesn't call the DragManager.acceptDragDrop(UIComponent), it still
> > allows me to drop it.
> >
> >
>



RE: [flexcoders] Re: Call method on nested SWF

2009-01-29 Thread Alex Harui
Please add a comment to the doc page or file a bug.

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of nylarch
Sent: Thursday, January 29, 2009 1:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Call method on nested SWF


thanks everyone...

I caught the "complete" instead of "creationComplete" problem but I
had no idea on the syntax for calling the method - it works fine now
thanks a bunch. And the FlexApp() thing was just further clouding
the issue

time for someone to update that documentation!

--- In flexcoders@yahoogroups.com, 
"valdhor"  wrote:
>
> Oh, there is a great example at
> http://www.cflex.net/showFileDetails.cfm?ObjectID=690
>
>
> --- In flexcoders@yahoogroups.com, 
> "valdhor"  wrote:
> >
> > There is one other problem with that example. The SWFLoader has a
> >
> > creationComplete="initNestedAppProps();"
> >
> > If you use that then loadedSM will be null. It should be
> >
> > complete="initNestedAppProps();"
> >
> >
> > --- In flexcoders@yahoogroups.com, 
> > Alex Harui  wrote:
> > >
> > > Interesting. That doc is in error. Should be:
> > >
> > > public function updateNestedVarOne():void {
> > > loadedSM.application["setVarOne"]("Updated
> > > varOne!");
> > > }
> > >
> > > From: flexcoders@yahoogroups.com 
> > > [mailto:flexcoders@yahoogroups.com]
> > On Behalf Of nylarch
> > > Sent: Thursday, January 29, 2009 7:00 AM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Call method on nested SWF
> > >
> > >
> > > Hi -
> > >
> > > I've been using Flex to write some data visualizations and am in the
> > > process of writing an admin tool to customize the look n' feel
of each
> > > visualization. My admin app uses SWFLoader to load the individual
> > > visualizations - a really nice thing to be able to do (load a
full app
> > > inside another app). I need to call the accessors to the look n'
> > > feel properties inside the nested SWF's from the main app so that I
> > > can do real time changes that will upon completion be written to the
> > > actual config files that the visualization tools use.
> > >
> > > So - all of the Adobe docs and blog posts on this topic seem to
point
> > > to the same tutorial on calling methods and properties on nested
> swf's:
> > >
> > >
> http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.html
> > >
> > > I can't seem to get this to run and I can't figure out what is
> > > happening here:
> > >
> > > // Write to the varOne variable in the loaded application
> > > // using the setVarOne() method of the loaded application.
> > > public function updateNestedVarOne():void {
> > > FlexApp(loadedSM.application).setVarOne("Updated
> > > varOne!");
> > > }
> > >
> > > I don't understand the "FlexApp()" casting or whatever that is -
> > > FlexApp is the name of the loaded app - is this what this refers to?
> > > My sample apps always bombs out on that line as an undefined
> method
> > >
> > > Thanks!
> > >
> >
>



Re: [flexcoders] Charting 1 minute data over 1 year

2009-01-29 Thread Maciek Sakrejda
Have you suggested a thumbnail slider solution à la Google Finance (say,
like here:
http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night
 )? We've implemented something similar, and it works quite well. I can't share 
our implementation, but the example I linked has source.
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Mark Easton 
Reply-To: flexcoders@yahoogroups.com
To: Flexcoders 
Subject: [flexcoders] Charting 1 minute data over 1 year
Date: Fri, 30 Jan 2009 11:04:42 +1300

Hi,

I am trying to work out how best to produce a chart which allows a user
to
make sense of data logged every minute for up to 12 months (ie 524160
values). To complicate matters the graphs are are presented on a
dashboard
where the user can display many graphs at once - so we are not just
displaying the one graph and the size of the graph will change depending
on
how many graphs are being displayed in the dashboard window.

We are logging sensor data (temperature, current, vibration, humidity,
wind
speed etc). Client does not like a month, week, day, hour, minute drill
down
scenario - I tried that and it was rejected. He wants a line graph, but
where we do have to average data would like to some idea of max and mins
-
maybe that can be done in point comment. Trouble is if we chart so many
points then there are too many points for the mouse click to discern.

Essentially the client would like to see the data always at maximum
detail
no matter what period is being looked at. I have read this
http://www.cynergysystems.com/blogs/page/andrewtrice?entry=visualizing_large
_data_sets, and am thinking that I will need to proceed in kind and to
use
an Image object and set BitmapData pixels directly - depending on how I
decide to reimplement this thing. Of course I am limited by the number
of
pixels available along the x-axis for a given chart size.

This is complicated as the client would like to zoom on the graph and
also
look at time slices. The client would also like to be able to see
exceptions
clearly on the graph - for example if there was a vibration spike. Also
sometimes the sensor might not be operational so we need to see those
breaks
in the graph when no data was captured.

All in all I am finding this a complicated requirement to unravel, as
some
of the requirements seem to be nonsensical - eg having a zoom - when the
client always wants to see maximum detail???

So, I need to work out a design for this which will best meet the
clients
requirement and which flex can handle.

Any comments and ideas are appreciated. I am working on this presently,
so
as I come up with ideas on how to proceed I will post them here.

Cheers
Mark




 




[flexcoders] Charting 1 minute data over 1 year

2009-01-29 Thread Mark Easton
Hi,

I am trying to work out how best to produce a chart which allows a user to
make sense of data logged every minute for up to 12 months (ie 524160
values). To complicate matters the graphs are are presented on a dashboard
where the user can display many graphs at once - so we are not just
displaying the one graph and the size of the graph will change depending on
how many graphs are being displayed in the dashboard window.

We are logging sensor data (temperature, current, vibration, humidity, wind
speed etc). Client does not like a month, week, day, hour, minute drill down
scenario - I tried that and it was rejected. He wants a line graph, but
where we do have to average data would like to some idea of max and mins -
maybe that can be done in point comment. Trouble is if we chart so many
points then there are too many points for the mouse click to discern.

Essentially the client would like to see the data always at maximum detail
no matter what period is being looked at. I have read this
http://www.cynergysystems.com/blogs/page/andrewtrice?entry=visualizing_large
_data_sets, and am thinking that I will need to proceed in kind and to use
an Image object and set BitmapData pixels directly - depending on how I
decide to reimplement this thing. Of course I am limited by the number of
pixels available along the x-axis for a given chart size.

This is complicated as the client would like to zoom on the graph and also
look at time slices. The client would also like to be able to see exceptions
clearly on the graph - for example if there was a vibration spike. Also
sometimes the sensor might not be operational so we need to see those breaks
in the graph when no data was captured.

All in all I am finding this a complicated requirement to unravel, as some
of the requirements seem to be nonsensical - eg having a zoom - when the
client always wants to see maximum detail???

So, I need to work out a design for this which will best meet the clients
requirement and which flex can handle.

Any comments and ideas are appreciated. I am working on this presently, so
as I come up with ideas on how to proceed I will post them here.


Cheers
Mark










[flexcoders] BrowserManager/SWFObject

2009-01-29 Thread Richard Rodseth
What's the current state of the art/best practice on implementing deep
linking without relying on the Adobe html templates?


[flexcoders] Re: Call method on nested SWF

2009-01-29 Thread nylarch
thanks everyone...

I caught the "complete" instead of "creationComplete" problem but I
had no idea on the syntax for calling the method - it works fine now
thanks a bunch.   And the FlexApp() thing was just further clouding
the issue

time for someone to update that documentation!

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> Oh, there is a great example at
> http://www.cflex.net/showFileDetails.cfm?ObjectID=690
> 
> 
> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> >
> > There is one other problem with that example. The SWFLoader has a 
> > 
> > creationComplete="initNestedAppProps();"
> > 
> > If you use that then loadedSM will be null. It should be
> > 
> > complete="initNestedAppProps();"
> > 
> > 
> > --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> > >
> > > Interesting.  That doc is in error.  Should be:
> > > 
> > > public function updateNestedVarOne():void {
> > > loadedSM.application["setVarOne"]("Updated
> > > varOne!");
> > > }
> > > 
> > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
> > On Behalf Of nylarch
> > > Sent: Thursday, January 29, 2009 7:00 AM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Call method on nested SWF
> > > 
> > > 
> > > Hi -
> > > 
> > > I've been using Flex to write some data visualizations and am in the
> > > process of writing an admin tool to customize the look n' feel
of each
> > > visualization. My admin app uses SWFLoader to load the individual
> > > visualizations - a really nice thing to be able to do (load a
full app
> > > inside another app). I need to call the accessors to the look n'
> > > feel properties inside the nested SWF's from the main app so that I
> > > can do real time changes that will upon completion be written to the
> > > actual config files that the visualization tools use.
> > > 
> > > So - all of the Adobe docs and blog posts on this topic seem to
point
> > > to the same tutorial on calling methods and properties on nested
> swf's:
> > > 
> > >
> http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.html
> > > 
> > > I can't seem to get this to run and I can't figure out what is
> > > happening here:
> > > 
> > > // Write to the varOne variable in the loaded application
> > > // using the setVarOne() method of the loaded application.
> > > public function updateNestedVarOne():void {
> > > FlexApp(loadedSM.application).setVarOne("Updated
> > > varOne!");
> > > }
> > > 
> > > I don't understand the "FlexApp()" casting or whatever that is -
> > > FlexApp is the name of the loaded app - is this what this refers to?
> > > My sample apps always bombs out on that line as an undefined
> method
> > > 
> > > Thanks!
> > >
> >
>




Re: [flexcoders] flex date and timezone

2009-01-29 Thread Nate Beck
Hey Gordon, you're on the right track.  Everything in the database is stored
as UTC.  However, here are two instances I ran into in the past where
timezone conversion needed to happen.

1) A scheduler in Seattle (PT) needs to create an event in a location that
is in a different timezone, let's say New Jersey (ET).  In this Flex
application, the scheduler uses a calendar control to create events
scheduled in "Activity local time".  So let's say the scheduler wants to
create an event for 3pm.

The problem with the Date class is that if he sets "3pm" it's in Pacific
time, when it is converted to UTC, it's going to be off by 3 hours from the
desired time.  The only way to make the software to work correctly would be
either add timezone knowledge to Flex, or do the timezone conversion on the
server.

The big problem with doing the conversion on the server, means that in your
request to the server you need to include the client local timezone offset
as well as the offset that the activity is occuring in.

2) A manager is tracking events in multiple locations in a Dashboard
application.  He wants to see the times in Activity local time.  Much like
looking at those screens at the airport.  Depature time is the depature
airport time, and arrival time is in arrival airport time.


The solution we ended up implementing was to monkey patch SchemaMarshaller
to accept a new type of class, DateTime.  DateTime is a proxy for Date,
which has an added method setTimezone.  Then we have a lazy loaded
dictionary which caches different timezone's information on an as needed
basis.
So this brings me back to my original statement... timezones are a hard
thing to implement.

Hope that makes sense.

Cheers,
Nate
 On Wed, Jan 28, 2009 at 10:22 PM, Gordon Smith  wrote:

>I haven't thought much about these issues (Not My Area of Expertise!)
> so I'm wondering…
>
>
>
> Assuming that your machine's timezone is always set correctly, doesn't the
> Player use that as the local timezone? Isn't there some easy way to
> translate this into Universal Time or whatever it's called for use on the
> back end? And then can't Flash clients in other time zones make the
> conversion to their local time zone based on their machine's timezone?
>
>
>
> What use cases require a client to do other kinds of timezone calculations?
> Calendaring apps?
>
>
>
> - Gordon
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Nate Beck
> *Sent:* Wednesday, January 28, 2009 11:17 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] flex date and timezone
>
>
>
> Timezones within Flex (or Flash in general) are a very VERY tricky thing to
> pull off.  I've been writing a DateTime proxy object that supports
> Timezones, and I now understand why the Flex team hasn't worked with
> Timezones yet.  They are a mess.
>
>
>
> Is the Timezone daylight savings? What about Arizona... they don't do
> daylight savings at all?
>
>
>
> So to be completely honest with you.  It's an extremely hard thing to do
> especially within the flash player itself.  The best way to get around it is
> to build an infastructure that uses java, .NET or some other language which
> has already done the work to support timezones, and then build a flex piece
> that can work with that.
>
> HTH,
>
> Nate
>
> On Wed, Jan 28, 2009 at 9:19 AM, Haykel BEN JEMIA 
> wrote:
>
> You could probably use the tz database [
> http://www.twinsun.com/tz/tz-link.htm ]. Download the data archive [
> ftp://elsie.nci.nih.gov/pub/tzdata2009a.tar.gz ] which contains different
> files with time zone information. The file 'zone.tab' contains geographic
> coordinates for the principal locations of the zones (perhaps you can use
> this data). The other files contain time zone data (GMT offsets and other
> data). I think the 'Zone' entries are what you need.
>
> Haykel Ben Jemia
>
> Allmas
> Web & RIA Development
> http://www.allmas-tn.com
>
>
>
>
>
>  On Wed, Jan 28, 2009 at 5:42 PM, Gordon Smith  wrote:
>
> > In java, there is a TimeZone class to handle it.
>
> > is there something similar in Flex?
>
>
>
> No, sorry, there isn't anything comparable in the Flex framework.
>
>
>
> Gordon Smith
>
> Adobe Flex SDK Team
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *coder3
> *Sent:* Tuesday, January 27, 2009 2:55 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* RE: [flexcoders] flex date and timezone
>
>
>
>
> Right. I only have the string. In java, there is a TimeZone class to handle
> it. is there something similar in Flex?
>
> Ryan Graham-3 wrote:
> >
> >
> > If you have access to the GMT offsets, sure. Otherwise, if you have just
> > the strings, I don't see an easy way...
> >
> >
> >
> > HTH,
> >
> > Ryan
> >
> >
> >
> > From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On
> > Behalf Of coder3
> > Sent: Tuesday, January 27, 2009 3:13 PM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcode

Re: [flexcoders] Re: DataGrid Drop Deny based on dropIndex

2009-01-29 Thread Adrian Williams

Hi S,
  
   That's a toughie...I haven't tried to selectively deny a drop 
depending on an index...


   I don't know of any methods that will reject the drag-drop other 
than the stopPropagation and stopImmediatePropagation methods.  You 
might try looking the DRAG_OVER event to see if you can selectively 
showDropFeedback and hideDropFeedback depending on what rows you are 
over and then in your listener, if it's dropped where its not supposed 
to be cancel the op. Another idea would be if you know which row's you 
don't want drop enabled on, see if you can manipulate the drop 
properties of those row to deny the drop??


   Not really sure what else to do herebut am interested to know if 
you find out how!


Best,
Adrian

park96 wrote:


Hi Adrian,

Thanks for the response. So I didn't know about the hideDropFeedback
method on the ListBase class. That helps a bit but the problem I'm
encountering now, is that when I start dragging, it denies it at
first, but once it passed over a row that it's able to drop, it
becomes droppable over all the rows. It looks like the
DragManager.acceptDragDrop() toggles on and won't turn back off even
if I hide the dragDropFeedback. Is there a method like
DragManager.rejectDragDrop() so that when I'm dragging a row over all
the rows, that it will reject certain rows, but accepts others?

Thanks

s.park

--- In flexcoders@yahoogroups.com 
, Adrian Williams  
wrote:

>
> Hi,
>
> We handle something very similar to this, and although we don't deny a
> drop based on the index, we use the index to persist the drop location
> in the database...the same logic applies. We are using this on an ADG
> and hence my example below:
>
> You could grab the internal targetGrids dropData get the
> dropData.index...check it and if its not the value you want, perform an
> event.preventDefault and stopPropagation...
>
> private function adg_DragEvent(event:DragEvent):void
> {
> var targetGrid:AdvancedDataGrid = event.currentTarget as
> AdvancedDataGrid;
>
> use namespace mx_internal;
> var dropData:Object = targetGrid.mx_internal::_dropData;
>
> adgIndex = dropData.index;
>
> if (adgIndex > 4)
> {
> targetGrid.hideDropFeedback(event);
> targetGrid.selectedItems = new Array();
> event.preventDefault();
> event.stopPropagation();
> }
> }
>
> HTH!
> Adrian
>
>
> park96 wrote:
> >
> > Anyone have an example of how to deny a drop based on the drop index?
> > The problem I'm facing is that even though my dragEnter event handler
> > doesn't call the DragManager.acceptDragDrop(UIComponent), it still
> > allows me to drop it.
> >
> >
>

 


[flexcoders] dynamic context menu problem

2009-01-29 Thread Michael Pelz-Sherman
I'm struggling to find an elegant solution to this problem:

I have a Flex app that has a dynamic context (right-click) menu.

The menu contains different items depending on whether various objects are 
selected.

Ideally, I'd like to re-generate the menu options right when the user 
right-clicks, but I haven't found a reasonable way to do this.

So instead I'm re-generating the menus every time the user (left) clicks, which 
is kind of expensive and is having unwanted side-effects.

Unfortunately, MouseEvent.RIGHT_CLICK is AIR-only.

Any suggestions would be most appreciated!

- Michael

[flexcoders] Re: Call method on nested SWF

2009-01-29 Thread valdhor
Oh, there is a great example at
http://www.cflex.net/showFileDetails.cfm?ObjectID=690


--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> There is one other problem with that example. The SWFLoader has a 
> 
> creationComplete="initNestedAppProps();"
> 
> If you use that then loadedSM will be null. It should be
> 
> complete="initNestedAppProps();"
> 
> 
> --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> >
> > Interesting.  That doc is in error.  Should be:
> > 
> > public function updateNestedVarOne():void {
> > loadedSM.application["setVarOne"]("Updated
> > varOne!");
> > }
> > 
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
> On Behalf Of nylarch
> > Sent: Thursday, January 29, 2009 7:00 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Call method on nested SWF
> > 
> > 
> > Hi -
> > 
> > I've been using Flex to write some data visualizations and am in the
> > process of writing an admin tool to customize the look n' feel of each
> > visualization. My admin app uses SWFLoader to load the individual
> > visualizations - a really nice thing to be able to do (load a full app
> > inside another app). I need to call the accessors to the look n'
> > feel properties inside the nested SWF's from the main app so that I
> > can do real time changes that will upon completion be written to the
> > actual config files that the visualization tools use.
> > 
> > So - all of the Adobe docs and blog posts on this topic seem to point
> > to the same tutorial on calling methods and properties on nested
swf's:
> > 
> >
http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.html
> > 
> > I can't seem to get this to run and I can't figure out what is
> > happening here:
> > 
> > // Write to the varOne variable in the loaded application
> > // using the setVarOne() method of the loaded application.
> > public function updateNestedVarOne():void {
> > FlexApp(loadedSM.application).setVarOne("Updated
> > varOne!");
> > }
> > 
> > I don't understand the "FlexApp()" casting or whatever that is -
> > FlexApp is the name of the loaded app - is this what this refers to?
> > My sample apps always bombs out on that line as an undefined
method
> > 
> > Thanks!
> >
>




[flexcoders] Re: Call method on nested SWF

2009-01-29 Thread valdhor
There is one other problem with that example. The SWFLoader has a 

creationComplete="initNestedAppProps();"

If you use that then loadedSM will be null. It should be

complete="initNestedAppProps();"


--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Interesting.  That doc is in error.  Should be:
> 
> public function updateNestedVarOne():void {
> loadedSM.application["setVarOne"]("Updated
> varOne!");
> }
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of nylarch
> Sent: Thursday, January 29, 2009 7:00 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Call method on nested SWF
> 
> 
> Hi -
> 
> I've been using Flex to write some data visualizations and am in the
> process of writing an admin tool to customize the look n' feel of each
> visualization. My admin app uses SWFLoader to load the individual
> visualizations - a really nice thing to be able to do (load a full app
> inside another app). I need to call the accessors to the look n'
> feel properties inside the nested SWF's from the main app so that I
> can do real time changes that will upon completion be written to the
> actual config files that the visualization tools use.
> 
> So - all of the Adobe docs and blog posts on this topic seem to point
> to the same tutorial on calling methods and properties on nested swf's:
> 
> http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.html
> 
> I can't seem to get this to run and I can't figure out what is
> happening here:
> 
> // Write to the varOne variable in the loaded application
> // using the setVarOne() method of the loaded application.
> public function updateNestedVarOne():void {
> FlexApp(loadedSM.application).setVarOne("Updated
> varOne!");
> }
> 
> I don't understand the "FlexApp()" casting or whatever that is -
> FlexApp is the name of the loaded app - is this what this refers to?
> My sample apps always bombs out on that line as an undefined method
> 
> Thanks!
>




Re: [flexcoders] Re: Common base class for components

2009-01-29 Thread Jules Suggate
Now that's more like what i'm talking about! I've been coding for 12 hours
now, so the article looks like random tokens on a page to me right now...
but will take a look first thing in the morning!!

Thanks Amy :-)

On Fri, Jan 30, 2009 at 05:00, Amy  wrote:

>   --- In flexcoders@yahoogroups.com , Jules
> Suggate 
> wrote:
>
> >
> > Just to resume this thread, what I meant was to still use MXML and
> all the
> > Flex components, but to introduce common functionality to all our
> Views
> > (mxml files). Perhaps it's better to think of weaving this in than
> using
> > inheritance, since that would require multiple inheritance AFAICT.
>
> http://www.munkiihouse.com/?p=37
>
>  
>



-- 
--
Jules Suggate
Owner and Technical Lead
Uphill Sprint Limited

+64-21-157-8562


Re: [flexcoders] Common base class for components

2009-01-29 Thread Jules Suggate
Is it possible for an MXML file to implement an interface? Sounds intriguing
... but won't resolve my issue unfortunately. It's the implementation code
that I want them to share.

I have developers on my team who are less than keen on having to duplicate
repetitive code around the place -- they want to focus on cool effects,
state transitions and backend integration :-)

And I don't want repeated code everywhere in the app since if we want to
change something, there'll eventullay be hundreds of places where we have to
do so if the code is copy+pasted around the place...

On Fri, Jan 30, 2009 at 05:25, Fotis Chatzinikos <
fotis.chatzini...@gmail.com> wrote:

>   why do not you make your components implement an interface with these
> methods you describe?
>
>
> On Thu, Jan 29, 2009 at 10:54 AM, Jules Suggate 
> wrote:
>
>>   Just to resume this thread, what I meant was to still use MXML and all
>> the Flex components, but to introduce common functionality to all our Views
>> (mxml files). Perhaps it's better to think of weaving this in than using
>> inheritance, since that would require multiple inheritance AFAICT.
>>
>> I don't want anything fancy -- just a getter/setter pair:
>>
>> public function get model():IViewModel
>> {
>>// some common code
>> }
>> private var _model:IViewModel;
>> public function set model(value:IViewModel):void
>> {
>>// more common code
>> }
>>
>> To save writing out this code again and again, would I have to put this
>> code in an include file, and include from each View?
>>
>>
>> On Thu, Dec 18, 2008 at 06:41, Alex Harui  wrote:
>>
>>>In theory, if your base class implements IUIComponent, then your
>>> visual components will work in Flex
>>>
>>>
>>>
>>> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
>>> Behalf Of *Jules Suggate
>>> *Sent:* Wednesday, December 17, 2008 8:56 AM
>>> *To:* flexcoders@yahoogroups.com
>>> *Subject:* [flexcoders] Common base class for components
>>>
>>>
>>>
>>> Hi list, anyone know if it's possible to have all our components inherit
>>> from a common base component of our own making?
>>>
>>> There are some things in our app that every View component will have to
>>> do at loadtime, and it'd be nice to just write that code once and have all
>>> the other components inherit it...
>>>
>>> Last time I checked in Flex 3 Beta 2 there was some vague suggestion of
>>> using "Template Components", but that seemed like an afterthought in the SDK
>>> at the time. Just thought I'd check to see if you knew of any tricks for
>>> doing it :)
>>>
>>> Perhaps even an include file would be the way to go...
>>>
>>>
>>
>>
>> --
>> --
>> Jules Suggate
>> Owner and Technical Lead
>> Uphill Sprint Limited
>>
>> +64-21-157-8562
>>
>
>
>
> --
> Fotis Chatzinikos, Ph.D.
> Founder,
> Phinnovation
> fotis.chatzini...@gmail.com,
>  
>



-- 
--
Jules Suggate
Owner and Technical Lead
Uphill Sprint Limited

+64-21-157-8562


RE: [flexcoders] Call method on nested SWF

2009-01-29 Thread Alex Harui
Interesting.  That doc is in error.  Should be:

public function updateNestedVarOne():void {
loadedSM.application["setVarOne"]("Updated
varOne!");
}

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of nylarch
Sent: Thursday, January 29, 2009 7:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Call method on nested SWF


Hi -

I've been using Flex to write some data visualizations and am in the
process of writing an admin tool to customize the look n' feel of each
visualization. My admin app uses SWFLoader to load the individual
visualizations - a really nice thing to be able to do (load a full app
inside another app). I need to call the accessors to the look n'
feel properties inside the nested SWF's from the main app so that I
can do real time changes that will upon completion be written to the
actual config files that the visualization tools use.

So - all of the Adobe docs and blog posts on this topic seem to point
to the same tutorial on calling methods and properties on nested swf's:

http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.html

I can't seem to get this to run and I can't figure out what is
happening here:

// Write to the varOne variable in the loaded application
// using the setVarOne() method of the loaded application.
public function updateNestedVarOne():void {
FlexApp(loadedSM.application).setVarOne("Updated
varOne!");
}

I don't understand the "FlexApp()" casting or whatever that is -
FlexApp is the name of the loaded app - is this what this refers to?
My sample apps always bombs out on that line as an undefined method

Thanks!



[flexcoders] RE: ItemEditors and rowHeight

2009-01-29 Thread Alex Harui
ADG is done by a different team, but in DG, editorXOffset and related 
properties help you put  the editor just about anywhere

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Gregor Kiddie
Sent: Thursday, January 29, 2009 7:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ItemEditors and rowHeight

Looking through SearchCoders, it looks like this question has been asked 
repeatedly, and never with a good solution, but hey, I may as well ask again!
I have an AdvancedDataGrid using the default renderer. When I edit a cell 
though, I want to show an ItemEditor that is taller than the row. I've tried 
numerous combinations of events and setting height properties to no good effect.
So while I go away and delve into the ADG code to try and work out a solution, 
has anyone managed this successfully, and is willing to save me some head 
scratching time?

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343
Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
Registered Number: 1788577
Registered in the UK

Visit our Internet Web site at www.inps.co.ukhttp://www.inps.co.uk/>

The information in this internet email is confidential and is intended solely 
for the addressee. Access, copying or re-use of information in it by anyone 
else is not authorised. Any views or opinions presented are solely those of the 
author and do not necessarily represent those of INPS or any of its affiliates. 
If you are not the intended recipient please contact is.helpd...@inps.co.uk




[flexcoders] Re: DataGrid Drop Deny based on dropIndex

2009-01-29 Thread park96
Hi Adrian,

Thanks for the response.  So I didn't know about the hideDropFeedback
method on the ListBase class.  That helps a bit but the problem I'm
encountering now, is that when I start dragging, it denies it at
first, but once it passed over a row that it's able to drop, it
becomes droppable over all the rows.  It looks like the
DragManager.acceptDragDrop() toggles on and won't turn back off even
if I hide the dragDropFeedback.  Is there a method like
DragManager.rejectDragDrop() so that when I'm dragging a row over all
the rows, that it will reject certain rows, but accepts others?

Thanks

s.park

--- In flexcoders@yahoogroups.com, Adrian Williams  wrote:
>
> Hi,
> 
> We handle something very similar to this, and although we don't deny a 
> drop based on the index, we use the index to persist the drop location 
> in the database...the same logic applies.  We are using this on an ADG 
> and hence my example below:
> 
> You could grab the internal targetGrids dropData get the 
> dropData.index...check it and if its not the value you want, perform an 
> event.preventDefault and stopPropagation...
> 
> private function adg_DragEvent(event:DragEvent):void
> {
> var targetGrid:AdvancedDataGrid = event.currentTarget as 
> AdvancedDataGrid;
> 
> use namespace mx_internal;
> var dropData:Object = targetGrid.mx_internal::_dropData;
> 
> adgIndex = dropData.index;
> 
> if (adgIndex > 4)
> {
> targetGrid.hideDropFeedback(event);
> targetGrid.selectedItems = new Array();
> event.preventDefault();
> event.stopPropagation();
> }
> }
>   
> HTH!
> Adrian
> 
> 
> park96 wrote:
> >
> > Anyone have an example of how to deny a drop based on the drop index?
> > The problem I'm facing is that even though my dragEnter event handler
> > doesn't call the DragManager.acceptDragDrop(UIComponent), it still
> > allows me to drop it.
> >
> >
>




RE: [flexcoders] Re: localconnection data encrypted?

2009-01-29 Thread Seth Hodgson
> The most vulnerable part of using the ELS is after the data has been
> decrypted. It is then stored in memory in plain text until it is
> garbage collected. (Curious question - I wonder if strings are
> interned in AIR, if so, that could pose another security problem.)

Strings are interned by the AVM in both the Player and AIR. 

So if you have highly sensitive character data and you're worried about memory 
scanning, you'd want to use an array of characters, and scramble the contents 
manually after you've used the value in order to render it illegible until the 
array is GCed. There's no perfect solution here, but this reduces the attack 
surface.

Again, not a concern for most apps.

Best,
Seth

-Original Message-
From: Seth Hodgson 
Sent: Wednesday, January 28, 2009 3:36 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] Re: localconnection data encrypted?

Sorry - typo. That should have been: You _don't_ need to worry about encryption 
in this scenario. If you're worried about encrypting bytes sent over 
LocalConnections (just a block of shared memory on your local system), I'd 
assume you'd also need to be worried about those same values in the memory 
space used by the Player or AIR instances that are communicating via 
LocalConnections. Given the GC'ed nature of ActionScript, you don't have direct 
control over how long variables will stick around. So if there's a rogue 
process running locally that can scan and read anything in system memory, the 
values in Player/AIR memory space are just as vulnerable as values in the 
shared memory block used for LocalConnections. If that's the case, then you 
have bigger issues to worry about than encrypting what you're exchanging via 
LocalConnection, like getting good anti-virus software installed or something :)

Best,
Seth

-Original Message-
From: Seth Hodgson 
Sent: Wednesday, January 28, 2009 2:50 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] Re: localconnection data encrypted?

There's no network involved. More details here: 
http://greetingsfromoakland.blogspot.com/2008/11/zen-and-art-of-localconnection.html

You need to worry about encryption in this scenario unless you're worried about 
other processes on the local machine trolling randomly through memory...
What you likely do need to worry about are the gotchas mentioned in the blog 
post.

Best,
Seth

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Pete Appleby
Sent: Wednesday, January 28, 2009 2:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: localconnection data encrypted?

It would seem that there is a network connection being used, but I
have not been able to find out for sure.

The localconnection allows different versions of the Flash player to
communicate via AMF0. This leads me to believe that the network is
being used as opposed to a shared memory model. It would be nice to
know for sure, but it is now a moot point for my applications.

I have taken the time to implement RSA encryption in my communication
classes so that the two AIR applications exchange public keys at the
time of the first Send command.

Once the handshaking of public keys has been completed, the future
messages are encrypted and pushed out through the use of the Send method. 

The receiving app then decrypts the message using its private keys. I
am storing the keys in the encrypted local store. That brings up the
question of just how secure is the encrypted local store?

Pete 


[flexcoders] Re: OlapDataGrid like headers using ADG

2009-01-29 Thread tntomek
--- In flexcoders@yahoogroups.com, "tntomek"  wrote:
>
> Is it possible to have 'split' or 'colspan'-ed headers without having
> to resort to serious column rework?
> 
> Something like:
>
http://livedocs.adobe.com/flex/3/html/help.html?content=olapdatagrid_2.html
> 
> I've tried and tried to find any resources for this but all seem to
> point to Alex's Split Column example.
> http://blogs.adobe.com/aharui/SplitColumns/dg.swf . Since Alex wrote
> that post with Flex 2 in mind, I'd be curious to know if this has
> somehow been solved in Flex 3.
> 
> While this works, it's nowhere near as slick as OlapDataGrid.
> 
> |2009|
> |Q1-||-Q2|
> |Jan|Feb|Mar||Apr|May|Jun|
> --
> | 0 | 1 | 1 || 2 | 4 | 8 |
> 
> Sorting or selecting any of the aggregate time (Years or quarters)
> isn't important, the leaf (Months) have the real data. I am leaning
> towards creating fake headers that would line up with the single row
> headers as that seems to keep the ADG more true to itself for any
> native support it offers (multi column sort/resize/show hide). Is this
> a good idea? I am just starting this project and have a lot of
> features left to implement and it seems like the complexity of using
> the ADG is exponential as you try anything that isn't supported out of
> the box.
>


Found the solution, it's native to ADG :)
http://www.adobe.com/livedocs/flex/3/html/help.html?content=advdatagrid_02.html



[flexcoders] Re: using webcam to broadcast through a video object, how to stop broadcasting?

2009-01-29 Thread blc187
Nevermind, attachCamera(null) works just fine.
Had another instance of the video object lingering so camera was still 
in use!


--- In flexcoders@yahoogroups.com, "blc187"  wrote:
>
> I have a video object that I am attaching a webcam to.
> Video works, camera broadcasts fine.
> 
> Problem is, when I close the window with the video in it, I want to 
be 
> able to shut the camera off.  Right now the light on the camera is 
> still on to indicate it is still broadcasting.
> 
> Documentation says to pass a null object to video.attachCamera(null) 
> to drop the connection to the camera.  I am doing the following:
> 
> _videoCamera.attachCamera(null);
> _videoCamera.attachNetStream(null);
> _videoCamera.clear();
> _videoCamera = null;
> 
> Yet my video camera still looks like it's on and broadcasting.
> Is there any other way to shut the camera itself off?
>





[flexcoders] Flex Text animation help

2009-01-29 Thread Gireesh Kumar
Hi All,

   Please check the below url, Can any one tell me how I can achive this
animation/text morphing/tween using Flex ?

http://gireeshkumar.ind.in/temp/2009-01-29_225737.jpg

I wanted to show that the source work getting transformed to the target work
letter by letter.

Thanks
Gireesh


Re: [flexcoders] Thanks to Adobe...

2009-01-29 Thread João Fernandes
Matt,

I really hope that there will be more interaction with the community in 
the future so we can avoid this kind of issues 
https://bugs.adobe.com/jira/browse/SDK-17854  :)

/me runs
-- 

João Fernandes

Adobe Certified Expert
Adobe Community Expert
http://www.onflexwithcf.org
http://www.riapt.org
Portugal Adobe User Group (http://aug.riapt.org)





[flexcoders] Advanced Formatting

2009-01-29 Thread Dharmendra Chauhan
Hi All,
 This time I am struggling with formatting as I am migrating Dot
Net application to flex.Standard flex library does not support
advanced formatting.
Here is type of formatting which I want to implement in Flex

1) 0 (Zero placeholder):

If the value being formatted has a digit in the position where the '0'
appears in the format string, then that digit is copied to the result
string; otherwise, a '0' appears in the result string. The position of
the leftmost '0' before the decimal point and the rightmost '0' after
the decimal point determines the range of digits that are always
present in the result string.

The "00" specifier causes the value to be rounded to the nearest digit
preceding the decimal, where rounding away from zero is always used.
For example, formatting 34.5 with "00" would result in the value 35.
   
2) #(Digit placeholder):
If the value being formatted has a digit in the position where the
'#' appears in the format string, then that digit is copied to the
result string. Otherwise, nothing is stored in that position in the
result string.

Note that this specifier never displays the '0' character if it is not
a significant digit, even if '0' is the only digit in the string. It
will display the '0' character if it is a significant digit in the
number being displayed.

The "##" format string causes the value to be rounded to the nearest
digit preceding the decimal, where rounding away from zero is always
used. For example, formatting 34.5 with "##" would result in the value 35.


Please suggest me ways to provide advanced formatting in flex.
Any help would be highly appreciated

Regards,
Dharmendra

 






Re: [flexcoders] Thanks to Adobe...

2009-01-29 Thread Nate Beck
Yes thanks Matt (and team), I think this is a great direction that you guys
are headed!

On Thu, Jan 29, 2009 at 9:03 AM, Matt Chotin  wrote:

>   Yes, the next meetings will be more organized. I think we probably
> anticipated most of the questions but frankly I wanted to see how the
> conversation would flow and I also didn't expect quite so significant a
> turnout (a pleasant surprise!). The iteration meetings will have more of an
> agenda for sure.
>
> Thanks for coming!
> Matt
>
> On 1/28/09 11:57 PM, "Gregor Kiddie" 
> >
> wrote:
>
> ...for hosting the open SDK meeting last night. It was good to see so many
> names I recognised ;)
> If I can make one little suggestion though? Next time, ask for the
> questions in advance, as the majority of questions answered were from who
> could shout loudest in the chat window.
> For those who didn't go, probably the biggest note of the meeting was the
> introduction of "open iteration" meetings, which I hope get a good turnout
> as well.
>
> Gk.
> Gregor Kiddie
> Senior Developer
> INPS
>
> Tel: 01382 564343
>
> Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
> Registered Number: 1788577
> Registered in the UK
> Visit our Internet Web site at www.inps.co.uk  http://www.inps.co.uk/>
>
> The information in this internet email is confidential and is intended
> solely for the addressee. Access, copying or re-use of information in it by
> anyone else is not authorised. Any views or opinions presented are solely
> those of the author and do not necessarily represent those of INPS or any of
> its affiliates. If you are not the intended recipient please contact
> is.helpd...@inps.co.uk 
>
> 
>



-- 

Cheers,
Nate

http://blog.natebeck.net


[flexcoders] Sailorsea21 - Animated pie chart still displays old data when updated???

2009-01-29 Thread sailorsea21
Hi everyone, I created an animated pie chart that is divided into 3 
segments.


 
  
   

   
 

  

The pie animates perfectly but when new data comes in, if the new 
data has only data for 2 out of the 3 segments, it will animate 
correctly and display the sections correctly but the old data from 
the 3rd section remains as if it's cached somehow. If I minimize IE 
and then restore it, the old data disappears as if the page 
refreshes... Is there a way to automatically refresh the page still 
animating the pie charts. If I remove the animation I do not have 
this problem.

Thanks.

-David



Re: [flexcoders] Silent Print from Flex on Kiosk

2009-01-29 Thread Nate Beck
Just a theory... but you might be able to use ExternalInterface to call the
same methods within user.js, and pass the content.  Since you're already got
it working within Javascript.

I wish I knew more about FlexPrintJob.

On Thu, Jan 29, 2009 at 8:41 AM, Jeremi Bergman  wrote:

>   I have a flex app that I need to print an image. I have Firefox Setup
> running the app.
>
> in user.js for FF i have:
> user_pref(†print.always_print_silent†,true);
> user_pref(†print.show_print_progress†,false);
>
> This works perfectly when using firefox's print functionality on any
> standard site. It prints directly to the default printer without any
> user interaction.
>
> Within my App I have:
>
> public static function printCoupon(obj:UIComponent):void {
> // Create an instance of the FlexPrintJob class.
> var printJob:FlexPrintJob = new FlexPrintJob();
>
> // Start the print job.
> if (printJob.start() != true) return;
>
> // Add the object to print. Do not scale it.
> printJob.addObject(obj, FlexPrintJobScaleType.NONE);
>
> // Send the job to the printer.
> printJob.send();
> }
>
> The UIComponent passed in is an Image.
>
> It prints the image, but it prompts me with the print diologe box.
>
> Any thoughts? Thanks.
>
> 
>



-- 

Cheers,
Nate

http://blog.natebeck.net


Re: [flexcoders] Thanks to Adobe...

2009-01-29 Thread Matt Chotin
Yes, the next meetings will be more organized.  I think we probably anticipated 
most of the questions but frankly I wanted to see how the conversation would 
flow and I also didn't expect quite so significant a turnout (a pleasant 
surprise!).  The iteration meetings will have more of an agenda for sure.

Thanks for coming!
Matt


On 1/28/09 11:57 PM, "Gregor Kiddie"  wrote:




...for hosting the open SDK meeting last night. It was good to see so many 
names I recognised ;)
If I can make one little suggestion though? Next time, ask for the questions in 
advance, as the majority of questions answered were from who could shout 
loudest in the chat window.
For those who didn't go, probably the biggest note of the meeting was the 
introduction of "open iteration" meetings, which I hope get a good turnout as 
well.

Gk.
Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
Registered Number: 1788577
Registered in the UK
Visit our Internet Web site at www.inps.co.uk http://www.inps.co.uk/>

The information in this internet email is confidential and is intended solely 
for the addressee. Access, copying or re-use of information in it by anyone 
else is not authorised. Any views or opinions presented are solely those of the 
author and do not necessarily represent those of INPS or any of its affiliates. 
If you are not the intended recipient please contact is.helpd...@inps.co.uk






[flexcoders] Silent Print from Flex on Kiosk

2009-01-29 Thread Jeremi Bergman
I have a flex app that I need to print an image.  I have Firefox Setup
running the app.

in user.js for FF i have:
user_pref(”print.always_print_silent”,true);
user_pref(”print.show_print_progress”,false);

This works perfectly when using firefox's print functionality on any
standard site.  It prints directly to the default printer without any
user interaction.

Within my App I have:

public static function 
printCoupon(obj:UIComponent):void {
// Create an instance of the FlexPrintJob class.
var printJob:FlexPrintJob = new FlexPrintJob();

// Start the print job.
if (printJob.start() != true) return;

// Add the object to print. Do not scale it.
printJob.addObject(obj, FlexPrintJobScaleType.NONE);

// Send the job to the printer.
printJob.send();
}

The UIComponent passed in is an Image.

It prints the image, but it prompts me with the print diologe box.

Any thoughts?  Thanks.





[flexcoders] using webcam to broadcast through a video object, how to stop broadcasting?

2009-01-29 Thread blc187
I have a video object that I am attaching a webcam to.
Video works, camera broadcasts fine.

Problem is, when I close the window with the video in it, I want to be 
able to shut the camera off.  Right now the light on the camera is 
still on to indicate it is still broadcasting.

Documentation says to pass a null object to video.attachCamera(null) 
to drop the connection to the camera.  I am doing the following:

_videoCamera.attachCamera(null);
_videoCamera.attachNetStream(null);
_videoCamera.clear();
_videoCamera = null;

Yet my video camera still looks like it's on and broadcasting.
Is there any other way to shut the camera itself off?



[flexcoders] Re: Flex or JavaFX?

2009-01-29 Thread mitchgrrt
I would avoid Java FX on the client side like the plague.  It's a 
repackaging of the 15-year-old Java Applet technology which has a lot 
of problems.  Java Swing is a nice API for building GUIs, but Java 
Applets and especially the Java Plug-in in browsers have a lot of 
problems that I would not want to experience again.  (I developed 
Applets for years before switching to Flex.)

I would recommend Flex on the client side, Java on the server side, 
and either BlazeDS or LCDS for communicating between client and 
server.  BlazeDS is free and simple, LCDS is elaborate and expensive.


--- In flexcoders@yahoogroups.com, "TCash21"  
wrote:
>
> Hi all,
> I'm currently trying to push Adobe Flex at my company for complex
> network visualizations. The application will also need to run
> computationally intensive simulations (accessing backend java code) 
as
> well as some other distributed tasks. I know Java can store
> everything in memory and access it but is Flex just as able? Would 
it
> require Flex Data Services and what are the advantages? I'm easily
> sold on the UI-experience and aesthetic appeal of the front-end, I'm
> just unsure how it would handle massive computational efforts on the
> backend and display it all to the client quickly.
> 
> We're trying to figure out the best way to go, will it be JavaFX? 
Flex
> Data Services? Flex and Java integrated? Elixir?
> 
> Thank you all for any input,
> -Tanya
>





[flexcoders] capturing output in the console?

2009-01-29 Thread luvfotography
Hi, I'm loading another swf file into my flex app using swfloader, and
this embedded swf file outputs text to the console file while I am
debugging it, is there a way to capture the text and act on it?
thanks,



[flexcoders] Re: Flex of JavaFX?

2009-01-29 Thread mitchgrrt
LiveCycle Data Services (LCDS) is still around:
http://www.adobe.com/products/livecycle/dataservices/

LCDS is powerful and elegant, also complicated and expensive.

--- In flexcoders@yahoogroups.com, Nate Beck  wrote:
>
> Flex Data Services aren't really around anymore.
> 
> I would recommend Flex + BlazeDS, it's java based.
> 





Re: [flexcoders] Common base class for components

2009-01-29 Thread Fotis Chatzinikos
why do not you make your components implement an interface with these
methods you describe?


On Thu, Jan 29, 2009 at 10:54 AM, Jules Suggate wrote:

>   Just to resume this thread, what I meant was to still use MXML and all
> the Flex components, but to introduce common functionality to all our Views
> (mxml files). Perhaps it's better to think of weaving this in than using
> inheritance, since that would require multiple inheritance AFAICT.
>
> I don't want anything fancy -- just a getter/setter pair:
>
> public function get model():IViewModel
> {
>// some common code
> }
> private var _model:IViewModel;
> public function set model(value:IViewModel):void
> {
>// more common code
> }
>
> To save writing out this code again and again, would I have to put this
> code in an include file, and include from each View?
>
>
> On Thu, Dec 18, 2008 at 06:41, Alex Harui  wrote:
>
>>In theory, if your base class implements IUIComponent, then your
>> visual components will work in Flex
>>
>>
>>
>> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
>> Behalf Of *Jules Suggate
>> *Sent:* Wednesday, December 17, 2008 8:56 AM
>> *To:* flexcoders@yahoogroups.com
>> *Subject:* [flexcoders] Common base class for components
>>
>>
>>
>> Hi list, anyone know if it's possible to have all our components inherit
>> from a common base component of our own making?
>>
>> There are some things in our app that every View component will have to do
>> at loadtime, and it'd be nice to just write that code once and have all the
>> other components inherit it...
>>
>> Last time I checked in Flex 3 Beta 2 there was some vague suggestion of
>> using "Template Components", but that seemed like an afterthought in the SDK
>> at the time. Just thought I'd check to see if you knew of any tricks for
>> doing it :)
>>
>> Perhaps even an include file would be the way to go...
>>
>>
>
>
> --
> --
> Jules Suggate
> Owner and Technical Lead
> Uphill Sprint Limited
>
> +64-21-157-8562
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


[flexcoders] Datagrid bound to XMLListCollection not updating properly - ItemRenderer issue?

2009-01-29 Thread flexcoder2008
I am having trouble getting a datagrid that is bound to an
XMLListCollection to update properly.  The datagrid uses item
renderers for a couple of the columns which display a simple colored
image.  




   
 
   




This datagrid's dataProvider is set to bind to an XMLListCollection
variable which contains XML with one of the nodes being 


This datagrid is a part of a module that gets loaded into a
TabNavigator control.  When the module initializes I loop through each
row in the datagrid and check the values of the XML, and depending on
certain values, I update the content of the  node, which in
turn will change the image source property.

When the module first loads, everything works fine and the grid
displays correctly.

The problem happens when I load a different module into the
tabNavigator.  In a seperate module I do an update to this same
XMLListCollection.  (I am using the Cairngorm framework and all my
shared data is stored in the model. ) When I reload the first module,
and the initialization logic fires, as I am looping through to do the
calculations to update the  node I can see that everything is
updating in the XMLListCollection correctly.

However, when the dataGrid displays, the row that corresponds to the
updated XML in the XMLListCollection is displaying a blank row, even
though the underlying values are correct.

I believe this is a problem with the ItemRenderer not updating itself.
 How do I force it to invalidate?  I have tried doing a
dataGrid.dataProvider.refresh() and calling invalidateDisplayList()
etc. but cannot figure this one out.

One workaround I discovered is that when I reload the first module
after updating the underlying XMLListCollection, if I append a new
empty node to the XML like so:  myXML.* += Then the
updated row displays correctly!

Has anybody else out there ran into this problem?



[flexcoders] Re: Common base class for components

2009-01-29 Thread Amy
--- In flexcoders@yahoogroups.com, Jules Suggate  
wrote:
>
> Just to resume this thread, what I meant was to still use MXML and 
all the
> Flex components, but to introduce common functionality to all our 
Views
> (mxml files). Perhaps it's better to think of weaving this in than 
using
> inheritance, since that would require multiple inheritance AFAICT.

http://www.munkiihouse.com/?p=37



[flexcoders] Re: RadioButtonGroup id not settable using repeater index...

2009-01-29 Thread jonathanrowny
Here's how to do it!

FIRST, in Actionscript create a function that will generate rbGroups
which is an arrayCollection of your radio button groups.

[Bindable] 
private var rbGroups:ArrayCollection;

private function createRBGroups():void{
rbGroups= new ArrayCollection();
var repeaterDP:ArrayCollection = someRepeater.dataProvider as
ArrayCollection;
var rbGroup:RadioButtonGroup;
for each(var item:Object in repeaterDP){
 rbGroup = new RadioButtonGroup();  
 rbGroups.addItem(rbGroup);
}
}


Now call that create function as the repeater starts! Now when we loop
through we can set the appropriate group. You can always refer to a
group by it's index! Since it is an array collection, binding works too!











[flexcoders] Filenames and List Class Default Item Renderer

2009-01-29 Thread Kevin
I just noticed that when I pass a filename as part of the label for a List 
component, an icon is 
automatically show as part of the default ItemRenderer. I was actually starting 
to build this 
functionality myself with a custom IR.  I can't believe I haven't noticed this 
before...

Does anyone know where this icon is being set (I looked in ListItemRenderer but 
didn't see it 
there).  I can't seem to find the code that parses the label (filename) to 
figure out which icon 
to display based on the file extension.

Thanks,

Kevin



[flexcoders] ItemEditors and rowHeight

2009-01-29 Thread Gregor Kiddie
Looking through SearchCoders, it looks like this question has been asked
repeatedly, and never with a good solution, but hey, I may as well ask
again!

I have an AdvancedDataGrid using the default renderer. When I edit a
cell though, I want to show an ItemEditor that is taller than the row.
I've tried numerous combinations of events and setting height properties
to no good effect.

So while I go away and delve into the ADG code to try and work out a
solution, has anyone managed this successfully, and is willing to save
me some head scratching time?

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk

 



[flexcoders] Call method on nested SWF

2009-01-29 Thread nylarch
Hi - 

I've been using Flex to write some data visualizations and am in the
process of writing an admin tool to customize the look n' feel of each
visualization.   My admin app uses SWFLoader to load the individual
visualizations - a really nice thing to be able to do (load a full app
inside another app).   I need to call the accessors to the look n'
feel properties inside the nested SWF's from the main app so that I
can do real time changes that will upon completion be written to the
actual config files that the visualization tools use.

So - all of the Adobe docs and blog posts on this topic seem to point
to the same tutorial on calling methods and properties on nested swf's: 

http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.html

I can't seem to get this to run and I can't figure out what is
happening here:

 // Write to the varOne variable in the loaded application
// using the setVarOne() method of the loaded application.
public function updateNestedVarOne():void {
FlexApp(loadedSM.application).setVarOne("Updated
varOne!");
}

I don't understand the "FlexApp()" casting or whatever that is -
FlexApp is the name of the loaded app - is this what this refers to? 
 My sample apps always bombs out on that line as an undefined method

Thanks!





[flexcoders] Re: newbie question - call to actionscript class

2009-01-29 Thread annelie2008
Brilliant, it works now! Thank you so much!

No doubt I will return with more questions soon...!

Cheers,

Annelie


--- In flexcoders@yahoogroups.com, "Gregor Kiddie"  
wrote:
>
> Its close, you do need to have a UIComponent wrapper to add the 
Sprite
> to, and then add the UIComponent to the application.
> 
>  
> 
> So what you had there (but make sure you actually do new UIComponent
() )
> 
>  
> 
> And finish with addChild(uic);
> 
>  
> 
> Gk.
> 
> Gregor Kiddie
> Senior Developer
> INPS
> 
> Tel:   01382 564343
> 
> Registered address: The Bread Factory, 1a Broughton Street, London 
SW8
> 3QJ
> 
> Registered Number: 1788577
> 
> Registered in the UK
> 
> Visit our Internet Web site at www.inps.co.uk
> http://www.inps.co.uk/> 
> 
> The information in this internet email is confidential and is 
intended
> solely for the addressee. Access, copying or re-use of information 
in it
> by anyone else is not authorised. Any views or opinions presented 
are
> solely those of the author and do not necessarily represent those of
> INPS or any of its affiliates. If you are not the intended recipient
> please contact is.helpd...@...
> 
> 




[flexcoders] Re: Flex and asSQL - Crossdomain issue?

2009-01-29 Thread Gaurav J

--- In flexcoders@yahoogroups.com, GeeTee  wrote:
>
>
> Hi everyone,
>
> Yesterday I developed my first flex 3 app and placed the "Release
build" in
> the webapps folder of tomcat (5.5.26). The application is quite simple
and
> just needs to populate the datagrid with the data in MySQL (which is
on the
> same machine on port 3306). I have used asSQL to communicate. When run
from
> flex builder, I get the app to work perfectly. But on accessing the
URL
> "http://gauravt-xp:8080/MyAppsName/MyHTML.html";, I get a blank
datagrid.
>
> My suspicion is that this is related to crossdomain.xml file. Am I
right
> with this? If yes where should I place it?
>
> I searched on the forum and could not find a definitive answer. The
> crossdomain file that I have created looks like:
> 
>  "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>
> 
> 
> 
>
> I tried placing it in the "webapps" and "webapps/ROOT" folder of
tomcat but
> data was not populated.
>
> Thanks in advance for the help.
> Gaurav
>
> --
> View this message in context:
http://www.nabble.com/Flex-and-asSQL---Crossdomain-issue--tp21691913p216\
91913.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>




RE: [flexcoders] flex color pickers

2009-01-29 Thread Gregor Kiddie
You mean like the one included in the framework?

http://livedocs.adobe.com/flex/3/html/help.html?content=controls_18.html

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of tchredeemed
Sent: 29 January 2009 14:51
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex color pickers

 

does anyone know of any flex color pickers (kinda like photoshop color
selection tool) that I can shamelessly rip off (open source, obviously
=])?

THANKS! :)

 



[flexcoders] flex color pickers

2009-01-29 Thread tchredeemed
does anyone know of any flex color pickers (kinda like photoshop color
selection tool) that I can shamelessly rip off (open source, obviously
=])?

THANKS! :)



RE: [flexcoders] Re: newbie question - call to actionscript class

2009-01-29 Thread Gregor Kiddie
Its close, you do need to have a UIComponent wrapper to add the Sprite
to, and then add the UIComponent to the application.

 

So what you had there (but make sure you actually do new UIComponent() )

 

And finish with addChild(uic);

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of annelie2008
Sent: 29 January 2009 14:27
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: newbie question - call to actionscript class

 

I tried addChild(notes); but that threw an error (Error #1034: Type 
Coercion failed: cannot convert test::drawno...@7218ca1 to 
mx.core.IUIComponent.). I googled a bit and it seems like you have to 
make it into a UIComponent first. I tried this:

var uic:UIComponent = new UIComponent;
uic.addChild(notes);

This doesn't do anything though, so maybe my actionscript code is 
wrong. I thought notes would be a Sprite, but maybe I need to do 
something more? Here's the actionscript class:





[flexcoders] default Context Menu

2009-01-29 Thread Rich Tretola
Does anyone know if there is an event that is available to listen for
when the default context menu is launched by the user?

Rich


[flexcoders] Oh WTF? Web Services: Anyone work with Blue Disaster (I mean Dragon)?

2009-01-29 Thread Wally Kolcz
I have 2 mirrored environments. One on my laptop running Adobe CF8 and one at 
the University running Blue Dragon 7. I have the same  CFCs set to remote, the 
same database stucture, and the same  on both. I am just 
switching the wsdl location between the 2 and I am getting COMPLETELY 
diffferent responses. The only difference is the actual Servers.

When I return a query via web service with Adobe and render it out with 
Alert.show(ObjectUtil.toString(e.result),'Result');, I get this:

(mx.collections::ArrayCollection)#0
  filterFunction = (null)
  length = 1
  list = (mx.collections::ArrayList)#1
length = 1
source = (Array)#2
  [0] (Object)#3
DEPARTMENT = "PRMC"
FIRSTNAME = "Wally"
ISACTIVE = 1
LASTNAME = "Kolcz"
POSITION = "Senior ColdFusion Architect"
ROLE = "admin"
UNIQNAME = "wkolcz"
uid = "12003FBD-127E-EEEB-4E25-22A5E6599FF8"
  sort = (null)
  source = (Array)#2

With Blue Dragon I get this:

(Object)#0
  columnList = (mx.collections::ArrayCollection)#1
filterFunction = (null)
length = 8
list = (mx.collections::ArrayList)#2
  length = 8
  source = (Array)#3
[0] "uniqname"
[1] "lastName"
[2] "firstName"
[3] "position"
[4] "department"
[5] "role"
[6] "isActive"
  uid = "A8A6C52F-5FDD-35DA-8364-22A4F7846DEB"
sort = (null)
source = (Array)#3
  data = (mx.collections::ArrayCollection)#4
filterFunction = (null)
length = 1
list = (mx.collections::ArrayList)#5
  length = 1
  source = (Array)#6
[0] (mx.collections::ArrayCollection)#7
  filterFunction = (null)
  length = 8
  list = (mx.collections::ArrayList)#8
length = 8
source = (Array)#9
  [0] "wkolcz"
  [1] "Kolcz"
  [2] "Wally"
  [3] "ColdFusion / Flex Developer"
  [4] "PRMC"
  [5] "admin"
  [6] 1
uid = "1226A691-AB75-70F7-DA33-22A4F7A30F01"
  sort = (null)
  source = (Array)#9
  uid = "2A52253B-DDF8-716E-0A74-22A4F7A38643"
sort = (null)
source = (Array)#6

I then added Alert.show(ObjectUtil.toString(e.result.list.source),'source'); 
and got this with Adobe:

(Array)#0
  [0] (Object)#1
DEPARTMENT = "PRMC"
FIRSTNAME = "Wally"
ISACTIVE = 1
LASTNAME = "Kolcz"
PASSWORD = "2113"
POSITION = "Senior ColdFusion Architect"
ROLE = "admin"
UNIQNAME = "wkolcz"

And this with Blue Dragon:

TypeError: Error #1010: A term is undefined and has no properties.

Anyone know a work around to get the same results? I was able to get my 
'uniqname' with Adobe by using userData.getItemArt(0).UNIQNAME but it fails in 
BD.

Thanks for ANY help in this Blue Disaster.



[flexcoders] Re: newbie question - call to actionscript class

2009-01-29 Thread annelie2008
I tried addChild(notes); but that threw an error (Error #1034: Type 
Coercion failed: cannot convert test::drawno...@7218ca1 to 
mx.core.IUIComponent.). I googled a bit and it seems like you have to 
make it into a UIComponent first. I tried this:

var uic:UIComponent = new UIComponent;
uic.addChild(notes);

This doesn't do anything though, so maybe my actionscript code is 
wrong. I thought notes would be a Sprite, but maybe I need to do 
something more? Here's the actionscript class:

package test
{
import assets.Note;

import flash.display.Sprite;
import flash.text.*;

public class DrawNotes extends Sprite
{
[Embed(source="HELSINKI.TTF", fontFamily="HELSINKI")]
private var embeddedFont:String;

private var note1:Note;

public function DrawNotes()
{
super();

// I've removed it as it would make the code 
too long, but this calls a function that creates a textfield with the 
music notes
createTextField(17, 
AntiAliasType.NORMAL, "&", 63, 53);

note1 = new Note();
addChild(note1);
}
}
}

Cheers,

Annelie


--- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
>
> The usual reason for things not appearing is that the component 
that should 
> appear hasn't been added to the display list - just using new 
doesn't add an 
> object to the display list.
> 
> Maybe addChild(notes) will help.
> 
> Paul
> - Original Message - 
> From: "annelie2008" 
> To: 
> Sent: Thursday, January 29, 2009 1:47 PM
> Subject: [flexcoders] Re: newbie question - call to actionscript 
class
> 
> 
> >I should probably have commented out that bit of code, it's not the
> > xml I'm having problems with now (well, I have, but I'll get to 
those
> > questions later). I thought that by calling my actionscript class,
> > var notes:DrawNotes = new DrawNotes();, that would display my hard
> > coded score on screen? I was going to loop through the xml later 
to
> > go draw every specific element but for now I'm just trying to draw
> > anything. Do I need to connect that to a visual element?
> >
> > Cheers,
> >
> > Annelie
> >
> >
> > --- In flexcoders@yahoogroups.com, "Gregor Kiddie" 
> > wrote:
> >>
> >>  isn't a visual component. You'll need to use the 
XML
> > as a
> >> dataprovider from something that is.
> >>
> >>
> >>
> >> Gk.
> >>
> >> Gregor Kiddie
> >> Senior Developer
> >> INPS
> >>
> >> Tel:   01382 564343
> >>
> >> Registered address: The Bread Factory, 1a Broughton Street, 
London
> > SW8
> >> 3QJ
> >>
> >> Registered Number: 1788577
> >>
> >> Registered in the UK
> >>
> >> Visit our Internet Web site at www.inps.co.uk
> >> http://www.inps.co.uk/>
> >>
> >> The information in this internet email is confidential and is
> > intended
> >> solely for the addressee. Access, copying or re-use of 
information
> > in it
> >> by anyone else is not authorised. Any views or opinions presented
> > are
> >> solely those of the author and do not necessarily represent 
those of
> >> INPS or any of its affiliates. If you are not the intended 
recipient
> >> please contact is.helpdesk@
> >>
> >> 
> >>
> >> From: flexcoders@yahoogroups.com
> > [mailto:flexcod...@yahoogroups.com] On
> >> Behalf Of annelie2008
> >> Sent: 29 January 2009 10:43
> >> To: flexcoders@yahoogroups.com
> >> Subject: [flexcoders] newbie question - call to actionscript 
class
> >>
> >>
> >>
> >> Hello,
> >>
> >> I'm brand new to Flex so I'm sure this is a very stupid question,
> > but
> >> hopefully someone will be able to help.
> >>
> >> My ultimate goal is to take an xaml file with a musical score and
> >> convert it to flex, but to start with I've hardcoded a score (or
> >> rather some score elements) in an actionscript class and I'm 
trying
> >> to call it from my main application file. When I debug I can see
> > that
> >> it does get called, however nothing gets drawn on screen. I first
> > did
> >> the hardcoded score in a project on its own, so I know that the
> > score
> >> should be able to be displayed.
> >>
> >> Here's the code:
> >> 
> >> http://www.adobe.com/2006/mxml
> >>  "
> >> layout="absolute" initialize="initializeHandler()">
> >>
> >> 
> >> 
> >> 
> >>
> >> 
> >>
> >> 
> >>
> >> Does anyone know what I'm doing wrong?
> >>
> >> Many thanks,
> >>
> >> Annelie
> >>
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location: 
> > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-
446f-b4cf-1e62079f6847
> > Search Archives: 
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups

[flexcoders] Re: PHP Remoting and value objects

2009-01-29 Thread valdhor
Also, this thread may give you some insights:

http://www.nabble.com/More-questions-on-weborb%2C-creating-my-own-services-to19745231.html#a19760218

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> Can I ask how Charles represented the object returned from WebORB? We
> need to know if the object returned is of the right type before
> tackling the Flex side.
> 
> 
> --- In flexcoders@yahoogroups.com, Sceneshift  wrote:
> >
> > 
> > I'm still having real trouble with his, it's really confusing. I am
> returning
> > the VO from PHP via WebORB, and in Flex I have a VO class with the
> following
> > at the top:
> > 
> > [RemoteClass(alias="SiteVO")]
> > 
> > However, the result I am getting from WebOrb is still typed as
> "Object", and
> > it won't let me type it as "SiteVO". 
> > 
> > Can anyone offer any help as to how I type my objects correct?
> > 
> > 
> > Amy-28 wrote:
> > > 
> > > --- In flexcoders@yahoogroups.com, Sceneshift  wrote:
> > >>
> > >> 
> > >> Hey guys,
> > >> 
> > >> I'm a little confused over how to get myself from WebOrb PHP
into a 
> > > VO in my
> > >> Flex application. I am getting my result sent to me from my php 
> > > script which
> > >> is returned as an object, and I'm trying to set this result as a 
> > > value
> > >> object like so:
> > >> 
> > >> var testVO:TestVO = e.result as TestVO;
> > >> 
> > >> This isn't working, which confuses me. Do I have to run through 
> > > each result
> > >> in order to type it accordingly? I thought one of the benefits of 
> > > remoting
> > >> was that we didn't need to type our results?
> > > 
> > > You shouldn't have to cast it--it should come back already as that 
> > > type.  If it isn't already that type, check out these links:
> > > http://flexdiary.blogspot.com/2008/11/thoughts-on-remoting.html
> > >
http://flexdiary.blogspot.com/2009/01/lazy-loading-tree-example-file-
> > > posted.html
> > > 
> > > The latter link includes both the php and Flex side of a working 
> > > remote class.
> > > 
> > > HTH;
> > > 
> > > Amy
> > > 
> > > 
> > > 
> > 
> > -- 
> > View this message in context:
>
http://www.nabble.com/PHP-Remoting-and-value-objects-tp21674002p21713717.html
> > Sent from the FlexCoders mailing list archive at Nabble.com.
> >
>




[flexcoders] Re: PHP Remoting and value objects

2009-01-29 Thread valdhor
Can I ask how Charles represented the object returned from WebORB? We
need to know if the object returned is of the right type before
tackling the Flex side.


--- In flexcoders@yahoogroups.com, Sceneshift  wrote:
>
> 
> I'm still having real trouble with his, it's really confusing. I am
returning
> the VO from PHP via WebORB, and in Flex I have a VO class with the
following
> at the top:
> 
> [RemoteClass(alias="SiteVO")]
> 
> However, the result I am getting from WebOrb is still typed as
"Object", and
> it won't let me type it as "SiteVO". 
> 
> Can anyone offer any help as to how I type my objects correct?
> 
> 
> Amy-28 wrote:
> > 
> > --- In flexcoders@yahoogroups.com, Sceneshift  wrote:
> >>
> >> 
> >> Hey guys,
> >> 
> >> I'm a little confused over how to get myself from WebOrb PHP into a 
> > VO in my
> >> Flex application. I am getting my result sent to me from my php 
> > script which
> >> is returned as an object, and I'm trying to set this result as a 
> > value
> >> object like so:
> >> 
> >> var testVO:TestVO = e.result as TestVO;
> >> 
> >> This isn't working, which confuses me. Do I have to run through 
> > each result
> >> in order to type it accordingly? I thought one of the benefits of 
> > remoting
> >> was that we didn't need to type our results?
> > 
> > You shouldn't have to cast it--it should come back already as that 
> > type.  If it isn't already that type, check out these links:
> > http://flexdiary.blogspot.com/2008/11/thoughts-on-remoting.html
> > http://flexdiary.blogspot.com/2009/01/lazy-loading-tree-example-file-
> > posted.html
> > 
> > The latter link includes both the php and Flex side of a working 
> > remote class.
> > 
> > HTH;
> > 
> > Amy
> > 
> > 
> > 
> 
> -- 
> View this message in context:
http://www.nabble.com/PHP-Remoting-and-value-objects-tp21674002p21713717.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>




Re: [flexcoders] Re: newbie question - call to actionscript class

2009-01-29 Thread Paul Andrews
The usual reason for things not appearing is that the component that should 
appear hasn't been added to the display list - just using new doesn't add an 
object to the display list.

Maybe addChild(notes) will help.

Paul
- Original Message - 
From: "annelie2008" 
To: 
Sent: Thursday, January 29, 2009 1:47 PM
Subject: [flexcoders] Re: newbie question - call to actionscript class


>I should probably have commented out that bit of code, it's not the
> xml I'm having problems with now (well, I have, but I'll get to those
> questions later). I thought that by calling my actionscript class,
> var notes:DrawNotes = new DrawNotes();, that would display my hard
> coded score on screen? I was going to loop through the xml later to
> go draw every specific element but for now I'm just trying to draw
> anything. Do I need to connect that to a visual element?
>
> Cheers,
>
> Annelie
>
>
> --- In flexcoders@yahoogroups.com, "Gregor Kiddie" 
> wrote:
>>
>>  isn't a visual component. You'll need to use the XML
> as a
>> dataprovider from something that is.
>>
>>
>>
>> Gk.
>>
>> Gregor Kiddie
>> Senior Developer
>> INPS
>>
>> Tel:   01382 564343
>>
>> Registered address: The Bread Factory, 1a Broughton Street, London
> SW8
>> 3QJ
>>
>> Registered Number: 1788577
>>
>> Registered in the UK
>>
>> Visit our Internet Web site at www.inps.co.uk
>> http://www.inps.co.uk/>
>>
>> The information in this internet email is confidential and is
> intended
>> solely for the addressee. Access, copying or re-use of information
> in it
>> by anyone else is not authorised. Any views or opinions presented
> are
>> solely those of the author and do not necessarily represent those of
>> INPS or any of its affiliates. If you are not the intended recipient
>> please contact is.helpd...@...
>>
>> 
>>
>> From: flexcoders@yahoogroups.com
> [mailto:flexcod...@yahoogroups.com] On
>> Behalf Of annelie2008
>> Sent: 29 January 2009 10:43
>> To: flexcoders@yahoogroups.com
>> Subject: [flexcoders] newbie question - call to actionscript class
>>
>>
>>
>> Hello,
>>
>> I'm brand new to Flex so I'm sure this is a very stupid question,
> but
>> hopefully someone will be able to help.
>>
>> My ultimate goal is to take an xaml file with a musical score and
>> convert it to flex, but to start with I've hardcoded a score (or
>> rather some score elements) in an actionscript class and I'm trying
>> to call it from my main application file. When I debug I can see
> that
>> it does get called, however nothing gets drawn on screen. I first
> did
>> the hardcoded score in a project on its own, so I know that the
> score
>> should be able to be displayed.
>>
>> Here's the code:
>> 
>> http://www.adobe.com/2006/mxml
>>  "
>> layout="absolute" initialize="initializeHandler()">
>>
>> 
>> 
>> 
>>
>> 
>>
>> 
>>
>> Does anyone know what I'm doing wrong?
>>
>> Many thanks,
>>
>> Annelie
>>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> Links
>
>
>



[flexcoders] Re: newbie question - call to actionscript class

2009-01-29 Thread annelie2008
I should probably have commented out that bit of code, it's not the 
xml I'm having problems with now (well, I have, but I'll get to those 
questions later). I thought that by calling my actionscript class, 
var notes:DrawNotes = new DrawNotes();, that would display my hard 
coded score on screen? I was going to loop through the xml later to 
go draw every specific element but for now I'm just trying to draw 
anything. Do I need to connect that to a visual element?

Cheers,

Annelie


--- In flexcoders@yahoogroups.com, "Gregor Kiddie"  
wrote:
>
>  isn't a visual component. You'll need to use the XML 
as a
> dataprovider from something that is.
> 
>  
> 
> Gk.
> 
> Gregor Kiddie
> Senior Developer
> INPS
> 
> Tel:   01382 564343
> 
> Registered address: The Bread Factory, 1a Broughton Street, London 
SW8
> 3QJ
> 
> Registered Number: 1788577
> 
> Registered in the UK
> 
> Visit our Internet Web site at www.inps.co.uk
> http://www.inps.co.uk/> 
> 
> The information in this internet email is confidential and is 
intended
> solely for the addressee. Access, copying or re-use of information 
in it
> by anyone else is not authorised. Any views or opinions presented 
are
> solely those of the author and do not necessarily represent those of
> INPS or any of its affiliates. If you are not the intended recipient
> please contact is.helpd...@...
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcod...@yahoogroups.com] On
> Behalf Of annelie2008
> Sent: 29 January 2009 10:43
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] newbie question - call to actionscript class
> 
>  
> 
> Hello,
> 
> I'm brand new to Flex so I'm sure this is a very stupid question, 
but 
> hopefully someone will be able to help.
> 
> My ultimate goal is to take an xaml file with a musical score and 
> convert it to flex, but to start with I've hardcoded a score (or 
> rather some score elements) in an actionscript class and I'm trying 
> to call it from my main application file. When I debug I can see 
that 
> it does get called, however nothing gets drawn on screen. I first 
did 
> the hardcoded score in a project on its own, so I know that the 
score 
> should be able to be displayed.
> 
> Here's the code:
> 
> http://www.adobe.com/2006/mxml
>  " 
> layout="absolute" initialize="initializeHandler()">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Does anyone know what I'm doing wrong?
> 
> Many thanks,
> 
> Annelie
>




[flexcoders] Re: DragDrop stops working in 3.2

2009-01-29 Thread reflexactions
Never mind, resolved.

DragProxy has a different function for selecting which object to 
dispatch drag/drop events through and they produce different results 
between 3.2 and 3.1 so after finding that out that we figured how to 
get it to route the events to the correct object.

--- In flexcoders@yahoogroups.com, "reflexactions" 
 wrote:
>
> I have an app that been working fine under 3.0 and 3.1 for over a 
year, 
> its worked on by team of guys, now we have installed 3.2 and 
Drag/Drop 
> has stopped working for all of us.
> 
> The app adds DragEnter/DragDrop events handlers to a Canvas that 
fills 
> the display area but whereas under 3.1 they get called under 3.2 
they 
> are not.
> 
> When we drag out of a list based component the cursor changes to 
the 
> drag cursor but with the red cross showing you can't drop, but the 
> event handlers on the canvas never get invoked so they dont get to 
call 
> DragManager.acceptDragDrop.
> 
> Does anyone know what has changed between 3.1 and 3.2 that could 
cause 
> this, is there something else that needs to be turned on to detect 
> dragging?
>




RE: [flexcoders] newbie question - call to actionscript class

2009-01-29 Thread Gregor Kiddie
 isn't a visual component. You'll need to use the XML as a
dataprovider from something that is.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of annelie2008
Sent: 29 January 2009 10:43
To: flexcoders@yahoogroups.com
Subject: [flexcoders] newbie question - call to actionscript class

 

Hello,

I'm brand new to Flex so I'm sure this is a very stupid question, but 
hopefully someone will be able to help.

My ultimate goal is to take an xaml file with a musical score and 
convert it to flex, but to start with I've hardcoded a score (or 
rather some score elements) in an actionscript class and I'm trying 
to call it from my main application file. When I debug I can see that 
it does get called, however nothing gets drawn on screen. I first did 
the hardcoded score in a project on its own, so I know that the score 
should be able to be displayed.

Here's the code:

http://www.adobe.com/2006/mxml
 " 
layout="absolute" initialize="initializeHandler()">









Does anyone know what I'm doing wrong?

Many thanks,

Annelie

 



[flexcoders] Ever seen this bug? (busy loop + custom component + '\n')

2009-01-29 Thread enriirne
I've just submitted this bug. I wonder if any busy loop user (game, 
animations) have vere seen it.

Enri

See code below to reproduce the bug

Steps to reproduce:
1. add a busy loop: enter_frame or timer with 1 ms resolution
2. inside the loop set the text property of a Label or TextArea to 
'\n'
3. outside the loop, for example in a click event, addChild of a 
custom component extending Canvas (or any other container) and 
including anything
 
 Actual Results:
 a click on the application area doesn't show anything. If resized 
(when running on flash player) the custom component appears, but the 
display is corrupted and inconsistent
 
 Expected Results:
 the custom component is added and showed
 
 Workaround (if any):
 use '\r' instead of '\n'

Comments:
This seems a race condition. If timer resolution is set to 2 ms, the 
bug appears less frequently. If set to 3 ms the bug disappears (all 
this on a recent notebook)
I've found this bug both on flash player 9 and 10, and on air 1.5
I suspect that this bug appears also using PopupManager.

# begin code: sampleApp.mxml

http://www.adobe.com/2006/mxml"; 
  applicationComplete="f()"
  >
  

  
  

# end sampleApp.mxml

# begin code: MyComponent.mxml

http://www.adobe.com/2006/mxml";>
  

# end MyComponent.mxml
 
 




[flexcoders] Re: Whipping the itemRenderers Ass

2009-01-29 Thread gmbroth
Hi,

Good timing as I think I'm trying to do a similar thing:
highlighting rows in a List via an item renderer and "highlighted"
property on the data model.  After updating the data model, I
plan to call refresh() and expect it will automatically fire the
item renderer for each visible row; the renderer will detect highlighted
rows via the data property and apply an appropriate style.  Will my
approach work or are you saying I'll need to explicitly dispatch
events?

I'm not using a custom gradient and so am not too concerned about the
bugginess you report but would love to see your general approach.
Care to share some code?  We can do it offline, if you wish:
gmbr...@hotmail.com.

Finally, I don't get the part about indexToItemRenderer.  Can't you do
everything through the data model and data binding (using refresh) without
iterating over the List itself?

Thanks, Garry


--- In flexcoders@yahoogroups.com, "djhatrick"  wrote:
>
> OK, we've all done it, made custom gradients for highlight fills in
> list itemRenderers, the way I do it is to use properties in my
> valueObjects.  So, I set a property called highlighted or selected on
> my value object when one item is highlighted or selected I loop over
> the rest of my objects in the collection and set their highlight or
> selected value to false, in  turn, which dispatches an event to remove
> my custom gradient.  I follow the same the way List component does to
> get the indexToItemRenderer formula.  While this works perfectly for
> selected items, I do notice a little edge case buggyness on highlight
> fills... Sometimes, my mouseOvers don't seem make my other
> itemRenderers show their highlighted fill color...
> Usually when I rollout of my list and roll back in real quick.
> 
> Any suggestions on this, I obsess and keep going through the logic and
> keep trying a slightly different approach. 
> 
> First, is there a better way to draw a greadient into an itemRenderer
> that I don't know about, by like drawing in the sprite or something...
> 
> Second, if there isn't has anybody got this to work aboslutely
> perfectly.   I'd love to hear from you and I'd be happy to show you
> what I've done...
>




[flexcoders] newbie question - call to actionscript class

2009-01-29 Thread annelie2008
Hello,

I'm brand new to Flex so I'm sure this is a very stupid question, but 
hopefully someone will be able to help.

My ultimate goal is to take an xaml file with a musical score and 
convert it to flex, but to start with I've hardcoded a score (or 
rather some score elements) in an actionscript class and I'm trying 
to call it from my main application file. When I debug I can see that 
it does get called, however nothing gets drawn on screen. I first did 
the hardcoded score in a project on its own, so I know that the score 
should be able to be displayed.

Here's the code:

http://www.adobe.com/2006/mxml"; 
layout="absolute" initialize="initializeHandler()">










Does anyone know what I'm doing wrong?

Many thanks,

Annelie



[flexcoders] Charting: Adding a horizontal line

2009-01-29 Thread flex_coders
I'd like to add a few horizontal lines to my area chart, a solid line
to indicate where the average is (y=avg) and two dashed lines for +/-1
std devs away. is there a simple way to add a line to the chart
indicating y = [some value] or rather do i need to need to
programatically just draw the line?



Re: [flexcoders] Help

2009-01-29 Thread Tom Chiverton
On Saturday 24 Jan 2009, dharma wrote:
> I will create another array with fields pagefrom and pageto and will
> bind that arraycollection to datagrid. I want to check the entered
> values in the newarray collection should not overlap with the

I adapted some Java code for finding overlaps in date ranges, it was easy 
enough but I can't release the code, sorry.
Here's the Java : http://martinfowler.com/ap2/range.html


-- 
Tom Chiverton
Helping to professionally improve integrated metrics



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] Common base class for components

2009-01-29 Thread Jules Suggate
Just to resume this thread, what I meant was to still use MXML and all the
Flex components, but to introduce common functionality to all our Views
(mxml files). Perhaps it's better to think of weaving this in than using
inheritance, since that would require multiple inheritance AFAICT.

I don't want anything fancy -- just a getter/setter pair:

public function get model():IViewModel
{
   // some common code
}
private var _model:IViewModel;
public function set model(value:IViewModel):void
{
   // more common code
}

To save writing out this code again and again, would I have to put this code
in an include file, and include from each View?

On Thu, Dec 18, 2008 at 06:41, Alex Harui  wrote:

>In theory, if your base class implements IUIComponent, then your visual
> components will work in Flex
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Jules Suggate
> *Sent:* Wednesday, December 17, 2008 8:56 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Common base class for components
>
>
>
> Hi list, anyone know if it's possible to have all our components inherit
> from a common base component of our own making?
>
> There are some things in our app that every View component will have to do
> at loadtime, and it'd be nice to just write that code once and have all the
> other components inherit it...
>
> Last time I checked in Flex 3 Beta 2 there was some vague suggestion of
> using "Template Components", but that seemed like an afterthought in the SDK
> at the time. Just thought I'd check to see if you knew of any tricks for
> doing it :)
>
> Perhaps even an include file would be the way to go...
>
>   
>



-- 
--
Jules Suggate
Owner and Technical Lead
Uphill Sprint Limited

+64-21-157-8562


RE: [flexcoders] Re: Mimic IGoogle with Flex 3

2009-01-29 Thread Gregor Kiddie
I can't post any of our stuff (unfortunately), but the best starting
place is the google repository and Ben's site.

http://www.returnundefined.com/tags/flexmdi

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of thelordsince1984
Sent: 28 January 2009 16:48
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Mimic IGoogle with Flex 3

 

--- In flexcoders@yahoogroups.com 
, "Gregor Kiddie"  wrote:
>
> Take a look at the MDI stuff in FlexLib. We've produced the effect you
> are looking for with them.

Thanks for the reply.

It's very very cool.

where can i found samples to work with it?

Thanks again

Regards Lorenzo