[flexcoders] Logout Button in Application

2006-11-17 Thread KP
Hi All,

 

In my Application I have authentication form when my application starts , if
the login is successful then user can perform some task 

now the problem is I have to give one logout button in my application which
will perform below task if it is clicked.

 

If logout button is clicked I want to go back @ auttentication page and
again ask user for username and password.

 

I am getting proper approach for doing this can some one suggest some
approach on this one.

 

Thanks

Kumar



Re: [flexcoders] Re: text not word wrapping

2006-11-17 Thread Paul Hastings
> On 11/18/06, Rachel Maxim <[EMAIL PROTECTED]> wrote:


thanks for the pixel width push rachel, i'm a bit closer now:

http://www.adobe.com/2006/mxml";
toolTip="{data.name}" width="100%" horizontalScrollPolicy="auto"
verticalGap="0" verticalAlign="top" paddingLeft="0" paddingRight="0"
paddingTop="0" paddingBottom="0" horizontalGap="0" autoLayout="true"
clipContent="false" creationComplete="doInit();">










now i'm stuck trying to shrink the HBox height (setting visible to
false still seems to take up space) if there's no data for it's
children. again it seems to mostly work until the grid is scrolled
then strange stuff happens. rows w/data are hidden, etc.

obviously still missing something fundamental about item renderers.


[flexcoders] Sorting Date Error using CompareFunc

2006-11-17 Thread raidenx112
Hi, I was wondering how exactly I can write a date sorting function
for the internal CompareFunc because I would like to use the sort
field function.  Please specify what exactly I have to write and
exactly where I put it.  Thanks.







[flexcoders] Re: Worksheet component in Flex

2006-11-17 Thread jmorpher03
Thanks Tom. I will get back if I have further questions.

Btw, are there any design patterns which we could use to build self 
contained flex components/ Widgets ?

--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Saturday 04 November 2006 00:35, jmorpher03 wrote:
> > allows column/cells selection. I have worked with datagrid, but 
its
> > always row-wise selection there.
> 
> You might want to start over here 
> http://falkensweb.com/SelectableCellDataGrid.as which allows cell 
selection. 
> Extending it to allow column selection seems easy enough.
> 
> -- 
> Tom Chiverton
> Helping to biannually architect six-generation action-items
> 
> 
> 





[flexcoders] Re: Odd Problem with DateField and formatString

2006-11-17 Thread gotgoose09
That's weird, I get errors the second time I try to choose a date in
Firefox 2 and IE 6.  I have the latest Flash Player 9 debug version
installed for both browsers.  I even tried uninstalling and
reinstalling the Flash Player, but that didn't work.  Can anyone get
an error?
--- In flexcoders@yahoogroups.com, "greenfishinwater"
<[EMAIL PROTECTED]> wrote:
>
> I don't get any errors when running TestEventHandlers.swf
> 
> Andrew
> 
> --- In flexcoders@yahoogroups.com, "gotgoose09"  wrote:
> >
> > This is really bugging me. :-/  Anyone know?
> > --- In flexcoders@yahoogroups.com, "gotgoose09"  wrote:
> > >
> > > View this example below.  It consists of a DateField (dfDatePicker)
> > > and a Label.  dfDatePicker's formatString is set to "MM/".
> > > 
> > > http://www.thegoosmans.com/datefieldproblem/TestEventHandlers.swf
> > > 
> > > To observe the problem, try setting the date two times.  The second
> > > time an error will occur saying that a property is null.  I have
> > > tested this without a formatString on dfDatePicker and it works
> > > perfectly.  In my change handler for dfDatePicker it seems that
> > > dfDatePicker's selectedDate becomes null.
> > > 
> > > In this example, there is no formatString and it works perfectly.
> > > (don't try to view source, I didn't update it for this example)
> > > 
> > > http://www.thegoosmans.com/datefieldproblem/TestEventHandlers2.swf
> > > 
> > > You can view the source by right clicking on the SWF and clicking
> > > "View Source".
> > > 
> > > I am at a loss as to why this is happening.  Anyone know?
> > >
> >
>





[flexcoders] Looping & creating objects, how do you do this: var myRadio["b"+i]:RadioButton = new RadioButton();

2006-11-17 Thread dj
I know I've posted this already.  Sorry, just trying to get this 
populated in Actionscript, so I thought I'd
post again since I've been kind of stuck on this point here.

Thanks,
Patrick



[flexcoders] Re: Ely: How do you wordwrap a label on a bar chart?

2006-11-17 Thread Tim Hoff

Patrick,

Sorry to highjack your thread.  Here's a method to display a multi-lined
Axis label:

labelFunction:
public function
wrapLabel(cat:Object,pcat:Object,ax:CategoryAxis,catItem:Object):String
{
 var pattern:RegExp = /-/;
 return cat.replace(pattern, "-\n");
}

Axis:

 


This example changes:

11/17/06 - 12/16/06

to

11/17/06 -
12/16/06

By using regular expresions, you have quite a bit of flexibility.

-TH
__

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office  : 866-CYNERGY


--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
>
> Thanks Ely, that makes sense now. I'll give it a try. Luckily, both
> series are using the same dataProvider, so I'll have access to the
data
> property and probably be able to eliminate the second axis completely.
> Thanks for the tips and the source to your interactive calendar
> component
> 
.
> Great Stuff!
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "Ely Greenfield" egreenfi@
> wrote:
> >
> >
> >
> >
> > Hi Tim. yes, the AxisRenderer supports a property called
> > 'labelRenderer' which is very much like an item renderer. Pass the
> > AxisRenderer a reference to a class (wrapped in a classFactory, just
> as
> > with itemRenderers) that extends UIComponent, ProgrammaticSkin, or
one
> > of the existing Flex components, and implements the IDataRenderer
> > interface. The AxisRenderer will instantiate one of these for each
> > label it needs to show, and assign the label to the labelRenderer's
> > 'data' property.
> >
> > I don't think there are any examples out there of how to do this
> today.
> >
> > Ely.
> >
> >
> > p.s. You could also consider writing a custom axisRenderer...there's
a
> > pretty exhaustive example of how to do that in the Interactive
Bubble
> > Chart on my blog, http://www.quietlyscheming.com/. You could
> > theoretically create two axis renderers that stack on the left hand
> side
> > that way, although that's a pretty big undertaking.
> >
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On
> > Behalf Of Tim Hoff
> > Sent: Friday, November 17, 2006 3:37 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Ely: How do you wordwrap a label on a bar
> > chart?
> >
> >
> >
> > Hi Ely,
> >
> > I got this far with wordwrapping the label text, but my question is
> > more complicated. I want to have two verticalAxisRenderers, side-by-
> > side, on the same side of a ColumnChart. Or, create a single
> > LabelRenderer to simulate this. One of the labels needs a shaded
> > background with text, while the other is just text. While digging
> > into it, the docs say to use IFactory for a chart LabelRenderer. Is
> > this similar to an ItemRenderer for a DataGrid? Understandably,
> > there aren't any examples yet that show how to do this.
> >
> > If you have the time, thanks,
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "Ely Greenfield" egreenfi@
> > wrote:
> > >
> > >
> > >
> > > Hi Patrick. THe only way would be to use a labelFunction on your
> axis
> > > and manually insert a line break yourself.
> > >
> > > Ely.
> > >
> > >
> > > 
> > >
> > > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]
> > On
> > > Behalf Of dj
> > > Sent: Friday, November 17, 2006 2:34 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Ely: How do you wordwrap a label on a bar
> chart?
> > >
> > >
> > >
> > > A Vertical Axis why Field, my labels are being cut off, my width
> > > dimension is fixed to 280 pixels, so the column needs to wrap
down?
> > >
> > > Thanks,
> > > Patrick
> > >
> >
>




[flexcoders] Re: Return of single object from ColdFusion

2006-11-17 Thread bobignacio
You can always try the following:

 thisPerson = (Employee)(event.result);

However, you may get the error of "cannot convert Object to Employee.
But its worth a try.

Bob I.

--- In flexcoders@yahoogroups.com, "Wally Randall" <[EMAIL PROTECTED]>
wrote:
>
> Problem:
> When I invoke the "get" function in the generated gateway object from 
> the CF Wizard I cannot cast the result to an instance in Flex.
> In debug I can see that the event.result is returning data but when 
> this statement is invoked the result is a NULL thisPerson object in 
> Flex:
> 
> thisPerson=event.result as Employee;
> 
> Any suggestions?
>





Re: [flexcoders] Re: text not word wrapping

2006-11-17 Thread Paul Hastings
On 11/18/06, Rachel Maxim <[EMAIL PROTECTED]> wrote:

> If you specify a percentage-based width and no height, Flex does not wrap the 
> text, and the height equals the number of lines as determined by the number 
> of Return characters.

ok but it seems the first time the cell is rendered it *does* wrap the
text (when used w/a percentage width).  though i do see the clipping
when you scroll the grid.

also seeing weird stuff where data leaks into cells below, usually the
renderer's image. scrolling usually "fixes" it.

item renderers really confuse me.


[flexcoders] Re: Ely: How do you wordwrap a label on a bar chart?

2006-11-17 Thread Tim Hoff

Thanks Ely, that makes sense now.  I'll give it a try.  Luckily, both
series are using the same dataProvider, so I'll have access to the data
property and probably be able to eliminate the second axis completely. 
Thanks for the tips and the source to your interactive calendar
component
 .
Great Stuff!

-TH

--- In flexcoders@yahoogroups.com, "Ely Greenfield" <[EMAIL PROTECTED]>
wrote:
>
>
>
>
> Hi Tim. yes, the AxisRenderer supports a property called
> 'labelRenderer' which is very much like an item renderer. Pass the
> AxisRenderer a reference to a class (wrapped in a classFactory, just
as
> with itemRenderers) that extends UIComponent, ProgrammaticSkin, or one
> of the existing Flex components, and implements the IDataRenderer
> interface. The AxisRenderer will instantiate one of these for each
> label it needs to show, and assign the label to the labelRenderer's
> 'data' property.
>
> I don't think there are any examples out there of how to do this
today.
>
> Ely.
>
>
> p.s. You could also consider writing a custom axisRenderer...there's a
> pretty exhaustive example of how to do that in the Interactive Bubble
> Chart on my blog, http://www.quietlyscheming.com/. You could
> theoretically create two axis renderers that stack on the left hand
side
> that way, although that's a pretty big undertaking.
>
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Tim Hoff
> Sent: Friday, November 17, 2006 3:37 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Ely: How do you wordwrap a label on a bar
> chart?
>
>
>
> Hi Ely,
>
> I got this far with wordwrapping the label text, but my question is
> more complicated. I want to have two verticalAxisRenderers, side-by-
> side, on the same side of a ColumnChart. Or, create a single
> LabelRenderer to simulate this. One of the labels needs a shaded
> background with text, while the other is just text. While digging
> into it, the docs say to use IFactory for a chart LabelRenderer. Is
> this similar to an ItemRenderer for a DataGrid? Understandably,
> there aren't any examples yet that show how to do this.
>
> If you have the time, thanks,
> -TH
>
> --- In flexcoders@yahoogroups.com, "Ely Greenfield" egreenfi@
> wrote:
> >
> >
> >
> > Hi Patrick. THe only way would be to use a labelFunction on your
axis
> > and manually insert a line break yourself.
> >
> > Ely.
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On
> > Behalf Of dj
> > Sent: Friday, November 17, 2006 2:34 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Ely: How do you wordwrap a label on a bar
chart?
> >
> >
> >
> > A Vertical Axis why Field, my labels are being cut off, my width
> > dimension is fixed to 280 pixels, so the column needs to wrap down?
> >
> > Thanks,
> > Patrick
> >
>




RE: [flexcoders] Re: Ely: How do you wordwrap a label on a bar chart?

2006-11-17 Thread Ely Greenfield
 
 
 
Hi Tim.  yes, the AxisRenderer supports a property called
'labelRenderer' which is very much like an item renderer.  Pass the
AxisRenderer a reference to a class (wrapped in a classFactory, just as
with itemRenderers) that extends UIComponent, ProgrammaticSkin, or one
of the existing Flex components, and implements the IDataRenderer
interface.  The AxisRenderer will instantiate one of these for each
label it needs to show, and assign the label to the labelRenderer's
'data' property.
 
I don't think there are any examples out there of how to do this today.
 
Ely.
 
 
p.s. You could also consider writing a custom axisRenderer...there's a
pretty exhaustive example of how to do that in the Interactive Bubble
Chart on my blog, http://www.quietlyscheming.com/.  You could
theoretically create two axis renderers that stack on the left hand side
that way, although that's a pretty big undertaking.
 
 
 
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Hoff
Sent: Friday, November 17, 2006 3:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Ely: How do you wordwrap a label on a bar
chart?



Hi Ely,

I got this far with wordwrapping the label text, but my question is 
more complicated.  I want to have two verticalAxisRenderers, side-by-
side, on the same side of a ColumnChart.  Or, create a single 
LabelRenderer to simulate this.  One of the labels needs a shaded 
background with text, while the other is just text.  While digging 
into it, the docs say to use IFactory for a chart LabelRenderer.  Is 
this similar to an ItemRenderer for a DataGrid?  Understandably, 
there aren't any examples yet that show how to do this.

If you have the time, thanks,
-TH

--- In flexcoders@yahoogroups.com, "Ely Greenfield" <[EMAIL PROTECTED]>
wrote:
>
> 
> 
> Hi Patrick. THe only way would be to use a labelFunction on your axis
> and manually insert a line break yourself.
> 
> Ely.
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of dj
> Sent: Friday, November 17, 2006 2:34 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Ely: How do you wordwrap a label on a bar chart?
> 
> 
> 
> A Vertical Axis why Field, my labels are being cut off, my width 
> dimension is fixed to 280 pixels, so the column needs to wrap down?
> 
> Thanks,
> Patrick
>


 


[flexcoders] Re: Ely: How do you wordwrap a label on a bar chart?

2006-11-17 Thread Tim Hoff

Let me restate this.  I'm in chart purgatory right now, and I got the
chart type mixed up.  It's a bar chart that has a CatagoryField="name"
and a second CategoryField="rank".  The two fields line-up vertically on
both sides of the chart.  I want the name (non-shaded) and rank (shaded)
on the same side.  Sorry for the confusion.

-TH

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
>
> Hi Ely,
>
> I got this far with wordwrapping the label text, but my question is
> more complicated. I want to have two verticalAxisRenderers, side-by-
> side, on the same side of a ColumnChart. Or, create a single
> LabelRenderer to simulate this. One of the labels needs a shaded
> background with text, while the other is just text. While digging
> into it, the docs say to use IFactory for a chart LabelRenderer. Is
> this similar to an ItemRenderer for a DataGrid? Understandably,
> there aren't any examples yet that show how to do this.
>
> If you have the time, thanks,
> -TH
>
> --- In flexcoders@yahoogroups.com, "Ely Greenfield" egreenfi@
> wrote:
> >
> >
> >
> > Hi Patrick. THe only way would be to use a labelFunction on your
axis
> > and manually insert a line break yourself.
> >
> > Ely.
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On
> > Behalf Of dj
> > Sent: Friday, November 17, 2006 2:34 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Ely: How do you wordwrap a label on a bar
chart?
> >
> >
> >
> > A Vertical Axis why Field, my labels are being cut off, my width
> > dimension is fixed to 280 pixels, so the column needs to wrap down?
> >
> > Thanks,
> > Patrick
> >
>






[flexcoders] Re: Ely: How do you wordwrap a label on a bar chart?

2006-11-17 Thread Tim Hoff

Hi Ely,

I got this far with wordwrapping the label text, but my question is
more complicated.  I want to have two verticalAxisRenderers, side-by-
side, on the same side of a ColumnChart.  Or, create a single
LabelRenderer to simulate this.  One of the labels needs a shaded
background with text, while the other is just text.  While digging
into it, the docs say to use IFactory for a chart LabelRenderer.  Is
this similar to an ItemRenderer for a DataGrid?  Understandably,
there aren't any examples yet that show how to do this.

If you have the time, thanks,
-TH

--- In flexcoders@yahoogroups.com, "Ely Greenfield" <[EMAIL PROTECTED]>
wrote:
>
>
>
> Hi Patrick. THe only way would be to use a labelFunction on your axis
> and manually insert a line break yourself.
>
> Ely.
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of dj
> Sent: Friday, November 17, 2006 2:34 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Ely: How do you wordwrap a label on a bar chart?
>
>
>
> A Vertical Axis why Field, my labels are being cut off, my width
> dimension is fixed to 280 pixels, so the column needs to wrap down?
>
> Thanks,
> Patrick
>




RE: [flexcoders] Automatic resize of panel when layout="absolute" - how?

2006-11-17 Thread Iko Knyphausen
By child panels, do you mean panels that are inside the panel you are trying
to resize, or do you mean siblings? 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of zzwi89
Sent: Friday, November 17, 2006 2:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Automatic resize of panel when layout="absolute" -
how?

 

I have a panel that needs to resize vertically when child panels are
minimized/maximized. This works until I set layout = absolute. I would
like to use absolute layout so that I can use parameters like
top/left/right/bottom for its child panels.

Is there a way to do this?

 



[flexcoders] Re: Automatic resize of panel when layout="absolute" - how?

2006-11-17 Thread iko_knyphausen

Would this work for you?


http://www.adobe.com/2006/mxml
 " layout="absolute">
  
   
   
   
   
  


--- In flexcoders@yahoogroups.com, "zzwi89" <[EMAIL PROTECTED]> wrote:
>
> I have a panel that needs to resize vertically when child panels are
> minimized/maximized. This works until I set layout = absolute. I would
> like to use absolute layout so that I can use parameters like
> top/left/right/bottom for its child panels.
>
> Is there a way to do this?
>




RE: [flexcoders] Ely: How do you wordwrap a label on a bar chart?

2006-11-17 Thread Ely Greenfield
 
 
Hi Patrick.  THe only way would be to use a labelFunction on your axis
and manually insert a line break yourself.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dj
Sent: Friday, November 17, 2006 2:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Ely: How do you wordwrap a label on a bar chart?



A Vertical Axis why Field, my labels are being cut off, my width 
dimension is fixed to 280 pixels, so the column needs to wrap down?

Thanks,
Patrick



 


[flexcoders] Communicating with an embedded SWF from Flex App

2006-11-17 Thread ryanlevere
I have recently begun migrating an application that was originally 
written in C# to Flex. The application utilized the Flash ActiveX 
control to display an SWF that was used for video conferencing. The C# 
program required the user to log in to get to the video conferencing 
and the user's ID was fed to the Flash video component 
using 'SetVariable'. How do I do this from within my Flex app? How do 
I emulate the 'SetVariable' call? I have the SWF loaded and displaying 
properly using SWFLoader. Is the 'SetVariable' acheived through the 
LocalConnection component?

Thanks in advance to anyone who can help.




[flexcoders] Automatic resize of panel when layout="absolute" - how?

2006-11-17 Thread zzwi89
I have a panel that needs to resize vertically when child panels are
minimized/maximized. This works until I set layout = absolute. I would
like to use absolute layout so that I can use parameters like
top/left/right/bottom for its child panels.

Is there a way to do this?




Re: [flexcoders] Programmatic Tabskin / CSS

2006-11-17 Thread Oliver Lietz
Am Donnerstag, 16. November 2006 22:02 schrieb zzwi89:
> Hello,
>
> I am using programattic skinning for some tabs in a TabBar. Rather
> than write a class for the selected tab, one for the deselected tab,
> etc.., I would like to use the same tab class but change CSS styles to
> alter the style.
>
> In my CSS file, rather than specify tab styles like this:
>
> disabledSkin: ClassReference("...");
>
> I would rather specify
>
> disabledSkin: styleName
>
> .styleName
> {
>  disabledSkin: ClassReference("...");
>  attribute1: value;
>  attribute2: value;
> }
>
> Unforunately, I do not know of a way to do this? Do you?

Look at ButtonSkin.as, I think they use the switch(name)-statement to 
accomplish this:

---
[...]
switch (name)
{   
case "selectedUpSkin":
case "selectedOverSkin":
{
[...]
}

case "upSkin":
{
[...]
}

case "overSkin":
{
[...]
}

case "downSkin":
case "selectedDownSkin":
{
[...]
}

case "disabledSkin":
case "selectedDisabledSkin":
{
[...]
}
}
[...]
---


O.



--
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/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> 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] events? Should I use mx.events or flash.events?

2006-11-17 Thread dj
What's the difference between the two?

Thanks,
Patrick



[flexcoders] Ely: How do you wordwrap a label on a bar chart?

2006-11-17 Thread dj
A Vertical Axis why Field, my labels are being cut off, my width 
dimension is fixed to 280 pixels, so the column needs to wrap down?

Thanks,
Patrick




Re: [flexcoders] Re: text not word wrapping

2006-11-17 Thread Rachel Maxim

I believe you have to sent an explicit pixel width on a Text component for
it to wrap, kind of a bummer if you want it to stretch but still wrap. The
Flex docs describe the behavior:

If you specify a pixel value for both the height and width properties, any
text that exceeds the size of the control is clipped at the border.

If you specify an explicit pixel width, but no height, Flex wraps the text
to fit the width and calculates the height to fit the required number of
lines.

If you specify a percentage-based width and no height, Flex does not wrap
the text, and the height equals the number of lines as determined by the
number of Return characters.

If you specify only a height and no width, the height value does not affect
the width calculation, and Flex sizes the control to fit the width of the
maximum line.

Rachel

On 11/17/06, Paul Hastings <[EMAIL PROTECTED]> wrote:


On 11/17/06, Paul Hastings <[EMAIL PROTECTED]> wrote:
>  fontWeight="normal" textAlign="left" textDecoration="none"
> selectable="false" id="legendText"/>
> 

sort of fixed this by setting a percent width on the text bit,
wrapping works until you scroll past the word wrapped rows then those
rows' text is simply truncated.

any ideas?

thanks.


--
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







Re: [flexcoders] Re: States create all their children

2006-11-17 Thread David Harris

Hi Matt,

the problem isn't the ViewStack, but the states.

If you have 2 states, and then you go from one to another, all the children
are created.
The situation I found this was where one State was a login and the other
State the application.
When logging was a success, the appliction switched to the "MainApplication"
state, which then created ALL it's children.
The fact that all the children are created had the same effect as having
creationPolicy="all" set, which can not be good if application is quite
complex.

Hope that makes sense.

Regards,

David

On 11/17/06, Matt Chotin <[EMAIL PROTECTED]> wrote:


   Yes, this is expected behavior.  Is the problem that you have panels in
a ViewStack and you don't want the events for all of those at once?  Maybe
you should use the "show" event instead?  That will fire each time the Panel
in the stack is shown, so if you plan on going back and forth you may want
to keep a flag as to whether you've already executed that call.


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *David Harris
*Sent:* Thursday, November 16, 2006 10:39 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Re: States create all their children



I guess about now I start logging a bug...

Anyone know how to do this?

On 11/13/06, David Harris <[EMAIL PROTECTED] >
wrote:
> I have a situation where my "states" in my application are very complex.
>
> Each state has a lot in them, and each view in the state has events of
> data retrieval tied to the "creationComplete" event.
>
> The problem is this:
>
> If you switch from one state to another, all the children of the new
> state are created, so all the "creationComplete" events are fired, and
> my server gets alot of hits very quickly, and the app takes a long
> time to load.
>
> Below is are 2 simple examples (I have posted before, so sorry for the
> double up...) that show what I mean:
>
> Baring an typo's, when you run example 1, and you click on the button
> to switch states, all the sub panels fire their creationComplete
> events, while in the second example, the creationComplete is fired as
> the ApplicationControlBar is clicked.
>
> Is the "expected" (and justified) behaviour of a Flex app, or am I
> (yet again) missing the obvious?
>
> Example 1 (with view states):
>
> ===
>
> 
>  xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="absolute"
> currentState="initalizing"
> >
>
> 
> 
> 
>
>
> 
> 
> 
> 
> 
> 
>
> 
>
> 
>
> 
>
>  shadowDistance="3" paddingLeft="40" >
>
>  color="#00" separatorWidth="2"/>
>
> 
>
>  height="100%">
>
>  label="one"
> width="100%"
> height="100%"
> />
>  label="two"
> width="100%"
> height="100%"
> />
>  label="three"
> width="100%"
> height="100%"
> />
>  label="four"
> width="100%"
> height="100%"
> />
>  label="five"
> width="100%"
> height="100%"
> />
>
> 
>
> 
>
> 
> 
> 
> 
>
>
> ===
>
> Example 2:
>
> ==
>
> 
>  xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="absolute"
>
> >
>
> 
> 
> 
>
>
> 
>
>  shadowDistance="3" paddingLeft="40" >
>
>  color="#00" separatorWidth="2"/>
>
> 
>
>  height="100%">
>
>  label="one"
> width="100%"
> height="100%"
> />
>  label="two"
> width="100%"
> height="100%"
> />
>  label="three"
> width="100%"
> height="100%"
> />
>  label="four"
> width="100%"
> height="100%"
> />
>  label="five"
> width="100%"
> height="100%"
> />
>
> 
>
> 
>
>
> 
>
>
> ==
>

 



Re: [flexcoders] AutoScroll Text Area, and AS3 timer

2006-11-17 Thread Rachel Maxim

I am in need of a news ticker/scroller too, and I'm wondering if I'm just
better off building it in Flash rather than Flex?

Another question related to the timer...in AS2 I used setInterval or
onEnterFrame for animation, but (at least the way I did it) with both of
those methods performance degraded as the animations ran if the actions were
not deleted at some point (in other words you could not do a constant
animation with either of those effects).

Does anyone know if this happens with the Timer object too? I know you can
pass a "tick" limit to stop the timer, but I found out (hehe - by accident)
that if you pass a 0 it just keeps going. Is that an evil thing to do? Maybe
I'm just going about it it all wrong and this is not even an issue, if so
I'd appreciate any advice :)

Thanks,
Rachel

On 11/17/06, KP <[EMAIL PROTECTED]> wrote:


 Hi All,



Sorry for bugging you on this one again but below is the sample code which
contain textArea and I want to som how autoscroll the contect present in
textarea.

I have already used *verticalScrollPosition* and timer for doing this but
it does not look good I want to give it a professional look like the link
below



http://projects.willstream.com/rssticker/index1.html



can some one suggest some solution..thanks in advance.



Kumar





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






sdf..sdfl'l'l'lsdfsl'fls'dlfdl;f

some others things bla bla dfljljlj
dfgkjdlgjlkdfg

ljsdlfjldfjlsjdfl

sdkljflsdjfljsdf

jsldjflsdjflsjdf

jsldjflsdjflsjdf

lsdjfljsdlfjsdf

lsdjfljsdlfjslf

lsdjfljslfjsldf

lsdjflsjdf








 



[flexcoders] Checking for empty values in

2006-11-17 Thread Ben Densmore
Is it possible to check for empty arguments in an  tag? Something 
like:



if (brokeridnum.text != 
""){brokeridnum.text}



Flex builder doesn't complain but when the method is called it returns an error 
when it runs the query in the CFC. I'm building a search interface and not all 
arguments are required. Using AS in cfform I was able to check to see if the 
text field was blank and if so don't pass in the argument but with this method 
in Flex I'm not sure if this is available.

Thanks,
Ben





[flexcoders] Newbie Question: Paging a Datagrid.

2006-11-17 Thread proudestcodemonkey
I'd like to have a datagrid in my Flex application that will show X
records at a time and offer paging functionality.  The datagrid
control is very functional, so I assumed this wouldn't be terribly
difficult.  I've done some Googling, though, and haven't turned up much.

Any ideas?

Thanks in advance!
- PCM




[flexcoders] Iterating through a loop with radiobuttons - giving unique instance

2006-11-17 Thread dj
Flex Wizards:

I need to  iterate through a loop and create radio buttons, i have to 
add loaders for images next to them etc.  How do you something like this 
in AS3.0?


var myRadio["b"+i]:RadioButton = new RadioButton();


Also, when you send an event with the currentTarget property, which is 
the currentTarget property?   I was messing with the mx:Repeater and it 
was a little confused
exactly how to set up a loop with unique id's and my make my radio 
labels dynamic that way so I am trying just to do it in as3.0

Thanks,
Patrick
 




[flexcoders] Re: DataGrid Click event - unexpected results

2006-11-17 Thread greenfishinwater
OK, I now have it working correctly.

I use the itemClick event, then I check if rowIndex > 0. The last part
prevents a click in the header from triggering the application logic.

> > 
> > I have a grid, and a click event defined. On a click on a row, I
> > determine the row using selectedIndex, then I display data in another
> > grid on a different tab depending on a product id from the
selected row.
> > 
> > This works fine, except when I click in the header or the scroll bar
> > of the grid, the click event gets fired, when obviously I was not
> > wanting that to happen.
> > 
> > I tried the change event, but that only recognizes changes in the row,
> > so does not allow the same row to be clicked a second time.
> > 
> > Is there any way to only capture a click on a data row?
> > 
> > Thanks
> > 
> > Andrew
> >
>





[flexcoders] Re: Odd Problem with DateField and formatString

2006-11-17 Thread greenfishinwater
I don't get any errors when running TestEventHandlers.swf

Andrew

--- In flexcoders@yahoogroups.com, "gotgoose09" <[EMAIL PROTECTED]> wrote:
>
> This is really bugging me. :-/  Anyone know?
> --- In flexcoders@yahoogroups.com, "gotgoose09"  wrote:
> >
> > View this example below.  It consists of a DateField (dfDatePicker)
> > and a Label.  dfDatePicker's formatString is set to "MM/".
> > 
> > http://www.thegoosmans.com/datefieldproblem/TestEventHandlers.swf
> > 
> > To observe the problem, try setting the date two times.  The second
> > time an error will occur saying that a property is null.  I have
> > tested this without a formatString on dfDatePicker and it works
> > perfectly.  In my change handler for dfDatePicker it seems that
> > dfDatePicker's selectedDate becomes null.
> > 
> > In this example, there is no formatString and it works perfectly.
> > (don't try to view source, I didn't update it for this example)
> > 
> > http://www.thegoosmans.com/datefieldproblem/TestEventHandlers2.swf
> > 
> > You can view the source by right clicking on the SWF and clicking
> > "View Source".
> > 
> > I am at a loss as to why this is happening.  Anyone know?
> >
>





Re: [flexcoders] WebService woes - faultCode: EncodingError - faultString: Unknown Property

2006-11-17 Thread Paul Spitzer
Turns out this was caused by the images property which was an empty 
ArrayCollection. The operation succeeds if I pass null for the images. I 
have no idea why the error was reporting what it was.



Paul Spitzer wrote:
> Hi all,
>
> Hoping someone can help me out here. We've recently switched our Web 
> Services implementation on the server from Axis to XFire. With the 
> switch one of the existing working operations is now failing. The 
> failure happens somewhere in the Flex Web Service classes when the 
> request to call the service operation occurs. The request never makes it 
> to the server as Flex stops it and throws a fault. Here's some 
> (simplified) code..
>
> ---
> // AbstractWebServiceRequest class
>
> // constructor
> this.service = new WebService();
> this.service.makeObjectsBindable = false;
> this.service.wsdl = this.getWsdlPath();
> this.service.addEventListener(ResultEvent.RESULT, this.handleResult);
> this.service.addEventListener(FaultEvent.FAULT, this.handleFault);
> this.service.loadWSDL();
>
> ...
>
> // execute method
> var args: Array = this.getOperationArguments();
> var operationName: String = this.getOperationName();
> var operation: Operation = this.service.getOperation(operationName) as 
> Operation;
> operation.send.apply(this, args);
> ---
>
> Everything is fine up to the point that the request is sent via the 
> operation's send method. The request is never actually sent to the 
> server. Instead the handleFault handler is called. The Fault object in 
> the FaultEvent reports..
>
> faultCode:EncodingError
> faultString:'Unknown Property: 'creationDate'.'
> faultDetail:'null'
>
> The object that is sent as an argument to the operation has the 
> following schema..
>
> 
>   
> 
> 
> 
> 
>  type="ns1:ArrayOfScrollerImage"/>
> 
>  type="xsd:string"/>
> 
> 
>   
> 
>
> The actual object looks like (including the creationDate)..
>
> object = TheObject (@ee5f8b1)
>creationDate = Date (@f0695b1)
>date = 17 [0x11]
>dateUTC = 17 [0x11]
>day = 5 [0x5]
>dayUTC = 5 [0x5]
>fullYear = 2006 [0x7d6]
>fullYearUTC = 2006 [0x7d6]
>hours = 10 [0xa]
>hoursUTC = 17 [0x11]
>milliseconds = 234 [0xea]
>millisecondsUTC = 234 [0xea]
>minutes = 1 [0x1]
>minutesUTC = 1 [0x1]
>month = 10 [0xa]
>monthUTC = 10 [0xa]
>seconds = 23 [0x17]
>secondsUTC = 23 [0x17]
>time = 1163782883234 [0x10ef6dd87a2]
>timezoneOffset = 420 [0x1a4]
>customerId = 117 [0x75]
>height = 160 [0xa0]
>id = -1 [0x]
>images = mx.collections.ArrayCollection (@32dd551)
>imagesLength = 0 [0x0]
>imagesXmlString = ""
>modificationDate = Date (@f069881)
>name = "TheObjectName"
>template = TheObjectTemplate (@eee6b31)
>templateId = 1 [0x1]
>version = -1 [0x]
>width = 266 [0x10a]
>
>
> Anyone have any ideas what's causing the fault?
>
> thanks,
>
> Paul
>
>  
>
>   



[flexcoders] Re: DataGrid Click event - unexpected results

2006-11-17 Thread greenfishinwater
Using itemClick solves part of the problem.

Clicking on the scroll bar does not trigger the event. But clicking a
column header does trigger the event.

Andrew

--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> Try using the 'itemClick' event.
> 
>  
> 
> - Gordon 
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of greenfishinwater
> Sent: Friday, November 17, 2006 11:45 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] DataGrid Click event - unexpected results
> 
>  
> 
> I have a grid, and a click event defined. On a click on a row, I
> determine the row using selectedIndex, then I display data in another
> grid on a different tab depending on a product id from the selected row.
> 
> This works fine, except when I click in the header or the scroll bar
> of the grid, the click event gets fired, when obviously I was not
> wanting that to happen.
> 
> I tried the change event, but that only recognizes changes in the row,
> so does not allow the same row to be clicked a second time.
> 
> Is there any way to only capture a click on a data row?
> 
> Thanks
> 
> Andrew
>





[flexcoders] Re: Odd Problem with DateField and formatString

2006-11-17 Thread gotgoose09
This is really bugging me. :-/  Anyone know?
--- In flexcoders@yahoogroups.com, "gotgoose09" <[EMAIL PROTECTED]> wrote:
>
> View this example below.  It consists of a DateField (dfDatePicker)
> and a Label.  dfDatePicker's formatString is set to "MM/".
> 
> http://www.thegoosmans.com/datefieldproblem/TestEventHandlers.swf
> 
> To observe the problem, try setting the date two times.  The second
> time an error will occur saying that a property is null.  I have
> tested this without a formatString on dfDatePicker and it works
> perfectly.  In my change handler for dfDatePicker it seems that
> dfDatePicker's selectedDate becomes null.
> 
> In this example, there is no formatString and it works perfectly.
> (don't try to view source, I didn't update it for this example)
> 
> http://www.thegoosmans.com/datefieldproblem/TestEventHandlers2.swf
> 
> You can view the source by right clicking on the SWF and clicking
> "View Source".
> 
> I am at a loss as to why this is happening.  Anyone know?
>





RE: [flexcoders] DataGrid Click event - unexpected results

2006-11-17 Thread Gordon Smith
Try using the 'itemClick' event.

 

- Gordon 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of greenfishinwater
Sent: Friday, November 17, 2006 11:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid Click event - unexpected results

 

I have a grid, and a click event defined. On a click on a row, I
determine the row using selectedIndex, then I display data in another
grid on a different tab depending on a product id from the selected row.

This works fine, except when I click in the header or the scroll bar
of the grid, the click event gets fired, when obviously I was not
wanting that to happen.

I tried the change event, but that only recognizes changes in the row,
so does not allow the same row to be clicked a second time.

Is there any way to only capture a click on a data row?

Thanks

Andrew

 



[flexcoders] Re: How do I add superscript text in Flex?

2006-11-17 Thread thegators_2002

--- In flexcoders@yahoogroups.com, "thegators_2002" <[EMAIL PROTECTED]>
wrote:
>
> Thanks again Dan!
>
> Taking your suggestion, I created a custom component for both lines
with
> a footnote marker in them, and the footnote at the bottom of a page. 
I
> used an HBox, with two or more Text boxes inside them.  Each text box
> can have a different size, so it looks like superscript.  I reduced
the
> horizontal gap of the HBox to 0 so they are next to each other, and
play
> with the padding, including using negative numbers, to position the
> footnote marker just right.  I also added setters to set the number,
the
> text, and the font-size of each textbox.  Here is my custom component
> code for the footnote text at the bottom of a page for anyone else
> interested:
>
> 
> http://www.adobe.com/2006/mxml"; horizontalGap="0">
>  
>  
>  
>  
>  
>
> 
>
>
>
> In my application, I drop this control onto a canvas, and using the
> creationComplete event, call the following function to set the text
and
> the sizes at run-time, though this can obviously be done at
design-time
> as well:
>
> private function Test():void
>  {
>  this.fn1.FootnoteNumber = "2";
>  this.fn1.FootnoteNumberSize = 8;
>  this.fn1.FootnoteText = "Hello World";
>  this.fn1.FootnoteTextSize = 16;
>  }
>
>
> It actually looks decent, and is completely re-usable.
>
> Pete
> --- In flexcoders@yahoogroups.com, "Daniel Freiman" FreimanCQ@
> wrote:
> >
> > The ideas in your original question might be the way to go then. 
Some
> > simplification can be done by making your own component
> (FootnoteTextArea).
> > Throw a UITextField on a UIComponent and then overlay the footnotes
> (images
> > or additional UITextFields) as children to the FootnoteTextArea
> (simplifies
> > the origin point).  You can re-layout the footnotes on resize of the
> > FootnoteTextArea or the change event of UITextField.  The a
> placeholder for
> > the footnotes can be represented in the UITextField by a space
> character in
> > a special font that won't otherwise be used. You can search for
these
> > placeholder characters and then use the getCharBoundaries() to find
> out
> > where the footnote should be placed.
> >
> > It's not simplest solution...unless there isn't an alternate
solution.
> >
> > I'm going to need to implement superscript in a few months, so I'd
be
> > interested to hear if you ever find a solution.
> >
> > Good luck,
> >
> > - Dan
> >
> > On 11/7/06, thegators_2002 thegators_2002@ wrote:
> > >
> > > Thanks, Dan!
> > >
> > > I tried your suggestion and made a small SWF.  I embedded it in a
> line
> > > of htmlText using the  tag.
> > >
> > > 
> > >
> > > Unfortunately, Flex doesn't seem to render it correctly.  The
image
> > > only appears when I have a text control that is expanded to be
> several
> > > lines long.  In other words, I can't just put a simple 1-line text
> > > field on the canvas and generate the text.  I have to use a
> multi-line
> > > text field or text area, and even then the image appears at the
end
> of
> > > the text.
> > >
> > > In the help, it says "The  tag is not fully supported in Flex
> 2,
> > > and might not work in some cases" and also "This tag is supported
> only
> > > in dynamic and input text fields that are multiline and wrap their
> > > text".  There is an example about how to make text flow around an
> > > image.  I can't really do this for a simple superscript footnote
> > > number, unfortunately.
> > >
> > > Does anyone have any other ideas I can try?  It seems odd that
> > > something so simple should be so impossible!  :(
> > >
> > > Thanks for any help,
> > > Pete
> > >
> > >
> > >
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "Daniel Freiman" FreimanCQ@
> wrote:
> > > >
> > > > to the best of my knowledge, there's not a great way to do this.
> My
> > > best
> > > > idea would be to create a footnote swf and embed it in the
textbox
> > > with the
> > > > img tag.  Each swf could be passed a number (and/or possibly
some
> > > formating
> > > > information) and would simply display that number in a small
font
> in a
> > > > textfield (autosize left).  you would need to keep track of the
> number
> > > > within the textbox so that if one gets deleted the rest get
> renumbered
> > > > automatically (or i guess you could let them edit it manually
> too).
> > > >
> > > > - Dan
> > > >
> > > > On 11/6/06, thegators_2002 thegators_2002@ wrote:
> > > > >
> > > > > Hi,
> > > > >
> > > > > My Flex app will have lots of text that must be footnoted on
the
> > > > > screen.  Some of the text includes dynamically generated
> numbers, so
> > > > > the size of the textbox is indeterminate at design-time.
> > > > >
> > > > > I have read that superscript/subscript HTML tags are not
> supported in
> > > > > the HtmlText sections of the text controls.  And, because the
> text
> > > > > fields are dynamically sized, I can't just pop a shrunken

[flexcoders] Video Scrubbar

2006-11-17 Thread Pascal Schrafl
Hi all,


I'm having a little issue, with a video scrub bar. I would like the 
scrub bar to move with the video (as the playhead progresses). If the 
user drags the thumb, I would like to scrub the video. I use the video 
to controll the position of the scruber thumb.

Here's my MXML Code:


http://www.adobe.com/2006/mxml"; width="340" 
height="335" styleName="conditionalBox">






http://www.online-editor.ch/flex/welcome.flv";
autoPlay="false" maintainAspectRatio="true" autoRewind="false" 
playheadUpdate="updateSlider(); 
displayVideoDuration(videoShow.playheadTime)"
 playheadUpdateInterval="250" bufferTime="10" 
progress="progressVideoChecker()" />
   

   




 







 
 



And here is my AS3 code:

 // ActionScript file

import mx.events.VideoEvent;
import flash.display.Sprite;
import flash.events.NetStatusEvent;
import flash.events.SecurityErrorEvent;
import flash.media.Video;
import flash.net.NetConnection;
import flash.net.NetStream;
import flash.events.Event;
import flash.net.URLRequest;
import flash.net.URLLoader;
import mdm.Dialogs;
import mx.rpc.events.ResultEvent;
   
// variables for video url
private var loader:URLLoader;
// needs curl, so we need to place this on a different server
private static var SERVICE_URI:String = 
"http://www.racingfuel.biz/getYouTubeSession.php";;
   
// checks the progress of the download and activates the ff and 
rw button
private function progressVideoChecker():void
{   
// trace("videoTotalTime: " + videoShow.totalTime);
if (videoShow.bytesLoaded == videoShow.bytesTotal)
{   
// trace("video finished loading");
if (videoShow.totalTime > 15)
{

parentDocument.videoControl.fastforwardButton.enabled = true;
parentDocument.videoControl.rewindButton.enabled = 
true;   
}

}
}

// updates the slider position
private function updateSlider():void
{
// try to fix the playhead movement
// trace("video total time: " + videoShow.totalTime);
// trace("playheadSlider.value: " + playheadSlider.value);
// trace("videoShow.playheadTime: "+ videoShow.playheadTime);
playheadSlider.value = videoShow.playheadTime; // = 
Math.round(playheadSlider.value);   
   
}

What happens, is, that when I drag the thumb, the video stalls. I can 
not get it to move with the scrubber.


Thanks for your answers and best regards,


Pascal


[flexcoders] DataGrid Click event - unexpected results

2006-11-17 Thread greenfishinwater
I have a grid, and a click event defined. On a click on a row, I
determine the row using selectedIndex, then I display data in another
grid on a different tab depending on a product id from the selected row.

This works fine, except when I click in the header or the scroll bar
of the grid, the click event gets fired, when obviously I was not
wanting that to happen.

I tried the change event, but that only recognizes changes in the row,
so does not allow the same row to be clicked a second time.

Is there any way to only capture a click on a data row?

Thanks

Andrew




[flexcoders] Return of single object from ColdFusion

2006-11-17 Thread Wally Randall
Problem:
When I invoke the "get" function in the generated gateway object from 
the CF Wizard I cannot cast the result to an instance in Flex.
In debug I can see that the event.result is returning data but when 
this statement is invoked the result is a NULL thisPerson object in 
Flex:

thisPerson=event.result as Employee;

Any suggestions?





[flexcoders] Ely's RadarChart - I have the files

2006-11-17 Thread Daniel Tuppeny
Hey all,

 

I got the files Ely attached yesterday (thanks Oliver), so no need for
anyone to send more.

 

Excellent work Ely. It puts my code to shame! It's much more consistent
with the other charts, and shows how to do things properly :D

 

Danny

The information contained in this e-mail and/or any attachments is confidential 
and intended only for the individual(s) to which it is addressed. If you are 
not named as an addressee you must not disclose, copy or take any action in 
reliance of this transmission. This e-mail and its attachments have been 
scanned for viruses by MessageLabs Ltd.

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

[flexcoders] WebService woes - faultCode: EncodingError - faultString: Unknown Property

2006-11-17 Thread Paul Spitzer
Hi all,

Hoping someone can help me out here. We've recently switched our Web 
Services implementation on the server from Axis to XFire. With the 
switch one of the existing working operations is now failing. The 
failure happens somewhere in the Flex Web Service classes when the 
request to call the service operation occurs. The request never makes it 
to the server as Flex stops it and throws a fault. Here's some 
(simplified) code..

---
// AbstractWebServiceRequest class

// constructor
this.service = new WebService();
this.service.makeObjectsBindable = false;
this.service.wsdl = this.getWsdlPath();
this.service.addEventListener(ResultEvent.RESULT, this.handleResult);
this.service.addEventListener(FaultEvent.FAULT, this.handleFault);
this.service.loadWSDL();

...

// execute method
var args: Array = this.getOperationArguments();
var operationName: String = this.getOperationName();
var operation: Operation = this.service.getOperation(operationName) as 
Operation;
operation.send.apply(this, args);
---

Everything is fine up to the point that the request is sent via the 
operation's send method. The request is never actually sent to the 
server. Instead the handleFault handler is called. The Fault object in 
the FaultEvent reports..

faultCode:EncodingError
faultString:'Unknown Property: 'creationDate'.'
faultDetail:'null'

The object that is sent as an argument to the operation has the 
following schema..


  









  


The actual object looks like (including the creationDate)..

object = TheObject (@ee5f8b1)
   creationDate = Date (@f0695b1)
   date = 17 [0x11]
   dateUTC = 17 [0x11]
   day = 5 [0x5]
   dayUTC = 5 [0x5]
   fullYear = 2006 [0x7d6]
   fullYearUTC = 2006 [0x7d6]
   hours = 10 [0xa]
   hoursUTC = 17 [0x11]
   milliseconds = 234 [0xea]
   millisecondsUTC = 234 [0xea]
   minutes = 1 [0x1]
   minutesUTC = 1 [0x1]
   month = 10 [0xa]
   monthUTC = 10 [0xa]
   seconds = 23 [0x17]
   secondsUTC = 23 [0x17]
   time = 1163782883234 [0x10ef6dd87a2]
   timezoneOffset = 420 [0x1a4]
   customerId = 117 [0x75]
   height = 160 [0xa0]
   id = -1 [0x]
   images = mx.collections.ArrayCollection (@32dd551)
   imagesLength = 0 [0x0]
   imagesXmlString = ""
   modificationDate = Date (@f069881)
   name = "TheObjectName"
   template = TheObjectTemplate (@eee6b31)
   templateId = 1 [0x1]
   version = -1 [0x]
   width = 266 [0x10a]


Anyone have any ideas what's causing the fault?

thanks,

Paul








[flexcoders] Problem with DataGrid (bug or not)

2006-11-17 Thread valery_j
I have a problem with ItemRenderer in Datagrid.
The following code was taken from the help and modifed slightly

/-


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




 
 
 
 
 
 
 
 
 
 
 
  
 
 
  
  
   





   
  
 


/---

Compiled version you can look here: 
http://test.affilia.com/FlexFtp/bug/test.html

If you will try to vertical resize browser window (slow) - you can 
see one extra row under the grid. Between bottom panel and grid. 
Anyone can help me to resolve this problem? 
It happens with custom item renederer only.

Thank you.




RE: [flexcoders] RegExp Validator

2006-11-17 Thread Gordon Smith
Maybe the MXML compiler is trying to interpret the {6, 8} as a binding
expression similar to {newPassword}. Try setting the 'expression'
property in an initialize handler instead.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of DJ Lift
Sent: Friday, November 17, 2006 9:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RegExp Validator

 

Hey there,
I'm trying to use a standard regular expression in a RegExpValidator.

Here's the validator markup:


It keeps saying that a password like '64months' (without the
apostrophes) is no good when it 
should be. The expression should validate such that any characters from
a-z and A-Z and 
0-9 should be ok, as long as the total length of chars is between 6 - 8
chars long. This 
expresion works great in PHP. 

I must be missing something about how AS or Flex deals with it. Any help
would be 
appreciated.
thanksie,
marky

 



RE: [flexcoders] Newbie: Why can't I add a button!

2006-11-17 Thread Gordon Smith
> Any ideas anyone?

 

About what? My previous reply explained that an  in MXML
autogenerates CSS selector setup code that you don't get when you simply
subclass Application in AS3. That's why this works and your previous
code didn't. Turn on -keep-autogenerated-actionscript to see this code.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Greg McCreath
Sent: Thursday, November 16, 2006 8:06 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Newbie: Why can't I add a button!

 

Thanks.

 

It works fine as a MXML app.  Here it is.  Any ideas anyone?  

 



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

 











 

Greg McCreath
Chief Technical Officer
TAFMO Limited
ABN:  94 109 766 592

Level 8, 342 Flinders Street
Melbourne
Victoria, 3000
Australia

http://www.tafmo.com
Ph   : +61 (0) 3 9018 6824
Fax : +61 (0) 3 9018 6899
Mobile : +61 (0) 401 988 957



From: Matt Chotin [mailto:[EMAIL PROTECTED] 
Sent: Friday, 17 November 2006 2:35 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Newbie: Why can't I add a button!

 

Looks like the style code may not be loading correctly.  What happens if
you use an MXML file for your application instead of AS?

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bookymcnuggett
Sent: Thursday, November 16, 2006 5:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Newbie: Why can't I add a button!

 

Hi All,

This is my first posting to this forum.

I have taken my first newbie steps to creating a stand-alone AS3 
Application and have come across something I cannot understand. I 
have an Application, and add an Image to it and it is fine. I add a 
Button to it and it blows up with the AS3 equivalent of a null 
pointer exception. The code is below. The error is below that. If I 
comment out the line that does the "addChild(button)" it correctly 
adds and displays the Image. What am I doing wrong? What is wrong 
with how I am adding a button? Both Button and Image descend from 
UIComponent.

package {

import mx.core.*;
import mx.events.*;
import mx.skins.halo.*;
import mx.styles.*;
import mx.controls.*;
import flash.display.*;

public class FirstApp extends Application
{
[Embed(source="connected_multiple_big.jpg")]
private var ImageClass:Class;

public function FirstApp()
{
super();
this.layout = "vertical";
this.setStyle("borderSkin",mx.skins.halo.HaloBorder);
this.addEventListener(FlexEvent.APPLICATION_COMPLETE, doInit); 
}

private function doInit(e:FlexEvent):void {
var img:Image = new Image();
img.setStyle("verticalAlign","top");
img.source = ImageClass; 
addChild(img);

// the troublesome test button. addChild() here causes a null object 
reference exception
var button:Button = new Button();
button.label = "label";
addChild(button); 

}
}
}
/// 

TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
at mx.core::UIComponent/getStyle()
at 
mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewS
 
kinForPhase()
at 
mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewS
 
kin()
at mx.controls::Button/mx.controls:Button::commitProperties()
at mx.core::UIComponent/validateProperties()
at mx.managers::LayoutManager/::validateProperties()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply
 ()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/::preloader_preloaderDoneHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/::displayClassCompleteHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::DownloadProgressBar/::timerHandler()
at mx.preloaders::DownloadProgressBar/::initCompleteHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/::dispatchAppEndEvent()
at mx.preloaders::Preloader/::appCreationCompleteHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/set initialized()
at mx.managers::LayoutManager/::doPhasedInstan

[flexcoders] Binding to property or use a custom event and event.target.myProperty ?

2006-11-17 Thread willmorganuk
I have a simple custom component, based on a richtexteditor, that
cleans up it's own html when it's submit button is clicked.

Question: Is is best to access the new 'clean' html from the main
application via a [Bindable] property or dispatching a custom event
when the internal processing is completed? Does it matter?

THANKS!

Will.




Re: [flexcoders] Stylizing Accodrdion border

2006-11-17 Thread Dave Carabetta

Flex components are configurable via CSS styles. Have a go with the Flex 2
Style Explorer and then just cut and paste the resulting code it spits out
into an external stylesheet or a mx:Style tag.

http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html

Just be aware that the Style Explorer doesn't necessarily expose *every*
configurable option, so consult the LiveDocs for that component if you don't
see something there you need.

Regards,
Dave.
Cynergy Systems, Inc.


On 11/17/06, missgiggygirl <[EMAIL PROTECTED]> wrote:


  Hello Everyone!
I am new and trying to wrap my head around some (seemingly) simple
things...

I do not like the default look and behavior of the borders of the
Accordion widget, but do not see how to change it?

Through the built in API help, Class "Accordion" has properties like
"selectedFillColors" and "textRollOverColor", but no border controls?
I want each :block" to be 1px solid black by default on all four
sides, and upon hover become grey (#66) on all four sides?

How can I achieve this?

Thanks,
Giggle_Gurl

 



[flexcoders] Photo Viewer Sample App

2006-11-17 Thread P Smith
The "Photo Viewer" Sample App has a ViewStack with 3 views:  , , .

When I move  to the top of the stack, on execution it throws 
an:  Error #1009: Cannot access a property or method of a null object 
reference. 

Poking around with the debugger the problem is that the property gallery =  
null.  

It all works fine as originally written.  That is when  is 
not the first view in the stack.  The default app PhotoViewer.mxml uses 
databinding for passing in gallery="{gallery}" to each of the 3 views.

Can anyone help out suggesting why  only fails when it is 
first view in the stack?

fyi ...

The "Photo Viewer" Sample App is easy to install via the Flex Builder 2 "Flex 
Start Page"
(Install sequence:  Main Menu -> Help -> Flex Start Page -> More installed 
samples -> Photo Viewer -> Open Project)

Because ResourceBundle are used, you might encounter the (annoying) bug 174788 
(as documented in TechNote at www.adobe.com/go/4a146409) which requires "In 
Flex Builder, clean the project in order to remove the error."

I really would like to get "Photo Viewer" Sample App working with  as the default view.  If anyone can help me figure out how to do that, I 
would appreciate it.

In debugging this I have gotten as far as ...
When the Error #1009 occurs, FB2 opens Carousel.as pointing to the first 
statement in method reset() which references:  gallery.selected

Using a breakpoint, the debugger's Variables panel shows"gallery=null".

I then modified reset() to include "if ( gallery != null )" in 2 places.  
1) around:  var selected:int = gallery.selected;
2) around the entire loop:  for (var i:int=0; i < 9; i++)

This clears the #1009 error, but the Variables window continues to show 
"gallery=null".  Only if I then navigate to either  or 
 before navigating back to   does the 
databinding finally set the gallery property and  works.

Pete




 

Sponsored Link

$200,000 mortgage for $660/ mo - 
30/15 yr fixed, reduce debt - 
http://yahoo.ratemarketplace.com

Re: [flexcoders] Re: Auto incrementing values for datagrid

2006-11-17 Thread Agent RR-007

I think there are only two ways to do it.
Create a Class that keeps track of this Auto Increment Variable which will
contain and auto increment every time you add 1 to the variable.
Or you can link this to a bankEnd Database which will keep track of the
number for you.
There are 3 flavors these days with databases:
1. Use XML by converting it from the server either via Php or Coldfusion
(or whatever other server language you like).
2. Flash Remoting
3. FDS

Also if you have many people using this datagrid if you don't use some
kind of backend database, how are you going to keep track of who has the
maximum number for you to auto increment.

Let me know how it turns out.


Always trust your Agent,

RR-007

On Fri, November 17, 2006 10:43 am, flxcoder said:
> --- In flexcoders@yahoogroups.com, "flxcoder" <[EMAIL PROTECTED]> wrote:
>>
>> I want to have a serial number field in my datagrid that increases or
>> auto increments with each row. Is this possible? this field should
>> re-paint itself on sorting of any other fields.
>>
> any ideas here? surely, flex has a way to have a serial number auto
> incrementing column value for the datagrid...
>
>
>
>



[flexcoders] AMF 3 Date Serialization / Deserialization

2006-11-17 Thread Sam Shrefler

Does anyone know if there is a way to have Flex serialize / deserialize
Dates using the Local Date Time rather the UTC.

For example:  Currently i'm seeing the following behavior:

(AMF3) Date (no timezone info) -> Flex (UTC) & Flex(UTC) -> AMF3
(no-timezone)

I'd like to be able to also do:

(AMF3) Date (no timezone info) -> Flex (Local)  & Flex(Local) -> AMF3
(no-timezone)

Any ideas to automatically do this?

I'm currently manually handling it for every date by runnning a function
that returns a local date as the following:

return new Date(returnDate.fullYearUTC, returnDate.monthUTC..);

Thanks

Sam


[flexcoders] Re: Auto incrementing values for datagrid

2006-11-17 Thread camlinaeizerous
Below I have a quick and dirty way of making the row show up. However
if you were looking for the number to move with the item when you sort
then you need a different approach and should almost consider adding
the number to the data source. As when you sort the data grid it
actually rearranges its data source which is shown by the text box i
added. Which is always showing the contents of the first index of the
array collection.

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









  







RE: [flexcoders] Re: Auto incrementing values for datagrid

2006-11-17 Thread Iko Knyphausen
Maybe you could try an IList interface function 

 

getItemIndex(dataGrid.selectedItem);

 

 

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Cox
Sent: Friday, November 17, 2006 8:32 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Auto incrementing values for datagrid

 

Sorry to jump into the thread but unfortunately rowIndex doesn't do what it
says on the tin. It's documented to return the index of the item in the
dataprovider, however in actual fact it returns the index of the row in the
list/datagrid. 


For example if you have a dataprovider with 100 records displaying in a
datagrid with 10 rows and you scroll to the bottom of the datagrid and
select the last row rowIndex would return 10; not the 100 you would expect. 

 

AFAIK there is no simple way of simply returning the index of the item in
the dataprovider rather than the datagrid. I hope someone can pick me up on
this point?

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: 17 November 2006 16:14
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Auto incrementing values for datagrid

 

> this field should re-paint itself on sorting of any other fields.
Do you mean that the first row in the grid should always say "1",
regardless of how the list is sorted? If that is the case, you'll want
to create an itemRenderer that implements IDropInListItemRenderer, and
then displays the rowIndex property of BaseListData. This is probably
a good starting point:

http://jessewarden.

com/archives/2006/10/checkbox_item_r.html

HTH,
Ben

--- In [EMAIL PROTECTED]  ups.com,
"flxcoder" <[EMAIL PROTECTED]> wrote:
>
> --- In [EMAIL PROTECTED]  ups.com,
"flxcoder"  wrote:
> >
> > I want to have a serial number field in my datagrid that increases or
> > auto increments with each row. Is this possible? this field should
> > re-paint itself on sorting of any other fields.
> >
> any ideas here? surely, flex has a way to have a serial number auto
> incrementing column value for the datagrid...
>

 



[flexcoders] Datevalidator pure actionscript

2006-11-17 Thread Tommy Mestdagh
Hi all,
Can someone take a look at this code .
My datevalidation does not work for some reason. // proably me :( 
The validator.hasErrors();   returns undefined so i guess it not even
running at all.
  Bytheway wath 's the use of a validator that returning something
between true and false  ... like undefinded  ?? 
This setDateFromString method is directly ou of my code flex 1.5.

Regards 
TM





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




  
  







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]


[flexcoders] problem with image

2006-11-17 Thread buhsl
I use example fron flex PhotoViewer. It is work fine with image less 
then 200 Kb. If I use .jpg files 1.5-3.5Mb, after 10 - 20 iteration on 
slide show Flash compleatly hang up browser. Did any of you had this 
problem and know how to fix this?






[flexcoders] Re: Auto incrementing values for datagrid

2006-11-17 Thread ben.clinkinbeard
Steve is correct. Sorry if I didn't make that clear in my post; that
was the reasoning behind asking if you always wanted the first item to
read as #1. If you're looking for the item's index in the dataProvider
(and you're using an ArrayCollection) you could do something like
myAC.getItemIndex(data);

HTH,
Ben


--- In flexcoders@yahoogroups.com, "Steve Cox" <[EMAIL PROTECTED]> wrote:
>
> Sorry to jump into the thread but unfortunately rowIndex doesn't do what
> it says on the tin. It's documented to return the index of the item in
> the dataprovider, however in actual fact it returns the index of the row
> in the list/datagrid. 
> 
> For example if you have a dataprovider with 100 records displaying in a
> datagrid with 10 rows and you scroll to the bottom of the datagrid and
> select the last row rowIndex would return 10; not the 100 you would
> expect. 
>  
> AFAIK there is no simple way of simply returning the index of the item
> in the dataprovider rather than the datagrid. I hope someone can pick me
> up on this point?
>  
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of ben.clinkinbeard
> Sent: 17 November 2006 16:14
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Auto incrementing values for datagrid
>  
> > this field should re-paint itself on sorting of any other fields.
> Do you mean that the first row in the grid should always say "1",
> regardless of how the list is sorted? If that is the case, you'll want
> to create an itemRenderer that implements IDropInListItemRenderer, and
> then displays the rowIndex property of BaseListData. This is probably
> a good starting point:
> 
> http://jessewarden.
> 
> com/archives/2006/10/checkbox_item_r.html
> 
> HTH,
> Ben
> 
> --- In [EMAIL PROTECTED] 
> ups.com, "flxcoder"  wrote:
> >
> > --- In [EMAIL PROTECTED] 
> ups.com, "flxcoder"  wrote:
> > >
> > > I want to have a serial number field in my datagrid that increases
> or
> > > auto increments with each row. Is this possible? this field should
> > > re-paint itself on sorting of any other fields.
> > >
> > any ideas here? surely, flex has a way to have a serial number auto
> > incrementing column value for the datagrid...
> >
>





RE: [flexcoders] Re: Auto incrementing values for datagrid

2006-11-17 Thread Iko Knyphausen
Scratch that. I meant to say dataGrid.selectedIndex (but it may return
the grid index...not sure, sorry)

I think dataProvider.selectedIndex is doing that?

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Cox
Sent: Friday, November 17, 2006 8:32 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Auto incrementing values for datagrid

 

Sorry to jump into the thread but unfortunately rowIndex doesn't do what it
says on the tin. It's documented to return the index of the item in the
dataprovider, however in actual fact it returns the index of the row in the
list/datagrid. 


For example if you have a dataprovider with 100 records displaying in a
datagrid with 10 rows and you scroll to the bottom of the datagrid and
select the last row rowIndex would return 10; not the 100 you would expect. 

 

AFAIK there is no simple way of simply returning the index of the item in
the dataprovider rather than the datagrid. I hope someone can pick me up on
this point?

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: 17 November 2006 16:14
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Auto incrementing values for datagrid

 

> this field should re-paint itself on sorting of any other fields.
Do you mean that the first row in the grid should always say "1",
regardless of how the list is sorted? If that is the case, you'll want
to create an itemRenderer that implements IDropInListItemRenderer, and
then displays the rowIndex property of BaseListData. This is probably
a good starting point:

http://jessewarden.

com/archives/2006/10/checkbox_item_r.html

HTH,
Ben

--- In [EMAIL PROTECTED]  ups.com,
"flxcoder" <[EMAIL PROTECTED]> wrote:
>
> --- In [EMAIL PROTECTED]  ups.com,
"flxcoder"  wrote:
> >
> > I want to have a serial number field in my datagrid that increases or
> > auto increments with each row. Is this possible? this field should
> > re-paint itself on sorting of any other fields.
> >
> any ideas here? surely, flex has a way to have a serial number auto
> incrementing column value for the datagrid...
>

 



[flexcoders] Better way to update sub-records, Flex and Coldfusion

2006-11-17 Thread lostinrecursion
Hi all,

I have been programming for a while now and have always used a
particular method to update sub-records in a data driven application.
I know there is a better way and was hoping flexcoders could point me
in a solid direction.

Let's say I have a table called "MasterRecords" and one called
"SubRecords" - Each record in the SubRecords table has a Foreign Key 
called MasterRecordsID which ties it to the MasterRecords table.

When I do an update I typically go through and delete all instances of
SubRecords from that table and then re-insert them. It is a working
method, but tends to create load on the database that is not needed.

Is there a better way to handle updates of SubRecords?




[flexcoders] RegExp Validator

2006-11-17 Thread DJ Lift
Hey there,
I'm trying to use a standard regular expression in a RegExpValidator.

Here's the validator markup:


It keeps saying that a password like '64months' (without the apostrophes) is no 
good when it 
should be. The expression should validate such that any characters from a-z and 
A-Z and 
0-9 should be ok, as long as the total length of chars is between 6 - 8 chars 
long. This 
expresion works great in PHP.  

I must be missing something about how AS or Flex deals with it. Any help would 
be 
appreciated.
thanksie,
marky





RE: [flexcoders] Load externs

2006-11-17 Thread Matt Chotin
I just got confirmation that -load-externs was broken in 2.0. We have
fixed it in 2.0.1.  Sorry!

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of EECOLOR
Sent: Thursday, November 16, 2006 8:02 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Load externs

 

Hello,

 

i cant get the -load-externs compile option to work, the xml file i am
passing is a link report generated with -link-report of another
application (application 1). If export the link report of application 2
(the application that is compiled using -load-externs) it shows its
still including all used classes. 

 

Did any1 get this to work?

 

 

Greetz Erik

 



[flexcoders] Re: Rotating BarChart

2006-11-17 Thread Tim Hoff

HI Daniel,

In addition to those changes, you have to change from xField to yField;
for the series.

-TH
__

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office  : 866-CYNERGY


--- In flexcoders@yahoogroups.com, "Daniel Tuppeny" <[EMAIL PROTECTED]>
wrote:
>
> Another charting question! :D
>
>
>
> Is there an easy way to have the Bar chart rotated? I want to let the
> user flick a switch that changes it from one direction to the other,
but
> using the rotation style obviously screws up the labels.
>
>
>
> I tried just changing BarChart to ColumnChart, BarWidthRatio to
> ColumnWidthRatio and BarSeries to ColumnSeries but the chart looks
> completely different (only showing two columns, instead of the 10 in
my
> data, and they're 50% wide each). I tried fiddling with some of the
> other numbers, but got nowhere.
>
>
>
> Are Bar and Column charts supposed to be the same, but rotated? If
not,
> is there a "nice" way to rotate the bar chart so the bars are
vertical?
>
>
>
> Thanks
> 
> The information contained in this e-mail and/or any attachments is
confidential and intended only for the individual(s) to which it is
addressed. If you are not named as an addressee you must not disclose,
copy or take any action in reliance of this transmission. This e-mail
and its attachments have been scanned for viruses by MessageLabs Ltd.
>
> __
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> __
>




RE: [flexcoders] Re: Auto incrementing values for datagrid

2006-11-17 Thread Iko Knyphausen
I think dataProvider.selectedIndex is doing that?

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Cox
Sent: Friday, November 17, 2006 8:32 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Auto incrementing values for datagrid

 

Sorry to jump into the thread but unfortunately rowIndex doesn't do what it
says on the tin. It's documented to return the index of the item in the
dataprovider, however in actual fact it returns the index of the row in the
list/datagrid. 


For example if you have a dataprovider with 100 records displaying in a
datagrid with 10 rows and you scroll to the bottom of the datagrid and
select the last row rowIndex would return 10; not the 100 you would expect. 

 

AFAIK there is no simple way of simply returning the index of the item in
the dataprovider rather than the datagrid. I hope someone can pick me up on
this point?

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: 17 November 2006 16:14
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Auto incrementing values for datagrid

 

> this field should re-paint itself on sorting of any other fields.
Do you mean that the first row in the grid should always say "1",
regardless of how the list is sorted? If that is the case, you'll want
to create an itemRenderer that implements IDropInListItemRenderer, and
then displays the rowIndex property of BaseListData. This is probably
a good starting point:

http://jessewarden.

com/archives/2006/10/checkbox_item_r.html

HTH,
Ben

--- In [EMAIL PROTECTED]  ups.com,
"flxcoder" <[EMAIL PROTECTED]> wrote:
>
> --- In [EMAIL PROTECTED]  ups.com,
"flxcoder"  wrote:
> >
> > I want to have a serial number field in my datagrid that increases or
> > auto increments with each row. Is this possible? this field should
> > re-paint itself on sorting of any other fields.
> >
> any ideas here? surely, flex has a way to have a serial number auto
> incrementing column value for the datagrid...
>

 



RE: [flexcoders] Rotating BarChart

2006-11-17 Thread Ely Greenfield
 
 
Switching from bar to column is the only way to do it (that doesn't
involve a lot of pain and suffering).
 
When you switch, remember to:
 
swap your x/y properties (xField, yField)
swap your h/v properties (horizontalAxis, verticalAxis, etc).
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Tuppeny
Sent: Friday, November 17, 2006 2:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Rotating BarChart



Another charting question! :D

Is there an easy way to have the Bar chart rotated? I want to let the
user flick a switch that changes it from one direction to the other, but
using the rotation style obviously screws up the labels.

I tried just changing BarChart to ColumnChart, BarWidthRatio to
ColumnWidthRatio and BarSeries to ColumnSeries but the chart looks
completely different (only showing two columns, instead of the 10 in my
data, and they're 50% wide each). I tried fiddling with some of the
other numbers, but got nowhere.

Are Bar and Column charts supposed to be the same, but rotated? If not,
is there a "nice" way to rotate the bar chart so the bars are vertical?

Thanks



The information contained in this e-mail and/or any attachments is
confidential and intended only for the individual(s) to which it is
addressed. If you are not named as an addressee you must not disclose,
copy or take any action in reliance of this transmission. This e-mail
and its attachments have been scanned for viruses by MessageLabs Ltd. 


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


 


RE: [flexcoders] Re: Auto incrementing values for datagrid

2006-11-17 Thread Steve Cox
Sorry to jump into the thread but unfortunately rowIndex doesn't do what
it says on the tin. It's documented to return the index of the item in
the dataprovider, however in actual fact it returns the index of the row
in the list/datagrid. 

For example if you have a dataprovider with 100 records displaying in a
datagrid with 10 rows and you scroll to the bottom of the datagrid and
select the last row rowIndex would return 10; not the 100 you would
expect. 
 
AFAIK there is no simple way of simply returning the index of the item
in the dataprovider rather than the datagrid. I hope someone can pick me
up on this point?
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: 17 November 2006 16:14
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Auto incrementing values for datagrid
 
> this field should re-paint itself on sorting of any other fields.
Do you mean that the first row in the grid should always say "1",
regardless of how the list is sorted? If that is the case, you'll want
to create an itemRenderer that implements IDropInListItemRenderer, and
then displays the rowIndex property of BaseListData. This is probably
a good starting point:

http://jessewarden.

com/archives/2006/10/checkbox_item_r.html

HTH,
Ben

--- In [EMAIL PROTECTED] 
ups.com, "flxcoder" <[EMAIL PROTECTED]> wrote:
>
> --- In [EMAIL PROTECTED] 
ups.com, "flxcoder"  wrote:
> >
> > I want to have a serial number field in my datagrid that increases
or
> > auto increments with each row. Is this possible? this field should
> > re-paint itself on sorting of any other fields.
> >
> any ideas here? surely, flex has a way to have a serial number auto
> incrementing column value for the datagrid...
>
 


[flexcoders] Re: Auto incrementing values for datagrid

2006-11-17 Thread ben.clinkinbeard
> this field should re-paint itself on sorting of any other fields.
Do you mean that the first row in the grid should always say "1",
regardless of how the list is sorted? If that is the case, you'll want
to create an itemRenderer that implements IDropInListItemRenderer, and
then displays the rowIndex property of BaseListData. This is probably
a good starting point:

http://jessewarden.com/archives/2006/10/checkbox_item_r.html

HTH,
Ben


--- In flexcoders@yahoogroups.com, "flxcoder" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "flxcoder"  wrote:
> >
> > I want to have a serial number field in my datagrid that increases or
> > auto increments with each row. Is this possible? this field should
> > re-paint itself on sorting of any other fields.
> >
> any ideas here? surely, flex has a way to have a serial number auto
> incrementing column value for the datagrid...
>





[flexcoders] Re: Simple problem: Error creating links using string

2006-11-17 Thread raidenx112
Thank you all.  I used the getRepeaterItem() and it worked.  



Jack




Does anyone have the attachments from "RE: [flexcoders] Fixing data points in Ely Greenfield's SizedPieSeries"?

2006-11-17 Thread Daniel Tuppeny
Hi all,

 

Does anyone have the attachments from Ely's reply to my post "RE:
[flexcoders] Fixing data points in Ely Greenfield's SizedPieSeries" they
could forward to me? They're not stored online at yahoogroups, and
attachments aren't sent with the digest emails I get :-(

 

I've emailed Ely, but I'm guessing he's in the US, and it'd be good to
get a start on them this morning :-)

 

Thanks,

 

Danny

The information contained in this e-mail and/or any attachments is confidential 
and intended only for the individual(s) to which it is addressed. If you are 
not named as an addressee you must not disclose, copy or take any action in 
reliance of this transmission. This e-mail and its attachments have been 
scanned for viruses by MessageLabs Ltd.

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

[flexcoders] Stylizing Accodrdion border

2006-11-17 Thread missgiggygirl
Hello Everyone!
I am new and trying to wrap my head around some (seemingly) simple
things...

I do not like the default look and behavior of the borders of the
Accordion widget, but do not see how to change it?

Through the built in API help, Class "Accordion" has properties like
"selectedFillColors" and "textRollOverColor", but no border controls?
I want each :block" to be 1px solid black by default on all four
sides, and upon hover become grey (#66) on all four sides?

How can I achieve this?

Thanks,
Giggle_Gurl 




[flexcoders] Re: Dynamic TextArea fields or Grouping TextArea fields

2006-11-17 Thread michrx7
HELP! I am having the same problem as #2. If I create the textareas 
dynamically how do I loop through them later on to set their 
properties?

so basically I have some textareas with ids of
myText_0
myText_1
myText_2
myText_3
(etc)

and I have a loop of
for (var x:int=0; x<4; x++)
{
// insert AS3 code here
}

inside the loop I need to be able to say something like
myText_x.height = 50;

Anyone?

--- In flexcoders@yahoogroups.com, "debla1317" <[EMAIL PROTECTED]> 
wrote:
>
> That works perfect (THANK YOU), now I have two problems.
> 
> 1) If I would have created the textarea down in the MXML I would 
be 
> able to set a "change" property, but I can't figure out how to set 
> that in my actionscript code ta.change = doSomething(); does not 
> work.
> 
> 2) Later on I want to look back through the list of textarea 
fields 
> and properties and I think I am close by creating a new object, 
but 
> not quite there.
> 
> So I created another loop to reference the textarea objects:
> 
> for (var y:int = 0; y {
>  var packageObject:Object = "packageID_" + y.toString();
>  Alert.show(packageObject.text);
> }
> 
> Now my problem is that it is setting packageObject to a string 
> instead of accepting that I want packageObject to be equal to my 
> text field with the id of packageID_0, packageID_1, etc...
> 





[flexcoders] Re: Auto incrementing values for datagrid

2006-11-17 Thread flxcoder
--- In flexcoders@yahoogroups.com, "flxcoder" <[EMAIL PROTECTED]> wrote:
>
> I want to have a serial number field in my datagrid that increases or
> auto increments with each row. Is this possible? this field should
> re-paint itself on sorting of any other fields.
>
any ideas here? surely, flex has a way to have a serial number auto
incrementing column value for the datagrid...





[flexcoders] Bug??? Re: Loading multiple swfs crashing browser

2006-11-17 Thread dallasweb
Maybe this is a possible bug in swfloader component. I've created some
basic(no script) swf8 files and have loaded them dynamically into my
Flex app using swfloader and no crash.

--- In flexcoders@yahoogroups.com, "dallasweb" <[EMAIL PROTECTED]> wrote:
>
> Daniel...thanks for the interest.
> 
> The content I'm loading are Captivate swf's.
> 
> For grins, I just made 5 swf's(Flash 8) with a large image embedded,
> no script, one key frame each with the image. Still managed to crash
> the browser.  
> 
> --- In flexcoders@yahoogroups.com, Daniel Wabyick  wrote:
> >
> > 
> > Curious what is in the SWF content that you are loading. Is it AS3
code 
> > or AS2 code?
> > 
> > Wondering if you try loading completely basic Flash 8 SWF's
without any 
> > code if it will still crash.
> > 
> > Regards,
> > -Daniel
> > 
> > 
> > 
> > dallasweb wrote:
> > >
> > > Matt..thanks for the reply. I changed the mx:Image tag to
mx:SWFLoader
> > > and while in debug mode I can see it unloading swfs at different
> > > intervals. (wasn't doing that using mx:image) With that change to
> > > swfloader it still crashes the browser.
> > >
> > > If I use mx:image and change the source dynamically, does that
'load'
> > > the swf...or overwrite it with the newest selection? where only
one is
> > > 'loaded' at a time.
> > >
> > > --- In flexcoders@yahoogroups.com 
> > > , "Matt Chotin" 
wrote:
> > > >
> > > > Check to see if you're leaking memory (watch the task manager)
> as you
> > > > click through the movies? Maybe some old movies need to be
unloaded
> > > > explicitly?
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > From: flexcoders@yahoogroups.com 
> > >  
> > > [mailto:flexcoders@yahoogroups.com 
> > > ] On
> > > > Behalf Of dallasweb
> > > > Sent: Tuesday, November 14, 2006 8:19 AM
> > > > To: flexcoders@yahoogroups.com

> > > > Subject: [flexcoders] Loading multiple swfs crashing browser
> > > >
> > > >
> > > >
> > > > I really thought this would be easier than it has been. Maybe
it is
> > > > and I just can't see the forest yetanyway...thanks in
> advance for
> > > > your patience.
> > > >
> > > > I'm attempting to 'replicate' Jesse Wardens Captivate player in
> Flex.
> > > > It's not that I don't like your player Jesse...but our users can't
> > > > seem to figure out that they need to click a drop down to
select new
> > > > sections. Your player rocks.;)
> > > >
> > > > Here's what it looks like so far:
> > > >
> > > > I'm loading a XML doc using HTTPservice (myRequest.send(); gets
> called
> > > > on app init).
> > > >  fault="faultHandler()"
> > > > result="resultHandler()" />
> > > >
> > > > resultHandler(): myDG.dataProvider =
> > > > myRequest.lastResult.captivate_playlist.swf;
> > > >
> > > > Then I'm using a datagrid component to display available captivate
> > > > movies.
> > > >
> > > >  > > > change="onDataGridChange(event)">
> > > > 
> > > >  > > > headerText="Title" />
> > > > 
> > > > 
> > > >
> > > > When a user clicks a datagrid row, call onDataGridChange() which
> does
> > > > this:
> > > > //
> > > > swfDisplay.source = myDG.selectedItem.src;
> > > >
> > > > Which updates the source value of mx:image
> > > >  > > > scaleContent="true" id="swfDisplay" />
> > > >
> > > > There are no complie or runtime errors. When clicking through the
> > > > datagrid grid many times..(which users will
> > > > do) the browser crashes...IE, Firefox, Safari, [MAC or XP]
> > > >
> > > > The way I set this up made since to me, but I'm a brand new Flex
> > > > coder. Any insight is appreciated.
> > > >
> > >
> > >
> >
>





[flexcoders] Re: How can I change the color of DataGrid header's bottom border?

2006-11-17 Thread ben.clinkinbeard
> It uses borderColor
I wish it were (and it should be) that simple. Unfortunately,
borderColor only affects the outer 4 sides of the DataGrid.

After a significant amount of digging, I think this is something that
was meant to be implemented but never was. I found the following line
in the setActualSize method of DataGridHeaderSeparator:

g.lineStyle(1, 0x91); // should be variable set to match
datagrid's border color.

So I think that was meant to be parameterized but got overlooked. I
have created my own headerSeparatorSkin to override this, but as far
as I can tell, I have to hard-code the new color because I don't have
access to getStyle("borderColor"). (Any help on this would be
appreciated as well.)

The same color (0x91) is hard-coded as the bottom border of the
DataGrid header as well. From DataGrid.drawHeaderBackground():

g.lineStyle(0, 0x91, 100);
g.lineTo(0, hh - 0.5);

I have created a DataGrid subclass and overridden this method (taking
advantage of getStyle("borderColor")), but am not sure how reliable
the code is because I am not able to calculate the same width
measurements as DataGrid, because it uses some private properties to
do so.

I welcome further insight into this matter, but its unfortunate that
it seems like a small oversight means that we are now required to
create a subclass of the entire DataGrid, just to accomplish some
basic styling. Seems like a small change... maybe you can firecall it
into 2.0.1? :)

Thanks,
Ben


--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> Alex delivers: It uses borderColor.  You can override
> drawHeaderBackground() if that isn't good enough.
> 
>  
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of ben.clinkinbeard
> Sent: Thursday, November 16, 2006 8:58 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: How can I change the color of DataGrid
> header's bottom border?
> 
>  
> 
> Hi Matt,
> 
> Thanks for responding. headerColors just lets you specify the 2 colors
> to use for the gradient- I am trying to set the border on the bottom
> of that gradient. I would think that would be something you could set
> in the style specified by headerStyleName but as I mentioned in my
> initial post, only text related properties seem to have any effect in
> that style. The docs say that headerStyleName defaults to
> dataGridStyles, which I can't seem to find at the moment. I found it
> the other day and am pretty sure it didn't really offer any clues. I
> think it only set one property if memory serves.
> 
> I really hope you or someone else can shed some light on this because
> it really shouldn't be this hard to do this. I'm guessing you've got
> the hookup when it comes to access to people who might know the answer
> :)
> 
> Thanks,
> Ben
> 
> --- In flexcoders@yahoogroups.com 
> , "Matt Chotin"  wrote:
> >
> > And if headerColors is the wrong thing just read through the datagrid
> > skins source and see what it's doing :-)
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of ben.clinkinbeard
> > Sent: Thursday, November 16, 2006 1:19 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Re: How can I change the color of DataGrid
> > header's bottom border?
> > 
> > 
> > 
> > Is this not possible?
> > 
> > --- In flexcoders@yahoogroups.com
> 
> 
> > , "ben.clinkinbeard"
> >  wrote:
> > >
> > > Good god skinning is harder than it should be. I have managed to
> > > change the color of the vertical separators between column headers
> by
> > > coding my own headerSeparatorSkin class, but I cannot find where to
> > > change the bottom border. I have created a custom style and assigned
> > > it to headerStyleName, but only text related properties seem to do
> > > anything. background-color: #FF; doesn't even do anything.
> > > 
> > > Anyone have any clue how to do this?
> > > 
> > > Thanks,
> > > Ben
> > >
> >
>





Re: [flexcoders] Understanding the FocusManager

2006-11-17 Thread Daniel Freiman

That's a great answer especially considering I wasn't exactly sure what I
was asking.  I think I have two more questions which would finish up this
line of questioning for me.  (I'm working off the UIComponent API doc also.)

1. If you click on a composite component, it will walk up the parent tree
until it finds mouseFocusEnabled = true, and then walk up the tree until it
finds focusEnabled = true, and then set the focus to that component?

2. What happens if you have mouseFocusEnabled and tabEnabled both equal
false and focusEnabled = true.  Then you can set focus through code or by
clicking on a child?

All of this assumes that mouseEnabled and mouseChildrenEnabled are set
correctly.  (I'll be honest that I'm a little confused with
mouseChildrenEnabled also, but I haven't looked very hard for that yet.)

Thanks,

- Dan

On 11/16/06, Matt Chotin <[EMAIL PROTECTED]> wrote:


   From the focus guru:



Actually, Flash will remove focus from a textfield when the mouse is
clicked outside of the textfield.  The Flex FM always tries to make sure
something has focus always (generally a good practice for accessibility) so
it will not let focus go away unless something else is clicked that is
IFocusManagerComponent and has mouseFocusEnabled=true.



You have to implement IFocusManagerComponent in order to be a focus
candidate from the Flex FM perspective and have focusEnabled=true to
actually receive focus.  mouseFocusEnabled says whether you want to receive
focus via mouse clicks, tabEnabled says whether you want to receive focus
from the keyboard.



focusEnabled=false is a good way to disable child components like
scrollbars that shouldn't receive focus



HTH,

-Alex




 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Daniel Freiman
*Sent:* Thursday, November 16, 2006 12:18 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Understanding the FocusManager



There's not any specific question yet.  But I foresee two issues.

1. What prompted the question was that I had a UITextField that wasn't
losing focus when I clicked on UIComponent.  I know this specific example
would be guided by the player's focus manager and not
mx.Managers.FocusManager, but I thought there might be some interaction
between the two managers I could leverage.  For now I have a workaround of
setting the selection to an off screen object.  What I'm worried about is
that in Flash 8 this type of problem tended to compound and I actually spent
40% of my time just trying to resolve focus issues because I didn't
understand focus when I started writing the program.

2. My second issue is just that I want to make sure I'm using the object
properties correctly (focusEnabled, mouseFocusEnabled).  From reading the
docs, they seem to enable receiving focus events, but set focus to only
objects that have mouseFocusEnabled=true?

If either of this spark a specific answer, I would appreciate it.  If not
I'll just wait until I come across a more specific problem.

Thanks,

- Dan

On 11/16/06, *Matt Chotin* <[EMAIL PROTECTED]> wrote:

Hi Dan,



There aren't any real docs with details on it.  If you have specific
questions I can try to have an engineer respond.



Matt


 --

*From:* [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] *On
Behalf Of *Daniel Freiman
*Sent:* Wednesday, November 15, 2006 8:46 AM
*To:* flexcoders
*Subject:* [flexcoders] Understanding the FocusManager



Does anyone know where there is a good overview of how focus and the
FocusManager works in flex.  I've searched through the docs, the dev center
and google, and haven't been able to find anything.

thanks in advance,

- Dan



 



[flexcoders] Re: How to handle complex object return from web service

2006-11-17 Thread ben.clinkinbeard
Not sure what you mean about getting part of it, but there are some
ways of dealing with complex results. Whenever I've encountered web
services that return deeply nested or very complex structures I've set
the resultFormat of the operation to e4x. This allows you to use E4X
expressions to access the deeply nested information with simple
constructs like wsResult..deeplyNestedNode, etc. rather than having to
drill down each level like you do with an object structure.

HTH,
Ben


--- In flexcoders@yahoogroups.com, ria team <[EMAIL PROTECTED]> wrote:
>
> Hi
> I am calling the web service writen in .net from flex application.
using web service object. I am getting the result back from the call
but the result object too complex and i am getting a part of it. 
> 
> What are the different method avilable in flex side or action Script
3.0 to handle the complex object return from the web service.
> 
> Amey. 
> 
>  
> -
> Sponsored Link
> 
> Mortgage rates near 39yr lows. $420,000 Mortgage for $1,399/mo -
Calculate new house payment
>





[flexcoders] Re: Deploy custom j2ee application on SAP J2EE Engine

2006-11-17 Thread auddaraj
Thanks for responding Seth.

My colleague(Ulag) was successful in deploying the app. The problem 
seems to be SAP J2EE engine install, so our custom application works 
fine on another m/c. 

Anand.
--- In flexcoders@yahoogroups.com, "Seth Hodgson" <[EMAIL PROTECTED]> 
wrote:
>
> I'm not familiar with the SAP J2EE Engine, but FDS uses the JMX 
APIs so you'll need to either enable native JMX support for your 
container if available or use an open source implementation such as 
MX4J (http://mx4j.sourceforge.net/).
> 
> HTH,
> Seth
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of auddaraj
> Sent: Tuesday, November 14, 2006 7:22 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Deploy custom j2ee application on SAP J2EE 
Engine
> 
> We are trying to deploy a FDS application on SAP J2EE engine & we 
get
> the below error on startup for MessageBrokerServlet 
> 
> Initialization of servlet [MessageBrokerServlet] failed. Check the
> init() method of the servlet. Error is:
> [java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
> 
> Can someone shed some light please?
>





Re: [flexcoders] Re: Remove the row selection from the datagrid

2006-11-17 Thread arpan srivastava
Hi Tim,
I did myDataGrid.selectable="false" but this will stop dispatching the 
MouseOver event and it will not even highlight the row. I will try to explain 
you in detail.

I created a combobox from where you can change the font size of the text in the 
row. Now if you click on a row it gets selected and the fontcolor becomes black 
(no matter what color it was before). This default behaviour and I want to 
change this thing.

I have overriden the drawSelectionIndicator() so that it does not draw the 
selection indicator, but still if I click on any row and then change the font 
size or font color, the font color of the clicked row becomes black.

- Original Message 
From: Tim Hoff <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, November 17, 2006 2:30:29 PM
Subject: [flexcoders] Re: Remove the row selection from the datagrid









  




Hi Arpan,

Whenever I've experienced unexpected colors, trying to set a style, it's 
usually been a typo or an unsupported property.  I'm not sure what you're 
trying to acheive, but DataGrid does have a "selectable" property; that might 
solve your problem.  If not, does the text turn black if you remove your 
extended class?   I would start by checking the syntax ("#FF", "0xFF"); 
punctuation if you will.  If everthing's cool there, then check again. 
myDataGrid.selectab le="false" ; might be a good option, that doesn't require 
extra code.  

-TH
 _ _ 
 
Tim Hoff
Cynergy Systems, Inc.
http://www.cynergys ystems.com
Office: 866-CYNERGY 

--- In [EMAIL PROTECTED] ups.com, arpan srivastava <[EMAIL PROTECTED] ..> wrote:
>
> Hi All,
> I don't want the datagrid selection i.e. whenever you click on a row it gets 
> selected. for this I overrided the drawSelectionInidic ator() and left it 
> empty. Now if I click on any row it is not selected but when I change the 
> font color/font size of the text in the by setStyle() then the text in the 
> row that I clicked turns black. I think this is a default behavior but does 
> anyone know how to override it.
>




  

















[flexcoders] Stretch swf to fit browser window

2006-11-17 Thread kim_boulton
I'm trying to get a Flash 9 swf to stretch to the browser window size.
i.e. the swf components all get bigger or smaller depending on the
size of the browser window.

This is pretty easy to do in Flash 8 although nothing i've tried to
far works in Flash 9

systemManager.stage.setScalemode =  tried all those

also in the html file 

[flexcoders] XML No trim

2006-11-17 Thread Jitendra Bigtani
Hi Guys,

How are you doing?

I need a help. Its a simple requirement. 
I need to parse a xml string. But I do not white the whitespace of 
values inside tags to be trimmed. 

For example- 

a maeesage like 
 JB should come as it is. 
By default i see the value " JB" is timmed to "JB". 

I looked at xml properties. 
I found two related properties. 
1. ignoreWhiteSpace. This ignore whitespace outside tags. default is 
true. 
2. prettyPrinitng. This default is true. I made it false. This was 
helpful in sending white space to other xml as it disables trimming. 

Both flags do not solving my problem when I dont want spaces to be 
trimmed while parsing. 

Thanks





RE: [flexcoders] Newbie: Why can't I add a button!

2006-11-17 Thread Greg McCreath
Thanks.

 

It works fine as a MXML app.  Here it is.  Any ideas anyone?  

 



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

 











 

Greg McCreath
Chief Technical Officer
TAFMO Limited
ABN:  94 109 766 592

Level 8, 342 Flinders Street
Melbourne
Victoria, 3000
Australia

http://www.tafmo.com
Ph   : +61 (0) 3 9018 6824
Fax : +61 (0) 3 9018 6899
Mobile : +61 (0) 401 988 957

  _  

From: Matt Chotin [mailto:[EMAIL PROTECTED] 
Sent: Friday, 17 November 2006 2:35 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Newbie: Why can't I add a button!

 

Looks like the style code may not be loading correctly.  What happens if
you use an MXML file for your application instead of AS?

 

Matt

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bookymcnuggett
Sent: Thursday, November 16, 2006 5:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Newbie: Why can't I add a button!

 

Hi All,

This is my first posting to this forum.

I have taken my first newbie steps to creating a stand-alone AS3 
Application and have come across something I cannot understand. I 
have an Application, and add an Image to it and it is fine. I add a 
Button to it and it blows up with the AS3 equivalent of a null 
pointer exception. The code is below. The error is below that. If I 
comment out the line that does the "addChild(button)" it correctly 
adds and displays the Image. What am I doing wrong? What is wrong 
with how I am adding a button? Both Button and Image descend from 
UIComponent.

package {

import mx.core.*;
import mx.events.*;
import mx.skins.halo.*;
import mx.styles.*;
import mx.controls.*;
import flash.display.*;

public class FirstApp extends Application
{
[Embed(source="connected_multiple_big.jpg")]
private var ImageClass:Class;

public function FirstApp()
{
super();
this.layout = "vertical";
this.setStyle("borderSkin",mx.skins.halo.HaloBorder);
this.addEventListener(FlexEvent.APPLICATION_COMPLETE, doInit); 
}

private function doInit(e:FlexEvent):void {
var img:Image = new Image();
img.setStyle("verticalAlign","top");
img.source = ImageClass; 
addChild(img);

// the troublesome test button. addChild() here causes a null object 
reference exception
var button:Button = new Button();
button.label = "label";
addChild(button); 

}
}
}
/// 

TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
at mx.core::UIComponent/getStyle()
at 
mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewS
 
kinForPhase()
at 
mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewS
 
kin()
at mx.controls::Button/mx.controls:Button::commitProperties()
at mx.core::UIComponent/validateProperties()
at mx.managers::LayoutManager/::validateProperties()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply
 ()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/::preloader_preloaderDoneHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/::displayClassCompleteHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::DownloadProgressBar/::timerHandler()
at mx.preloaders::DownloadProgressBar/::initCompleteHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/::dispatchAppEndEvent()
at mx.preloaders::Preloader/::appCreationCompleteHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/set initialized()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply
 ()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()

 



This email and any files transmitted with it may be confidential and are 
intended solely for the use of the individual or entity to whom they are 
addressed. This email may contain personal information of individuals, and be 
subject to Commonwealth and/or State privacy laws in Australia. This email is 
also subject to copyright. If you are not the intended recipient, you must not 
read, print, stor

[flexcoders] How to handle complex object return from web service

2006-11-17 Thread ria team
Hi
I am calling the web service writen in .net from flex application. using web 
service object. I am getting the result back from the call but the result 
object too complex and i am getting a part of it. 

What are the different method avilable in flex side or action Script 3.0 to 
handle the complex object return from the web service.

Amey. 

 
-
Sponsored Link

Mortgage rates near 39yr lows. $420,000 Mortgage for $1,399/mo - Calculate new 
house payment

[flexcoders] Rotating BarChart

2006-11-17 Thread Daniel Tuppeny
Another charting question! :D

 

Is there an easy way to have the Bar chart rotated? I want to let the
user flick a switch that changes it from one direction to the other, but
using the rotation style obviously screws up the labels.

 

I tried just changing BarChart to ColumnChart, BarWidthRatio to
ColumnWidthRatio and BarSeries to ColumnSeries but the chart looks
completely different (only showing two columns, instead of the 10 in my
data, and they're 50% wide each). I tried fiddling with some of the
other numbers, but got nowhere.

 

Are Bar and Column charts supposed to be the same, but rotated? If not,
is there a "nice" way to rotate the bar chart so the bars are vertical?

 

Thanks

The information contained in this e-mail and/or any attachments is confidential 
and intended only for the individual(s) to which it is addressed. If you are 
not named as an addressee you must not disclose, copy or take any action in 
reliance of this transmission. This e-mail and its attachments have been 
scanned for viruses by MessageLabs Ltd.

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

[flexcoders] FDS not receiving calls asynchronously

2006-11-17 Thread jbergamotto
I am having an issue with concurrency using FDS.  I have six calls 
going to the same destination (all different methods) at the same 
time. Setting up logging on the client side I see that Flex is 
sending the calls all at the same time, however in the server log 
(being recorded at the beginning and end of each method) I notice 
that each call is being completed before the next call is started.  
There is no code to block that I am writing, in fact the first line 
of the method writes to a log.  Inside the method there is some 
message retrieval happening and each of the calls can take a 
different amount of time, the calls were broken up to allow for 
retrieval to come back asap, however the synchronous behaviour is 
preventing us from having 2 longer calls running at the same time.

Are there settings that I am unaware of in the remoting-config that 
can fix this behaviour?

Is there code in the messagebromer that is making this synchronous?

I have tried increasing the framerate of the main application mxml 
and utilizing the callLater feature, but there is no change in 
behaviour.






RE: [flexcoders] Newbie: Why can't I add a button!

2006-11-17 Thread Greg McCreath
Thanks very much for responding Gordon,   I appreciate your's and Matt's
time.

 

Why AS3?  Comfort zone I guess.  I'm coming from a Java background.  I'm
investigating the feasibility of creating an Eclipse like plug-in
framework for adding new screens and functionality that extend a solid
framework core.  The aim?  Having our P/S people being able to added
customer-specific screens and functionality and so on into a
standardized production framework without having to jump through
Struts/JSP/EJB/deployment hoops.

 

I'm pretty familiar with Eclipse having some plug in work there and I
guess that model is my starting point.

 

I'll look further into the XMXL side while I investigate.  Thanks.

 

Greg.

 

PS. If such an architecture already exists for Flex, then do tell!

 

Greg McCreath
Chief Technical Officer
TAFMO Limited
ABN:  94 109 766 592

Level 8, 342 Flinders Street
Melbourne
Victoria, 3000
Australia

http://www.tafmo.com
Ph   : +61 (0) 3 9018 6824
Fax : +61 (0) 3 9018 6899
Mobile : +61 (0) 401 988 957

  _  

From: Gordon Smith [mailto:[EMAIL PROTECTED] 
Sent: Friday, 17 November 2006 3:24 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Newbie: Why can't I add a button!

 

Sorry, although we've made it easy to write components in either MXML or
AS3, we haven't done the same with Application. If you are a newbie you
should start out with  in MXML. You can then use AS3 for
all your components if you really want to. I hope we can make this
better in a future release.

 

What's going on is that when the MXML compiler compiles an
 it autogenerates code to set up a lot of stuff such as
the default CSS type selectors that various components like Button
depend on. These aren't getting set up when you simply extend
Application as an AS3 class. When Button calls getStyle() to find out
what it's skin class should be, it's getting a null Clas reference.

 

Once you are no longer a newbie, you can use mxmlc's
-keep-generated-actionscript option to see all the generated code, and
set this stuff up yourself it you insist. But I really don't understand
why some developers like AS3 so much better tham MXML. Would you write a
web app all in JS and no HTML?

 

- Gordon

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bookymcnuggett
Sent: Thursday, November 16, 2006 5:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Newbie: Why can't I add a button!

 

Hi All,

This is my first posting to this forum.

I have taken my first newbie steps to creating a stand-alone AS3 
Application and have come across something I cannot understand. I 
have an Application, and add an Image to it and it is fine. I add a 
Button to it and it blows up with the AS3 equivalent of a null 
pointer exception. The code is below. The error is below that. If I 
comment out the line that does the "addChild(button)" it correctly 
adds and displays the Image. What am I doing wrong? What is wrong 
with how I am adding a button? Both Button and Image descend from 
UIComponent.

package {

import mx.core.*;
import mx.events.*;
import mx.skins.halo.*;
import mx.styles.*;
import mx.controls.*;
import flash.display.*;

public class FirstApp extends Application
{
[Embed(source="connected_multiple_big.jpg")]
private var ImageClass:Class;

public function FirstApp()
{
super();
this.layout = "vertical";
this.setStyle("borderSkin",mx.skins.halo.HaloBorder);
this.addEventListener(FlexEvent.APPLICATION_COMPLETE, doInit); 
}

private function doInit(e:FlexEvent):void {
var img:Image = new Image();
img.setStyle("verticalAlign","top");
img.source = ImageClass; 
addChild(img);

// the troublesome test button. addChild() here causes a null object 
reference exception
var button:Button = new Button();
button.label = "label";
addChild(button); 

}
}
}
/// 

TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
at mx.core::UIComponent/getStyle()
at 
mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewS
 
kinForPhase()
at 
mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewS
 
kin()
at mx.controls::Button/mx.controls:Button::commitProperties()
at mx.core::UIComponent/validateProperties()
at mx.managers::LayoutManager/::validateProperties()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply
 ()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/::preloader_preloaderDoneHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
ventFunction()
at flash.

[flexcoders] FDS not receiving calls asynchronously

2006-11-17 Thread jbergamotto
I am having an issue with concurrency using FDS.  I have six calls 
going to the same destination (all different methods) at the same 
time. Setting up logging on the client side I see that Flex is 
sending the calls all at the same time, however in the server log 
(being recorded at the beginning and end of each method) I notice 
that each call is being completed before the next call is started.  
There is no code to block that I am writing, in fact the first line 
of the method writes to a log.  Inside the method there is some 
message retrieval happening and each of the calls can take a 
different amount of time, the calls were broken up to allow for 
retrieval to come back asap, however the synchronous behaviour is 
preventing us from having 2 longer calls running at the same time.

Are there settings that I am unaware of in the remoting-config that 
can fix this behaviour?

Is there code in the messagebromer that is making this synchronous?

I have tried increasing the framerate of the main application mxml 
and utilizing the callLater feature, but there is no change in 
behaviour.






[flexcoders] How to append logs to a log file instead of overriding the log file in flex.

2006-11-17 Thread duoduoin liu

If I want to append the log messages to a log file even though the flash
player is restarted, how to implement it. Currently, when you start a new
flash player, the logging messages are always been clean up, and write the
new messages.


Re: [flexcoders] Re: Intel-Mac 9.0.28 debug plugin

2006-11-17 Thread Mark McCray
I tried installing that one and it says it's for power-pc based  
machines. (the fourth link down)


On Nov 17, 2006, at 2:21 AM, Matt Chotin wrote:



Oh, my mistake, looks like we did post them.  I know the projector  
on Mac is PPC only for the moment, but I believe the plugin should  
have been universal.  I had been told that there were some delays  
in one of the Mac builds though, so this might be it.




Matt



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

Sent: Thursday, November 16, 2006 8:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Intel-Mac 9.0.28 debug plugin



The 4th link within the FP9 group (the one I previously dl'ed)  
throws an

error on installation saying that its a PowerPC version only.
Hence my question on the location of an Intel-mac UB.

Regards,

Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

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

Behalf Of ben.clinkinbeard
Sent: Friday, 17 November 2006 2:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Intel-Mac 9.0.28 debug plugin

It doesn't specifically list Intel Mac, but I would assume this is
what you need. http://www.adobe.com/support/flashplayer/downloads.html

I actually had to ask in a comment on the Labs blog to find this link
too. Hey Adobe, make it easier to find these- why aren't they linked
from the main download page?

HTH,
Ben

--- In flexcoders@yahoogroups.com, "Bjorn Schultheiss"
<[EMAIL PROTECTED]> wrote:
>
> Hey, I'm having some trouble finding this.
> Any help?
>
> Regards,
>
> Bjorn Schultheiss
> Senior Flash Developer
>
>
> QDC
> Personalised Communication Power
>
> Level 2, 31 Coventry St.
> South Melbourne
> 3205, VIC Australia
>
> T: +61 3 9674 7400
> F: +61 3 9645 9160
> W: http://www.qdc.net.au
>
> ((This transmission is confidential and intended solely
for the
> person or organization to whom it is addressed. It may contain
privileged
> and confidential information. If you are not the intended  
recipient, you
> should not copy, distribute or take any action in reliance on it.  
If you

> believe you received this transmission in error, please notify the
> sender.---))
>








[flexcoders] Implicit coercion of a value of type com.my.controls:TextInputLabel to an unrelated type flash.display:DisplayObject.

2006-11-17 Thread Sergey Kovalyov
Hi All!

Error "Implicit coercion of a value of type
com.my.controls:TextInputLabel to an unrelated type
flash.display:DisplayObject." appears in compile time when using
 override. This bug is difficult to reproduce. Sometimes
it happes, sometimes not. Initially I have found it when there was no
 property tag within the child declaration:





I have added :







And bug disappeared, but only "for a while"...

Sergey.


[flexcoders] Differing versions of the compiler

2006-11-17 Thread dorkie dork from dorktown
This morning's download of the Free Flex SDK had this version.
Version 2.0 build 146333

The version I am using in Flex Builder is Version 2.0 build 143459. Is
there a place where I can see the latest build number?

dorkie version 143459 dork
from dorktown


Re: [flexcoders] Re: Flex Builder Linux

2006-11-17 Thread dorkie dork from dorktown

if adobe went linux with its products... think about it... what - would -
hold - you - to -... ...even if you didnt switch, at least you would have
the "option" too... but shhh... dont tell anyone...

On 11/17/06, Carlos Rovira <[EMAIL PROTECTED]> wrote:


Hi Matt,

Flex Builder in Linux should be a great option since many people are
switching to Linux
and having a Flex Builder version should boost Flex and Flash adoption and
credibility. But maybe the ROI could come from other ways and I'm sure that
will be great for Adobe to sell the Flash/Flex Platform.

Hope we could read about linux version plans soon :).

Thanks.

C.



On 11/17/06, Matt Chotin < [EMAIL PROTECTED]> wrote:
>
>The FDS team has tested the internal builds of the Linux player and
> RTMP appears to be working.
>
>
>
> As mentioned, we have considered a Flex Builder for Linux but we have to
> take a hard look at lots of factors, technical feasibility, market size,
> time taken away from new features, etc.  So no announced plans at this
> point, doesn't mean it's dead and gone though.
>
>
>
> Matt
>
>
>  --
>
> *From:* [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com]
> *On Behalf Of *devisbalsemin
> *Sent:* Thursday, November 16, 2006 11:32 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Re: Flex Builder Linux
>
>
>
> yes, it's true, and it's for this that we are hope that flash palyer
> support rmtp as soon as possibile.
> Now we are developing in linux but we are testing into a windows
> machine :-(, but we are hoping in new beta for linux that fix this.
> The pushing via RTMP it's great and very very fast to implement it
> with flex 2.
> Adobe give us this Falsh palyer with complete future as soon as
> possbile...
> Thanks in advance
> Bye
> Devis
>
> --- In flexcoders@yahoogroups.com ,
> "Darron J. Schall" <[EMAIL PROTECTED]> wrote:
> >
> > Tom Chiverton wrote:
> > > I thought that FDS would run over any transport, not just RTMP.
> > >
> > FDS can work via client polling, but for true real time sharing via
> > server push, RTMP is the way to go.
> >
> > -d
> >
>
>


--
::| Carlos Rovira
::| http://www.carlosrovira.com
::| http://www.madeinflex.com 



[flexcoders] Label /Text Html font size bug

2006-11-17 Thread Steve Cox
There appears to be a bug with html text inside label/font controls. The
controls do not resize properly to take into account Html font sizes,
thus measuring the field too small.
 
Has anyone come across a workaround or re-written the controls to fix
this? I don't want to start doing so if it's already been done.
 
Setting the controls fotnSize property does fix this issue, however it
then overrides any font sizes the html specifies and thus kinda defeats
the object.
 
Cheers,
 
Steve


[flexcoders] Re: Remove the row selection from the datagrid

2006-11-17 Thread Tim Hoff

Hi Arpan,

Whenever I've experienced unexpected colors, trying to set a style, it's
usually been a typo or an unsupported property.  I'm not sure what
you're trying to acheive, but DataGrid does have a "selectable"
property; that might solve your problem.  If not, does the text turn
black if you remove your extended class?   I would start by checking the
syntax ("#FF", "0xFF"); punctuation if you will.  If everthing's
cool there, then check again. myDataGrid.selectable="false"; might be a
good option, that doesn't require extra code.

-TH
__

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office  : 866-CYNERGY

--- In flexcoders@yahoogroups.com, arpan srivastava <[EMAIL PROTECTED]>
wrote:
>
> Hi All,
> I don't want the datagrid selection i.e. whenever you click on a row
it gets selected. for this I overrided the drawSelectionInidicator() and
left it empty. Now if I click on any row it is not selected but when I
change the font color/font size of the text in the by setStyle() then
the text in the row that I clicked turns black. I think this is a
default behavior but does anyone know how to override it.
>




[flexcoders] AutoScroll Text Area

2006-11-17 Thread KP
Hi All,

 

Sorry for bugging you on this one again but below is the sample code which
contain textArea and I want to som how autoscroll the contect present in
textarea.

I have already used verticalScrollPosition and timer for doing this but it
does not look good I want to give it a professional look like the link below

 

http://projects.willstream.com/rssticker/index1.html

 

can some one suggest some solution..thanks in advance.

 

Kumar 

 



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





 
sdf..sdfl'l'l'lsdfsl'fls'dlfdl;f

some others things bla bla dfljljlj
dfgkjdlgjlkdfg

ljsdlfjldfjlsjdfl

sdkljflsdjfljsdf

jsldjflsdjflsjdf

jsldjflsdjflsjdf

lsdjfljsdlfjsdf

lsdjfljsdlfjslf

lsdjfljslfjsldf

lsdjflsjdf











Re: [flexcoders] Re: Flex Builder Linux

2006-11-17 Thread Carlos Rovira

Hi Matt,

Flex Builder in Linux should be a great option since many people are
switching to Linux
and having a Flex Builder version should boost Flex and Flash adoption and
credibility. But maybe the ROI could come from other ways and I'm sure that
will be great for Adobe to sell the Flash/Flex Platform.

Hope we could read about linux version plans soon :).

Thanks.

C.



On 11/17/06, Matt Chotin <[EMAIL PROTECTED]> wrote:


   The FDS team has tested the internal builds of the Linux player and
RTMP appears to be working.



As mentioned, we have considered a Flex Builder for Linux but we have to
take a hard look at lots of factors, technical feasibility, market size,
time taken away from new features, etc.  So no announced plans at this
point, doesn't mean it's dead and gone though.



Matt


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *devisbalsemin
*Sent:* Thursday, November 16, 2006 11:32 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Re: Flex Builder Linux



yes, it's true, and it's for this that we are hope that flash palyer
support rmtp as soon as possibile.
Now we are developing in linux but we are testing into a windows
machine :-(, but we are hoping in new beta for linux that fix this.
The pushing via RTMP it's great and very very fast to implement it
with flex 2.
Adobe give us this Falsh palyer with complete future as soon as
possbile...
Thanks in advance
Bye
Devis

--- In flexcoders@yahoogroups.com , "Darron
J. Schall" <[EMAIL PROTECTED]> wrote:
>
> Tom Chiverton wrote:
> > I thought that FDS would run over any transport, not just RTMP.
> >
> FDS can work via client polling, but for true real time sharing via
> server push, RTMP is the way to go.
>
> -d
>

 





--
::| Carlos Rovira
::| http://www.carlosrovira.com
::| http://www.madeinflex.com


[flexcoders] Thanks to all that helped (CVS/VSS thread)

2006-11-17 Thread Mike Anderson
Just a quick thank-you to all that contributed to my thread -

There were some excellent contributions, and a wide variety of
suggestions.

Just to let you all know, I decided to use VSS - since I already own it.
I've been an Enterprise MSDN Subscriber for many years now, and as many
of you probably know, Visual Studio.NET is part of the bundle (in which
VSS is part of .NET).

Since it's easiest for me to use what I already have, in addition to a
small learning curve figuring out CVS, VSS will work for now.  Actually,
the Public Domain plug-in created for Eclipse, was written quite well -
so I'd like to commend the folks out there, who made that happen.

Take care all, and thanks again :)

Mike