[flexcoders] Just getting started with flex builder 3

2008-08-22 Thread richbull99
Hi all.

I've been working on a site that has some rather large text files.
I think it can be better served in flash.
I kind of like the idea of having an expanding tree doing most of the
work. Where the left side of the page would show basic information,
then the right would show more detailed stuff.

What I need though is a working example of one. To help give me a
start in this area of technology. At least one that shows the basics
of getting it started. As most of the data will be repeated a few times.

I would have loved to tried out the example sent in the welcome
letter, however, I was met with an error right off. Seems somebody
didn't bother to validate the code.

For a reference, my site is http://oldies.1littleworld.com/

Thanks



[flexcoders] My list of Yahoo Groups

2008-08-22 Thread Arthurnasius Amanyire
Hi everyone, 

Hope this is ok to post here... You can see a list of my groups on Grouply at
the link below. Maybe you'll find some you want to join. 

Arthurnasius 

Here's the link:
http://www.grouply.com/register.php?tmg=359255&vt=4303991  






This message was posted by a fellow group member who uses Grouply instead of
email to access this group. Grouply blocks additional invitations from being
sent to this group by anyone for 30 days. Group owners can permanently block
future invitations. For more on how Grouply maintains privacy and protects you,
see http://blog.grouply.com/protect/ . 




Re: [flexcoders] Re: DataGridColumn trouble...

2008-08-22 Thread Sefi Ninio
Exactly what I was thinking...

So, to make sure I get this straight - There is no way to get to the other
DataGridColumns from the DataGridColumn passed to it's labelFunction.

There is no getting around to making the same calculation for multiple
column except for keeping an external map (at least the size of the grid -
which chould be quite big) for the calculations results. This, of course, is
a mess. More so when you need to update the map when the dataProvider
changes...

Ugh... Coding in Flex is a real joy, but every now and then I find myself
banging my head against the wall...

Sefi

On Sat, Aug 23, 2008 at 3:20 AM, mknuttall <[EMAIL PROTECTED]> wrote:

>   Because then it wouldn't be a VO. :)
>
>
> --- In flexcoders@yahoogroups.com , "Tracy
> Spratt" <[EMAIL PROTECTED]> wrote:
> >
> > If you are usign VOs, why not just add properties and have the VO do the
> > calculation internally, and forget the labelFunctions entirely?
> >
> > Tracy
> >
>
>  
>


RE: [flexcoders] Re: Choosing Components Dynamically

2008-08-22 Thread Alex Harui
In the code for this article:
http://blogs.adobe.com/aharui/2008/01/html_and_flex_1.html

Is logic that parses xml and instantiates various UI classes based on
the xml.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mknuttall
Sent: Friday, August 22, 2008 7:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Choosing Components Dynamically

 

Thanks, I will. Hopefully it will allow different components within
the repeater. 

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Consider using mx:Repeater for this kind of thing. It will save you 
> lots of code and provide many other benefits over manually using 
> addChild().
> Tracy
> 
> 
> --- In flexcoders@yahoogroups.com
 , "mknuttall"  wrote:
> >
> > I can deal with the verbosity and the components will 
> be "predesigned"
> > and so available at compile time. Got any examples?
> > 
> > 
> > --- In flexcoders@yahoogroups.com
 , "Richard Rodseth"  
> wrote:
> > >
> > > You can certainly build a view dynamically, because any component 
> can be
> > > instantiated in ActionScript. Depending how you structure things,
> > the code
> > > may become quite a bit more verbose than you are accustomed to.
> > > 
> > > I believe there are some restrictions on "creation by name" in
> > ActionScript,
> > > but if the types of the components are known at compile time, a 
> simple
> > > switch statement will do the trick.
> > > 
> > > On Fri, Aug 22, 2008 at 2:32 PM, mknuttall  wrote:
> > > 
> > > > Has anyone or does anyone know if it is possible to choose 
> what
> > > > component to display dynamically? For instance if one is 
> displaying a
> > > > questionnaire, questions are Text, Yes No, List and Date and 
> are not
> > > > know what they are or what the order is till runtime.
> > > >
> > > > 
> > > >
> > >
> >
>

 



[flexcoders] [ANN] Flex-mojos 2.0-alpha4

2008-08-22 Thread Marvin Froeder
A new version is out.

2.0-alpha4 is much more stable then 1.0. So why I'm calling this alpha?? I
have no idea

Major updates on alpha4:

   - Flex-mojos was build using install mojo dependencies. Yes, we are
   buying what we are selling.
   - Released install mojo (easy way to get flex-sdk at maven repo).
   - New resource bundle system. Will blog about details latter, but keep in
   mind now dependency type is rb.swc and classifier is no longer used (so
   should be removed). See issue 49
   - Fixed commas support on asdoc. See issue 80.
   - Default SDK version was updated to 3.1.0.2710, the new milestone.


You can read more at blog:
http://blog.flex-mojos.info/2008/08/23/flex-mojos-20-alpha4/

Have a nice weekend.


VELO


Re: [flexcoders] public static var issue

2008-08-22 Thread Sherif Abdou
That Error, I am guessing your using Flex 4 Gumbo, So u need to go To  
Project-->Properties-->Flex Compiler-->Html Wrapper put 10.0.0 under Require 
Flash Player Version
  - Original Message - 
  From: Chris Velevitch 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, August 22, 2008 9:54 PM
  Subject: Re: [flexcoders] public static var issue


  On Sat, Aug 23, 2008 at 3:37 AM, Sherif Abdou <[EMAIL PROTECTED]> wrote:
  > Needs to be the Class name, not myModel but MyModel (Class Name).

  It shouldn't matter either way because when you create an instance of
  such a class you may have instance vars as well.

  However, switching from myModel.message to MyModel.message now
  generates the following errors:-

  1046: Type was not found or was not a compile-time constant: ElementFormat.
  1046: Type was not found or was not a compile-time constant: TextBlock.

  and it doesn't say which file is the cause of the error.

  Chris
  --
  Chris Velevitch
  Manager - Adobe Platform Users Group, Sydney
  m: 0415 469 095
  www.apugs.org.au

  Adobe Platform Users Group, Sydney
  August meeting: Tools Of The Trade: Maven, An Introduction
  Date: Mon 25th August 6pm for 6:30 start
  Details and RSVP on http://apugs2008august.eventbrite.com.


   

Re: [flexcoders] public static var issue

2008-08-22 Thread Chris Velevitch
On Sat, Aug 23, 2008 at 3:37 AM, Sherif Abdou <[EMAIL PROTECTED]> wrote:
> Needs to be the Class name, not myModel but MyModel (Class Name).

It shouldn't matter either way because when you create an instance of
such a class you may have instance vars as well.

However, switching from myModel.message to MyModel.message now
generates the following errors:-

1046: Type was not found or was not a compile-time constant: ElementFormat.
1046: Type was not found or was not a compile-time constant: TextBlock.

and it doesn't say which file is the cause of the error.


Chris
--
Chris Velevitch
Manager - Adobe Platform Users Group, Sydney
m: 0415 469 095
www.apugs.org.au

Adobe Platform Users Group, Sydney
August meeting: Tools Of The Trade: Maven, An Introduction
Date: Mon 25th August 6pm for 6:30 start
Details and RSVP on http://apugs2008august.eventbrite.com.


[flexcoders] Re: DataGridColumn trouble...

2008-08-22 Thread Tim Hoff

Cool, knock yourself out.

-TH

--- In flexcoders@yahoogroups.com, "mknuttall" <[EMAIL PROTECTED]> wrote:
>
> LOL. Then you don't know what a VO is.
>
> I've done plenty of applications that function like a Flex app - and
> VO's are not needed, at least not how people normally define them. If
> you are talking about "projections" or "report objects" then I do use
> those (see hibernate documentation). But they don't contain anything
> more than convenience code.
>
> Of course I do multi-tiered applications so there is no "middle tier"
> anymore. Business logic is needed to be performed in ALL layers.
>
> I do agree with your recommendation though - mostly. I have not used
> Flex enough, but UI specific code (formating/etc) in Java clients
> (SWT/Swing) is [correctly] handled with Renders/Providers. WinForms
> sadly doesn't have this.
>
> If you need keep your domain objects clean then use the decorator
> pattern.
>
> The VO/DTO pattern is majorly misused. Thankfully not so much in Java
> anymore as EJB3/ORM have taken hold.
>
>
>
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Absolutely not true. Perhaps it wouldn't be a pure dto, but vo's
often
> > contain properties that are only useful to the UI. Since you've
chosen
> > to perform these calculations in the client, as opposed to the
middle
> > tier; where business logic typically resides, each row of the
collection
> > will have to be looped through anyway; either for precalculating
> > additional vo properties, or by using labelFunctions. Either way,
those
> > are the recommendations. Good luck.
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "mknuttall"  wrote:
> > >
> > > Because then it wouldn't be a VO. :)
> > >
> > > --- In flexcoders@yahoogroups.com, "Tracy Spratt" tspratt@ wrote:
> > > >
> > > > If you are usign VOs, why not just add properties and have the
VO do
> > the
> > > > calculation internally, and forget the labelFunctions entirely?
> > > >
> > > > Tracy
> > > >
> > >
> >
>





Re: [flexcoders] public static var issue

2008-08-22 Thread Sherif Abdou
Needs to be the Class name, not myModel but MyModel (Class Name).
  - Original Message - 
  From: Chris Velevitch 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, August 22, 2008 9:32 PM
  Subject: [flexcoders] public static var issue


  I have a class with public static vars like:-

  [Bindable]
  public class MyModel {
  public static var message:String = 'initially empty';
  }

  and I use as a tag like:-

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

  

  

  

  But the compiler gives me an error on myModel.message:-

  1119: Access of possibly undefined property message through a
  reference with static type MyModel.

  Why is this? Should I report it as a bug?

  Chris
  --
  Chris Velevitch
  Manager - Adobe Platform Users Group, Sydney
  m: 0415 469 095
  www.apugs.org.au

  Adobe Platform Users Group, Sydney
  August meeting: Tools Of The Trade: Maven, An Introduction
  Date: Mon 25th August 6pm for 6:30 start
  Details and RSVP on http://apugs2008august.eventbrite.com.


   

[flexcoders] public static var issue

2008-08-22 Thread Chris Velevitch
I have a class with public static vars like:-

[Bindable]
public class MyModel {
public static var message:String = 'initially empty';
}

and I use as a tag like:-

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








But the compiler gives me an error on myModel.message:-

1119: Access of possibly undefined property message through a
reference with static type MyModel.

Why is this? Should I report it as a bug?


Chris
--
Chris Velevitch
Manager - Adobe Platform Users Group, Sydney
m: 0415 469 095
www.apugs.org.au

Adobe Platform Users Group, Sydney
August meeting: Tools Of The Trade: Maven, An Introduction
Date: Mon 25th August 6pm for 6:30 start
Details and RSVP on http://apugs2008august.eventbrite.com.


Re: [flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-22 Thread Douglas Knudsen
https://bugs.adobe.com/jira/browse/FB-11842  I'd guess that one...hot number
of votes that one, cast my ballot on this a way back.  No freaking hanging
chads on my ballot either, just a strong forceful 'hell yeah' click.

DK

On Fri, Aug 22, 2008 at 8:10 PM, Howard Fore <[EMAIL PROTECTED]> wrote:

>   Kelly, what's the bug number on that?
>
> On Fri, Aug 22, 2008 at 6:45 PM, Kelly <[EMAIL PROTECTED]> wrote:
>
>>  Yea, I wish they would bring Subclipse up to par with Tortoise.
>>
>> I work on Linux so there is no Tortoise either.
>>
>> I will vote for your bug if you will vote for the Templates enhancement.
>>
>> Not having templates pisses me off continuously.
>>
>
>
>
> --
> Howard Fore, [EMAIL PROTECTED]
> "The universe tends toward maximum irony. Don't push it." - Jeff Atwood
>  
>



-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


[flexcoders] Re: Choosing Components Dynamically

2008-08-22 Thread mknuttall
Thanks, I will. Hopefully it will allow different components within
the repeater. 

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Consider using mx:Repeater for this kind of thing.  It will save you 
> lots of code and provide many other benefits over manually using 
> addChild().
> Tracy
> 
> 
> --- In flexcoders@yahoogroups.com, "mknuttall"  wrote:
> >
> > I can deal with the verbosity and the components will 
> be "predesigned"
> > and so available at compile time. Got any examples?
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Richard Rodseth"  
> wrote:
> > >
> > > You can certainly build a view dynamically, because any component 
> can be
> > > instantiated in ActionScript. Depending how you structure things,
> > the code
> > > may become quite a bit more verbose than you are accustomed to.
> > > 
> > > I believe there are some restrictions on "creation by name" in
> > ActionScript,
> > > but if the types of the components are known at compile time, a 
> simple
> > > switch statement will do the trick.
> > > 
> > > On Fri, Aug 22, 2008 at 2:32 PM, mknuttall  wrote:
> > > 
> > > >   Has anyone or does anyone know if it is possible to choose 
> what
> > > > component to display dynamically? For instance if one is 
> displaying a
> > > > questionnaire, questions are Text, Yes No, List and Date and 
> are not
> > > > know what they are or what the order is till runtime.
> > > >
> > > >  
> > > >
> > >
> >
>




[flexcoders] Re: DataGridColumn trouble...

2008-08-22 Thread mknuttall
LOL. Then you don't know what a VO is.

I've done plenty of applications that function like a Flex app - and
VO's are not needed, at least not how people normally define them. If
you are talking about "projections" or "report objects" then I do use
those (see hibernate documentation). But they don't contain anything
more than convenience code.  

Of course I do multi-tiered applications so there is no "middle tier"
anymore. Business logic is needed to be performed in ALL layers.  

I do agree with your recommendation though - mostly. I have not used
Flex enough, but UI specific code (formating/etc) in Java clients
(SWT/Swing) is [correctly] handled with Renders/Providers. WinForms
sadly doesn't have this.  

If you need keep your domain objects clean then use the decorator
pattern.  

The VO/DTO pattern is majorly misused. Thankfully not so much in Java
anymore as EJB3/ORM have taken hold.




--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Absolutely not true.  Perhaps it wouldn't be a pure dto, but vo's often
> contain properties that are only useful to the UI.  Since you've chosen
> to perform these calculations in the client, as opposed to the middle
> tier; where business logic typically resides, each row of the collection
> will have to be looped through anyway; either for precalculating
> additional vo properties, or by using labelFunctions.  Either way, those
> are the recommendations.  Good luck.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "mknuttall"  wrote:
> >
> > Because then it wouldn't be a VO. :)
> >
> > --- In flexcoders@yahoogroups.com, "Tracy Spratt" tspratt@ wrote:
> > >
> > > If you are usign VOs, why not just add properties and have the VO do
> the
> > > calculation internally, and forget the labelFunctions entirely?
> > >
> > > Tracy
> > >
> >
>




[flexcoders] Re: Choosing Components Dynamically

2008-08-22 Thread Tracy Spratt
Consider using mx:Repeater for this kind of thing.  It will save you 
lots of code and provide many other benefits over manually using 
addChild().
Tracy


--- In flexcoders@yahoogroups.com, "mknuttall" <[EMAIL PROTECTED]> wrote:
>
> I can deal with the verbosity and the components will 
be "predesigned"
> and so available at compile time. Got any examples?
> 
> 
> --- In flexcoders@yahoogroups.com, "Richard Rodseth"  
wrote:
> >
> > You can certainly build a view dynamically, because any component 
can be
> > instantiated in ActionScript. Depending how you structure things,
> the code
> > may become quite a bit more verbose than you are accustomed to.
> > 
> > I believe there are some restrictions on "creation by name" in
> ActionScript,
> > but if the types of the components are known at compile time, a 
simple
> > switch statement will do the trick.
> > 
> > On Fri, Aug 22, 2008 at 2:32 PM, mknuttall  wrote:
> > 
> > >   Has anyone or does anyone know if it is possible to choose 
what
> > > component to display dynamically? For instance if one is 
displaying a
> > > questionnaire, questions are Text, Yes No, List and Date and 
are not
> > > know what they are or what the order is till runtime.
> > >
> > >  
> > >
> >
>




Re: [flexcoders] breakpoints not being triggered

2008-08-22 Thread Sherif Abdou
Try doing Project-->Clean, if that doesnt work then Sometimes you just have to 
create a new file and copy and paste from the old one into the new one, Rename 
the new one as old :( only way i got it to work.
  - Original Message - 
  From: windsail05 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, August 22, 2008 8:43 PM
  Subject: [flexcoders] breakpoints not being triggered


  when I run my application in debug mode, the breakpoints are never
  triggered. I tried putting a breakpoint in a function that was
  executed on completion (init()) and Flex would still not stop at the
  breakpoint.

  Is there a setting for this somewhere, or a reason for why a
  breakpoint would not be triggered?



   

[flexcoders] breakpoints not being triggered

2008-08-22 Thread windsail05
when I run my application in debug mode, the breakpoints are never
triggered.  I tried putting a breakpoint in a function that was
executed on completion (init()) and Flex would still not stop at the
breakpoint.

Is there a setting for this somewhere, or a reason for why a
breakpoint would not be triggered?



[flexcoders] Re: DataGridColumn trouble...

2008-08-22 Thread Tim Hoff

Absolutely not true.  Perhaps it wouldn't be a pure dto, but vo's often
contain properties that are only useful to the UI.  Since you've chosen
to perform these calculations in the client, as opposed to the middle
tier; where business logic typically resides, each row of the collection
will have to be looped through anyway; either for precalculating
additional vo properties, or by using labelFunctions.  Either way, those
are the recommendations.  Good luck.

-TH

--- In flexcoders@yahoogroups.com, "mknuttall" <[EMAIL PROTECTED]> wrote:
>
> Because then it wouldn't be a VO. :)
>
> --- In flexcoders@yahoogroups.com, "Tracy Spratt" tspratt@ wrote:
> >
> > If you are usign VOs, why not just add properties and have the VO do
the
> > calculation internally, and forget the labelFunctions entirely?
> >
> > Tracy
> >
>





[flexcoders] Re: Free Flex Gauge Component

2008-08-22 Thread twgonzalez
Hi All,

Sorry I have not been tracking Flex Coders as much as I should have.

To answer some questions.

1) Yes this is the "Degrafa" gauge component.
2) I put it as v0.4 component because it is my forth release, but I have never 
personally 
regression tested it.  Usually if I put a 1.0 label on something it means I 
have run it through 
regression testing and consider it "commercial" quality.  Obviously I have 
tested it, but not 
with the rigor I would if I was shipping it commercially.

You can also see more data visualization and degrafa examples from my preso at 
360|Flex

http://form-function.blogspot.com/2008/08/360-flex-data-visualization-code.html

- Tom



[flexcoders] Binding XML elements containing hyphens to DataGridColumns

2008-08-22 Thread seanwinship
I am trying to bind XML that has hyphens in the element names to a DataGrid.  
If I declare 
something like this:



and use the Service/Model Proxy pattern, I can load the data from an 
HTTPService.

However, I can't seem to bind other elements to the asset ID of the selected 
item in the 
DataGrid.  I've looked through the postings here and it seems that some variant 
of 
selectedItem.(@["asset-id"]) should work, but I haven't figured out the proper 
incantation 
yet.

I've also tried creating a variable in the parent document to hold the value 
and bind to that 
in other child components like this:

  public function changeHandler(event:Event):void
{
parentDocument.currentAssetID_ = 
event.target.selectedItem.(@["asset-id"]);
}

but I got some unhelpful runtime errors.

Has anyone done this successfully?

Thanks,

Sean

PS:  Yes, I am new to Flex.



[flexcoders] Re: Choosing Components Dynamically

2008-08-22 Thread mknuttall
I can deal with the verbosity and the components will be "predesigned"
and so available at compile time. Got any examples?


--- In flexcoders@yahoogroups.com, "Richard Rodseth" <[EMAIL PROTECTED]> wrote:
>
> You can certainly build a view dynamically, because any component can be
> instantiated in ActionScript. Depending how you structure things,
the code
> may become quite a bit more verbose than you are accustomed to.
> 
> I believe there are some restrictions on "creation by name" in
ActionScript,
> but if the types of the components are known at compile time, a simple
> switch statement will do the trick.
> 
> On Fri, Aug 22, 2008 at 2:32 PM, mknuttall <[EMAIL PROTECTED]> wrote:
> 
> >   Has anyone or does anyone know if it is possible to choose what
> > component to display dynamically? For instance if one is displaying a
> > questionnaire, questions are Text, Yes No, List and Date and are not
> > know what they are or what the order is till runtime.
> >
> >  
> >
>




[flexcoders] Httpstatus from httpservice?

2008-08-22 Thread Brad Keck
I am using an httpservice to retrieve an XML document.  I want to find 
out the httpstatus I am receiving on the call to handle errors. 
(Specifically, I'm looking for a 30x code to handle a redirect if the 
session has timed out.)  

It does not seem that the either the fault or result events from 
httpservice.send() contain this information.  I also see that there is 
an HTTPStatusEvent in flex, but it does not appear that httpservices 
trigger this event.  

Can anyone help?  Thank you.

-Brad Keck



[flexcoders] Re: Choosing Components Dynamically

2008-08-22 Thread mknuttall
Thanks. I should be fine with the verboseness. I've coded this type of
thing in Java (Swing and SWT) and something like it in WinForms.
Actually, it is not to bad in Java. Pretty clean code.

Any examples?

--- In flexcoders@yahoogroups.com, "Richard Rodseth" <[EMAIL PROTECTED]> wrote:
>
> You can certainly build a view dynamically, because any component can be
> instantiated in ActionScript. Depending how you structure things,
the code
> may become quite a bit more verbose than you are accustomed to.
> 
> I believe there are some restrictions on "creation by name" in
ActionScript,
> but if the types of the components are known at compile time, a simple
> switch statement will do the trick.
> 
> On Fri, Aug 22, 2008 at 2:32 PM, mknuttall <[EMAIL PROTECTED]> wrote:
> 
> >   Has anyone or does anyone know if it is possible to choose what
> > component to display dynamically? For instance if one is displaying a
> > questionnaire, questions are Text, Yes No, List and Date and are not
> > know what they are or what the order is till runtime.
> >
> >  
> >
>




[flexcoders] PieSeries label question- need more formatting control of the label.

2008-08-22 Thread icodeflex
Hello-

I have a requirement to style the text in a PieSeries label to display
with mixed sized text, colors, and fonts. I am thinking the solution
lies in a  labelRenderer for the PieSeries- which as far as I can tell
isn't supported in the "out of the box" PieSeries.

Has anyone done this before or can point me in the right direction
before I start coding this up myself?

Many thanks!
Dustin




[flexcoders] Re: DataGridColumn trouble...

2008-08-22 Thread mknuttall
Because then it wouldn't be a VO.  :)

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> If you are usign VOs, why not just add properties and have the VO do the
> calculation internally, and forget the labelFunctions entirely?
> 
> Tracy
> 




[flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-22 Thread mknuttall
I guess i need to use tortoise more often. I use Eclipse and SVN daily
and have for years. I don't see the problem (maybe i am lucky).  

In Eclipse Ganymede, there is now a built in SVN client. It used to be
a separate product - http://www.eclipse.org/subversive/

I also noticed that people have issues with large files. I suggest
that for large files you do some refactoring and come up with smaller
files. The smaller the better especially if you have large development
teams and/or are supporting multiple releases.


--- In flexcoders@yahoogroups.com, "Howard Fore" <[EMAIL PROTECTED]> wrote:
>
> Kelly, what's the bug number on that?
> 
> On Fri, Aug 22, 2008 at 6:45 PM, Kelly <[EMAIL PROTECTED]> wrote:
> 
> >  Yea, I wish they would bring Subclipse up to par with Tortoise.
> >
> > I work on Linux so there is no Tortoise either.
> >
> > I will vote for your bug if you will vote for the Templates
enhancement.
> >
> > Not having templates pisses me off continuously.
> >
> 
> 
> 
> -- 
> Howard Fore, [EMAIL PROTECTED]
> "The universe tends toward maximum irony. Don't push it." - Jeff Atwood
>




Re: [flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-22 Thread Howard Fore
Kelly, what's the bug number on that?

On Fri, Aug 22, 2008 at 6:45 PM, Kelly <[EMAIL PROTECTED]> wrote:

>  Yea, I wish they would bring Subclipse up to par with Tortoise.
>
> I work on Linux so there is no Tortoise either.
>
> I will vote for your bug if you will vote for the Templates enhancement.
>
> Not having templates pisses me off continuously.
>



-- 
Howard Fore, [EMAIL PROTECTED]
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


RE: [flexcoders] Re: question about AMF

2008-08-22 Thread Alex Harui
It is essentailly the same problem.  Each module has a definition but
only one can be translated via AMF and if it is the wrong one you have
trouble.  So you have to use the same techniques to only have one
definition of any class used by AMF

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tchredeemed
Sent: Friday, August 22, 2008 12:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: question about AMF

 

Alex, after looking through the ppt, I do not know if this is the same
issue.

It seems to me the issue you pointed me to is when the two modules
want to share a portion of code. I.E. a singleton enforced class.

My problem seems to be different, I am actually trying to instantiate
code that has no relation between the separate modules. I am not sure
if that would cause the problem or not...

I don't understand why it would give me this error, when I am
basically saying the same thing as if I were to say

for each( var s:String in event.result )

after all DataVO is just an abstract data type.. right?

--- In flexcoders@yahoogroups.com 
, Maciek Sakrejda <[EMAIL PROTECTED]> wrote:
>
> http://www.google.com/search?q=alex+harui+blog
 
> 
> 
> -Original Message-
> From: tchredeemed <[EMAIL PROTECTED]>
> Reply-To: flexcoders@yahoogroups.com
 
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: question about AMF
> Date: Fri, 22 Aug 2008 17:57:47 -
> 
> Where is your blog at?
> 
> --- In flexcoders@yahoogroups.com
 , "Alex Harui"  wrote:
> >
> > Shared code problem. See modules presentation on my blog for more
> > details.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com

[mailto:flexcoders@yahoogroups.com 
]
> On
> > Behalf Of tchredeemed
> > Sent: Friday, August 22, 2008 9:47 AM
> > To: flexcoders@yahoogroups.com 

> > Subject: [flexcoders] question about AMF
> > 
> > 
> > 
> > I have a VO called DataVO.
> > 
> > I have two modules that call an AMF service, which returns an array
of
> > VO's.
> > 
> > Every once in a while, I get the error: 
> > TypeError: Error #1034: Type Coercion failed: cannot convert
> > com.gh.vo::[EMAIL PROTECTED] to com.gh.vo.DataVO.
> > 
> > However, I can only get the compiler to throw this error in 1
> situation:
> > 
> > I start the app, load Module 2, than Module 1, than go back to
Module
> > 2. After I arrive back at Module 2, it throws the error on the
> > resultHandler of the RemoveObject service, in code that looks like
> this:
> > 
> > private function resultHandler( event:ResultEvent ):void {
> > var hash:Array = new Array();
> > for each( var data:DataVO in event.result ){
> > hash.push(data);
> > }
> > dataAC = new ArrayCollection( hash );
> > }
> > 
> > It breaks on the for each() line.
> > Any ideas?
> >
>

 



[flexcoders] User resizable TextArea

2008-08-22 Thread Dale Cook
Apart from using the ObjectHandles library to achieve this, does
anyone know of a TextArea replacement that can be resized by the user?

Dale



Re: [flexcoders] Accessing button properties from the ToggleButtonBar

2008-08-22 Thread Michael Schmalle
Opps.

it's friday

it's not
var button:Button = myBar.getItemAt(index) as Button

it's

var button:Button = myBar.getChildAt(index) as Button

Mike

On Fri, Aug 22, 2008 at 6:59 PM, Michael Schmalle
<[EMAIL PROTECTED]>wrote:

> Hi,
>
> The button bar is just a normal container that reacts to a dataProvider
> collection event system.
>
> If you know the index of the dataProvider item, just use;
>
> var button:Button = myBar.getItemAt(index) as Button
> button.enabled = false;
>
> I can't remember if NavBar has a method that actually returns a button.
>
> Mike
>
>
> On Fri, Aug 22, 2008 at 2:33 PM, fumeng5 <[EMAIL PROTECTED]> wrote:
>
>>   Hi.
>>
>> I want to set properties for each element in my ToggleButtonBar's
>> dataprovider, i.e. enabled, visible, etc...
>>
>> Something like this:
>>
>> (myToggleButtonBar.dataProvider.getItemAt(0) as Button).enabled = false;
>>
>> But that doesn't work.
>>
>> I know the dataprovider of a ToggleButtonBar has to be a String,
>> Array, or IList. I already tried setting the dataprovider to be a
>> collection of buttons.
>>
>> So, is it possible to set button properties on my ToggleButtonBar?
>>
>> Thanks for any tips,
>>
>> fumeng.
>>
>>  
>>
>
>
>
> --
> Teoti Graphix, LLC
> http://www.teotigraphix.com
>
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
>
> You can find more by solving the problem then by 'asking the question'.
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Accessing button properties from the ToggleButtonBar

2008-08-22 Thread Michael Schmalle
Hi,

The button bar is just a normal container that reacts to a dataProvider
collection event system.

If you know the index of the dataProvider item, just use;

var button:Button = myBar.getItemAt(index) as Button
button.enabled = false;

I can't remember if NavBar has a method that actually returns a button.

Mike

On Fri, Aug 22, 2008 at 2:33 PM, fumeng5 <[EMAIL PROTECTED]> wrote:

>   Hi.
>
> I want to set properties for each element in my ToggleButtonBar's
> dataprovider, i.e. enabled, visible, etc...
>
> Something like this:
>
> (myToggleButtonBar.dataProvider.getItemAt(0) as Button).enabled = false;
>
> But that doesn't work.
>
> I know the dataprovider of a ToggleButtonBar has to be a String,
> Array, or IList. I already tried setting the dataprovider to be a
> collection of buttons.
>
> So, is it possible to set button properties on my ToggleButtonBar?
>
> Thanks for any tips,
>
> fumeng.
>
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Preloader in a big shared library, bad idea?

2008-08-22 Thread Doug McCune
aha, I see. I think you should be good to go. As far as I know, the
preloader will get loader first and that will get added to the stage and run
while the rest of the SWF loads. Just make sure you don't use any huge
classes within your Preloader (ie don't use UIComponent or any Flex controls
in the preloader).

Doug

On Fri, Aug 22, 2008 at 2:53 PM, Baz <[EMAIL PROTECTED]> wrote:

>   Thanks Doug,
>
> Lets say that a new application links to my 5mb library and at one point or
> another it ends up using 3mb worth of components, including the tiny
> preloader. At the time of preloading, does it only load the 5kb needed to
> preload, even though later on it needs 3mb? Or does it load the whole 3mb,
> then run the preloader? If it is the latter, then I clearly need a separate
> "preloader" library because it doesn't make sense to load 3mb to then run a
> loader.
>
> Cheers,
> Baz
>
>
>
> On Fri, Aug 22, 2008 at 2:13 PM, Doug McCune <[EMAIL PROTECTED]> wrote:
>
>>   Only what you use in your app will be linked into the SWF, so if the
>> preloader is all that you use then none of the other bloat will make it into
>> the SWF file. So your library SWC might be 5 megs, but if all you use is the
>> tiny preloader then your swf file won't be big... well, unless you think all
>> Flex swfs are big... :)
>>
>> Doug
>>
>>
>> On Fri, Aug 22, 2008 at 1:57 PM, Baz <[EMAIL PROTECTED]> wrote:
>>
>>>   Hi,
>>>
>>> I have a "Flex Library Project" that is the foundation for all other flex
>>> projects in our department. It includes complex mxml components, themes,
>>> fonts, images, assets, etc. - heavy stuff. I am now working on a custom
>>> preloader that I would like all the applications to share and use. The
>>> question is, should I create separate "Flex Library Project" just for the
>>> preloader to keep the size at an absolute minimum, or is flex capable of
>>> loading only the preloader bits during preloading if I include it in my big
>>> fat library?
>>>
>>> Thanks,
>>> Baz
>>>
>>>
>>>
>>>
>>
>  
>


Re: [flexcoders] Multiple viewstacks?

2008-08-22 Thread Fidel Viegas
On Fri, Aug 22, 2008 at 8:49 PM, Tracy Spratt <[EMAIL PROTECTED]> wrote:
> Absolutely you can "nest" ViewStacks.  What "didn't work".

I second this. I have used it and it worked.

Fidel.


Re: [flexcoders] Preloader in a big shared library, bad idea?

2008-08-22 Thread Baz
Thanks Doug,

Lets say that a new application links to my 5mb library and at one point or
another it ends up using 3mb worth of components, including the tiny
preloader. At the time of preloading, does it only load the 5kb needed to
preload, even though later on it needs 3mb? Or does it load the whole 3mb,
then run the preloader? If it is the latter, then I clearly need a separate
"preloader" library because it doesn't make sense to load 3mb to then run a
loader.

Cheers,
Baz



On Fri, Aug 22, 2008 at 2:13 PM, Doug McCune <[EMAIL PROTECTED]> wrote:

>   Only what you use in your app will be linked into the SWF, so if the
> preloader is all that you use then none of the other bloat will make it into
> the SWF file. So your library SWC might be 5 megs, but if all you use is the
> tiny preloader then your swf file won't be big... well, unless you think all
> Flex swfs are big... :)
>
> Doug
>
>
> On Fri, Aug 22, 2008 at 1:57 PM, Baz <[EMAIL PROTECTED]> wrote:
>
>>   Hi,
>>
>> I have a "Flex Library Project" that is the foundation for all other flex
>> projects in our department. It includes complex mxml components, themes,
>> fonts, images, assets, etc. - heavy stuff. I am now working on a custom
>> preloader that I would like all the applications to share and use. The
>> question is, should I create separate "Flex Library Project" just for the
>> preloader to keep the size at an absolute minimum, or is flex capable of
>> loading only the preloader bits during preloading if I include it in my big
>> fat library?
>>
>> Thanks,
>> Baz
>>
>>
>>
>>
>  
>


Re: [flexcoders] Choosing Components Dynamically

2008-08-22 Thread Richard Rodseth
You can certainly build a view dynamically, because any component can be
instantiated in ActionScript. Depending how you structure things, the code
may become quite a bit more verbose than you are accustomed to.

I believe there are some restrictions on "creation by name" in ActionScript,
but if the types of the components are known at compile time, a simple
switch statement will do the trick.

On Fri, Aug 22, 2008 at 2:32 PM, mknuttall <[EMAIL PROTECTED]> wrote:

>   Has anyone or does anyone know if it is possible to choose what
> component to display dynamically? For instance if one is displaying a
> questionnaire, questions are Text, Yes No, List and Date and are not
> know what they are or what the order is till runtime.
>
>  
>


[flexcoders] Choosing Components Dynamically

2008-08-22 Thread mknuttall
Has anyone or does anyone know if it is possible to choose what
component to display dynamically?  For instance if one is displaying a
questionnaire, questions are Text, Yes No, List and Date and are not
know what they are or what the order is till runtime.



RE: [flexcoders] Re: Flex Builder Professional

2008-08-22 Thread Jim Hayes
>Yes that helps. Thank you. I am interested in using Eclipse 3.4 with
>Flex Builder. Anyone know whether the Flex Builder plugins work with 3.4?

Apparently it does : see

http://tech.groups.yahoo.com/group/flexcoders/message/122745

That's all I know, however (I use flexbuilder myself).

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__<>

Re: [flexcoders] Preloader in a big shared library, bad idea?

2008-08-22 Thread Doug McCune
Only what you use in your app will be linked into the SWF, so if the
preloader is all that you use then none of the other bloat will make it into
the SWF file. So your library SWC might be 5 megs, but if all you use is the
tiny preloader then your swf file won't be big... well, unless you think all
Flex swfs are big... :)

Doug

On Fri, Aug 22, 2008 at 1:57 PM, Baz <[EMAIL PROTECTED]> wrote:

>   Hi,
>
> I have a "Flex Library Project" that is the foundation for all other flex
> projects in our department. It includes complex mxml components, themes,
> fonts, images, assets, etc. - heavy stuff. I am now working on a custom
> preloader that I would like all the applications to share and use. The
> question is, should I create separate "Flex Library Project" just for the
> preloader to keep the size at an absolute minimum, or is flex capable of
> loading only the preloader bits during preloading if I include it in my big
> fat library?
>
> Thanks,
> Baz
>
>
>
>  
>


Re: [flexcoders] Template architecture

2008-08-22 Thread Richard Rodseth
This is working out quite nicely, but I'd like some validation. Rather than
using an init event as described here:

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

I have a property setter for the template contents (or a definition object
in my more complex cases). The setter calls invalidateProperties() (and sets
_contentsChanged) and an override of commitProperties() does the actual
child manipulation. An override of commitProperties doesn't feel too out of
place in an MXML file.

By including a "contentHolder" child (or several), I can do a
contentHolder.removeAllChildren(), otherwise I would have to save off
_oldContent in addition to _newContent.

At first I hadn't related my XML-driven template to these simple ones as
described in the livedocs, but it makes sense I think. Would you agree that
the docs above should suggest the commitProperties approach ?

On Fri, Aug 22, 2008 at 8:03 AM, Richard Rodseth <[EMAIL PROTECTED]> wrote:

> I'm a big fan of the Eclipse plug-in model, though it's been a while since
> I looked at how they do Perspectives, for example.
>
> I take Alex's point (I think), but I'm not sure we're on the same page
> regarding what is "the model". The end goal is that a configuration file
> (XML, say) could describe a layout by specifying a template and a bunch of
> things to place at various named locations in that template. By definition,
> the config file has to know the names of the locations, so I don't see how
> that is a violation of encapsulation. To validate the description, one needs
> that knowledge. I suppose if one had a layout editor (something I'm not
> planning at this time), once you'd filled in a template, it could persist
> the description, but then the layout editor would need that knowledge. The
> list of places you can put stuff *is* part (all) of the interface of the
> template.
>
> However, I am persuaded to make a template base that consumes a
> "description model". That's basically what I was doing in the DynamicLayout
> that contains (and creates) the template instance.
>
> Thanks for the input.
>
>
> On Thu, Aug 21, 2008 at 11:33 PM, Rick Winscot <[EMAIL PROTECTED]>wrote:
>
>>Just a .02 clink... Alex is recommending a hallmark architectural
>> pattern for building an application from constituent parts (
>> http://tinyurl.com/9js2e).  One of the
>> hurdles in implementing this in Flex has to deal with how creation policy
>> plays with loosely tied models; if it hasn't been touched yet – it doesn't
>> exist, visual updates fail, and runtime errors usually follow.
>>
>> On a couple occasions I had to resort to have the template base listen for
>> any data changes on the model and when data change events fire – to pull
>> those changes local and update internal bindable variables that are used in
>> the template and drive the UI. Duplication you say? Yes... sadly there is
>> duplication involved.
>>
>> Why do it this way? I've found that no matter how 'late' you try and
>> capture a data event... That there are times when controls like the view
>> stack just don't play nice. Fiddling with creationPolicy can help but
>> doesn't address the root cause. So... tight coupling within the template
>> with loose coupling to the model was a reasonable approach.
>>
>> Rick Winscot
>>
>>
>> On 8/22/08 12:27 AM, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>
>> creationCOmplete is a better bet, but pushing stuff into the template is
>> potentially bad design.  It means you know something about the template and
>> have broken encapsulation.  Other designs like model/view would have the
>> template pull from a data model.  Other designs would have an interface to
>> the template that abstracts what children do what.  That's how many of our
>> components work and they use the lifecycle events and methods to validate
>> properties "later"
>>
>>
>> --
>>
>> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]<[EMAIL 
>> PROTECTED]>
>> *On Behalf Of *Richard Rodseth
>> *Sent:* Thursday, August 21, 2008 2:28 PM
>> *To:* flexcoders@yahoogroups.com
>> *Subject:* [flexcoders] Template architecture
>>
>>
>> I'm prototyping a system where a view is built dynamically from an XML
>> description (converted to VOs). The description refers to a template
>> (hard-coded in MXML). The dynamic view observes the description (which is a
>> part of its model) , and creates a child (the template) and adds it as a
>> child. However, it also needs to "fill in" the template which involves
>> accessing some of its children by id (eg. template["slot1"],
>> template["slot2"] ).
>>
>> If I construct the template via new Template1(), the children are not yet
>> created. Their ids show up in the debugger, but the values are null. Should
>> I add a listener for creationComplete, or is this a case where callLater()
>> could be put to good effect?
>>
>>
>>
>>
>>   
>>
>
>


[flexcoders] Preloader in a big shared library, bad idea?

2008-08-22 Thread Baz
Hi,

I have a "Flex Library Project" that is the foundation for all other flex
projects in our department. It includes complex mxml components, themes,
fonts, images, assets, etc. - heavy stuff. I am now working on a custom
preloader that I would like all the applications to share and use. The
question is, should I create separate "Flex Library Project" just for the
preloader to keep the size at an absolute minimum, or is flex capable of
loading only the preloader bits during preloading if I include it in my big
fat library?

Thanks,
Baz


RE: [flexcoders] Re: DataGridColumn trouble...

2008-08-22 Thread Tracy Spratt
Also, you can use a single labelFunction for all columns if you want.
Don't think it will make any difference to what you are asking about,
just might be clearer code.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Hoff
Sent: Friday, August 22, 2008 3:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: DataGridColumn trouble...

 


I hear you Sefi,

However, looking at the DataGrid is like the "tail wagging the dog". 
The DataGrid is nothing more than a representation of the data,
calculated or not. Not only might it be a bit backwards, but you may
run into a race condition, by looking at what is displayed in the
DataGrid, as opposed to calculating the required column values again in
the diff column. Also, not all rows that are in the DataProvider exist
in the DataGrid; because of itemRenderer recycling.

Regardless, what I'm saying is similar to Tracy's suggestion; either
reuse the needed column calculation methods in the diff label function
(I can't imagine that this would add much overhead), pre-calculate the
column fields in your VO's, or derive a seperate collection from the raw
data; to be used for the dataProvider of the DataGrid.

Just a few suggestions,
-TH

--- In flexcoders@yahoogroups.com 
, "Sefi Ninio" <[EMAIL PROTECTED]> wrote:
>
> Hi Tim.
>
> I'm not worried about duplicating code, the calculations are already
> implemented in a different function, since the first two label
function use
> them. I want to save the computing time of doing the calculations
again...
>
> And I do want to look at the datagrid and not the data (unless I'm
missing
> something).
> The data is raw - meaning it is the data prior to the calculations.
> I want to have the data after the computations, and use it in the
third
> labelFunction...
>
> I'll try and explain a bit more the situation (a bit simplified):
>
> The raw data in the DataGrid dataprovider is VOs with various members,
Dates
> among them.
> The second column displays the startDate after calculations (made in
the
> second column's labelFunction).
> The third column displays the endDate after calculations (made in the
third
> column's labelFunction).
> The forth column should display a value based on the data of the
second and
> third columns, but I need the values AFTER the calculations and not
the raw
> data. That is why I need the data in the datagrid columns themselves
(since
> they are the computed data) and not the raw data in the
dataprovider...
>
> Hope that makes the situation clearer, hopefully will help you guys
help me
> :)
>
> Thanks,
> Sefi
>
> On Fri, Aug 22, 2008 at 7:42 PM, Tim Hoff [EMAIL PROTECTED] wrote:
>
> >
> > You don't want to look at the grid, you want to look at the data. My
> > suggestion would be to pull the complex calculations out of the
label
> > functions and put them in seperate functions; that are called by the
> > label functions. That way ou can re-use the calculations where
needed,
> > and not worry about duplicating code.
> >
> > -TH
> >
> >
> > --- In flexcoders@yahoogroups.com
  ,
"Sefi
> > Ninio" sefi.ninio@ wrote:
> > >
> > > Bump...
> > >
> > > Anyone? I'd appreciate any input or pointers to links...
> > >
> > > Thakns,
> > > Sefi
> > >
> > > On Fri, Aug 22, 2008 at 9:34 AM, Sefi Ninio sefi.ninio@ wrote:
> > >
> > > > Hi Tracy,
> > > >
> > > > I know I get the Item, and that's what I currently use.
> > > > The problem is (and I probably should have mentioned it), that
the
> > other
> > > > columns labelFunctions make a complex calculation themselves,
and I
> > am
> > > > reluctant to do it again in the third column labelFunction if
> > there's a way
> > > > to get to the already calculated values within the DataGrid.
> > > >
> > > > I also thought of keeping the calculation results in an external
> > map, but
> > > > there must be a simpler solution...
> > > > I can't believe there is no way to get from the DataGridColumn
to
> > the grid
> > > > itself.
> > > >
> > > > Sefi
> > > >
> > > >
> > > > On Fri, Aug 22, 2008 at 2:53 AM, Tracy Spratt [EMAIL PROTECTED]:
> >
> > > >
> > > >> labelFunction gets two arguments. One is a reference to the
> > *entire*
> > > >> dataProvider item, the other to the dataGridColumn. Since you
have
> > a
> > > >> reference to the whole item, you can easily build your return
> > string.
> > > >>
> > > >>
> > > >>
> > > >> Tracy
> > > >>
> > > >>
> > > >> --
> > > >>
> > > >> *From:* flexcoders@yahoogroups.com
 

> > [mailto:flexcoders@yahoogroups.com
  ]
*On
> > > >> Behalf Of *Sefi Ninio
> > > >> *Sent:* Thursday, August 21, 2008 4:15 PM
> > > >> *To:* flexcoders@yahoogroups.com
  
> > > >> *Subject:* [flexcoders] DataGridColumn trouble...
> > > >>
> > > >>
> > > >>
> > > >> Hi.
> > > >>

[flexcoders] Re: Flex Builder Professional

2008-08-22 Thread George
--- In flexcoders@yahoogroups.com, "Jim Hayes" <[EMAIL PROTECTED]> wrote:
>
> My copy of FB pro (just updated to 3.1) shows this :
> 
> Version: 3.3.1.R33x_r20070911-_19UEkpF-B7Uh2hKy75y
> Build id: M20070921-1145
> 
> as the version of eclipse.
> 
> I have Mylyn running as part of whatever I did to install subversion
access some months ago(the details of which I forget I'm afraid)
> 
> is Mantis the dotproject "issue tracker" or something completely
different in the context of Eclipse? I expect I show my ignorance here!
> 
Yes that helps. Thank you. I am interested in using Eclipse 3.4 with
Flex Builder. Anyone know whether the Flex Builder plugins work with 3.4?



RE: [flexcoders] Re: Error styling datagrids

2008-08-22 Thread Alex Harui
Actually, it is a moldy old acorn of a comment, but it remains true.

 

You are welcome to submit an enhancement request and even propose how
you'd like to see the API for it and/or write and submit the code
changes.  But these days, I'm trying to keep things from growing too
big.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pixelgeek
Sent: Friday, August 22, 2008 10:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Error styling datagrids

 

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:

> Eventually, it would. If we added every feature requested by our
> customers, datagrid alone would be over 1MB of SWF and not run very
> fast.

No-one ever likes hearing that as a response to a feature request or
comment especially when its pretty basic feature that is really
shocking by its absence. 

If I had asked for the ability to embed Flash video in a cell as a
background then that is one thing but when I point out that basic
styling features are missing from the datagrid its a bit odd for you
to bring up this hoary old chestnut of a comment.

 



[flexcoders] Re: question about AMF

2008-08-22 Thread tchredeemed
Alex, after looking through the ppt, I do not know if this is the same
issue.

It seems to me the issue you pointed me to is when the two modules
want to share a portion of code. I.E. a singleton enforced class.

My problem seems to be different, I am actually trying to instantiate
code that has no relation between the separate modules.  I am not sure
if that would cause the problem or not...

I don't understand why it would give me this error, when I am
basically saying the same thing as if I were to say

for each( var s:String in event.result )

after all DataVO is just an abstract data type.. right?

--- In flexcoders@yahoogroups.com, Maciek Sakrejda <[EMAIL PROTECTED]> wrote:
>
> http://www.google.com/search?q=alex+harui+blog
> 
> 
> -Original Message-
> From: tchredeemed <[EMAIL PROTECTED]>
> Reply-To: flexcoders@yahoogroups.com
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: question about AMF
> Date: Fri, 22 Aug 2008 17:57:47 -
> 
> Where is your blog at?
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > Shared code problem. See modules presentation on my blog for more
> > details.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On
> > Behalf Of tchredeemed
> > Sent: Friday, August 22, 2008 9:47 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] question about AMF
> > 
> > 
> > 
> > I have a VO called DataVO.
> > 
> > I have two modules that call an AMF service, which returns an array of
> > VO's.
> > 
> > Every once in a while, I get the error: 
> > TypeError: Error #1034: Type Coercion failed: cannot convert
> > com.gh.vo::[EMAIL PROTECTED] to com.gh.vo.DataVO.
> > 
> > However, I can only get the compiler to throw this error in 1
> situation:
> > 
> > I start the app, load Module 2, than Module 1, than go back to Module
> > 2. After I arrive back at Module 2, it throws the error on the
> > resultHandler of the RemoveObject service, in code that looks like
> this:
> > 
> > private function resultHandler( event:ResultEvent ):void {
> > var hash:Array = new Array();
> > for each( var data:DataVO in event.result ){
> > hash.push(data);
> > }
> > dataAC = new ArrayCollection( hash );
> > }
> > 
> > It breaks on the for each() line.
> > Any ideas?
> >
>




RE: [flexcoders] Tabbing into Combobox in Datagrid

2008-08-22 Thread Alex Harui
If you wrap CB in a VBox, your renderer is going to be very heavy and
slow as VBox measures it and tries to layout a stack of things but the
stack has only one thing in it.  Also, the VBox is not an
iFocusManagerComponent so it won't be assigned focus.  You'd be better
off just subclassing CB, but you can wire up the VBox to be an
IFocusManagerComponent if you really need to

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Chilcoat, Dee
Sent: Friday, August 22, 2008 12:13 PM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] Tabbing into Combobox in Datagrid

 

I have a combobox in a cell in a datagrid.  Surrounding the cell with
the combobox in it, are cells with text fields.  I can tab from cell to
cell, but when I try to tab to the combobox, the cursor skips over it.
I want to be able to tab into the combobox.  Code for the datagrid is
below.  The OtherCodeRenderer creates the combobox. I tried setting
editable to true for that cell; the combobox gets changed to a text
field when I tab into it.I have included the code for the
OtherCodeRenderer below, also.  Any help will be appreciated.  Thank
you.

 







 


 


 










OtherCodeRenderer

 

http://www.macromedia.com/2003/mxml"; marginLeft="0"
marginBottom="0" marginRight="0" marginTop="0" height="100%"
width="100%" backgroundAlpha="0" verticalAlign="middle"
horizontalAlign="center" > 

 







 



 

 

Dee A. Chilcoat

Enterprise Web Application Development

University of California San Diego

[EMAIL PROTECTED]

(858) 534-0719

 



RE: [flexcoders] Re: XMLList to ArrayCollection

2008-08-22 Thread Gordon Smith
I'm not that familiar with XMLListCollection, but presumably the
advantage of using it if you're starting with XML is in not having to
convert your data to another form.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sdl1326
Sent: Thursday, August 21, 2008 8:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: XMLList to ArrayCollection

 

Honestly, I do not know as I have not worked with XMLListCollections.
I just need to be able to access the data easily and have only used
Array Collections. It looks like an XMLListCollection might work. Is
there a benefit of using one over the other?
--- In flexcoders@yahoogroups.com 
, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> Could you use an XMLListCollection instead of an ArrayCollection?
> 
> 
> 
> Gordon Smith
> 
> Adobe Flex SDK Team
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Tracy Spratt
> Sent: Thursday, August 21, 2008 4:52 PM
> To: flexcoders@yahoogroups.com  
> Subject: RE: [flexcoders] XMLList to ArrayCollection
> 
> 
> 
> Sure, but you have to do it manually. Loop over the nodes, then use
the
> attributes() to loop over the attributes. If I recall correctly,
> attribute[n] will give you the attr value, and attribute[n].name()
will
> give you the attr name. XML.name() (or localName()) will give you the
> name of the node.
> 
> 
> 
> Tracy
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of sdl1326
> Sent: Thursday, August 21, 2008 5:56 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] XMLList to ArrayCollection
> 
> 
> 
> I am retrieving the following xml via httpsService with the result
> format being 'e4x'. 
> 
> 
>  user="AA">Q3
>  user="AA">Q4
>  user="AA">Q3
>  user="BB">Q4
>  user="BB">Q3
>  user="CC">Q3
>  user="CC">Q3
>  user="CC">Q3
>  
> 
> What's the best way to convert an XMLList to an ArrayCollection? Is it
> possible to do so without knowing the names of the attributes?
> 
> Thanks for the assistance.
>

 



RE: [flexcoders] htmlText: LI element, replace bullet w/ image?

2008-08-22 Thread Gordon Smith
In the Language Reference for the htmlText property, it says:

 

The  tag places a bullet in front of the text that it encloses.
Note: Because Flash Player does not recognize ordered and unordered list
tags ( and , they do not modify how your list is rendered. All
lists are unordered and all list items use bullets.

 

So I don't think the Flash Player supports displaying anything except a
bullet if you're using . Maybe you can use an  to display your
custom image before a .

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of baton22
Sent: Thursday, August 21, 2008 3:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] htmlText: LI element, replace bullet w/ image?

 


Hi,
I am using the htmlText attribute to populate a LI bullet list of items
in a
TextArea.

I would like to replace the circle bullets with a small custom image.

I tried using the CSS style: list-style-image:
url('/assets/img/myImage.png') to no avail. Does anyone have an example
of
this working in flex?
-- 
View this message in context:
http://www.nabble.com/htmlText%3A-LI-element%2C-replace-bullet-w--image-
-tp19098343p19098343.html
 
Sent from the FlexCoders mailing list archive at Nabble.com.

 



[flexcoders] Re: DataGridColumn trouble...

2008-08-22 Thread Tim Hoff

I hear you Sefi,

However, looking at the DataGrid is like the "tail wagging the dog". 
The DataGrid is nothing more than a representation of the data,
calculated or not.  Not only might it be a bit backwards, but you may
run into a race condition, by looking at what is displayed in the
DataGrid, as opposed to calculating the required column values again in
the diff column.  Also, not all rows that are in the DataProvider exist
in the DataGrid; because of itemRenderer recycling.

Regardless, what I'm saying is similar to Tracy's suggestion; either
reuse the needed column calculation methods in the diff label function
(I can't imagine that this would add much overhead), pre-calculate the
column fields in your VO's, or derive a seperate collection from the raw
data; to be used for the dataProvider of the DataGrid.

Just a few suggestions,
-TH


--- In flexcoders@yahoogroups.com, "Sefi Ninio" <[EMAIL PROTECTED]> wrote:
>
> Hi Tim.
>
> I'm not worried about duplicating code, the calculations are already
> implemented in a different function, since the first two label
function use
> them. I want to save the computing time of doing the calculations
again...
>
> And I do want to look at the datagrid and not the data (unless I'm
missing
> something).
> The data is raw - meaning it is the data prior to the calculations.
> I want to have the data after the computations, and use it in the
third
> labelFunction...
>
> I'll try and explain a bit more the situation (a bit simplified):
>
> The raw data in the DataGrid dataprovider is VOs with various members,
Dates
> among them.
> The second column displays the startDate after calculations (made in
the
> second column's labelFunction).
> The third column displays the endDate after calculations (made in the
third
> column's labelFunction).
> The forth column should display a value based on the data of the
second and
> third columns, but I need the values AFTER the calculations and not
the raw
> data. That is why I need the data in the datagrid columns themselves
(since
> they are the computed data) and not the raw data in the
dataprovider...
>
> Hope that makes the situation clearer, hopefully will help you guys
help me
> :)
>
> Thanks,
> Sefi
>
> On Fri, Aug 22, 2008 at 7:42 PM, Tim Hoff [EMAIL PROTECTED] wrote:
>
> >
> > You don't want to look at the grid, you want to look at the data. My
> > suggestion would be to pull the complex calculations out of the
label
> > functions and put them in seperate functions; that are called by the
> > label functions. That way ou can re-use the calculations where
needed,
> > and not worry about duplicating code.
> >
> > -TH
> >
> >
> > --- In flexcoders@yahoogroups.com ,
"Sefi
> > Ninio" sefi.ninio@ wrote:
> > >
> > > Bump...
> > >
> > > Anyone? I'd appreciate any input or pointers to links...
> > >
> > > Thakns,
> > > Sefi
> > >
> > > On Fri, Aug 22, 2008 at 9:34 AM, Sefi Ninio sefi.ninio@ wrote:
> > >
> > > > Hi Tracy,
> > > >
> > > > I know I get the Item, and that's what I currently use.
> > > > The problem is (and I probably should have mentioned it), that
the
> > other
> > > > columns labelFunctions make a complex calculation themselves,
and I
> > am
> > > > reluctant to do it again in the third column labelFunction if
> > there's a way
> > > > to get to the already calculated values within the DataGrid.
> > > >
> > > > I also thought of keeping the calculation results in an external
> > map, but
> > > > there must be a simpler solution...
> > > > I can't believe there is no way to get from the DataGridColumn
to
> > the grid
> > > > itself.
> > > >
> > > > Sefi
> > > >
> > > >
> > > > On Fri, Aug 22, 2008 at 2:53 AM, Tracy Spratt [EMAIL PROTECTED]:
> >
> > > >
> > > >> labelFunction gets two arguments. One is a reference to the
> > *entire*
> > > >> dataProvider item, the other to the dataGridColumn. Since you
have
> > a
> > > >> reference to the whole item, you can easily build your return
> > string.
> > > >>
> > > >>
> > > >>
> > > >> Tracy
> > > >>
> > > >>
> > > >> --
> > > >>
> > > >> *From:* flexcoders@yahoogroups.com

> > [mailto:flexcoders@yahoogroups.com ]
*On
> > > >> Behalf Of *Sefi Ninio
> > > >> *Sent:* Thursday, August 21, 2008 4:15 PM
> > > >> *To:* flexcoders@yahoogroups.com 
> > > >> *Subject:* [flexcoders] DataGridColumn trouble...
> > > >>
> > > >>
> > > >>
> > > >> Hi.
> > > >>
> > > >> I have a DataGrid, and a few DataGridColumns in it.
> > > >> One of them has a labelFunction, that should return a value
that
> > depends
> > > >> on the values of two of the other columns.
> > > >>
> > > >> example:
> > > >> | name | start | end | diff |
> > > >> | xxx | 5 | 7 | 2 |
> > > >> | yyy | 10 | 100 | 90 |
> > > >>
> > > >> etc...
> > > >>
> > > >> I can't find a way to get a reference to the DataGrid or the
other
> > > >> DataGridColumns inside it from the labelFunction - using it's
> > DataGridColumn
> > > >> argument...
> > > >>
> > > >> Any help would be greatly appreciated..
> > > >

RE: [flexcoders] Binding problem - not refreshing after Array.push

2008-08-22 Thread Gordon Smith
It's all about architectural layering:

 

   Flex classes (mx.*)

   --

   Flash class (flash.*)

   --

   Core AS3 classes (int, String, Array, Date, etc.)

 

Databinding is triggered by an event getting dispatched. Events are a
Flash Player concept. ArrayCollection is a Flex class that knows how to
dispatch events. Array is a class of the core AS3 language, which
doesn't know how to dispatch events.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claudio M. E. Bastos Iorio
Sent: Friday, August 22, 2008 1:31 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Binding problem - not refreshing after
Array.push

 

I have the same issue, binding an array. Can you explain or point to any
link/resource/reference that explains why an arraycollection is needed
for binding instead array?

BTW, is there any other type not available to bind?

TIA

 

_

Claudio M. E. Bastos Iorio

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kenneth Sutherland
Sent: Friday, August 22, 2008 5:17 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Binding problem - not refreshing after
Array.push

 

You need to be using an arraycollection for bindable data, not the array
class.

 

Kenneth.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of piotrchruscielewski
Sent: 22 August 2008 09:07
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Binding problem - not refreshing after Array.push

 

Hi

I have some problems with data binding.

I make an array 
[Bindable]
var ar:Array 
and some DataGrid with datarovider=ar

When I will pass this array to some other class - which will push new 
object to it - my DataGrid doesn`t refresh.

So I need to take care of it manualy.

Is this normal or have I forgot about something ?

Regards

Piotr Chruscielewski



Disclaimer 



This electronic message contains information which may be privileged and
confidential. The information is intended to be for the use of the
individual(s) or entity named above. If you are not the intended
recipient, be aware that any disclosure, copying, distribution or use of
the contents of this information is prohibited. If you have received
this electronic message in error, please notify us by telephone on 0131
476 6000 and delete the material from your computer.
Registered in Scotland number: SC 172507.
Registered office address: Quay House 142 Commercial Street Edinburgh
EH6 6LB.

This email message has been scanned for viruses by Mimecast.



 



Re: [flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-22 Thread Howard Fore
On Fri, Aug 22, 2008 at 3:39 PM, Dmitri Girski <[EMAIL PROTECTED]> wrote:

> But we also have guys on Macs and they don't have
> it. All stuff I tried for OS X is very undeveloped. And the command
> line option is too hard for for them.
>

Which SVN tools have you tried on the Mac? The only one I have any time with
is svnx. For the amount to time I've used it, it wasn't too bad. The only
problem I've had was when the repository was using a self-signed SSL
certificate, then I had to connect via command line and import the cert
before the GUI would work.

Have you tried any of the commercial products? I dimly remember a tool that
was doing the same sort of integration that Tortoise does but I also didn't
like it for some now forgotten reason.


-- 
Howard Fore, [EMAIL PROTECTED]
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


[flexcoders] Re: protecting swc?

2008-08-22 Thread ahmad_eldardiry
Thank you actionscript_czar for detailed answer.

I don't currently intend to sell the source code, but I just want to
make a swc which does not accidently (or intentionly) show its source
code to Flex Builder users .

I know ASV does reveal swf source code, but at least I want the
minimum level of security for swc, the one which doesn't allow regular
users to see the source code right in front of them just by debugging
their applications!

I already sold swc component (as2) knowing that it could be decompiled
by tools like ASV.

For the current swc, I just used the documented component compiler
samples (No RSL). Something like eg.:

compc -source-path . -include-classes [Class 1] [Class 2] [...] [Class
n] -output com/mywebsite/mycomponent.swc

Does that link the classes to the swc? How to prevent that?

Please advise.

Thank you.




--- In flexcoders@yahoogroups.com, "actionscript_czar" <[EMAIL PROTECTED]> 
wrote:
>
> First of all, if you don't distribute the source code with your SWC 
> file most people won't see it.  You probably saw it because you have 
> the library linked ( even if it was closed ) or the source files 
> linked to the SWC build path.
> 
> Secondly, SWC and SWF files can be easily decompiled using a tool 
> like Buraks Actionscript Viewer.  This however does not limit your 
> rights as the creator of the code, it just means people can get to 
> it.  Most people won't though as they have better things to do and 
> projects to get done.  Some will though and it may or may not be 
> worth the extra effort( think ROI ) to attempt to stop them.
> 
> I think this is the reason that some companies offer to send the 
> source as well ( but limit your priveleges with the source in the 
> license ) for a premium over the price of just the component alone.  
> This might be smarter. It gives people a legal way to get the source 
> for your components so they can push your components past their 
> initial design constraints while giving you more cash for your work.
> 
> Ultimately the decision is up to you.
> 
> --- In flexcoders@yahoogroups.com, "ahmad_eldardiry" 
>  wrote:
> >
> > I forgot to mention that when I pressed the debug button, a dialogue
> > box showed with a "This file is not inside a project, many Flex
> > builder features will be disabled" message.
> > 
> > Thank you.
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "ahmad_eldardiry"
> >  wrote:
> > >
> > > I'm a flex beginner, and I'm making a flex component (.swc) and I 
> want
> > > to sell it. While I was testing it within an AIR application on 
> Flex
> > > Builder 3, an error ocurred, so I thought I can use the debugger 
> (It
> > > works well on Flex compiler).
> > > 
> > > When I did try to debug the application, the debugger actualy
> > > decompressed the output swf and opened one of the classes 
> contained
> > > inside my .swc to point to the line having the error!!!
> > > 
> > > So, now I can see my source code (not to mention the variables and
> > > objects listing inside the variables tab) inside the so thought
> > > 'protected' .swc, without any external decompiler, but within the 
> Flex
> > > builder 3 itself!
> > > 
> > > When I googled about it, I found only this similar note:
> > > 
> > >
> > http://clintm.esria.com/2007/05/11/linking-source-code-to-a-swc-in-
> flexbuilder/
> > > 
> > > If I was to sell this .swc, anybody can see my source code that 
> way,
> > > so is there any solution for this issue? Has anybody faced 
> something
> > > similar? Or is it even a known fact?
> > > 
> > > How can someone protect his flex components from flex builder 
> debugger?
> > > 
> > > Thank you.
> > >
> >
>




Re: [flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-22 Thread Howard Fore
It's not hard, I just see the same bugs you see.The only bug I've seen so
far is that the preferences option that should let you set the text for the
Compare doesn't actually change it in the FB3 Standalone version I'm
running.

And surely you can find something more worthy of making you happier than me
voting for the bug? Like maybe it's late in the day on Friday (here at
least) and almost time to forget about this for a few days? ;-)

On Fri, Aug 22, 2008 at 3:25 PM, Dmitri Girski <[EMAIL PROTECTED]> wrote:

> Is so hard just to vote for the bug ? You can make at least one person
> happier :)
>



-- 
Howard Fore, [EMAIL PROTECTED]
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


[flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-22 Thread Dmitri Girski
Hi Kelly

>Why don't you just use Tortoise Diff?

I use Tortoise SVN most of the time. Instead of Subclipse which sucks
and instead of internal diff which also sucks. Tortoise SVN is a
really great tool. But we also have guys on Macs and they don't have
it. All stuff I tried for OS X is very undeveloped. And the command
line option is too hard for for them. 


>And what the hell are you doing so many Diff's for?
>Do you constantly forget what code you just wrote?

Because it is a fairly large project, several developers are making
changes to the same files. Also, we have to maintain branches to keep
the released version for quick bugfixes, feature branches and trunk.
This stuff requires a lot of merging (damn Subclipse!) and a lot of
diffing which is a killer.

Cheers,
Dmitri.




RE: [flexcoders] Multiple viewstacks?

2008-08-22 Thread Tracy Spratt
Absolutely you can "nest" ViewStacks.  What "didn't work".

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of guillaumeracine
Sent: Friday, August 22, 2008 3:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Multiple viewstacks?

 

I want to know if this is possible because i tryed but it did not
work...

Lets say i have 4 main sections (so 4 viewstack child), if each of
those child as 4 sub sections, is it possible to implements them as
viewstack or i must use the add/remove child mecanism?

 



RE: [flexcoders] Re: DataGridColumn trouble...

2008-08-22 Thread Tracy Spratt
If you are usign VOs, why not just add properties and have the VO do the
calculation internally, and forget the labelFunctions entirely?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sefi Ninio
Sent: Friday, August 22, 2008 2:26 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: DataGridColumn trouble...

 

Hi Tim.

I'm not worried about duplicating code, the calculations are already
implemented in a different function, since the first two label function
use them. I want to save the computing time of doing the calculations
again...

And I do want to look at the datagrid and not the data (unless I'm
missing something).
The data is raw - meaning it is the data prior to the calculations.
I want to have the data after the computations, and use it in the third
labelFunction...

I'll try and explain a bit more the situation (a bit simplified):

The raw data in the DataGrid dataprovider is VOs with various members,
Dates among them.
The second column displays the startDate after calculations (made in the
second column's labelFunction).
The third column displays the endDate after calculations (made in the
third column's labelFunction).
The forth column should display a value based on the data of the second
and third columns, but I need the values AFTER the calculations and not
the raw data. That is why I need the data in the datagrid columns
themselves (since they are the computed data) and not the raw data in
the dataprovider...

Hope that makes the situation clearer, hopefully will help you guys help
me :)

Thanks,
Sefi

On Fri, Aug 22, 2008 at 7:42 PM, Tim Hoff <[EMAIL PROTECTED]
 > wrote:


You don't want to look at the grid, you want to look at the data. My
suggestion would be to pull the complex calculations out of the label
functions and put them in seperate functions; that are called by the
label functions. That way ou can re-use the calculations where needed,
and not worry about duplicating code.

-TH



--- In flexcoders@yahoogroups.com 
, "Sefi Ninio" <[EMAIL PROTECTED]> wrote:
>
> Bump...
>
> Anyone? I'd appreciate any input or pointers to links...
>
> Thakns,
> Sefi
>

> On Fri, Aug 22, 2008 at 9:34 AM, Sefi Ninio [EMAIL PROTECTED] wrote:
>
> > Hi Tracy,
> >
> > I know I get the Item, and that's what I currently use.
> > The problem is (and I probably should have mentioned it), that the
other
> > columns labelFunctions make a complex calculation themselves, and I
am
> > reluctant to do it again in the third column labelFunction if
there's a way
> > to get to the already calculated values within the DataGrid.
> >
> > I also thought of keeping the calculation results in an external
map, but
> > there must be a simpler solution...
> > I can't believe there is no way to get from the DataGridColumn to
the grid
> > itself.
> >
> > Sefi
> >
> >

> > On Fri, Aug 22, 2008 at 2:53 AM, Tracy Spratt [EMAIL PROTECTED]:


> >
> >> labelFunction gets two arguments. One is a reference to the
*entire*
> >> dataProvider item, the other to the dataGridColumn. Since you have
a
> >> reference to the whole item, you can easily build your return
string.
> >>
> >>
> >>
> >> Tracy
> >>
> >>
> >> --
> >>
> >> *From:* flexcoders@yahoogroups.com
 
[mailto:flexcoders@yahoogroups.com 
] *On
> >> Behalf Of *Sefi Ninio
> >> *Sent:* Thursday, August 21, 2008 4:15 PM
> >> *To:* flexcoders@yahoogroups.com
 
> >> *Subject:* [flexcoders] DataGridColumn trouble...
> >>
> >>
> >>
> >> Hi.
> >>
> >> I have a DataGrid, and a few DataGridColumns in it.
> >> One of them has a labelFunction, that should return a value that
depends
> >> on the values of two of the other columns.
> >>
> >> example:
> >> | name | start | end | diff |
> >> | xxx | 5 | 7 | 2 |
> >> | yyy | 10 | 100 | 90 |
> >>
> >> etc...
> >>
> >> I can't find a way to get a reference to the DataGrid or the other
> >> DataGridColumns inside it from the labelFunction - using it's
DataGridColumn
> >> argument...
> >>
> >> Any help would be greatly appreciated..
> >>
> >> Sefi
> >>
> >>
> >>
> >
> >
>

 

 



[flexcoders] Re: Accessing button properties from the ToggleButtonBar

2008-08-22 Thread fumeng5
found my own solution:

(myToggleButtonBar.getChildAt(index) as Button).enabled

thanks for listening. 

--- In flexcoders@yahoogroups.com, "fumeng5" <[EMAIL PROTECTED]> wrote:
>
> Hi.
> 
> I want to set properties for each element in my ToggleButtonBar's
> dataprovider, i.e. enabled, visible, etc...
> 
> Something like this:
> 
> (myToggleButtonBar.dataProvider.getItemAt(0) as Button).enabled = false;
> 
> But that doesn't work. 
> 
> I know the dataprovider of a ToggleButtonBar has to be a String,
> Array, or IList. I already tried setting the dataprovider to be a
> collection of buttons. 
> 
> So, is it possible to set button properties on my ToggleButtonBar?
> 
> Thanks for any tips,
> 
> fumeng.
>




[flexcoders] Tabbing into Combobox in Datagrid

2008-08-22 Thread Chilcoat, Dee
I have a combobox in a cell in a datagrid.  Surrounding the cell with the 
combobox in it, are cells with text fields.  I can tab from cell to cell, but 
when I try to tab to the combobox, the cursor skips over it.  I want to be able 
to tab into the combobox.  Code for the datagrid is below.  The 
OtherCodeRenderer creates the combobox. I tried setting editable to true for 
that cell; the combobox gets changed to a text field when I tab into it.I 
have included the code for the OtherCodeRenderer below, also.  Any help will be 
appreciated.  Thank you.














OtherCodeRenderer

http://www.macromedia.com/2003/mxml"; marginLeft="0" 
marginBottom="0" marginRight="0" marginTop="0" height="100%" width="100%" 
backgroundAlpha="0" verticalAlign="middle" horizontalAlign="center" >








Dee A. Chilcoat
Enterprise Web Application Development
University of California San Diego
[EMAIL PROTECTED]
(858) 534-0719


[flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-22 Thread Dmitri Girski
> Nope, That's how Eclipse and Beyond Compare have always interacted,
through  a plugin. 


Is so hard just to vote for the bug ? You can make at least one person
happier :)





RE: [flexcoders] Dynamic menu that reconfigures in realtime - ideas for approch?

2008-08-22 Thread Tracy Spratt
I suggest using XML for the Menu dataProvider, since both are inherently
hierarchical, plus XML gives you the e4x expression syntax for locating
nodes.  

 

The general way to modify a menu is to change the dataProvider.  You can
replace it completely, or use an e4x expression to find the node you
want, then set its attributes as needed.

 

This is pretty standard stuff, there should be some examples out there.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Howard Fore
Sent: Friday, August 22, 2008 9:59 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Dynamic menu that reconfigures in realtime -
ideas for approch?

 

Look at this:
http://blog.flexexamples.com/2008/03/12/using-a-combobox-to-filter-items
-in-a-datagrid-in-flex/
 .

They're using a datagrid and not a menu, but the concepts are the same.

On Fri, Aug 22, 2008 at 5:20 AM, karlkaki <[EMAIL PROTECTED]
 > wrote:

Hi all,

would be grateful for any ideas on how to approach the following task:

I would like to have a menu with clickable links that would change
according to for example which checkboxes the user has ticked.

For example: The user ticks checkboxes for the year 2006 and 2007 and
the vertical menu then shows the links for projects for that year.
Tick off one, and the menu reconfigures with the appropriate content.

Some thoughts I have is to read all project info from an xml-file into
an ArrayCollection to populate the menu.

The logic of displaying only part of the ArrayCollection in the menu
according to user selection is what I have problems figuring out.

Thanks in advance,

Karl




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
 ! Groups
Links


   (Yahoo! ID required)

   mailto:[EMAIL PROTECTED]
 






-- 
Howard Fore, [EMAIL PROTECTED]  
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood

 



[flexcoders] Re: Flex Builder Professional

2008-08-22 Thread actionscript_czar
I have FlexBuilder 3 running standalone that I use instead of 
installing eclipse.  I use Mylyn with it but instead of Mantis we use 
Jira and it seems to work fine.  As for eclipse version, mine says 
eclipse is version 3.3.1, but then again I've used the update 
mechanism to... well... update it.

--- In flexcoders@yahoogroups.com, "George" <[EMAIL PROTECTED]> wrote:
>
> Which version of Eclipse is delivered with Flex Builder 
Professional,
> and has anyone used the capabilities of MyLyn and Mantis with Flex
> Builder?
>




[flexcoders] Multiple viewstacks?

2008-08-22 Thread guillaumeracine
I want to know if this is possible because i tryed but it did not work...

Lets say i have 4 main sections (so 4 viewstack child), if each of
those child as 4 sub sections, is it possible to implements them as
viewstack or i must use the add/remove child mecanism?



RE: [flexcoders] [video included] Datagrid recycle issue? How can I 'force' it to re-render

2008-08-22 Thread Alex Harui
The renderers have a data property which gets refreshed under certain
situations.  They then follow the component lifecycle in updating their
display.   In theory the setter for the data property must be hit when
you see things go bad.  The DG has a makeRowsAndColumns method that
typically does the refresh.  It might be interesting to find out if and
why it gets called when things go bad.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alan
Sent: Friday, August 22, 2008 10:52 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] [video included] Datagrid recycle issue? How
can I 'force' it to re-render

 

Thanks for taking the time to respond,

 

I have been debugging it, but any other debugging suggestions would be
welcomed.

 

While debugging, I put a breakpoint at my data provider variable, and
the break point is tripped whenever new data is loaded, the datagrid is
instaciated etc...; however, the breakpoint is not tripped when that
phenomenon of the datagrid 'refreshing'  as in the video.  So it's not
accessing the data provider.  

 

Do you mind suggesingt some other events / variables I should  watch
while debugging.  

 

How can I see what events are being dispatched when I am interacting
with other UI objects -  can someone suggest a good in depth reference I
can read up on debugging with Eclipse.

 

Thanks

 

On Aug 22, 2008, at 1:24 PM, Alex Harui wrote:





 

You will have to debug your situation.  There's no way to tell from a
video what events are firing.  If the dataProvider or any of a number of
properties change, the DG will update all the rows.  The real question
is whether you've handled recycling correctly or if there is some other
problem.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alan
Sent: Friday, August 22, 2008 9:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] [video included] Datagrid recycle issue? How can I
'force' it to re-render

 

Link to video:

http://www.alanklement.com/download/datagrid.mov
 

I understand that the datagrid is recycling cells, makes sense. I've 
checked out Alex's blog, but can't find a solution to this situation.

Oddly enough, you can see that the datagrid refreshes correctly when I 
interact with display objects other than the grid itself.

What events are being fired by the other display objects that are 
causing the grid to 'refresh'.

Thanks for your time:

Alan

 

 

 

 



RE: [flexcoders] Flex Builder Professional

2008-08-22 Thread Jim Hayes
My copy of FB pro (just updated to 3.1) shows this :

Version: 3.3.1.R33x_r20070911-_19UEkpF-B7Uh2hKy75y
Build id: M20070921-1145

as the version of eclipse.

I have Mylyn running as part of whatever I did to install subversion access 
some months ago(the details of which I forget I'm afraid)

is Mantis the dotproject "issue tracker" or something completely different in 
the context of Eclipse? I expect I show my ignorance here!

hth

-Original Message-
From: flexcoders@yahoogroups.com on behalf of Howard Fore
Sent: Fri 22/08/2008 19:18
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex Builder Professional
 
I have used Mylyn with FB, to hit both bugzilla and trac repositories. As
soon as I get past some paperwork I'm going to try the connector to
Telelogic Change.

On Fri, Aug 22, 2008 at 1:31 PM, George <[EMAIL PROTECTED]> wrote:

> Which version of Eclipse is delivered with Flex Builder Professional,
> and has anyone used the capabilities of MyLyn and Mantis with Flex
> Builder?
>



-- 
Howard Fore, [EMAIL PROTECTED]
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__<>

[flexcoders] Accessing button properties from the ToggleButtonBar

2008-08-22 Thread fumeng5
Hi.

I want to set properties for each element in my ToggleButtonBar's
dataprovider, i.e. enabled, visible, etc...

Something like this:

(myToggleButtonBar.dataProvider.getItemAt(0) as Button).enabled = false;

But that doesn't work. 

I know the dataprovider of a ToggleButtonBar has to be a String,
Array, or IList. I already tried setting the dataprovider to be a
collection of buttons. 

So, is it possible to set button properties on my ToggleButtonBar?

Thanks for any tips,

fumeng. 



Re: [flexcoders] Re: DataGridColumn trouble...

2008-08-22 Thread Sefi Ninio
Hi Tim.

I'm not worried about duplicating code, the calculations are already
implemented in a different function, since the first two label function use
them. I want to save the computing time of doing the calculations again...

And I do want to look at the datagrid and not the data (unless I'm missing
something).
The data is raw - meaning it is the data prior to the calculations.
I want to have the data after the computations, and use it in the third
labelFunction...

I'll try and explain a bit more the situation (a bit simplified):

The raw data in the DataGrid dataprovider is VOs with various members, Dates
among them.
The second column displays the startDate after calculations (made in the
second column's labelFunction).
The third column displays the endDate after calculations (made in the third
column's labelFunction).
The forth column should display a value based on the data of the second and
third columns, but I need the values AFTER the calculations and not the raw
data. That is why I need the data in the datagrid columns themselves (since
they are the computed data) and not the raw data in the dataprovider...

Hope that makes the situation clearer, hopefully will help you guys help me
:)

Thanks,
Sefi

On Fri, Aug 22, 2008 at 7:42 PM, Tim Hoff <[EMAIL PROTECTED]> wrote:

>
> You don't want to look at the grid, you want to look at the data. My
> suggestion would be to pull the complex calculations out of the label
> functions and put them in seperate functions; that are called by the
> label functions. That way ou can re-use the calculations where needed,
> and not worry about duplicating code.
>
> -TH
>
>
> --- In flexcoders@yahoogroups.com , "Sefi
> Ninio" <[EMAIL PROTECTED]> wrote:
> >
> > Bump...
> >
> > Anyone? I'd appreciate any input or pointers to links...
> >
> > Thakns,
> > Sefi
> >
> > On Fri, Aug 22, 2008 at 9:34 AM, Sefi Ninio [EMAIL PROTECTED] wrote:
> >
> > > Hi Tracy,
> > >
> > > I know I get the Item, and that's what I currently use.
> > > The problem is (and I probably should have mentioned it), that the
> other
> > > columns labelFunctions make a complex calculation themselves, and I
> am
> > > reluctant to do it again in the third column labelFunction if
> there's a way
> > > to get to the already calculated values within the DataGrid.
> > >
> > > I also thought of keeping the calculation results in an external
> map, but
> > > there must be a simpler solution...
> > > I can't believe there is no way to get from the DataGridColumn to
> the grid
> > > itself.
> > >
> > > Sefi
> > >
> > >
> > > On Fri, Aug 22, 2008 at 2:53 AM, Tracy Spratt [EMAIL PROTECTED]:
>
> > >
> > >> labelFunction gets two arguments. One is a reference to the
> *entire*
> > >> dataProvider item, the other to the dataGridColumn. Since you have
> a
> > >> reference to the whole item, you can easily build your return
> string.
> > >>
> > >>
> > >>
> > >> Tracy
> > >>
> > >>
> > >> --
> > >>
> > >> *From:* flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com ] *On
> > >> Behalf Of *Sefi Ninio
> > >> *Sent:* Thursday, August 21, 2008 4:15 PM
> > >> *To:* flexcoders@yahoogroups.com 
> > >> *Subject:* [flexcoders] DataGridColumn trouble...
> > >>
> > >>
> > >>
> > >> Hi.
> > >>
> > >> I have a DataGrid, and a few DataGridColumns in it.
> > >> One of them has a labelFunction, that should return a value that
> depends
> > >> on the values of two of the other columns.
> > >>
> > >> example:
> > >> | name | start | end | diff |
> > >> | xxx | 5 | 7 | 2 |
> > >> | yyy | 10 | 100 | 90 |
> > >>
> > >> etc...
> > >>
> > >> I can't find a way to get a reference to the DataGrid or the other
> > >> DataGridColumns inside it from the labelFunction - using it's
> DataGridColumn
> > >> argument...
> > >>
> > >> Any help would be greatly appreciated..
> > >>
> > >> Sefi
> > >>
> > >>
> > >>
> > >
> > >
> >
>
>  
>


[flexcoders] Re: Error styling datagrids

2008-08-22 Thread pixelgeek
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:

> Eventually, it would.  If we added every feature requested by our
> customers, datagrid alone would be over 1MB of SWF and not run very
> fast.

No-one ever likes hearing that as a response to a feature request or
comment especially when its pretty basic feature that is really
shocking by its absence. 

If I had asked for the ability to embed Flash video in a cell as a
background then that is one thing but when I point out that basic
styling features are missing from the datagrid its a bit odd for you
to bring up this hoary old chestnut of a comment.



Re: [flexcoders] Flex Builder Professional

2008-08-22 Thread Howard Fore
I have used Mylyn with FB, to hit both bugzilla and trac repositories. As
soon as I get past some paperwork I'm going to try the connector to
Telelogic Change.

On Fri, Aug 22, 2008 at 1:31 PM, George <[EMAIL PROTECTED]> wrote:

> Which version of Eclipse is delivered with Flex Builder Professional,
> and has anyone used the capabilities of MyLyn and Mantis with Flex
> Builder?
>



-- 
Howard Fore, [EMAIL PROTECTED]
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


RE: [flexcoders] Re: Error styling datagrids

2008-08-22 Thread Alex Harui
The ADG packs a lot of advanced features the basic DG doesn't, but is
much larger and somewhat slower.  Nothing is free.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pixelgeek
Sent: Friday, August 22, 2008 10:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Error styling datagrids

 


> That already exists in AdvancedDataGrid.

Odd that this never came up when I was searching. None of the coders
here locally seem to have much experience and the solution that was
sent to me involved itemRenderers which I am currently using.

I'll have a look at that to see if it helps simplify my code.

Why is there an AdvancedDataGrid? Did someone at Macromedia/Adobe
attempt to fix issue with the basic DataGrid?

 



Re: [flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-22 Thread Howard Fore
On Fri, Aug 22, 2008 at 1:33 PM, Dmitri Girski <[EMAIL PROTECTED]> wrote:

> > Dude, what's the hassle? You install a plugin for Eclipse, point the
> plugin
> > at the BC executable and you're off...
>
> I just like when everything works. It worked before, now it is broken.
> And surprisingly, I am not happy with this fact, as instead of doing
> what I used to do I have to find some workarounds.


Nope, That's how Eclipse and Beyond Compare have always interacted, through
a plugin. It's not a workaround, it's using the builtin capabilities of the
platform to add functionality. The same way it's able to work with mxml and
actionscript. Do you think that Eclipse comes with code-hinting for MXML?
No, it's there because some bright Java programmers used the innate
functionality of Eclipse to allow it to do more than the stock distribution.


> All I'm saying is that you should lay the blame where it really
> belongs. It's not like Adobe wrote the Compare functionality in FB3,
> they're using
>
> So, when your car breaks, do you call directly Bosch AG and ask why
> this bloody alternator stopped working? I think you would simply send
> your car to the dealer you've bought the car from. :)


No, but that's irrelevant as we're not talking about my Passat, we're
talking about Flex Builder and Eclipse.


> FB is not a just an Eclipse & Flex SDK tied up together. Look at the
> Adobe bugs db - there are hundreds and hundreds of bugs just for the
> Builder itself.


Never said it was just the two things mashed together. I'm sure there are
issues with the code from Adobe. But those are the things that deserve to be
logged in the Adobe bugs db, not stuff about code they didn't write.

To turn your analogy around, if I use Flex Builder to write Java code and I
have an issue there, should I harangue Adobe about it? No. I should send the
issue to the Java EE team at the Eclipse Foundation.

-- 
Howard Fore, [EMAIL PROTECTED]
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


[flexcoders] How much data can the chart component support

2008-08-22 Thread kirilminevgroups
I am developing a flex chart and I ran some tests with flat xml file
containing 65 000 data points. 

When I tried loading all that data to simple plot chart my browser
crashed and therefore it will not load that many data points. I need
to find a way how to load over 100 000 data points on my flex chart at
once. Is that possible can someone help with some known limits of the
flex chart.

Any help will be greatly appreciated.



Re: [flexcoders] Re: question about AMF

2008-08-22 Thread Maciek Sakrejda
http://www.google.com/search?q=alex+harui+blog


-Original Message-
From: tchredeemed <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: question about AMF
Date: Fri, 22 Aug 2008 17:57:47 -

Where is your blog at?

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Shared code problem. See modules presentation on my blog for more
> details.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of tchredeemed
> Sent: Friday, August 22, 2008 9:47 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] question about AMF
> 
> 
> 
> I have a VO called DataVO.
> 
> I have two modules that call an AMF service, which returns an array of
> VO's.
> 
> Every once in a while, I get the error: 
> TypeError: Error #1034: Type Coercion failed: cannot convert
> com.gh.vo::[EMAIL PROTECTED] to com.gh.vo.DataVO.
> 
> However, I can only get the compiler to throw this error in 1
situation:
> 
> I start the app, load Module 2, than Module 1, than go back to Module
> 2. After I arrive back at Module 2, it throws the error on the
> resultHandler of the RemoveObject service, in code that looks like
this:
> 
> private function resultHandler( event:ResultEvent ):void {
> var hash:Array = new Array();
> for each( var data:DataVO in event.result ){
> hash.push(data);
> }
> dataAC = new ArrayCollection( hash );
> }
> 
> It breaks on the for each() line.
> Any ideas?
>




 




[flexcoders] Re: question about AMF

2008-08-22 Thread tchredeemed
Where is your blog at?

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Shared code problem.  See modules presentation on my blog for more
> details.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of tchredeemed
> Sent: Friday, August 22, 2008 9:47 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] question about AMF
> 
>  
> 
> I have a VO called DataVO.
> 
> I have two modules that call an AMF service, which returns an array of
> VO's.
> 
> Every once in a while, I get the error: 
> TypeError: Error #1034: Type Coercion failed: cannot convert
> com.gh.vo::[EMAIL PROTECTED] to com.gh.vo.DataVO.
> 
> However, I can only get the compiler to throw this error in 1 situation:
> 
> I start the app, load Module 2, than Module 1, than go back to Module
> 2. After I arrive back at Module 2, it throws the error on the
> resultHandler of the RemoveObject service, in code that looks like this:
> 
> private function resultHandler( event:ResultEvent ):void {
> var hash:Array = new Array();
> for each( var data:DataVO in event.result ){
> hash.push(data);
> }
> dataAC = new ArrayCollection( hash );
> }
> 
> It breaks on the for each() line.
> Any ideas?
>




Re: [flexcoders] [video included] Datagrid recycle issue? How can I 'force' it to re-render

2008-08-22 Thread Alan

Thanks for taking the time to respond,

I have been debugging it, but any other debugging suggestions would be  
welcomed.


While debugging, I put a breakpoint at my data provider variable, and  
the break point is tripped whenever new data is loaded, the datagrid  
is instaciated etc...; however, the breakpoint is not tripped when  
that phenomenon of the datagrid 'refreshing'  as in the video.  So  
it's not accessing the data provider.


Do you mind suggesingt some other events / variables I should  watch  
while debugging.


How can I see what events are being dispatched when I am interacting  
with other UI objects -  can someone suggest a good in depth reference  
I can read up on debugging with Eclipse.


Thanks

On Aug 22, 2008, at 1:24 PM, Alex Harui wrote:



You will have to debug your situation.  There’s no way to tell from  
a video what events are firing.  If the dataProvider or any of a  
number of properties change, the DG will update all the rows.  The  
real question is whether you’ve handled recycling correctly or if  
there is some other problem.




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
On Behalf Of Alan

Sent: Friday, August 22, 2008 9:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] [video included] Datagrid recycle issue? How  
can I 'force' it to re-render




Link to video:

http://www.alanklement.com/download/datagrid.mov

I understand that the datagrid is recycling cells, makes sense. I've
checked out Alex's blog, but can't find a solution to this situation.

Oddly enough, you can see that the datagrid refreshes correctly when I
interact with display objects other than the grid itself.

What events are being fired by the other display objects that are
causing the grid to 'refresh'.

Thanks for your time:

Alan








[flexcoders] Re: protecting swc?

2008-08-22 Thread actionscript_czar
First of all, if you don't distribute the source code with your SWC 
file most people won't see it.  You probably saw it because you have 
the library linked ( even if it was closed ) or the source files 
linked to the SWC build path.

Secondly, SWC and SWF files can be easily decompiled using a tool 
like Buraks Actionscript Viewer.  This however does not limit your 
rights as the creator of the code, it just means people can get to 
it.  Most people won't though as they have better things to do and 
projects to get done.  Some will though and it may or may not be 
worth the extra effort( think ROI ) to attempt to stop them.

I think this is the reason that some companies offer to send the 
source as well ( but limit your priveleges with the source in the 
license ) for a premium over the price of just the component alone.  
This might be smarter. It gives people a legal way to get the source 
for your components so they can push your components past their 
initial design constraints while giving you more cash for your work.

Ultimately the decision is up to you.

--- In flexcoders@yahoogroups.com, "ahmad_eldardiry" 
<[EMAIL PROTECTED]> wrote:
>
> I forgot to mention that when I pressed the debug button, a dialogue
> box showed with a "This file is not inside a project, many Flex
> builder features will be disabled" message.
> 
> Thank you.
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "ahmad_eldardiry"
>  wrote:
> >
> > I'm a flex beginner, and I'm making a flex component (.swc) and I 
want
> > to sell it. While I was testing it within an AIR application on 
Flex
> > Builder 3, an error ocurred, so I thought I can use the debugger 
(It
> > works well on Flex compiler).
> > 
> > When I did try to debug the application, the debugger actualy
> > decompressed the output swf and opened one of the classes 
contained
> > inside my .swc to point to the line having the error!!!
> > 
> > So, now I can see my source code (not to mention the variables and
> > objects listing inside the variables tab) inside the so thought
> > 'protected' .swc, without any external decompiler, but within the 
Flex
> > builder 3 itself!
> > 
> > When I googled about it, I found only this similar note:
> > 
> >
> http://clintm.esria.com/2007/05/11/linking-source-code-to-a-swc-in-
flexbuilder/
> > 
> > If I was to sell this .swc, anybody can see my source code that 
way,
> > so is there any solution for this issue? Has anybody faced 
something
> > similar? Or is it even a known fact?
> > 
> > How can someone protect his flex components from flex builder 
debugger?
> > 
> > Thank you.
> >
>




[flexcoders] Re: Error styling datagrids

2008-08-22 Thread pixelgeek

> That already exists in AdvancedDataGrid.

Odd that this never came up when I was searching. None of the coders
here locally seem to have much experience and the solution that was
sent to me involved itemRenderers which I am currently using.

I'll have a look at that to see if it helps simplify my code.

Why is there an AdvancedDataGrid? Did someone at Macromedia/Adobe
attempt to fix issue with the basic DataGrid?



[flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-22 Thread Dmitri Girski
> Dude, what's the hassle? You install a plugin for Eclipse, point the
plugin
> at the BC executable and you're off...

I just like when everything works. It worked before, now it is broken.
And surprisingly, I am not happy with this fact, as instead of doing
what I used to do I have to find some workarounds.

I am pushed anyway to use Tortoise SVN directly without Subclipse, but
I can't stand seeing Mac guys suffering from this bug.

 
> All I'm saying is that you should lay the blame where it really
belongs. It's not like Adobe wrote the Compare functionality in FB3,
they're using

So, when your car breaks, do you call directly Bosch AG and ask why
this bloody alternator stopped working? I think you would simply send
your car to the dealer you've bought the car from. :)

FB is not a just an Eclipse & Flex SDK tied up together. Look at the
Adobe bugs db - there are hundreds and hundreds of bugs just for the
Builder itself.

Cheers,
Dmitri.




[flexcoders] Flex Builder Professional

2008-08-22 Thread George
Which version of Eclipse is delivered with Flex Builder Professional,
and has anyone used the capabilities of MyLyn and Mantis with Flex
Builder?



[flexcoders] Re: Error styling datagrids

2008-08-22 Thread Amy
--- In flexcoders@yahoogroups.com, "pixelgeek" <[EMAIL PROTECTED]> wrote:
>
> So I solved my problem by scrapping the original code. Based on Alex's
> comments I don't know if it was ever going to be workable for any
> situation that had more rows in a dataprovider than there were
> onscreen rows in the datagrid.
> 
> It is definitely a problem with mindset though as the solution that
> works, and works well, is utterly alien to my old way of coding. 
> 
> That said, would it kill adobe to add methods to style a row in a
> datagrid?
>

That already exists in AdvancedDataGrid.  Where it falls down is that 
most of the default itemRenderers don't support background styling.  If 
it doesn't exist in DataGrid, it's pretty easy to add like this 
http://flexdiary.blogspot.com/2008/08/tilelist-with-
stylefunction.html.  For more about the problem with the itemRenderers 
not supporting background color and alpha, check out the Musings on 
AdvancedDataGrid series.

HTH;

Amy



RE: [flexcoders] [video included] Datagrid recycle issue? How can I 'force' it to re-render

2008-08-22 Thread Alex Harui
You will have to debug your situation.  There's no way to tell from a
video what events are firing.  If the dataProvider or any of a number of
properties change, the DG will update all the rows.  The real question
is whether you've handled recycling correctly or if there is some other
problem.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alan
Sent: Friday, August 22, 2008 9:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] [video included] Datagrid recycle issue? How can I
'force' it to re-render

 

Link to video:

http://www.alanklement.com/download/datagrid.mov
 

I understand that the datagrid is recycling cells, makes sense. I've 
checked out Alex's blog, but can't find a solution to this situation.

Oddly enough, you can see that the datagrid refreshes correctly when I 
interact with display objects other than the grid itself.

What events are being fired by the other display objects that are 
causing the grid to 'refresh'.

Thanks for your time:

Alan

 



RE: [flexcoders] Re: Error styling datagrids

2008-08-22 Thread Alex Harui
Eventually, it would.  If we added every feature requested by our
customers, datagrid alone would be over 1MB of SWF and not run very
fast.

 

The ADG has some styling capabilities.  DG has methods you can override
to do some things.  My blog has some example renderers that do some
styling.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pixelgeek
Sent: Thursday, August 21, 2008 9:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Error styling datagrids

 

So I solved my problem by scrapping the original code. Based on Alex's
comments I don't know if it was ever going to be workable for any
situation that had more rows in a dataprovider than there were
onscreen rows in the datagrid.

It is definitely a problem with mindset though as the solution that
works, and works well, is utterly alien to my old way of coding. 

That said, would it kill adobe to add methods to style a row in a
datagrid?

 



RE: [flexcoders] question about AMF

2008-08-22 Thread Alex Harui
Shared code problem.  See modules presentation on my blog for more
details.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tchredeemed
Sent: Friday, August 22, 2008 9:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] question about AMF

 

I have a VO called DataVO.

I have two modules that call an AMF service, which returns an array of
VO's.

Every once in a while, I get the error: 
TypeError: Error #1034: Type Coercion failed: cannot convert
com.gh.vo::[EMAIL PROTECTED] to com.gh.vo.DataVO.

However, I can only get the compiler to throw this error in 1 situation:

I start the app, load Module 2, than Module 1, than go back to Module
2. After I arrive back at Module 2, it throws the error on the
resultHandler of the RemoveObject service, in code that looks like this:

private function resultHandler( event:ResultEvent ):void {
var hash:Array = new Array();
for each( var data:DataVO in event.result ){
hash.push(data);
}
dataAC = new ArrayCollection( hash );
}

It breaks on the for each() line.
Any ideas?

 



[flexcoders] Cairngorm article sources on Adobe.com corrupt?

2008-08-22 Thread ivo
Hello,

I am trying to download the sources to the article at 
http://www.adobe.com/devnet/flex/articles/introducing_cairngorm.html 
(f3ic_studentFiles_16Jun08.zip) but I keep getting a corrupted download. I 
tried last nite at home and today at work with the same results. Can someone at 
Adobe docs verify the download?

Thanks,

- Ivo



Re: [flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-22 Thread Howard Fore
On Fri, Aug 22, 2008 at 12:39 PM, Dmitri Girski <[EMAIL PROTECTED]> wrote:

>
> I just looked at that BeyondCompare - too much hassle to get it
> working with Eclipse + SVN +BC. Tortoise SVN works perfectly anyway
> under Windows. Under Mac... well, at least those guys should suffer
> from something :)
>

Dude, what's the hassle? You install a plugin for Eclipse, point the plugin
at the BC executable and you're off...


> No, seriously, why do you think that out-of-box solution should be
> tweaked? It's not free, it is unreasonably overpriced (at least in Oz
> and other uncool countries) and it's getting more and more harder to
> work with.


All I'm saying is that you should lay the blame where it really belongs.
It's not like Adobe wrote the Compare functionality in FB3, they're using
what's already in Eclipse (font changes notwithstanding). If you want to
point out to the Eclipse community that you think their diff functionality
sucks, then you are probably going to get more traction over at
eclipse.org(but not if it's phrased that way :-) ).


-- 
Howard Fore, [EMAIL PROTECTED]
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


[flexcoders] question about AMF

2008-08-22 Thread tchredeemed
I have a VO called DataVO.

I have two modules that call an AMF service, which returns an array of
VO's.

Every once in a while, I get the error: 
TypeError: Error #1034: Type Coercion failed: cannot convert
com.gh.vo::[EMAIL PROTECTED] to com.gh.vo.DataVO.

However, I can only get the compiler to throw this error in 1 situation:

I start the app, load Module 2, than Module 1, than go back to Module
2.  After I arrive back at Module 2, it throws the error on the
resultHandler of the RemoveObject service, in code that looks like this:

private function resultHandler( event:ResultEvent ):void {
var hash:Array = new Array();
for each( var data:DataVO in event.result ){
hash.push(data);
}
dataAC = new ArrayCollection( hash );
}


It breaks on the for each() line.
Any ideas?



[flexcoders] SWCs become invisible in Design View

2008-08-22 Thread Dmitri Girski
Did anyone hit the problem with getting SWC contents shown in the
Design View?

At some of point of time (I presume with project growth), SWC contents
are disappeared from Design View. And there is no Red Cross mark like
if the component is not found - SWCs are just invisible, you can't
point a mouse to it or move it.
 

Cheers,
Dmitri.





[flexcoders] Re: DataGridColumn trouble...

2008-08-22 Thread Tim Hoff

You don't want to look at the grid, you want to look at the data.  My
suggestion would be to pull the complex calculations out of the label
functions and put them in seperate functions; that are called by the
label functions.  That way ou can re-use the calculations where needed,
and not worry about duplicating code.

-TH

--- In flexcoders@yahoogroups.com, "Sefi Ninio" <[EMAIL PROTECTED]> wrote:
>
> Bump...
>
> Anyone? I'd appreciate any input or pointers to links...
>
> Thakns,
> Sefi
>
> On Fri, Aug 22, 2008 at 9:34 AM, Sefi Ninio [EMAIL PROTECTED] wrote:
>
> > Hi Tracy,
> >
> > I know I get the Item, and that's what I currently use.
> > The problem is (and I probably should have mentioned it), that the
other
> > columns labelFunctions make a complex calculation themselves, and I
am
> > reluctant to do it again in the third column labelFunction if
there's a way
> > to get to the already calculated values within the DataGrid.
> >
> > I also thought of keeping the calculation results in an external
map, but
> > there must be a simpler solution...
> > I can't believe there is no way to get from the DataGridColumn to
the grid
> > itself.
> >
> > Sefi
> >
> >
> > On Fri, Aug 22, 2008 at 2:53 AM, Tracy Spratt [EMAIL PROTECTED]:
> >
> >> labelFunction gets two arguments. One is a reference to the
*entire*
> >> dataProvider item, the other to the dataGridColumn. Since you have
a
> >> reference to the whole item, you can easily build your return
string.
> >>
> >>
> >>
> >> Tracy
> >>
> >>
> >> --
> >>
> >> *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
> >> Behalf Of *Sefi Ninio
> >> *Sent:* Thursday, August 21, 2008 4:15 PM
> >> *To:* flexcoders@yahoogroups.com
> >> *Subject:* [flexcoders] DataGridColumn trouble...
> >>
> >>
> >>
> >> Hi.
> >>
> >> I have a DataGrid, and a few DataGridColumns in it.
> >> One of them has a labelFunction, that should return a value that
depends
> >> on the values of two of the other columns.
> >>
> >> example:
> >> | name | start | end | diff |
> >> | xxx | 5 | 7 | 2 |
> >> | yyy | 10 | 100 | 90 |
> >>
> >> etc...
> >>
> >> I can't find a way to get a reference to the DataGrid or the other
> >> DataGridColumns inside it from the labelFunction - using it's
DataGridColumn
> >> argument...
> >>
> >> Any help would be greatly appreciated..
> >>
> >> Sefi
> >>
> >>
> >>
> >
> >
>





[flexcoders] [video included] Datagrid recycle issue? How can I 'force' it to re-render

2008-08-22 Thread Alan
Link to video:

http://www.alanklement.com/download/datagrid.mov

I understand that the datagrid is recycling cells, makes sense.  I've  
checked out Alex's blog, but can't find a solution to this situation.

Oddly enough, you can see that the datagrid refreshes correctly when I  
interact with display objects other than the grid itself.

What events are being fired by the other display objects that are  
causing the grid to 'refresh'.


Thanks for your time:

Alan


[flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-22 Thread Dmitri Girski

I just looked at that BeyondCompare - too much hassle to get it
working with Eclipse + SVN +BC. Tortoise SVN works perfectly anyway
under Windows. Under Mac... well, at least those guys should suffer
from something :)

No, seriously, why do you think that out-of-box solution should be
tweaked? It's not free, it is unreasonably overpriced (at least in Oz
and other uncool countries) and it's getting more and more harder to
work with. 


Cheers,
Dmitri.
  


--- In flexcoders@yahoogroups.com, "Howard Fore" <[EMAIL PROTECTED]> wrote:
>
> Maybe we don't think it's Adobe's responsibility to change something
that
> they didn't write. The Compare tool is a base Eclipse function. If
you don't
> like the font choice, why not change it in the Preferences? I haven't
> noticed that it was so terrible.
> 
> And if you really don't like it that much use the External Tools
Plugin and
> BeyondCompare.
> 
> On Fri, Aug 22, 2008 at 11:30 AM, Dmitri Girski <[EMAIL PROTECTED]> wrote:
> 
> > C'mon, guys! I don't believe that I am the only one who uses Compare
> > tool in Flex Builder.
> 
> 
> 
> -- 
> Howard Fore, [EMAIL PROTECTED]
> "The universe tends toward maximum irony. Don't push it." - Jeff Atwood
>




Re: [flexcoders] DataGridColumn trouble...

2008-08-22 Thread Sefi Ninio
Bump...

Anyone? I'd appreciate any input or pointers to links...

Thakns,
Sefi

On Fri, Aug 22, 2008 at 9:34 AM, Sefi Ninio <[EMAIL PROTECTED]> wrote:

> Hi Tracy,
>
> I know I get the Item, and that's what I currently use.
> The problem is (and I probably should have mentioned it), that the other
> columns labelFunctions make a complex calculation themselves, and I am
> reluctant to do it again in the third column labelFunction if there's a way
> to get to the already calculated values within the DataGrid.
>
> I also thought of keeping the calculation results in an external map, but
> there must be a simpler solution...
> I can't believe there is no way to get from the DataGridColumn to the grid
> itself.
>
> Sefi
>
>
> On Fri, Aug 22, 2008 at 2:53 AM, Tracy Spratt <[EMAIL PROTECTED]>wrote:
>
>>labelFunction gets two arguments.  One is a reference to the *entire*
>> dataProvider item, the other to the dataGridColumn.  Since you have a
>> reference to the whole item, you can easily build your return string.
>>
>>
>>
>> Tracy
>>
>>
>>  --
>>
>> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
>> Behalf Of *Sefi Ninio
>> *Sent:* Thursday, August 21, 2008 4:15 PM
>> *To:* flexcoders@yahoogroups.com
>> *Subject:* [flexcoders] DataGridColumn trouble...
>>
>>
>>
>> Hi.
>>
>> I have a DataGrid, and a few DataGridColumns in it.
>> One of them has a labelFunction, that should return a value that depends
>> on the values of two of the other columns.
>>
>> example:
>> |  name  |  start  |  end  |  diff  |
>> |  xxx |   5 |   7 |   2|
>> |   yyy|   10|  100  |   90  |
>>
>> etc...
>>
>> I can't find a way to get a reference to the DataGrid or the other
>> DataGridColumns inside it from the labelFunction - using it's DataGridColumn
>> argument...
>>
>> Any help would be greatly appreciated..
>>
>> Sefi
>>
>>  
>>
>
>


[flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-22 Thread Dmitri Girski
It worked perfectly in FB2.



--- In flexcoders@yahoogroups.com, "Howard Fore" <[EMAIL PROTECTED]> wrote:
>
> Maybe we don't think it's Adobe's responsibility to change something
that
> they didn't write. The Compare tool is a base Eclipse function. If
you don't
> like the font choice, why not change it in the Preferences? I haven't
> noticed that it was so terrible.
> 
> And if you really don't like it that much use the External Tools
Plugin and
> BeyondCompare.
> 
> On Fri, Aug 22, 2008 at 11:30 AM, Dmitri Girski <[EMAIL PROTECTED]> wrote:
> 
> > C'mon, guys! I don't believe that I am the only one who uses Compare
> > tool in Flex Builder.
> 
> 
> 
> -- 
> Howard Fore, [EMAIL PROTECTED]
> "The universe tends toward maximum irony. Don't push it." - Jeff Atwood
>




[flexcoders] Re: TabNavigator - how to make label a hyperlink that loads a specific module

2008-08-22 Thread djohnson29
Thank you!

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Use TabBar and ViewStack, you can then programatically determine what
> any tab click does.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of djohnson29
> Sent: Thursday, August 14, 2008 4:43 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] TabNavigator - how to make label a hyperlink that
> loads a specific module
> 
>  
> 
> 
> I have a regular TabNavigator like so:
> 
>  
> 
> 
> 
> 
> // more tabs go here
> 
> 
> 
> Within each tab, at various times in the program, I change the url of
> the moduleLoader to load a new module within this container. When I
> navigate to another tab, and then go back to this tab, the last loaded
> module is displaying.
> 
> I would like to have the functionality so that the Label of the Tab is
> a hyperlink - that would always load the "top-level" module. In other
> words, the tab label will always load a specific module.
> 
> How can I make this a hyperlink or a LinkButton when the label
> property is actually part of the VBox? Not sure how to do this
> 
> Thanks
>




[flexcoders] Re: protecting swc?

2008-08-22 Thread ahmad_eldardiry
I forgot to mention that when I pressed the debug button, a dialogue
box showed with a "This file is not inside a project, many Flex
builder features will be disabled" message.

Thank you.



--- In flexcoders@yahoogroups.com, "ahmad_eldardiry"
<[EMAIL PROTECTED]> wrote:
>
> I'm a flex beginner, and I'm making a flex component (.swc) and I want
> to sell it. While I was testing it within an AIR application on Flex
> Builder 3, an error ocurred, so I thought I can use the debugger (It
> works well on Flex compiler).
> 
> When I did try to debug the application, the debugger actualy
> decompressed the output swf and opened one of the classes contained
> inside my .swc to point to the line having the error!!!
> 
> So, now I can see my source code (not to mention the variables and
> objects listing inside the variables tab) inside the so thought
> 'protected' .swc, without any external decompiler, but within the Flex
> builder 3 itself!
> 
> When I googled about it, I found only this similar note:
> 
>
http://clintm.esria.com/2007/05/11/linking-source-code-to-a-swc-in-flexbuilder/
> 
> If I was to sell this .swc, anybody can see my source code that way,
> so is there any solution for this issue? Has anybody faced something
> similar? Or is it even a known fact?
> 
> How can someone protect his flex components from flex builder debugger?
> 
> Thank you.
>




[flexcoders] Column Chart Label Renderer

2008-08-22 Thread mburtless
Hi guys,
I've read the posts on this board for a long time, but I've never had
the need to post until now.  As some of you may know Flex doesn't like
to show data labels on column charts which are placed inside cartesian
charts.  Doesn't like to, as in won't.  To get around this I wrote my
own item renderer which extends boxitemrenderer (I was lazy and didn't
feel like writing my own renderer from scratch).  The data labels post
now and it works great, until I resize.  On resize the columns will
scale, but the labels stay in one place.  My updatDisplayList method
is below.  If anyone can help I would greatly appreciate it!!

protected override function
updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void {

super.updateDisplayList(unscaledWidth, unscaledHeight);

//If the item is really a chart item
if (parent is UIComponent) {

var parentID:String = String(parentSeries.id);
var yField:String = String(parentSeries.yField);
   
   
//If the textfield hasn't been initialized AND the item is NOT a
legend item 
if( !textField && ! isLD){
textField = new TextField();

var tf:TextFormat = new TextFormat();

//Get color of text from CSS
tf.color = getStyle("color");
//Set the rest of the text field properties
tf.font = "Verdana";
tf.align = "center";
tf.bold = true;

textField.x =  (unscaledWidth / 2) + this.x - (textField.width / 2);
textField.y = (unscaledHeight / 2) + this.y;


textField.defaultTextFormat = tf;

//Set the text itself
if(item.item.hasOwnProperty(yField)){
textField.text = String(textField.x);

}
parent.addChild(textField);
}
}
}



Re: [flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-22 Thread Howard Fore
Nice...the font change doesn't work. Now *that's* a bug...

On Fri, Aug 22, 2008 at 11:38 AM, Howard Fore <[EMAIL PROTECTED]> wrote:

> Maybe we don't think it's Adobe's responsibility to change something that
> they didn't write. The Compare tool is a base Eclipse function. If you don't
> like the font choice, why not change it in the Preferences? I haven't
> noticed that it was so terrible.
>
> And if you really don't like it that much use the External Tools Plugin and
> BeyondCompare.
>
> On Fri, Aug 22, 2008 at 11:30 AM, Dmitri Girski <[EMAIL PROTECTED]> wrote:
>
>> C'mon, guys! I don't believe that I am the only one who uses Compare
>> tool in Flex Builder.
>
>
>
> --
> Howard Fore, [EMAIL PROTECTED]
> "The universe tends toward maximum irony. Don't push it." - Jeff Atwood
>



-- 
Howard Fore, [EMAIL PROTECTED]
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


Re: [flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-22 Thread Howard Fore
Maybe we don't think it's Adobe's responsibility to change something that
they didn't write. The Compare tool is a base Eclipse function. If you don't
like the font choice, why not change it in the Preferences? I haven't
noticed that it was so terrible.

And if you really don't like it that much use the External Tools Plugin and
BeyondCompare.

On Fri, Aug 22, 2008 at 11:30 AM, Dmitri Girski <[EMAIL PROTECTED]> wrote:

> C'mon, guys! I don't believe that I am the only one who uses Compare
> tool in Flex Builder.



-- 
Howard Fore, [EMAIL PROTECTED]
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


Re: [flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-22 Thread Douglas Knudsen
Is it not just using the Eclipse tools for compare?

DK
On Fri, Aug 22, 2008 at 11:30 AM, Dmitri Girski <[EMAIL PROTECTED]> wrote:

>   C'mon, guys! I don't believe that I am the only one who uses Compare
> tool in Flex Builder.
> There was even an article in Cosmo that it's becoming popular among
> AIR developers to use Compare tool before checking their cool stuff
> into SVN :)
>
> http://bugs.adobe.com/jira/browse/FB-12492
>
> Cheers,
> Dmitri.
>
> --- In flexcoders@yahoogroups.com , "Dmitri
> Girski" <[EMAIL PROTECTED]> wrote:
> >
> > Hi guys,
> >
> > Internal diff tool in FB3 sucks big time. It worked in FB2, but
> > someone decided that this thing is too good for this world and changed
> > it. This ugly proportional font and this terrible performance are just
> > unbearable!
> >
> > Single diff on 1000 lines files takes around 50 seconds. Multiply it
> > by 10-20 per day and this is a stolen time from you.
> >
> > It is time to change this. Here is the place to vote for this bug:
> >
> > http://bugs.adobe.com/jira/browse/FB-12492
> >
> >
> > Sweet Adobe, please have a mercy on us all and give us back the
> > simple, no-gimmick diff, which is just works.
> >
> >
> >
> > Cheers,
> > Dmitri.
> >
> >
> > --
> > http://mitek.id.au/blog
> >
>
>  
>



-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


[flexcoders] Re: Vote or loose! MXML diff sucks, let's change it!

2008-08-22 Thread Dmitri Girski
C'mon, guys! I don't believe that I am the only one who uses Compare
tool in Flex Builder. 
There was even an article in Cosmo that it's becoming popular among
AIR developers to use Compare tool before checking their cool stuff
into SVN :) 

http://bugs.adobe.com/jira/browse/FB-12492


Cheers,
Dmitri.


--- In flexcoders@yahoogroups.com, "Dmitri Girski" <[EMAIL PROTECTED]> wrote:
>
> Hi guys,
> 
> Internal diff tool in FB3 sucks big time. It worked in FB2, but
> someone decided that this thing is too good for this world and changed
> it. This ugly proportional font and this terrible performance are just
> unbearable! 
> 
> Single diff on 1000 lines files takes around 50 seconds. Multiply it
> by 10-20 per day and  this is a stolen time from you.
> 
> It is time to change this. Here is the place to vote for this bug:
> 
> http://bugs.adobe.com/jira/browse/FB-12492
> 
> 
> Sweet Adobe, please have a mercy on us all and give us back the
> simple, no-gimmick diff, which is just works.
> 
> 
> 
> Cheers,
> Dmitri.
> 
> 
> --
> http://mitek.id.au/blog
>




Re: [flexcoders] Template architecture

2008-08-22 Thread Richard Rodseth
I'm a big fan of the Eclipse plug-in model, though it's been a while since I
looked at how they do Perspectives, for example.

I take Alex's point (I think), but I'm not sure we're on the same page
regarding what is "the model". The end goal is that a configuration file
(XML, say) could describe a layout by specifying a template and a bunch of
things to place at various named locations in that template. By definition,
the config file has to know the names of the locations, so I don't see how
that is a violation of encapsulation. To validate the description, one needs
that knowledge. I suppose if one had a layout editor (something I'm not
planning at this time), once you'd filled in a template, it could persist
the description, but then the layout editor would need that knowledge. The
list of places you can put stuff *is* part (all) of the interface of the
template.

However, I am persuaded to make a template base that consumes a "description
model". That's basically what I was doing in the DynamicLayout that contains
(and creates) the template instance.

Thanks for the input.

On Thu, Aug 21, 2008 at 11:33 PM, Rick Winscot <[EMAIL PROTECTED]>wrote:

>Just a .02 clink... Alex is recommending a hallmark architectural
> pattern for building an application from constituent parts (
> http://tinyurl.com/9js2e).  One of the
> hurdles in implementing this in Flex has to deal with how creation policy
> plays with loosely tied models; if it hasn't been touched yet – it doesn't
> exist, visual updates fail, and runtime errors usually follow.
>
> On a couple occasions I had to resort to have the template base listen for
> any data changes on the model and when data change events fire – to pull
> those changes local and update internal bindable variables that are used in
> the template and drive the UI. Duplication you say? Yes... sadly there is
> duplication involved.
>
> Why do it this way? I've found that no matter how 'late' you try and
> capture a data event... That there are times when controls like the view
> stack just don't play nice. Fiddling with creationPolicy can help but
> doesn't address the root cause. So... tight coupling within the template
> with loose coupling to the model was a reasonable approach.
>
> Rick Winscot
>
>
> On 8/22/08 12:27 AM, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
>
>
>
> creationCOmplete is a better bet, but pushing stuff into the template is
> potentially bad design.  It means you know something about the template and
> have broken encapsulation.  Other designs like model/view would have the
> template pull from a data model.  Other designs would have an interface to
> the template that abstracts what children do what.  That's how many of our
> components work and they use the lifecycle events and methods to validate
> properties "later"
>
>
> --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]<[EMAIL 
> PROTECTED]>
> *On Behalf Of *Richard Rodseth
> *Sent:* Thursday, August 21, 2008 2:28 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Template architecture
>
>
> I'm prototyping a system where a view is built dynamically from an XML
> description (converted to VOs). The description refers to a template
> (hard-coded in MXML). The dynamic view observes the description (which is a
> part of its model) , and creates a child (the template) and adds it as a
> child. However, it also needs to "fill in" the template which involves
> accessing some of its children by id (eg. template["slot1"],
> template["slot2"] ).
>
> If I construct the template via new Template1(), the children are not yet
> created. Their ids show up in the debugger, but the values are null. Should
> I add a listener for creationComplete, or is this a case where callLater()
> could be put to good effect?
>
>
>
>
>   
>


[flexcoders] Re: Change dataProvider at runtime?

2008-08-22 Thread Amy
--- In flexcoders@yahoogroups.com, Blair Cox <[EMAIL PROTECTED]> wrote:
>
> Okay, try this scenario:
> 
> Can you change the dataprovider of a series or chart on demand from 
within
> the program while it is running? So no matter why I¹m doing it, I 
have say
> four completely different dataproviders collecting data from say a 
static
> in-line source, a static XML file source and a couple dynamically 
generated
> by whatever means. 
> 
> Then do this, have four primary combobox¹s each related to a series 
in the
> chart. These first combobox¹s will select the dataProvider of each 
series
> (this works when statically set). Then you have an additional four 
comboboxs
> which will set the yAxis of each chart series based on the selected
> dataProvider (conditional combobox which changes based on what the 
first
> combobox has been set to).
> 
> See what you have now? The ability to analyze different data sets 
from
> different sources within the same chart. The way it works now, the
> assumption is that this data can always be lumped into a single 
array, which
> isn¹t always the case especially when dealing with an application 
designed
> for an engineering application. It would just be far simpler to be 
able to
> change dataprovider on the fly and tell the chart to update or 
reload.
> 
> So how could this be done? Reload or recreate the chart based on a 
click or
> change event?

You may want to consider an approach similar to this:
http://blog.tsclausing.com/post/19

I actually use filters and data functions on my axes/series to change 
the way the data appears, instead of changing out the separate data 
source.  If you contact me off list (amy at magnoliamultimedia dot 
com), I can send you some code that shows this.  But I don't have 
time to strip it of the client-specific stuff to make it a public 
example, so I'm not going to post it.

HTH;

Amy





[flexcoders] Re: Imagepicker

2008-08-22 Thread Amy
--- In flexcoders@yahoogroups.com, "simon.friso" <[EMAIL PROTECTED]> 
wrote:
>
> I want to make a component to select an image from a range of 
images.
> 
> In this article 
> 
http://www.adobe.com/devnet/fireworks/articles/rich_symbols_export_04.
ht
> ml
> imagepicker.mxml is mentioned , it should be in the flex 
environment.
> 
> I can't find it. Can someone tell me where I can find or maybe 
download 
> it?
> 
> Otherwise does anyone know if someone has made a kind of 
imagepicker 
> and has placed it on the internet?

I like this one 
http://examples.adobe.com/flex2/inproduct/sdk/photoviewer/PhotoViewer.
html



[flexcoders] Re:Imagepicker

2008-08-22 Thread Danny Venier
Just go back to page 1 of the article you reference and the link to the flex
sample files is there.



  1   2   >