RE: [flexcoders] Help to create an object instance dynamically

2005-09-15 Thread Jim Phelan
Title: Help to create an object instance dynamically










Hi Michel,

 

Are you referencing
this class elsewhere? If not, you need to in order for flex to compile it.

 

A simple reference
like:

 

com.datasul.framework.custom.view.LoanForm;

 

Might do the trick. Not
sure about the rest of the code. You might want to try using eval() to get a
reference to the class.

 

Jim

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michel Bertrand
Sent: Thursday, September 15, 2005
4:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Help to
create an object instance dynamically



 

Hi
all ! 

I'm
trying to get a component instance using the following: 

   
    var
workspace:Workspace = Workspace.getInstance(); 

   
    var name:String =
"com.datasul.framework.custom.view.LoanForm"; 
   
    var type:Function =
ClassUtil.findClass(name); 
   
    
   
    wkt = Workspace.getInstance();

   
    wkt.createChild(type,name);


Where:

-
Workspace: is an object extending mx.containers.Canvas; 

I
suppose that retriving an Object using ClassUtil I would get an object
instance. But it 
doesn't
work in this fashion. So, I still tried to use
wkt.createChild(type.call(),name), 
however
no success. 

Did
anybody has an idea to create my object dynamically and add it to a container ?


Regards,

Michel.










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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Software design and development
  
  
Macromedia flex
  
  


Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Datagrid cell edit.

2005-09-20 Thread Jim Laing
From
http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/DataGrid.html#events

cellEdit -
Broadcast when a cell's value has been changed via a cell editor. Only
broadcast if the cell/column is editable. The event object contains
the properties:
- itemIndex Index of the selected item.
- columnIndex Index of the selected column.
- oldValue Previous value of the cell.
- target Reference to the component that triggered the event.
- type Name of the event.

Jim

On 9/20/05, Omar Ramos <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> Anyone knows how to detect when a cell on a editable datagrid changes value? 
> I know I can use value committed but I can not access that specific cell. 
> Anyone knows how to do this?
> Thanks.
>
>
>
> Omar Ramos
> System Developer
>
>   --
>  Flexcoders Mailing List
>  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>  Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
>
>  SPONSORED LINKS
>   Web site design development 
>   Computer software development   
> Software design and development
>   Macromedia flex   
> Software development best practice
>
>
   YAHOO! GROUPS LINKS
>
>
>  Visit your group "flexcoders" on the web.
>
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>


 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~-> 

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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Submit Using Enter Key.

2005-10-07 Thread Jim Phelan










You can also use defaultPushButton

 

getFocusManager().defaultPushButton =
btnMyButton;

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Joe
Sent: Thursday, October 06, 2005
7:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Submit Using
Enter Key.



 

Is possible to submit using
the enter key within flex?










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





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Highly classful architectures

2005-10-11 Thread Jim Schneider










Here’s one that I’ve used for
prototyping:

 

    

   
http://www.webservicex.net/WeatherForecast.asmx?WSDL

    

   
http://www.webservicex.net/WeatherForecast.asmx

    

   
true

    

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: Tuesday, October 11, 2005
11:56 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Highly
classful architectures



 



um... ok so do you like know of any public WSDL's then?





 





- Original Message - 



From: Mink,
Joseph 





To: flexcoders@yahoogroups.com






Sent: Tuesday, October
11, 2005 12:12 PM





Subject: RE: [flexcoders]
Highly classful architectures







 



Gotcha...very cool!  Unfortunately, I
can't share our wsdls with you as they aren't mine to share...but I'll
keep you in mind.  A short supply of wsdls has never been a problem here!

 







From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of JesterXL
Sent: Tuesday, October 11, 2005
11:57 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Highly
classful architectures

I've done it in Flash, and
ported similiar remoting classes for Flex since 
they are already in there (what a lot of
HTTPService, RemoteObject, 
WebService are built off of).  Figured if you
hit me with a WSDL you know 
works, public or not, I could test it and post
some example code.

My problem has been finding WSDL's that work. 
xMethods.com for example has 
a ton that don't and it's a waste of time; rather
go to someone who has one 
that knows it works.  The rest like Amazon
and PayPal have ones that work, 
but take 10 years to sign up, register, blah blah
blah

- Original Message - 
From: "Mink, Joseph"
<[EMAIL PROTECTED]>
To: 
Sent: Tuesday, October 11, 2005 11:50 AM
Subject: RE: [flexcoders] Highly classful
architectures


Indeed I do...never leave home without it :
)  Why do you ask, and where
are you going with this?  My understanding
comes from Matt Chotin's
reply to my previous post entitled, "Calling
a WebService solely through
AS."  His respose:

--
Not supported in Flex 1.5, supported in an
upcoming version.

Matt
-

I was told by others that there was a way to do
it, but the fact that it
wasn't supported or intended, I opted not to
pursue it (it did not seem
all that simple).



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
Behalf Of JesterXL
Sent: Tuesday, October 11, 2005 9:46 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Highly classful
architectures


Got a WSDL?

- Original Message - 
From: Mink, Joseph 
To: flexcoders@yahoogroups.com
Sent: Tuesday, October 11, 2005 9:27 AM
Subject: RE: [flexcoders] Highly classful
architectures

You mean after the mxml has been compiled? 
It's been a month or so
since I attacked that particular problem, but as I
remember it, there
was no straight-forward (intended) way to
dynamically instantiate
WebService objects.



From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
Behalf Of JesterXL
Sent: Tuesday, October 11, 2005 9:20 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Highly classful
architectures


They don't have to be.  Have you looked into
the webservice classes?

- Original Message - 
From: Mink, Joseph 
To: flexcoders@yahoogroups.com
Sent: Tuesday, October 11, 2005 7:52 AM
Subject: RE: [flexcoders] Highly classful
architectures

I'm not totally sure what you mean, but I assume
you are asking how well
Flex supports object oriented programming. 
If that is your question, my
answer would be that it supports it quite well.

I'm a C++ & Java programmer way before I'm a
make-shift RIA developer.
Flex/Flash's ActionScript is very mature compared
to what I expected it
to be, and I've been able to employ most of the
design patterns and
approaches that I typically use in other, more
complex languages.  There
are a few hang-ups with the fact that, for
example, WebService objects
need to be declared statically, outside of
ActionScript (which was
frustrating), but it's nothing that can't be dealt
with and worked
around.

There's a quick opinion, for whatever it's worth!



From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
Behalf Of Marc Teichtahl
Sent: Monday, October 10, 2005 11:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Highly classful
architectures


Dear All,

We are currently evaluating the possibilities to
use Flex in our key
internal support systems.

As part of the evaluation we are looking
specifically at a highly
classful implementation and archictecture. I would
be very curious for
any feedback (pros/cons) etc in relation to using
Flex in such a high
polymorphic envirnoment.



Marc Teichtahl

[flexcoders] Cyclical reference error

2005-10-12 Thread Jim Phelan










Hello,

 

We’ve been getting a strange error recently

 

When compiling for the first time after starting JRUN /
Flex, we get an error similar to:

 

Cyclical reference to class…. Two MXML Files cannot
reference each other as child tags.

 

As far as I can tell, no MXML files are referencing each
other.

 

The really strange thing is that we are able to correct the
issue by commenting out the MXML for the “offending” class,
compiling, and then uncommenting and compiling again. Flex doesn’t
complain at all and compiles fine until the next time we restart the server.

 

Has anyone experienced this? Is there anything that could be
causing this or that can be done about it?

 

Best.

 

Jim









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] FLEX2: Date Cell Renderer

2005-10-21 Thread Jim Laing
In Flex 2, the cell render API is totally different. For one thing,
setValue() is no longer used. For another thing, a cell render is
passed a "dataObject" (or something like that) value, which contains
the data to be rendered. All of the examples I've seen thus far are
straight MXML, and most are rendered inline, so you might want to try
heading in that direction.

Jim

On 10/21/05, Greg Johnson <[EMAIL PROTECTED]> wrote:
> Ok, for flex 1.5 I had downloaded a nice AS file that would render
> dates in cells for me.  However dispite me updateing it to work in
> Flex 2 it doesn't.  Any ideas what I missed?
>
>
> /*
>  * DateFormatCellRenderer is a simple Label-based cell renderer that
> displays
>  * its item content in a known date format.
>  */
> package {
> import mx.formatters.DateFormatter;
> import mx.controls.Label;
> class DateFormatCellRenderer extends Label
> {
> var getDataLabel:Function;
> static var dateFmt:DateFormatter;
>
> private function init() : Void
> {
> // instantiate the 1 and only date formatter (more
> efficient than
> // have a date formatter for every instance of the
> cell renderer).
> if( dateFmt == null ) {
> dateFmt = new DateFormatter();
> dateFmt.formatString = "MM/DD/";
> }
> super.initialize();
> }
>
> private function setValue(str:String, item:Object,
> sel:Boolean):Void
> {
> if( item != null ) {
> // format the date value in the cell
> this.text = dateFmt.format(item[getDataLabel
> ()]);
> }
> else {
> this.text = "";
> }
> }
>
> private function size() : Void
> {
> this.setActualSize(explicitWidth,explicitHeight);
> }
> }
> }
>
> btw the size function change is a complete guess on my part.
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>


 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~-> 

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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Licensing and dev server compilation

2005-11-03 Thread Jim Phelan










Hello all,

 

We have a client who has a Flex license for their server. We
only wish for the compiled SWF to be deployed on their server, so they don’t
have access to the MXML / AS source files. My question is: is there a way to compile
our application on either a) our unlicensed development server or b) a development
server using their license code (so there would at some times be multiple servers
running the same license)? We are trying to avoid uploading source to their server
for compilation.

 

Any advice is appreciated,

 

Jim

 









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





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Case insensitive sorting on DataGrid

2005-11-09 Thread Jim Phelan










Hi,

 

I’m sure that this must have come up a million times
before, but I couldn’t find anything on the issue so I thought I’d
ask here.

 

Has anyone come up with a good way to do case insensitive
sorting in a DataGrid? Is creating a hidden column for each sortable value the
way to go? Perhaps a custom sort method? I understand there are some
performance issues with the Flash Player’s string sorting, so I’d
like to learn the most efficient way of handling this.

 

Thanks,

 

Jim









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





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Using the ColorPicker component in Flex 1.5 extras

2005-11-12 Thread Jim Phelan














Hi all,

 

I’d like to use the ColorPicker component that ships
in the extras folder of Flex 1.5.

 

Although the readme states: “The colorpicker folder
contains: The ActionScript source, the .PNG

and .AS files, along with the compiled component swc.”
I don’t have the SWC file.

 

I decided to do the logical thing, and compile it using Flash
MX 2004. I created a component, associated the class, set the classpath to flex
classes, and exported the swc. 

 

Then, I ran swcrepair :

 





ColorPicker.swf: OK

ColorPicker.png: OK

catalog.xml: OK

ColorPicker.asi: needs
repair...

   looking in
Accordion.swc

   looking in
Application.swc

   looking in
Binding.swc

   looking in
Box.swc

   looking in
Button.swc

   looking in
CheckBox.swc

   looking in
ComboBox.swc

   looking in
ControlBar.swc

   looking in
DataGrid.swc

   looking in
DataGridColumn.swc

   looking in
DateChooser.swc

   looking in
DateField.swc

   looking in
DividedBox.swc

   looking in
DownloadProgressBar.swc

   looking in
FlashRemoting.swc

   looking in
Formatter.swc

   looking in
FormItem.swc

   looking in
HBox.swc

   looking in
HScrollBar.swc

   looking in
Image.swc

   looking in
Label.swc

   looking in
Link.swc

   looking in
LinkBar.swc

   looking in
List.swc

   looking in
Loader.swc

   looking in
MediaController.swc

   looking in
MediaDisplay.swc

   looking in
MediaPlayback.swc

   looking in
MenuBar.swc

   looking in
Move.swc

   looking in NumericStepper.swc

   looking in
Panel.swc

   looking in
Preloader.swc

   looking in
ProgressBar.swc

   looking in
RadioButton.swc

   looking in
RadioButtonGroup.swc

   looking in
Repeater.swc

   looking in
SimpleButton.swc

   looking in
TabBar.swc

   looking in
TabNavigator.swc

   looking in
TextArea.swc

   looking in
TextInput.swc

   looking in
TitleWindow.swc

   looking in
Tree.swc

   looking in
TreeDataProvider.swc

   looking in
Validator.swc

   looking in
VBox.swc

   looking in
ViewStack.swc

   looking in
VScrollBar.swc

   looking in
Zoom.swc

SWCRepair completed

 

I then put this SWC in the appropriate Flex directory (other custom
components work fine in this directory.)

 

Upon running the ColorPickerSample.mxml (that also comes in the extras
directory) I get this error (first compile only)

 

C:\Program
Files\Macromedia\Flex\jrun4\servers\default\streamline\s57\components\ColorPicker.swc
does not define a sprite for ColorPicker class ColorPicker

 

It’s probably something simple. Ideas, anyone?

 

Jim









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Using the ColorPicker component in Flex 1.5 extras

2005-11-12 Thread Jim Phelan










Well I gave up with trying to compile it
in Flash, as there were too many compiler errors. Works fine with Flex. 

 

Can anyone tell me how to compile
components in Flash when required classes are missing? In this case, mx.styles.CSSStyleSheet
doesn’t come with Flex Classes (flexforflash.zip) and the compiler throws
a bunch of other nasty messages about the UIObject methods createClassObjectWithStyles,
getNonInheritingStyle, etc. SWCRepair didn’t fix it in this case. ??


Thanks.

 

Jim

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jim Phelan
Sent: Saturday, November 12, 2005
5:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using the
ColorPicker component in Flex 1.5 extras



 





Hi all,

 

I’d like to use the ColorPicker component that ships
in the extras folder of Flex 1.5.

 

Although the readme states: “The colorpicker folder
contains: The ActionScript source, the .PNG

and .AS files, along with the compiled component swc.”
I don’t have the SWC file.

 

I decided to do the logical thing, and compile it using
Flash MX 2004. I created a component, associated the class, set the classpath
to flex classes, and exported the swc. 

 

Then, I ran swcrepair :

 





ColorPicker.swf: OK

ColorPicker.png: OK

catalog.xml: OK

ColorPicker.asi: needs
repair...

   looking in
Accordion.swc

   looking in
Application.swc

   looking in
Binding.swc

   looking in
Box.swc

   looking in
Button.swc

   looking in
CheckBox.swc

   looking in
ComboBox.swc

   looking in
ControlBar.swc

   looking in
DataGrid.swc

   looking in
DataGridColumn.swc

   looking in
DateChooser.swc

   looking in
DateField.swc

   looking in
DividedBox.swc

   looking in
DownloadProgressBar.swc

   looking in
FlashRemoting.swc

   looking in
Formatter.swc

   looking in
FormItem.swc

   looking in
HBox.swc

   looking in
HScrollBar.swc

   looking in
Image.swc

   looking in
Label.swc

   looking in
Link.swc

   looking in
LinkBar.swc

   looking in
List.swc

   looking in
Loader.swc

   looking in
MediaController.swc

   looking in
MediaDisplay.swc

   looking in
MediaPlayback.swc

   looking in
MenuBar.swc

   looking in
Move.swc

   looking in
NumericStepper.swc

   looking in
Panel.swc

   looking in
Preloader.swc

   looking in
ProgressBar.swc

   looking in
RadioButton.swc

   looking in
RadioButtonGroup.swc

   looking in
Repeater.swc

   looking in
SimpleButton.swc

   looking in
TabBar.swc

   looking in
TabNavigator.swc

   looking in
TextArea.swc

   looking in
TextInput.swc

   looking in
TitleWindow.swc

   looking in
Tree.swc

   looking in
TreeDataProvider.swc

   looking in
Validator.swc

   looking in
VBox.swc

   looking in
ViewStack.swc

   looking in
VScrollBar.swc

   looking in
Zoom.swc

SWCRepair completed

 

I then put this SWC in the appropriate Flex directory (other custom
components work fine in this directory.)

 

Upon running the ColorPickerSample.mxml (that also comes in the extras
directory) I get this error (first compile only)

 

C:\Program Files\Macromedia\Flex\jrun4\servers\default\streamline\s57\components\ColorPicker.swc
does not define a sprite for ColorPicker class ColorPicker

 

It’s probably something simple. Ideas, anyone?

 

Jim









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





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Using the ColorPicker component in Flex 1.5 extras

2005-11-12 Thread Jim Phelan










Thanks Matt,

 

I was just trying to compile it in Flash,
as outlined in http://download.macromedia.com/pub/documentation/en/flex/15/flex_components_themes.pdf

 

For use in Flex.

 

But I guess I don’t need to in this
case.

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Saturday, November 12, 2005
6:17 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Using
the ColorPicker component in Flex 1.5 extras



 

SWCs for Flex 1.5 aren’t really
intended to work in MX 2004, just Flex.

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jim Phelan
Sent: Saturday, November 12, 2005
3:14 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Using
the ColorPicker component in Flex 1.5 extras



 

Well I gave up with trying to compile it
in Flash, as there were too many compiler errors. Works fine with Flex. 

 

Can anyone tell me how to compile
components in Flash when required classes are missing? In this case,
mx.styles.CSSStyleSheet doesn’t come with Flex Classes (flexforflash.zip)
and the compiler throws a bunch of other nasty messages about the UIObject
methods createClassObjectWithStyles, getNonInheritingStyle, etc. SWCRepair
didn’t fix it in this case. ??


Thanks.

 

Jim

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jim Phelan
Sent: Saturday, November 12, 2005
5:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using the
ColorPicker component in Flex 1.5 extras



 





Hi all,

 

I’d like to use the ColorPicker component that ships
in the extras folder of Flex 1.5.

 

Although the readme states: “The colorpicker folder
contains: The ActionScript source, the .PNG

and .AS files, along with the compiled component swc.”
I don’t have the SWC file.

 

I decided to do the logical thing, and compile it using
Flash MX 2004. I created a component, associated the class, set the classpath
to flex classes, and exported the swc. 

 

Then, I ran swcrepair :

 





ColorPicker.swf: OK

ColorPicker.png: OK

catalog.xml: OK

ColorPicker.asi: needs
repair...

   looking in
Accordion.swc

   looking in Application.swc

   looking in
Binding.swc

   looking in
Box.swc

   looking in
Button.swc

   looking in
CheckBox.swc

   looking in
ComboBox.swc

   looking in
ControlBar.swc

   looking in
DataGrid.swc

   looking in
DataGridColumn.swc

   looking in
DateChooser.swc

   looking in
DateField.swc

   looking in
DividedBox.swc

   looking in
DownloadProgressBar.swc

   looking in
FlashRemoting.swc

   looking in
Formatter.swc

   looking in
FormItem.swc

   looking in
HBox.swc

   looking in
HScrollBar.swc

   looking in Image.swc

   looking in
Label.swc

   looking in
Link.swc

   looking in
LinkBar.swc

   looking in
List.swc

   looking in
Loader.swc

   looking in
MediaController.swc

   looking in
MediaDisplay.swc

   looking in
MediaPlayback.swc

   looking in
MenuBar.swc

   looking in
Move.swc

   looking in
NumericStepper.swc

   looking in
Panel.swc

   looking in
Preloader.swc

   looking in
ProgressBar.swc

   looking in
RadioButton.swc

   looking in
RadioButtonGroup.swc

   looking in
Repeater.swc

   looking in
SimpleButton.swc

   looking in
TabBar.swc

   looking in
TabNavigator.swc

   looking in
TextArea.swc

   looking in
TextInput.swc

   looking in
TitleWindow.swc

   looking in
Tree.swc

   looking in
TreeDataProvider.swc

   looking in
Validator.swc

   looking in
VBox.swc

   looking in
ViewStack.swc

   looking in
VScrollBar.swc

   looking in
Zoom.swc

SWCRepair completed

 

I then put this SWC in the appropriate Flex directory (other custom
components work fine in this directory.)

 

Upon running the ColorPickerSample.mxml (that also comes in the extras
directory) I get this error (first compile only)

 

C:\Program
Files\Macromedia\Flex\jrun4\servers\default\streamline\s57\components\ColorPicker.swc
does not define a sprite for ColorPicker class ColorPicker

 

It’s probably something simple. Ideas, anyone?

 

Jim











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





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Accordion Header Icons - Changing during runtime

2005-11-17 Thread Jim Phelan










Hey Niklas,

 

I’ve done this before. I’m
accomplishing it with a custom class for the header, but if all you need is the
icon you should be able to use something like accd.getHeaderAt(0).icon = “iconLinkage”
Since AccordianHeader is a subclass of Button, it should work just fine.

 

Jim

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Niklas Richardson
Sent: Thursday, November 17, 2005
11:24 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
Accordion Header Icons - Changing during runtime



 

Crapola!  So you'd need
some custom header class huh?

Thanks.

Niklas

On 17/11/05, Sreejith Unnikrishnan
<[EMAIL PROTECTED]> wrote:
>  The icon is embedded at compile time
and may not be changed dynamically.
>  But then I could be wrong!
>
>  Sree
>
>
>  Niklas Richardson wrote:
>  Hi all,
>
>  I have hunted high and low for an
answer to this and I've played
>  around with accordion.getHeaderAt(),
getChildAt(), but to no avail.
>
>  Basically, I want to change the icon
for a specific accordion header
>  depending on a certain state of that
child.
>
>  There doesn't seem to be a way at
runtime to change the icon.
>
>  Does anyone know a solution to this?
>
>  Thanks.  Your help is much
appreciated.
>
>  Cheers
>
>  Niklas
>
>
>
>  --
>  Flexcoders Mailing List
>  FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>  Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
>  
>  YAHOO! GROUPS LINKS
>
>
>  Visit your group "flexcoders"
on the web.
>
>  To unsubscribe from this group, send an
email to:
>  [EMAIL PROTECTED]
>
>  Your use of Yahoo! Groups is subject to
the Yahoo! Terms of Service.
>
>  
>


--
Niklas Richardson
Prismix Ltd

Flex and ColdFusion Experts!








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





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Accordion Header Icons - Changing during runtime

2005-11-17 Thread Jim Phelan










The custom class might not benefit you (it
has some other features like a close button), but try this:

 

Button(accd.getHeaderAt(0)).icon

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Niklas Richardson
Sent: Thursday, November 17, 2005
11:51 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
Accordion Header Icons - Changing during runtime



 

Unfortunately I tried:

accd.getHeaderAt(0).icon

and it doesn't work.  It says
"icon" does not exist.  I think that's
because getHeaderAt() returns a UIComponent
object.

Would you be willing to share your custom header
class?

Thanks

Niklas

On 17/11/05, Jim Phelan
<[EMAIL PROTECTED]> wrote:
>
>
>
> Hey Niklas,
>
>
>
> I've done this before. I'm accomplishing it
with a custom class for the
> header, but if all you need is the icon you
should be able to use something
> like accd.getHeaderAt(0).icon =
"iconLinkage" Since AccordianHeader is a
> subclass of Button, it should work just fine.
>
>
>
> Jim
>
>
>
>  
>
>
> From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
> Behalf Of Niklas Richardson
>  Sent: Thursday, November 17, 2005 11:24
AM
>  To: flexcoders@yahoogroups.com
>  Subject: Re: [flexcoders] Accordion
Header Icons - Changing during runtime
>
>
>
> Crapola!  So you'd need some custom
header class huh?
>
>  Thanks.
>
>  Niklas
>
>  On 17/11/05, Sreejith Unnikrishnan
<[EMAIL PROTECTED]> wrote:
>  >  The icon is embedded at
compile time and may not be changed dynamically.
>  >  But then I could be wrong!
>  >
>  >  Sree
>  >
>  >
>  >  Niklas Richardson wrote:
>  >  Hi all,
>  >
>  >  I have hunted high and low
for an answer to this and I've played
>  >  around with
accordion.getHeaderAt(), getChildAt(), but to no avail.
>  >
>  >  Basically, I want to change
the icon for a specific accordion header
>  >  depending on a certain state
of that child.
>  >
>  >  There doesn't seem to be a
way at runtime to change the icon.
>  >
>  >  Does anyone know a solution
to this?
>  >
>  >  Thanks.  Your help is
much appreciated.
>  >
>  >  Cheers
>  >
>  >  Niklas
>  >
>  >
>  >
>  >  --
>  >  Flexcoders Mailing List
>  >  FAQ:
>  >
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>  >  Search Archives:
>  > http://www.mail-archive.com/flexcoders%40yahoogroups.com
>  >
>  >
>  >
>  > 

>  >  YAHOO! GROUPS LINKS
>  >
>  >
>  >  Visit your group
"flexcoders" on the web.
>  >
>  >  To unsubscribe from this
group, send an email to:
>  >  [EMAIL PROTECTED]
>  >
>  >  Your use of Yahoo! Groups is
subject to the Yahoo! Terms of Service.
>  >
>  > 

>  >
>
>
>  --
>  Niklas Richardson
>  Prismix Ltd
>
>  Flex and ColdFusion Experts!
>
>
>
>  --
>  Flexcoders Mailing List
>  FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>  Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
>  
>  YAHOO! GROUPS LINKS
>
>
>  Visit your group "flexcoders"
on the web.
>
>  To unsubscribe from this group, send an
email to:
>  [EMAIL PROTECTED]
>
>  Your use of Yahoo! Groups is subject to
the Yahoo! Terms of Service.
>
>  
>
>
>


--
Niklas Richardson
Prismix Ltd

Flex and ColdFusion Experts!








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





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] ComboBox and Icons

2005-11-17 Thread Jim Phelan










Hey Andre,

 

I just had to address this earlier this
week, and I had to write two custom subclasses to make it work. If you’re
interested I might be able to clean them up and share it, but it might take a
day or two to get around to it.

 

Jim

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Andre Ehlert
Sent: Thursday, November 17, 2005
10:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ComboBox and
Icons



 


Hi all, 

does
anybody know, if there is a possibility to add an icon to each item of a
combobox - 
(I
know it works with a mx:List via attribute iconField... :) 

thanxs

andré
ehlert 







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





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Accordion Header Icons - Changing during runtime

2005-11-18 Thread Jim Phelan










Hey Niklas,

 

Here’s a quick and dirty example:

 





 



















 

Naturally you’d need files named
plus.png and minus.png to make it work.

 

Let me know if this helps.

 

Jim

 

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Niklas Richardson
Sent: Friday, November 18, 2005
6:33 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
Accordion Header Icons - Changing during runtime



 

Hi Jim,

I gave that a shot and still to no avail. 
Still get the error:

"There is no property with the name
'icon'."

Oh well.  Perhaps I need to figure out these
custom header classes!

Thanks for the help.

Cheers

Niklas



On 17/11/05, Jim Phelan
<[EMAIL PROTECTED]> wrote:
>
>
>
> The custom class might not benefit you (it
has some other features like a
> close button), but try this:
>
>
>
> Button(accd.getHeaderAt(0)).icon
>
>
>
>  
>
>
> From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
> Behalf Of Niklas Richardson
>  Sent: Thursday, November 17, 2005 11:51
AM
>
>  To: flexcoders@yahoogroups.com
>  Subject: Re: [flexcoders] Accordion
Header Icons - Changing during runtime
>
>
>
> Unfortunately I tried:
>
>  accd.getHeaderAt(0).icon
>
>  and it doesn't work.  It says
"icon" does not exist.  I think that's
>  because getHeaderAt() returns a
UIComponent object.
>
>  Would you be willing to share your
custom header class?
>
>  Thanks
>
>  Niklas
>
>  On 17/11/05, Jim Phelan
<[EMAIL PROTECTED]> wrote:
>  >
>  >
>  >
>  > Hey Niklas,
>  >
>  >
>  >
>  > I've done this before. I'm
accomplishing it with a custom class for the
>  > header, but if all you need is the
icon you should be able to use
> something
>  > like accd.getHeaderAt(0).icon =
"iconLinkage" Since AccordianHeader is a
>  > subclass of Button, it should work
just fine.
>  >
>  >
>  >
>  > Jim
>  >
>  >
>  >
>  > 

>  >
>  >
>  > From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
>  > Behalf Of Niklas Richardson
>  >  Sent: Thursday, November 17,
2005 11:24 AM
>  >  To: flexcoders@yahoogroups.com
>  >  Subject: Re: [flexcoders]
Accordion Header Icons - Changing during
> runtime
>  >
>  >
>  >
>  > Crapola!  So you'd need some
custom header class huh?
>  >
>  >  Thanks.
>  >
>  >  Niklas
>  >
>  >  On 17/11/05, Sreejith
Unnikrishnan <[EMAIL PROTECTED]> wrote:
>  >  >  The icon is
embedded at compile time and may not be changed
> dynamically.
>  >  >  But then I could
be wrong!
>  >  >
>  >  >  Sree
>  >  >
>  >  >
>  >  >  Niklas Richardson
wrote:
>  >  >  Hi all,
>  >  >
>  >  >  I have hunted
high and low for an answer to this and I've played
>  >  >  around with
accordion.getHeaderAt(), getChildAt(), but to no avail.
>  >  >
>  >  >  Basically, I want
to change the icon for a specific accordion header
>  >  >  depending on a
certain state of that child.
>  >  >
>  >  >  There doesn't
seem to be a way at runtime to change the icon.
>  >  >
>  >  >  Does anyone know
a solution to this?
>  >  >
>  >  >  Thanks. 
Your help is much appreciated.
>  >  >
>  >  >  Cheers
>  >  >
>  >  >  Niklas
>  >  >
>  >  >
>  >  >
>  >  >  --
>  >  >  Flexcoders
Mailing List
>  >  >  FAQ:
>  >  >
>  >
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>  >  >  Search Archives:
>  >  >
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
>  >  >
>  >  >
>  >  >
>  >  > 

>  >  >  YAHOO! GROUPS
LINKS
>  >  >
>  >  >
>  >  >  Visit your group
"flexcoders" on the web.
>  >  >
>  >  >  To unsubscribe
from this group, send an email to:
>  >  > 
[EMAIL PROTECTED]
>  >  >
>  >  >  Your use of
Yahoo! Groups is subject to the Yahoo! Terms of Service.
>  >  >
>  >  > 

>  >  >
>  >
>  >
>  >  --
>  >  Niklas Richardson
>  >  Prismix Ltd
>  >
>  >  Flex and ColdFusion Experts!
>  >
>  >
>  >
>  >  --
>  >  Flexcoders Mailing List
>  >  FAQ:
>  >
> http://gr

[flexcoders] Java Pojo to AS pojo with ant

2005-11-20 Thread Jim Schneider










I’m looking to automatically generate actionscript
pojos  from java pojos (ejb3 annotations) using Ant.
I saw the AS2vogenerator, but it was my understanding that was done in an IDE
and was dependent on hbm files. Maybe I misunderstand the capabilities. 

 

On a related note, has anyone been able to generate DDL
using the hibernate-tools ant task without having to list out all of the
annotated classes in the hibernate.cfg.xml file? Seems like there should be a
way to “pass in” the class files to the annotationconfiguration ant
element, but after searching for a couple hours, I didn’t see that this
was supported. Ideally, this should read from a “par” file and not
really need the cfg.xml file (except for database dialect). 

 

While I’m asking for everything, does anyone else have
some useful code generation tools (using ant) that they can share?
Specifically, from an ejb3 annotated set of pojos, and a business service
interface (ejb3 stateless session interface), I would like to:

 


 Generate DDL for any given
 database dialect
 Generate actionscript pojos
 from java pojos
 Generate server-side java
 business delegate (remote object) from a business service  interface
 (ejb3 stateless session interface)
 Generate client-side
 actionscript business delegate from that same interface (for cairngorm
 framework)


 

Again, I want to do this all from ant, not from an IDE.
Maybe these are just a set of velocity templates? Any examples of these (and
how to invoke in ant) would be great as I’d rather not have to learn the
velocity template language (yet!).

 

Thanks, 

 

Jim

 









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] gathering ActionScript object references

2005-12-14 Thread Jim Laing
Hello all,

If someone can figure this out, it'd make my day. Here's what we'd like to do:

We have an object A, which is an ActionScript object created on the
client. In our application, we have at least two references to object
A. Using one of the references, we send object A back to the middle
tier, where it is serialized into a Java object, some operations are
done (persistence related, like inserting into a DB and assigning a
primary key), and object A is sent back to the client as object B,
possibly with updates. When we receive it, we'd like to replace object
A with object B. That is, we'd like to have all the former references
to object A now point to object B. Since we only know about one of the
references to object A, we want to use that reference to get all the
references to object A and update them accordingly. So, in made up
code, that would look something like this:

function updateReferences( refToA : Object, refToB : Object) {
 var allRefsToA  : Array = refToA.getAllReferencesToObject(); 
// made-up part
 for(var i = 0; i < allRefsToA.length; i++) {
   allRefsToA[i] = refToB;
 }
}

Does that make sense? Is there anything which we can do to simulate
the imaginary "getAllReferencesToObject" function?

---

(The rest is just explanation as to why we're not taking an
alternative approach)

The reason why we want to do this, instead of simply copy all the
attributes out of object B and into object A, is because the object
heirarchy contains internal references back to the object which are
necessary for our persistence layer to figure our the proper
relationships. That is, our object A represents the parent in a
parent-child relationship and each child contains a references back to
the parent. Here's an ASCII representation (omitting the
non-problematic attributes of A):

 A
  |
anArrayOfAChildren
| | |
cA1   cA2   cA3
| | |
A   AA

And object B is essentially a copy of this object model, but with B's
instead of A's. What we have done in the past (and recently discovered
to be incorrect) is something like

function mergePersistenceChanges ( refToA : Object, refToB : Object) {
  for(var i in refToB) {
refToA[i] = refToB[i];
  }
}

Which produces mostly what we want (all of the updated information is
copied correctly), but in the case of our back-references, it produces
an incorrect result like this:

 A
  |
anArrayOfBChildren
| | |
cB1  cB2cB3
| | |
B   BB

This causes future updates of attributes in object A not to be
reflected in the childrean objects  which is our problem. Is
someone is able to suggest a solution, or a way to implement the
proposed solution above? Thanks so much.

Jim


 Yahoo! Groups Sponsor ~--> 
AIDS in India: A "lurking bomb." Click and help stop AIDS now.
http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/nhFolB/TM
~-> 

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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] gathering ActionScript object references

2005-12-14 Thread Jim Laing
Thanks Martin. I think I see what you're saying, but unfortunately, I
don't think proxying is a viable option: we have somewhere in the
neighborhood of 50 model classes (many of which have this type of
cyclic relationship) and we're trying to implement a generic solution,
so we'd have to implement a proxy for each of these model classes.
Even if we can up with a generic ModelProxy class, we'd have to
refactor all of the model touchpoints in our application  which
would essentially amount to a rewrite.

If we can't come up with a solution, what we'll have to end up doing
is actually requerying all of the data after we save it in order to
repopulate the model with the sequence-based primary keys and such.
However, this is an ugly solution, and I'd like to be to update the
model when we save.

Thanks again, but any other suggestions?

Jim

On 12/14/05, Rishikesh Shetty <[EMAIL PROTECTED]> wrote:
>  To add to what Martin said, __resolve doesnt work in as3, The Proxy class
> in a replacement for __resolve.
> http://livedocs.macromedia.com/labs/1/flex/langref/flash/util/Proxy.html
>
> -rishi
>
>
>
>  --
>  Flexcoders Mailing List
>  FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>  Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
>  
>  YAHOO! GROUPS LINKS
>
>
>  Visit your group "flexcoders" on the web.
>
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>  
>


 Yahoo! Groups Sponsor ~--> 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM
~-> 

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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: How to handle manipulation of Date object and Timezones elegantly in Flex?

2005-12-22 Thread Jim Laing
On 12/22/05, Matt Chotin <[EMAIL PROTECTED]> wrote:
> Are there other developers out here who've been building apps that need
> to work in multiple timezones (or store their dates in GMT but work in
> another)?  I know I've answered some issues before in the past, if
> anyone wants to speak up ;-)

We have a similar but slightly different use-case (and unresolved
problem, for that matter): Our clients will be all over the world and
will be sending dates back to our database via RemoteObject calls.
When the date object is serialized, Flex automatically takes care of
updating the time zone information. However, this is actually *not*
what we want to happen because we are sending back dates with 00:00:00
timestamps (i.e. no time information). However, when this information
crosses timezones during serialization, 00:00:00 becomes a time
(midnight), which is then offset according to the timezone difference,
and the date possibly becomes a day off. E.g. a date of 25-Dec-2005
00:00:00 GMT on the client becomes 24-Dec-2005 17:00:00 EST in the
database. And those of us who celebrate Christmas know that 24-Dec !=
25-Dec

If there was a way that we could configure our clients to work in the
same timezone as our server, then we'd be all set. Alternatively, if
we could configure serialization to ignore timezone information then
our dates wouldn't be corrupted. Maybe there is already an easy
solution. I haven't had a chance to dig into the problem too much. But
any suggestions are appreciated.

Jim


 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM
~-> 

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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Remote Object/Spring Beans

2006-01-11 Thread Jim Schneider










If I were to go down the path of using remote object access
and wanted to use Spring beans on the back end for service implementation,
would I still need to have a thin layer/delegate to get to the Spring bean? (I’m
assuming this will make sense to some of the J2EE guys out there).

 

For example (ignoring obvious syntax and casting problems):

 

// Flex calls “delegate” remote object,
doSomething method

// RemoteObject = Delegate.java

// ServiceBean = POJO with Spring id = “someSpringBean”

 

 

Public class delegate

{

    Public
void doSomething()

    {

    beanFactory.getBean(“someSpringBean”).doSomething();

    }

}

 

 

Just wondering whether there’s a work-around (or code
generator) so that I don’t have to duplicate every method in my “someSpringBean”
in the thin delegate layer.

 

Thanks,

 

Jim

 

-

Jim Schneider

EyeCodeRight, LLC

1-877-370-6906

1-612-605-5399

 









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Remote Object/Spring Beans

2006-01-15 Thread Jim Schneider
Perfect. Thanks.

-
Jim Schneider
EyeCodeRight, LLC
1-877-370-6906
1-612-605-5399
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Richard Rodseth
Sent: Sunday, January 15, 2006 12:08 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Remote Object/Spring Beans

Hi Jim

Have you looked at SpringBeanAdapter?

http://www.carbonfive.com/community/archives/2005/07/springbeanadapt.html

- Richard

On 1/11/06, Jim Schneider <[EMAIL PROTECTED]> wrote:
>
>
>
> If I were to go down the path of using remote object access and wanted to
> use Spring beans on the back end for service implementation, would I still
> need to have a thin layer/delegate to get to the Spring bean? (I'm
assuming
> this will make sense to some of the J2EE guys out there).
>
>
>
> For example (ignoring obvious syntax and casting problems):
>
>
>
> // Flex calls "delegate" remote object, doSomething method
>
> // RemoteObject = Delegate.java
>
> // ServiceBean = POJO with Spring id = "someSpringBean"
>
>
>
>
>
> Public class delegate
>
> {
>
> Public void doSomething()
>
> {
>
>
> beanFactory.getBean("someSpringBean").doSomething();
>
> }
>
> }
>
>
>
>
>
> Just wondering whether there's a work-around (or code generator) so that I
> don't have to duplicate every method in my "someSpringBean" in the thin
> delegate layer.
>
>
>
> Thanks,
>
>
>
> Jim
>
>
>
> -
>
> Jim Schneider
>
> EyeCodeRight, LLC
>
> 1-877-370-6906
>
> 1-612-605-5399
>
>
>
>  --
>  Flexcoders Mailing List
>  FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>  Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
>
>  SPONSORED LINKS
>  Web site design development Computer software development Software design
> and development
>  Macromedia flex Software development best practice
>
>  
>  YAHOO! GROUPS LINKS
>
>
>  Visit your group "flexcoders" on the web.
>
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>  
>


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



 







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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] setUsernamePassword and J2EE login

2006-01-18 Thread Jim Schneider










After calling setUsernamePassword on a service, is this
information “available” to the backend services (remote object or
web service)? Or perhaps after a J2EE/JAAS login? If so, how/where?

 

We have a requirement to do a lot of logging of who’s
doing what in the system and was wondering whether there are any alternatives
to passing a username/id with most/all APIs.


Thanks for any help. 

 

Jim









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





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] Datagrid Validation/Restriction

2005-05-10 Thread Jim Laing
On 5/10/05, beckpvt <[EMAIL PROTECTED]> wrote:
> Moreover, is it possible to restrict data
> inside a cell - only numbers, for example?

It is possible, and actually pretty easy. You usually want to set such
properties at the column level, so all the ways I've seen such a thing
done uses a subclass of DataGridColumn to store the "restrict" and
"maxChars" properties. These properties must then be set on the
cellEditor (which is a TextInput and supports all the same properties
as a TextInput). If you're willing to use a subclass of the DataGrid,
then you can overload the setFocusedCell() function to read restrict
and maxChars from the appropriate column and set them on the
cellEditor. Alternatively, you could set these properties using an
event listener on cellFocusIn ... in which case you don't have to use
a subclassed DataGrid ... just do "dg.cellEditor.restrict =
(whatever)" and "dg.cellEditor.maxChars= (whatever)" ... a little more
wiring is involved, so if you're going to be doing a lot of this, I
recommend the subclassed DataGrid approach.

I've posted some example code that does this (among other things). See
http://groups.yahoo.com/group/flexcoders/message/14768

Jim


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] some datagrid ideas ...

2005-05-16 Thread Jim Laing
On 5/16/05, Manish Jethani <[EMAIL PROTECTED]> wrote:
> If you intend to share it:

Sounds like good ideas, but I don't know if I'll have the time. I
figured I'd just toss this out there for now. Maybe if I have time
within the next few weeks, I'll put together a few demos of the key
features and post them.

Jim


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] How to render cell to be in edit mode dynamically through cell renderer

2005-05-17 Thread Jim Laing
Hey Pradeep,

I've done this very thing using the date field as a cell renderer, so
it is possible, but I did it using a subclass of the DataGrid instead
of event listeners. Using event listeners instead is an interesting
approach, and if you can get it to work, would be superior to using a
subclass.

One thing to try: There is a boolean isCellEditor that the DataGrid
looks for in a cell renderer to decide if it should create a TextInput
cell editor or not. Try including a line like:
var isCellEditor : Boolean = true;

Using the subclassed datagrid approach, I've already posted some
sample code that does this with a combo box instead of a date field.
Check out the following message:
http://groups.yahoo.com/group/flexcoders/message/14768. E-mail me off
list if you want the code for the Date Field cell renderer.

Jim


On 5/17/05, Pradeep <[EMAIL PROTECTED]> wrote:
> I am trying to use a Custom Date Cell Renderer which goes in edit mode
> only when cell gains focus on it. Otherwise a label displays formatted
> Date value.
> 
> Following is the code for the DateRenderer :-
> 
> import mx.core.UIComponent
> import mx.core.UIObject
> import mx.controls.DateField
> import mx.controls.Label
> import mx.controls.Alert
> import mx.formatters.DateFormatter
> 
> class common.control.DateRenderer extends UIComponent{
> var dateObj:DateField;
> var label:Label;
> var dateFormat: DateFormatter;
> var listOwner : MovieClip;
> var getDataLabel : Function;
> var getCellIndex : Function;
> var __value;
> 
> public function DateRenderer(){
> dateFormat = new DateFormatter();
> dateFormat.formatString="MM-DD-";
> this.addEventListener("focusIn", this);
> this.addEventListener("focusOut", this);
> }
> 
> function createChildren(Void) : Void{
> super.createChildren();
> createClassObject( Label, "label", 1, {owner:this});
> label.width=80;
> }
> 
> //Display date field for editing on focus.
> function focusIn() : Void {
> createClassObject( DateField, "dateObj", 2, {owner:this});
> dateObj.width=80;
> dateObj.dateFormatter = this.formatDate;
> dateObj.selectedDate = __value;
> dateObj.addEventListener("change", this);
> label.visible = false;
> dateObj.visible = true;
> }
> 
>  //Remove date field and make label visible again.
> function focusOut() : Void {
> dateObj.visible = false;
> label.visible = true;
> destroyObject("dateObj");
> }
> 
> //Format function
> function formatDate(itemDate){
> return dateFormat.format(itemDate);
> }
> 
> function setValue( str:String, item:Object, sel:Boolean ) : Void{
> if(item != undefined){
> label.text= formatDate( item[getDataLabel()]);
> __value =  item[getDataLabel()];
> label.visible = true;
> }
> }
> 
> function getValue() : String {
> return __value;
> }
> 
> function getPreferredWidth(Void) : Number{
> return 80;
> }
> 
> function getPreferredHeight(Void) : Number{
> return 30;
> }
> 
> function change() {
> listOwner.editField(getCellIndex().itemIndex,
> getDataLabel(), dateObj.selectedDate);
> __value = dateObj.selectedDate;
> 
>   // Fire Cell edit event for the DataGrid on date change
> listOwner.dispatchEvent({type:"cellEdit",
> columnIndex:getCellIndex().columnIndex,
> itemIndex:getCellIndex().itemIndex});
> }
> 
> }
> 
> Intially label displays the formatted date. But on clicking on the
> cell default editor(textfield) is displayed. Can somebody please help
> on what could be causing this problem.
> 
> Can i create my own custom editor just like the default text editor?
> 
> Thanks in advance,
> Pradeep
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
>


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Custom Datagrid (like Excel)

2005-05-23 Thread Jim Laing
Hey Beck,

I've done exactly what you're looking for (plus a lot of other stuff
you might not want), through digging into the DataGrid code and
creating a subclass. I've posted the code, and it should provide you
with a starting point, although I still haven't gotten around to
creating a simple demo (blame it on schedule ...)

Check out this message: http://groups.yahoo.com/group/flexcoders/message/14768

Jim  


On 5/23/05, Beck Novaes <[EMAIL PROTECTED]> wrote:
> Hi People,
> 
> I need to implement a DataGrid with the following requirements:
> 
> -   It should be possible to have ComboBox in his cells;
> -   It should be possible to use the keyboard (TAB) to jump from one
> cell to another even though in one cell there is a ComboBox
> -   It should be possible to restrict data on individual cells
> -   It should be possible to validate data on individual cells
> 
> In other worlds, this DataGrid should work much like an Excel Sheet.
> The most important thing is the ability to enter the data just using
> the keyboard.
> 
> To implement something like this I need to dive into DataGrid. Does
> anyone have some tips to save my time? Have you ever needed to
> implement something like this?
> 
> Thanks a lot!
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
>


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Refresh grid after bound data changes...

2005-06-22 Thread Jim Laing
You could do "grid.executeBindings();" on the "change" or the
"valueCommitted" events of the TextInput. Change is fired every time
text is typed in the TextInput, so you might want to use
valueCommitted for performance reasons.

Jim


On 6/22/05, Tracy Spratt <[EMAIL PROTECTED]> wrote:
> You can certainly do this programmatically, by using editField() on the
> dataProvider in the change or focusout event of the text box.
> 
> To do it with binding I would just be guessing, but maybe you could do
> myDataProvider.modelChanged in the change event of the text box?
> 
> Post a sample app, I'll take a shot.
> 
> Tracy
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of jamiebadman
> Sent: Wednesday, June 22, 2005 12:10 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Refresh grid after bound data changes...
> 
> Hi,
> 
> I have a datagrid (dgHeader) bound to a dataprovider returned from a
> DB (headerList). Also on screen is a textInput box, which is bound
> inward to a column on the datagrid and the column on the datagrid is
> bound to the textInput.
> 
> So what happens is this:
> 
> Data retrieved and appears in the grid. You select a row on the grid
> and the textInput field is populated as expected.
> 
> You change the textInput field and the cell on the selected row on
> the grid does NOT change... until you click on the row on the grid -
> when you do this, the data is refreshed and all is fine...
> 
> My question is - how can I cause the cell to show the updated value
> from the textInput component without having to click the row on the
> grid ?
> 
> Thanks,
> 
> Jamie.
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
>


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Any Flex developers/consultants in Minneapolis

2005-06-22 Thread Jim Schneider










Are there any Flex developers/consultants in Minneapolis (or in the Minnesota area)?






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








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] BubbleChart: Multiple Bubble Colors and Axis Formatting

2005-07-19 Thread Jim Laing
Hello all,

This shouldn't be too difficult, but I haven't had much experience
with Flex charts, so the answer isn't apparent to me: I'd like to have
a BubbleChart which has a single BubbleSeries (see below). However,
I'd like each bubble in the series to be a different color based on a
varying attribute (in the example below, the attribute would be
discipline_id). So, in the example below, all 3 bubbles are currently
the default orange color, but I'd like them to be red, blue, green
(and so on, for any number of data records/disciplines). I'd also like
to have a legend which displays the mapping between the discipline_id
attribute and the bubble color.

Finally, I'd like to format the chart so that the axis lines
corresponding to x == 1 and y == 1 are bold. Essentially, this chart
should be a four-quadrant chart with an origin of (1,1).

If anyone can point me in the right direction toward accomplishing any
of these goals, it would be greatly appreciated. Thanks!

Jim
 

--- DisciplinesBubble.mxml
---

http://www.macromedia.com/2003/mxml";>



1.7579
0.5947
2100
11


1.52
0.765
1000
611


1.7146
0.6168
3100
2593


















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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: BubbleChart: Multiple Bubble Colors and Axis Formatting

2005-07-20 Thread Jim Laing
Just thought I'd bump this, since the Macromedia people are back on
the list now ...

Jim

On 7/19/05, Jim Laing <[EMAIL PROTECTED]> wrote:
> Hello all,
> 
> This shouldn't be too difficult, but I haven't had much experience
> with Flex charts, so the answer isn't apparent to me: I'd like to have
> a BubbleChart which has a single BubbleSeries (see below). However,
> I'd like each bubble in the series to be a different color based on a
> varying attribute (in the example below, the attribute would be
> discipline_id). So, in the example below, all 3 bubbles are currently
> the default orange color, but I'd like them to be red, blue, green
> (and so on, for any number of data records/disciplines). I'd also like
> to have a legend which displays the mapping between the discipline_id
> attribute and the bubble color.
> 
> Finally, I'd like to format the chart so that the axis lines
> corresponding to x == 1 and y == 1 are bold. Essentially, this chart
> should be a four-quadrant chart with an origin of (1,1).
> 
> If anyone can point me in the right direction toward accomplishing any
> of these goals, it would be greatly appreciated. Thanks!
> 
> Jim
> 
> 
> --- DisciplinesBubble.mxml
> ---
> 
>  xmlns:mx="http://www.macromedia.com/2003/mxml";>
> 
> 
> 
> 1.7579
> 0.5947
> 2100
> 11
> 
> 
> 1.52
> 0.765
> 1000
> 611
> 
> 
> 1.7146
> 0.6168
> 3100
> 2593
> 
> 
>  dataTipFunction="formatDataTip" height="100%" id="chart"
> showDataTips="true" width="100%">
> 
> 
> 
> 
> 
> 
> 
> 
>  radiusField="EARNED_POSSIBLE" xField="CPI" yField="SPI"/>
> 
> 
> 
> 
>


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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Datagrid Oddity

2005-07-22 Thread Jim Laing
I've had this happen with cell renderers as well (not using FP8). My
issue stemed from the fact that the DataGrid was being created before
the dataProvider was populated. When the dataProvider is populated,
the setValue function of each cell renderer is not called. Only when
the user scrolls over the cell is setValue called and the appropriate
data shown.

In my case, I solved the issue by making sure that the DataGrid wasn't
created until after the model was populated. You might have some other
options (e.g. calling setValue for all the cell renderers
programmatically on the modelChanged event), but my solution was the
simplest for my situation.

Hope that helps,
Jim

On 7/22/05, Stacy Young <[EMAIL PROTECTED]> wrote:
>  
>  
> 
> I've got a column that's using a labelFunction to format a date. When the
> grid initially populates the dates don't show…they only appear when the
> rollover occurs on each row in the datagrid. Running FP8 public beta. 
> 
>   
> 
> -Stace 
> 
>  --
>  Flexcoders Mailing List
>  FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>  Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
>  
> 
>  
>  SPONSORED LINKS 
>  Computer software testing Macromedia flex Development 
>  Software developer 
>  
>  
>  YAHOO! GROUPS LINKS 
>  
>  
>  Visit your group "flexcoders" on the web.
>   
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>   
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
>  
>  
>


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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


RE: [flexcoders] Combining graphic and programmatic themes - a better way?

2005-09-05 Thread Jim Phelan










Brian, thanks for the response.

 

I found that in “About theme
limitations” at http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentation&file=0577.htm

 

I tried adding the skin through Flash
authoring by attaching the class to a symbol in the usual way, but it did not
work out. I got some compiler errors (since I was referencing some container
classes that aren’t included in the flexforflash library) and ran SWCRepair,
but the theme didn’t take effect. Flash also generated a ton of ASI’s
for every dependent class of the class I subclassed, increasing the swc file
size pretty dramatically. I’m not sure if exclude.xml will work when
exporting a component, or if there might be a better way of accomplishing this.

 

I later realized that simply referencing
the class name anywhere in AS makes the theme work just fine, so this is a
satisfactory solution for now. I assume I could add it to a RSL as well.

 

How would one add the swf skin using
compc? I didn’t spend much time on it, but I couldn’t find a way to
add swf’s to swc’s using compc. Perhaps there is a way to add
classes to an already created swc?

 

Best,

 

Jim

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brian Deitte
Sent: Monday, September 05, 2005
10:34 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Combining graphic and programmatic themes - a better way?



 

Hi Jim, that's a pretty interesting
solution that technically should work, but the catalog.xml has many exceptions,
caveats, and magical properties.  I would suggest staying away from it if
you can.  Did you try just adding both the programmatic and graphical
skins to the SWC (through compc or Flash Authoring)?  I don't see any
real reason why you cannot add both of these to a SWC file.  Can you
tell me where this is in the documentation?  Thanks, Brian



 











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jim Phelan
Sent: Sunday, September 04, 2005
1:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Combining
graphic and programmatic themes - a better way?

Hi all,

 

I’m new to the list and somewhat new to Flex
development.

 

I found this in the Macromedia documentation:

You cannot combine both programmatic skins and graphical
skins in a single SWC file.

 

After toying with it for a while, I found that by manually
editing the catalog.xml file in the swc and adding my swf of graphical elements
manually, I was able to accomplish what I wanted. Is there a more streamlined
solution to this? Has anyone created a utility to automate this? If not, is
there an interest in such a utility?

 

Best,

 

 

--

Jim Phelan
VP of
Development
Stream57, LLC
462 7th Ave
Suite 401
New York, NY
 10018

--

 








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Software design and development
  
  
Macromedia flex
  
  


Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Remote objects and ASP

2005-09-07 Thread Jim Phelan










I don’t think there is a solution
for classic ASP other than web services. You should use Macromedia’s
Flash Remoting MX for .NET. You can tie a remote object into this by setting
the endpoint attribute to the uri of the flash gateway.

 

Jim

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of James
Sent: Wednesday, September 07,
2005 7:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Remote objects
and ASP



 

I'm looking for help I'm trying to get remote objects from an ASP
page
or even an XML template from a MS SQL Server. Can
it be done? Have you
accomplished it? Is there an example that I can
look at?










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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Software design and development
  
  
Macromedia flex
  
  


Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











dragmanager problem

2005-03-03 Thread Jim Miao
hello,

here there is a component defined in soundComp.mxml using dragmanager, the 
main.mxml used it, it runs exactly. But after I loading a mxml into main.mxml 
by click the button, it seems that the dragmanager working unwillingly.

what/how should I do?



Jim Miao

binr2dY95VZYG.bin
Description: Binary data


Re: (瑞星提示-此邮件可能是垃圾邮件)[flexcoders] dragmanager problem

2005-03-04 Thread Jim Miao



Matt or any others can help 
me?

  - Original Message - 
  From: 
  Jim Miao 
  To: flexcoders@yahoogroups.com 
  Sent: Thursday, March 03, 2005 6:45 PM
  Subject: [flexcoders] dragmanager 
  problem
  
  hello,
   
      here there 
  is a component defined in soundComp.mxml using dragmanager, the main.mxml used 
  it, it runs exactly. But after I loading a mxml into main.mxml by click 
  the button, it seems that the dragmanager working 
  unwillingly.
   
      what/how 
  should I do?
   
   
  Jim Miao


precompile mxml

2005-03-08 Thread Jim Miao



 
hello all,
 
    Can I 
precompile mxml by request the url by my servlet, Just like precompile jsp? 

    If Can, 
what/how should I do? 
 
Jim Miao
 
Tel:86-512-62510268-800


Re: (瑞星提示-此邮件可能是垃圾邮件)RE: [flexcoders] precompile mxml

2005-03-09 Thread Jim Miao



Dennis,
    
thanks for your help.
    yes, 
I know the command line compiler's method.
 
    and 
now, I want to precompile it without the mxmlc command. I think if we request 
the mxml by url, it will compile; and then we can pre-compile it when we deploy 
our web-application, just like pre-compile jsp.

  - Original Message - 
  From: 
  Dennis Baldwin 
  To: flexcoders@yahoogroups.com 
  Sent: Tuesday, March 08, 2005 11:04 PM
  Subject: RE: [flexcoders] precompile 
  mxml
  
  Jim,
   
  I'm not sure what 
  you're trying to do but if you look in your Flex install dir under bin there's 
  a command line compiler.  In it's simplest form the syntax 
  is:
   
  mxmlc 
  flex_file.mxml
   
  If this doesn't 
  help please elaborate a little more and maybe we can help you find a 
  solution.
   
  Regards,
  Dennis
  
-----Original Message-From: Jim Miao 
[mailto:[EMAIL PROTECTED]Sent: Monday, March 07, 2005 9:33 
PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
precompile mxml
 
hello 
all,
 
    Can I 
precompile mxml by request the url by my servlet, Just like precompile jsp? 

    If Can, 
what/how should I do? 
 
Jim Miao
 
Tel:86-512-62510268-800


Re:[flexcoders] dragmanager problem

2005-03-09 Thread Jim Miao



Does this mean I can not finish 
the sound control panel?

  - Original Message - 
  From: 
  Matt 
  Chotin 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, March 04, 2005 12:54 PM
  Subject: RE: [flexcoders] dragmanager 
  problem
  
  
  Wow, I really don’t 
  know.  What happens if you don’t load the new swf underneath the sound 
  control but off to the side?  I’m as confused as you are 
  J
   
  Matt
   
  
  
  
  
  From: Jim 
  Miao [mailto:[EMAIL PROTECTED] Sent: Thursday, March 03, 2005 5:46 
  AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] dragmanager 
  problem
   
  
  hello,
  
   
  
      
  here there is a component defined in soundComp.mxml using dragmanager, the 
  main.mxml used it, it runs exactly. But after I loading a mxml into 
  main.mxml by click the button, it seems that the dragmanager working 
  unwillingly.
  
   
  
      
  what/how should I do?
  
   
  
   
  
  Jim 
  Miao


hitTest() and createClassObject()

2005-03-11 Thread Jim Laing
Hey all, 

I'm trying to make a custom component which dynamically changes it's
state/appearance. Actually, it's a cell renderer/cell editor which
works with our own version of dataGrid, and creates an additional
object/changes it appearance when the cell is focused in. To this end,
I've decided to create two functions - focusInCell() and
focusOutCell() which control the creation and destruction of the
appropriate part of the components (below is an example snippet from a
component using a comboBox). This all works great, except for the fact
that it seems the player doesn't always get the size of the movie clip
right: certain components (like dateFields which have the pull down
shown) fail on hitTest() when the should pass and other components
(like combo boxes) pass on hitTest() when the should fail i.e. the
following code confuses the player regarding its size after you open
and then close the combo box ... it seems the player thinks it takes
up the expanded size and not the now-collapsed size .

To be honest, I don't know that much about createClassObject of how
Flash manages sizes and movieClips, so I could be missing something
obvious. Any help would be appreciated! Thanks!

Jim


function createChildren(Void) : Void {
super.createChildren();
createClassObject( Label, "comboLabel", 1, { styleName:this, owner:this } );
size();
}

function focusInCell() : Void {
createClassObject( ComboBox, "combo", 2, { styleName:this,
owner:this, selectable:true,editable:false, labelFunction:labelFunc }
);
combo.dataProvider = this.dataProvider;
combo.selectedIndex =
Number(ArrayUtil.linearSearchI(combo.dataProvider, valueProp,
__value));
combo.setStyle( "backgroundColor", getStyle( "selectionColor"));
combo.addEventListener( "change", this );
comboLabel.visible = false;
combo.visible = true;
size();
}

function focusOutCell() : Void { 
combo.visible = false;
comboLabel.visible = true;
destroyObject("combo");
size();
}

function size( Void ) : Void {
comboLabel.setSize( width, 20 );
combo.setSize( width, 20 );
}




Re: [flexcoders] Error Display Colour

2005-02-24 Thread Jim Miao
It seems that, we can not specify the error tip's style including textformat.


- Original Message - 
From: "Ketan Bengali" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, February 24, 2005 3:17 PM
Subject: Re: [flexcoders] Error Display Colour


> 
> Nope.. Nothing works.
> There is no error as such but not getting the desired output.
> It still shows red background
> 
> Regards,
> 
> Ketan Bengali
> Multimedia Programmer,
> Silver Communication Pvt. Ltd.,
> Pune.
> 
> 
> 
> Gordon Smith wrote:
> 
>> I think
>>
>> 
>> ErrorTip { borderColor: #123456 }
>> 
>>
>> will work, although it should really be
>>
>>
>> ErrorTip { backgroundColor: #123456 }
>> 
>>
>> - Gordon
>>
>>
>> -Original Message-
>> From: Ketan Bengali [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, February 23, 2005 9:18 PM
>> To: flexcoders@yahoogroups.com
>> Subject: Re: RE: [flexcoders] Error Display Colour
>>
>>
>>
>> Tried applying on a TextInput but no change.
>> Also the documentation defines "errorColor" as the color property of the
>> error text and not the background color (red) which I want to change.
>>
>> Thanks.
>>
>>
>> On Wed, 23 Feb 2005 Matt Chotin wrote :
>> >Set the errorColor style.
>> >
>> >
>> >
>> >Matt
>> >
>> >
>> >
>> >   _
>> >
>> > From: Ketan Bengali [mailto:[EMAIL PROTECTED]
>> >Sent: Wednesday, February 23, 2005 1:46 AM
>> >To: flexcoders@yahoogroups.com
>> >Subject: [flexcoders] Error Display Colour
>> >
>> >
>> >
>> >Hi
>> >
>> >Can anybody tell me how do I change the default red colour
>> >of the Error Display Colour in Forms.
>> >
>> >
>> >Thanks.
>> >
>> >
>> >Regards.,
>> >Ketan Bengali
>> >
>> >
>> >
>> >   _
>> >
>> >Yahoo! Groups Links
>> >
>> >*  To visit your group on the web, go to:
>> >http://groups.yahoo.com/group/flexcoders/
>> >
>> >
>> >*  To unsubscribe from this group, send an email to:
>> >[EMAIL PROTECTED]
>> >
>> >
>> >*  Your use of Yahoo! Groups is subject to the Yahoo!
>> >  Terms of Service.
>> >
>>
>>
>>
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>>
>> *Yahoo! Groups Sponsor*
>> ADVERTISEMENT
>> click here 
>> 
>>  
>>
>>
>>
>> 
>> *Yahoo! Groups Links*
>>
>> * To visit your group on the web, go to:
>>   http://groups.yahoo.com/group/flexcoders/
>>
>> * To unsubscribe from this group, send an email to:
>>   [EMAIL PROTECTED]
>>   
>>
>> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>>   Service .
>>
>>
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
>

sth wrong about the dragEnter event in canvas

2005-02-27 Thread Jim Miao



 
hello,
 
    sometimes, the 
dragEnter event cannot working in canvas.
 
    I defined a 
component using DragManager. if I use it in a mxml file, it works fine, but when 
I insert it into some mxml file including many other components, it cannot 
work, and I find the key is dragEnter event cannot 
work.
 
    what/how 
should I do?
 
 
 
Jim Miao
 


Re: [flexcoders] htmlText and styles

2005-02-03 Thread Jim Miao
yes, It seems can not use css, and also can't use  either.


- Original Message - 
From: "James Ward" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, February 03, 2005 4:11 AM
Subject: [flexcoders] htmlText and styles


> 
> Has anyone successfully applied a style to a Label or Text with
> htmlText?  I tried   But that doesn't seem to
> work.  Thanks.
> 
> -James
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
>

Re: [flexcoders] Datagrid Keys

2005-03-24 Thread Jim Laing

On Wed, 23 Mar 2005 21:43:55 -, viraf_bankwalla
<[EMAIL PROTECTED]> wrote:
> 1.  How specify an alternat set of keys for movement within the
> datagrid.  I would like to use the up, down, right, left arrows.

To make Up/Down work while a cell editor is present, we ended up
overriding the editorKeyDown() function in our subclassed DataGrid.
Left/Right didn't make sense to us cause you need those keys to
navigate the cellEditor. But Tab/Shift+Tab move left and right by
default. We did have some issues with restoring selection after moving
up/down as well as some other things, but I'll let you figure those
out for yourself :)

Jim


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] How do you do this in flex

2005-04-04 Thread Jim Laing

ActionScript supports all the standard boolean operators. && for and,
|| for or, etc. So if(cond1 || cond2) { ... } Is that what you mean?

On Apr 4, 2005 11:49 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>  
> Make an if statement that will run based on two conditions rather than just
> one. Is this possible to do in Flex? 
>  
>  Yahoo! Groups Links
>  
>  
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
>   
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Data Grid and cell renderer

2005-04-05 Thread Jim Laing

Try setting editable=false on the column.

Jim

On Apr 5, 2005 3:26 PM, Naidim <[EMAIL PROTECTED]> wrote:
> 
> 
> I'm using a simple DateField as the CellRenderer of a column in my
> DataGrid.
> 
> Clicking in the cell with the mouse brings up the date picker
> ,allowing me to select a date, but tabbing through the grid brings up
> a textinput without the date information already entered by the date
> picker.
> 
> Is there a way to not display the text input, allowing the user only
> the ability to use the DateField?
> 
> Thanks
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
>


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: DataGrid Column updates

2005-04-26 Thread Jim Laing

You might try setting the booleans invDrawCols and invInitHeaders to
true on the DG. The columns and headers shoud be redrawn next time
round, or you could force a redraw. Check out the DG code in Flex for
Flash ... it should make it clear.

Jim

On 4/26/05, viraf_bankwalla <[EMAIL PROTECTED]> wrote:
> 
> 
> Any suggestions ?
> 
> --- In flexcoders@yahoogroups.com, "viraf_bankwalla"
> <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > 1.  What is the best way to have a column's headerRenderer update
> its
> > value (i.e. call setValue).
> >
> > 2.  Have a column update its conthent - i.e. each of the column rows
> > update themselves - i.e. call setValue.
> >
> > 3.  Have the column header and cells update themselves.
> >
> > Thanks.
> 
> Yahoo! Groups Links
> 
> 
> 
> 
>


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] DataGrid Cell Validation

2005-04-27 Thread Jim Laing

The only way I think this would be possible is to use a subclassed
DataGrid: You would override setFocusedCell() to check validation and
stay if not valid.Otherwise, call super.setFocusedCell()

Jim

On 4/27/05, viraf_bankwalla <[EMAIL PROTECTED]> wrote:
> 
> 
> Hi,
> 
> I have a datagrid with a cellrenderer.  It does validation, however we
> would like prevent the user from moving to a new cell unless the
> validation has passed.  How could I do so.
> 
> Thanks.
> 
> - viraf
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
>


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Newbie: Flash vs. Flex, CPUs, Lazslo

2005-04-28 Thread Jim Schneider
1. Could someone explain (or point me to a doc/faq) that tells me why I
would choose Flex over Flash. What can Flex do that Flash can't? Even if
it's more difficult in Flash, perhaps it's worth it given the cost of Flex.

2. Speaking of cost, I read on MM's site that they recommend a typical
deployment of a Flex app have 6 - 8 CPUs. Is this true in practice? If I
have an app that has 50 users (would grow to perhaps 10K users) who don't
hit the system very hard, what are CPU requirements? Are there any
performance benchmarks that I can use as a guideline for what I would need
initially and at what point I would need to upgrade. As a small company, we
can probably chew off $12K, $70K is another story (unless I misunderstand
the licensing).

3. Has anyone had any real-world experience/lessons-learned with Laszlo and
any comparisons with Flex?

Thanks

Jim





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Datagridcolumn sortCompareFunction

2005-05-04 Thread Jim Laing
I've solved this problem in the past by using the sort() function of
the Array class, which takes a compare function as its only argument.
Assuming that you are using an array as the data provider of your
grid, you can sort the array and then display the sorted data in the
grid. You'll have to rig up some extra wiring if you want this to sort
on a user action (e.g. clicking a column header).

http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary068.html

Jim
 

On 5/4/05, Jeroen De Vos <[EMAIL PROTECTED]> wrote:
>  
> 
> Hi all, 
> 
> I'm writing a custom sort function that needs information from two colums to
> do the sorting. 
> 
> Example: 
> The data is formed like this: 
> TYPENAME 
> a   Test_1 
> b   Test_2 
> a   Test_3 
> a   Test_4 
> b   Test_5 
> 
> The TYPE column is not shown in the datagrid, only the NAME column is
> visible. 
> When sorting on the NAME column, the datagrid needs to take into account the
> TYPE column so that the result of the sort is: 
> 
> TYPENAME 
> a   Test_1 
> a   Test_3 
> a   Test_4 
> b   Test_2 
> b   Test_5 
> So, first sort on TYPE and then sort on NAME. 
> 
> How do I do this? 
> Can I use the sortCompareFunction of the datagridcolumn for this? I guess
> not because the objects in the parameters of the function are not the rows,
> but the values inside the column to be sorted. 
> 
> Thanks, 
> Jeroen. 
> 
>  
> 
> Jeroen De Vos 
> Gemeentelijk Havenbedrijf Antwerpen 
> C/ICT - AMARIS 
>  
> 
> Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het
> Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke
> informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of
> telefonisch te verwittigen als u deze e-mail per vergissing heeft ontvangen
> en verwijder vervolgens de e-mail zonder deze te lezen, te reproduceren, te
> verspreiden of te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf
> Antwerpen is op geen enkele manier verantwoordelijk voor fouten of
> onnauwkeurigheden in de inhoud van deze e-mail. Het Gemeentelijk
> Havenbedrijf Antwerpen kan niet aansprakelijk gesteld worden voor directe of
> indirecte schade, verlies of ongemak veroorzaakt als gevolg van een
> onnauwkeurigheid of fout in deze e-mail. 
> 
> English Translation: This e-mail and all attached files are official
> documents of Antwerp Port Authority and may contain confidential or personal
> information. If you have received this e-mail in error, you are asked to
> inform the sender by e-mail or telephone immediately, and to remove it from
> your system without reading or reproducing it or passing it on to other
> parties. Antwerp Port Authority is in no way responsible for any errors or
> inaccuracies in the contents of this e-mail, nor can it be held liable for
> any direct or indirect loss, damage or inconvenience arising from any such
> errors or inaccuracies. [GHA#Disclaimer] 
>  
>  Yahoo! Groups Links
>  
>  
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
>   
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Questions, Questions

2005-05-04 Thread Jim Schneider
Could you expand on/list these "unpleasant limitations"? I'm one of these
small companies trying to decide whether Flex is "worth it".

Thanks,

Jim

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Laudrup
Sent: Wednesday, May 04, 2005 10:09 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Questions, Questions

Flex server is only a presentation layer that runs on
top of your current J2EE/.NET app. There is no diff
between a flex app and any other J2EE app in the way
the app is deployed...

Per my understanding when develop a j2ee app that uses
Flex as presentation layer, then you'll have to pay
for Flex license in order to deploy the app... and the
price might vary it was 12k/2cpu a while back but
know is more expensive the good news is that MM is
willing to negotiate with you and probably you'll get
something that will work out well for you.

For short I'm afraid that you cannot run a flex app
without paying a runtime license fee... nice huh...
way to go JSF...

In my opinion the cost of the license might be a show
stopper for many small companies that want to
develop/deploy flex applications. In addition to the
license cost you need to consider some unpleasant
limitations this product has and see if for the money
you pay you get what you needwhich probably you
already did.

So, welcome to the dark side...
Michael

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 
Yahoo! Groups Links



 







 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Datagrid cellEditor focus problem

2005-05-04 Thread Jim Laing
I added a "dg.disposeEditor();" line before setting the focused cell
to the old cell when not changing the focus. This seems to make it
work  Alternatively, you could use "dg.focusedCell = undefined;"

Jim 

function doCellPressFocusIn(event)
   {
   if(changeFocus)
   {
   var obj1 = oldCell =
{itemIndex:event.itemIndex, columnIndex:event.columnIndex};
   dg.focusedCell = obj1;
   }
   else
   {
   dg.focusedCell = undefined;
   dg.focusedCell = oldCell;
   }

On 5/4/05, bhaq1972 <[EMAIL PROTECTED]> wrote:
> Hi
> I'm doing a simple test where i store the position of a focusedCell
> during a cellPress/cellFocusIn event.
> 
> If i then set a boolean variable to false, i want the celleditor to
> appaer in the original position. This works except the green box
> appears in the new position.
> I want this green box to appear around the cellEditor all the time.
> 
> heres an example of what i mean.
> 
> TIA
> 
> 
> http://www.macromedia.com/2003/mxml";
> xmlns="*" backgroundColor="#C0DCC2">
> 
> 
> 
> 
> 
> 
>  dataProvider="{ dp }" cellFocusIn="doCellPressFocusIn(event)"
> cellPress="doCellPressFocusIn(event)">
> 
> 
> 
>  columnName="two" />
>  columnName="three"/>
> 
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
>


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Questions, Questions

2005-05-04 Thread Jim Schneider










I’m more interested in the “unpleasant
limitations” of Flex. I can then weigh these against whatever price.

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rick Bullotta
Sent: Wednesday, May 04, 2005
10:26 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Questions, Questions



 

One last time:

 

If you are an ISV or OEM, call Macromedia
to discuss your SPECIFIC application needs in terms of pricing.  They are
very open to working creatively with partners in this aspect, but you’ll
never know unless you call.

 

- Rick









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jim Schneider
Sent: Wednesday, May 04, 2005
11:22 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Questions, Questions



 

Could you expand on/list
these "unpleasant limitations"? I'm one of these
small
companies trying to decide whether Flex is "worth it".

Thanks,

Jim

 










Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












Re: [flexcoders] Dynamically poplulating an editable DataGrid

2005-05-09 Thread Jim Laing
Sorry for such a late reply, but I'm pretty sure this isn't a bug. 

Your approach for adding a new row to the grid is slightly incorrect:
you're pushing the new object onto the data provider of the grid.
Instead, you should use the addItem method of the grid / dataProvider.
Doing this causes the "modelChanged" event to be fired, which the
DataGrid listens for internally and updates the grid accordingly.
Adding and removing columns makes the grid recreates the rows (via the
datagrid's initRows() function) while the modelChanged listener calls
the drawRow() method of each row. So they both fix the issue, but as
you said, the first is an ugly hack, and it might be slightly more
expensive (creating versus redrawing).

The code attached below seems to fix the issue (notice the last two
lines). Let me know for sure if this works for you.

Jim

// adds a new row to the data grid
   function gridAddRow() {
   // we need to generate the object with the correct cells
   var newRow:Object = {};
   // get the current column names
   var aCols:Array = myDataGrid.columnNames;
   // loop through the column names and create an empty cell
item for each
   for (var i = 0; i < aCols.length; i++) { newRow[aCols[i]] = ""; }
   // push the new row to the dataprovider
   // gripDP.push(newRow);
   myDataGrid.addItem(newRow);
   }


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Dynamically poplulating an editable DataGrid

2005-05-09 Thread Jim Laing
Oh, sorry for the self reply, but I forgot to address the editing /
not showing up issue.

Try using undefined instead of empty string. The DataGrid replaces
undefined with single space (which can be a headache if you try and
cast to a number to return to your persistence layer ... don't get me
started ...). It's probably no different then just using a single
space, but I feel better about it on a purely emotional level :-)

The line is gridAddRow would then be:
for (var i = 0; i < aCols.length; i++) { newRow[aCols[i]] = undefined; }

Jim

On 5/9/05, Jim Laing <[EMAIL PROTECTED]> wrote:
> Sorry for such a late reply, but I'm pretty sure this isn't a bug.
> 
> Your approach for adding a new row to the grid is slightly incorrect:
> you're pushing the new object onto the data provider of the grid.
> Instead, you should use the addItem method of the grid / dataProvider.
> Doing this causes the "modelChanged" event to be fired, which the
> DataGrid listens for internally and updates the grid accordingly.
> Adding and removing columns makes the grid recreates the rows (via the
> datagrid's initRows() function) while the modelChanged listener calls
> the drawRow() method of each row. So they both fix the issue, but as
> you said, the first is an ugly hack, and it might be slightly more
> expensive (creating versus redrawing).
> 
> The code attached below seems to fix the issue (notice the last two
> lines). Let me know for sure if this works for you.
> 
> Jim
> 
> // adds a new row to the data grid
>function gridAddRow() {
>// we need to generate the object with the correct cells
>var newRow:Object = {};
>// get the current column names
>var aCols:Array = myDataGrid.columnNames;
>// loop through the column names and create an empty cell
> item for each
>for (var i = 0; i < aCols.length; i++) { newRow[aCols[i]] = ""; }
>// push the new row to the dataprovider
>// gripDP.push(newRow);
>myDataGrid.addItem(newRow);
>}
>


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] DataGrid cell problem overriding setFocusedCell() method

2005-05-09 Thread Jim Laing
On 5/9/05, bhaq1972 <[EMAIL PROTECTED]> wrote:
> The problem i have is, the combobox dropdown doesnt close, when you
> click elsewhere on the Datagrid.
> There is no problem if combobox.editable = false (initial parameter
> passed to craeteClassObject)

I'm not able to replicate your problem. I ran the code posted and the
focus changed as it should from cell to cell. Can you make sure that
the code you posted is identical to the code you are testing? If so, I
guess we'll have to start comparing versions and setups, etc.

The issue that the code posted *does* display is that the combo box
does actually edit the data provider. This can likely be solved by
overriding the editCell() function so that it actually gets the
correct data from the cellEditor.

Also, what exactly are you trying to accomplish? I may have a solution
that might work for you (but implemented differently), so I'm
interested in the requirements. Also, I'll have to ask my boss to make
sure I can release the code.

Jim


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] DataGrid cell problem overriding setFocusedCell() method

2005-05-09 Thread Jim Laing
On 5/9/05, Jim Laing <[EMAIL PROTECTED]> wrote:
> I'm not able to replicate your problem. 

AHHH! Spoke too soon again! That's twice in one day ... I can, in
fact, replicate the problem. I did it wrong before 

However, not only can I replicate your problem, I can also fix it
(this is a hack cause I did it quick, but you get the idea): Overload
the disposeEditor() function and make it destroy the dropdown movie
clip. See the code attached.

I'm still interested in what your requirements are cause my solution
might be more general, if it is applicable (the idea of removing the
combobox dropdown comes it ... via MM support).

Jim

function disposeEditor() : Void {
cellEditor.dropdown.removeMovieClip();
cellEditor.mask.removeMovieClip();
super.disposeEditor(); 
}


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] setFocus() on a TextInput

2005-05-09 Thread Jim Laing
I think the right way to do this is to use the static Selection class, as in

Selection.setFocus(feedURLText);

and/or

Selection.setSelection(0, feedURLText.length);

.. not really sure. I do know that it's somewhat fickle so I had to
just keep trying permutations till I got something to work.

Jim


On 5/9/05, heybluez <[EMAIL PROTECTED]> wrote:
> So..i want a textinput to show focus..on other words it should
> selected for editing, etc.
> 
> I try:
> 
> feedURLText.setFocus();
> 
> with feedURLText as the ID of the TextInput component.
> 
> This does not seem to work.
> 
> Any ideas?
> 
> Thanks,
> Michael
>


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: some datagrid ideas ...

2005-05-10 Thread Jim Laing
For those of you without access to attachments, these files are
temporarily available at

http://www.phlod.com/WGDataGrid.pdf
http://www.phlod.com/WGDataGrid.zip

Jim

On 5/9/05, Jim Laing <[EMAIL PROTECTED]> wrote:
> All,
> 
> As part of developing our current application, I've been working on
> customizing the datagrid's default behavior to suit our needs. I've
> done this mostly through a subclass of the datagrid which we refer to
> internally as WGDataGrid. While I guess I'd classify a lot of these
> customizations as "hacks", I still figure it might be useful to
> someone on here, if only for getting some ideas. I'd also be very
> interested in getting some feedback, new ideas, and critiques.
> 
> Attached is a copy of the relevant files, in zip format. Also attached
> is a slightly outdated PDF report on some of the features added by our
> WGDataGrid: since writing the report, I've got our delayed cell
> renderer instantiation feature working entirely (bod/bhaq1972, is this
> what you're looking to do with your combo box cell editor?) and added
> features for handling primary keys (one should only be able to edit a
> primary key field if the row is a new record or else the persistence
> layer gets confused)  Also, some of the ideas implemented come from
> Flexcoders: Manish's dragable/reorderable columns are copied verbatim,
> and I think the idea of using restrict and maxChars on the TextInput
> cellEditor originally came from here, although it was implemented
> differently.
> 
> NOTE: not included in this zip file is any type of runnable,
> standalone application. You probably can't just drop these files into
> anywhere either, as there are probably some unresolved dependencies
> with code not included. These files are offered without any warranty,
> expressed or implied ... etc. etc. It's also quite certain that none
> of this code will work with Flex 2.0 (as I hear the DataGrid is
> undergoing major review), but hopefully less of it will be needed too
> ...
> 
> If you have the time, let me know what you think! And feel free to
> contact me with any questions ...
> 
> Jim Laing
> Software Developer
> Washington Group International
> 
> 
>


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: DataGrid cell problem overriding setFocusedCell() method

2005-05-10 Thread Jim Laing
I think I get it, and that seems like a good approach. Our approach is
a little different, but they definitely overlap in what they
accomplish:

On 5/10/05, bhaq1972 <[EMAIL PROTECTED]> wrote:
> I had a universal cellrenderer based on Ali's combobox cellrenderer
> with more controls but it was so sluggish to render.

Exactly! This was the main thing we were trying to get around with our
implementation (which I refer to as "delayed cell renderer
instantiation"). As you probably know, the reason the basic cell
renderers are so sluggish to render is because every control is
created when the grid is created. So, if you have a grid with 20
cells, each containing a ComboBox, 20 ComboBoxes are being created
when the grid is created. This is in contrast to the behavior when
*not* using custom cell renderers, where 20 Labels are created when
the grid is created, and a single TextInput is created when a cell is
focused. So, why not mimic this behavior and create 20 Labels and
create a single ComboBox when a cell is focused? Of course, this is
what both of our approaches do, but in different ways.

We did this by extending the cell renderer API to include a few extra
hooks in our cell renderers: focusInCell() and focusOutCell(). These
two functions are called by our subclass of the DataGrid in
setFocusedCell() and disposeEditor(), respectivly. The crazy part is
that some of the other hooks we needed in our cell renderers are
already built-in to DataGrid (albeit undocumented). I'm speaking
specifically of the isCellEditor boolean and the getValue() function.
By setting this boolean to true and implementing the getValue()
function, our cell renderers work perfectly with the editCell()
function of the DataGrid, so we don't have to do any extra work there.

We've used this approach with both a ComboBox cell renderer and a
DataField cell renderer, and it works well and definitely speeds up
load time. There are still a few little oddities. The ComboBox
dropdown issue was one, although unlike your problem, we couldn't
actually "see" the dropdown, but it was there, and it was goofing
things up if you clicked where the drop down was. With our DateField
cell renderer, we had an issue with hitTest not recognizing when the
DateField was expanded. Also, there is a issue if you "refocus" a cell
too rapidly (which is why their is a delay built into setFocusedCell()
in our WGDataGrid)

> With the cellrenderer approach (which is absolutely fine) you cant
> really pass any extra parameters like editable=false|true.
> 
> So what i do instead is i add these extra parameters as extra
> attributes to my extended datagridcolumn (Dirk Eismann uses this
> idea) eg

I like the idea of passing parameters to the cell renderer via column
attributes ... currently we just use different cell renderers extended
from a common base class, if different attributes are required.

> i also add
> cellEditor.addEventListener("focusOut"), "change" etcso i do
> some validation on the data the user enters.
> 
> Now, because myCombo, myTextInput all have a  tag, i
> can get that lovely red box+error message (as long as i remain
> focused on the cellEditor)

This is something that I am interested in: Is it possible for you to
provide an example? Including some validation (at least with
TextInput) is something I'd like to do. In the little bit I've played
around with it, it seems that getting the validation message to show
up properly (just around the focused cell and not around the whole
grid) is a real pain ... this would definitely be useful in the
columns which represent required field.

Well, it's cool to hear how someone else approached a similar problem! Thanks!

Jim


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/