[flexcoders] Synchronous HTTPService possible? Need to verify edit inside of Edit Event..

2007-03-11 Thread Alex
Quick question,


   I'm trying to devise a table-edit view of a set of database tables,
and am successfully pulling records using e4x etc.

   At the cell-edition stage, I'm capturing an "itemEditEnd" event on my
DataGrid, and that's going well also.

   My question however, surrounds actual edition, and the cancellation of
an edit event.

   The code should look like this:

private function editHandler( e:DataGRidEvent ):void{
   if( e.reason == DataGridEventReason.CANCELLED )
   return;

// get the new input
   var newData:String = TextInput(
e.currentTarget.itemEditorInstance).text;

// request the edit
??

if( "edit was bad" ){
 e.preventDefault();
 // TextInput( dataGrid.itemEditorInstance ).errorString = "Invalid
input";
}
}


"Requesting the edit" above, involves using HTTPService to send the edit
request to the server, which will respond with OK, or NOT OK.  How can I
"wait" for an HTTPService request inside of that function, so that I can
call e.preventDefault() if required?  AFAIK, the HTTPService only works
with a callback-type model?

Can I synchronize and wait on a lock like in Java in this case?

Much appreciated.
Alex


[flexcoders] Candlestick Charting Help

2007-03-11 Thread Teddy Setiawan

I create simple charting using flex in my website,I have a problem regarding 
candlestick chart , its seems that first and end value of the drawing cut in 
half.this is the sample,still a lot to do with this site.www.indofxonline.com, 
look for the chart section , choose the currency code ( I forgot to remove the 
css , the font color is white, so its look like there is no value, but its 
there)as you can see , at the first and last data , I can't see the whole 
chandlestick.thanksteddy
_
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE

RE: [flexcoders] Re: Chrome behind content?

2007-03-11 Thread Alex Harui
That would make sense to me.  UIComponents don't like having the parent
chain broken by non-UIComponents.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jesse Warden
Sent: Sunday, March 11, 2007 8:05 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Chrome behind content?

 

Sorry gents, can't post the code, for an NDA project.

Regardint the Label component... it's weird.  If I add him to
rawChildren, no problem.  If I add him to my background (the Sprite you
suggested be the container Michael), it gets pissed during measurement;
something about anti-aliasing being null.  I'm not removing it all; my
guess is, because the parent isn't actually in a UIComponent, or perhaps
he's not yet added to the DisplayList during measure, that somehow ticks
it off? 

:: shrugs ::

rawChildren, for now, works fine as does the extending of the creating
of the contentPane to shove my custom chrome content backwards.

On 11 Mar 2007 19:11:32 -0700, Michael Schmalle <[EMAIL PROTECTED]
 > wrote: 

> Could you post the code of the problem?

Are you talking to me?

I don't have a problem, Jesse asked a question, I threw some code at him
to try and that is that. 

I don't want to create a second child and hack that way, I want a
rawChild that is it. 

I was just responding to him, what I am doing works for the container I
made. It's a Container subclass not a composite.

Peace, Mike

 

On 11 Mar 2007 18:08:17 -0700, Paul DeCoursey <[EMAIL PROTECTED]
 > wrote:

Could you post the code of the problem? I think I understand the
problem but I need to see what you are doing to help with the solution.

I understand the background in front of things now, but I don't think
that it was the wrong way to code chrome. It fits too narrow a use case.

p

--- In flexcoders@yahoogroups.com 
, "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Paul > I'm not really sure what that is all about, Background isn't
chrome
> it
> is background. Children need to be in front of background.
> 
> I have a spec where I need another background behind the view
children and
> in front of the border.
> 
> Trust me, I have 1000's of hours of investigation into this. This
applies if
> you are doing low level coding in the framework.
> 
> Not to mention, when the container holds more then 1 view child, the
> children get put into a content pane. It is impossible to get
something
> behind child 0 without using this hack.
> 
> Jesse,
> 
> with the text area, after removing it from the display list did you
set;
> 
> textField = null;
> 
> ??
> 
> Peace, Mike
> 
> On 3/11/07, Jesse Warden <[EMAIL PROTECTED]> wrote:
> >
> > Grr... works for everything but my Label. Keeps whining about
antiAlias
> > being null. Had this happen last night (this morning?) when the
TextField
> > isn't in the DisplayList, but gets measure called on 'em. Fuggit,
> > everything else works; thanks a bunch Michael!
> >
> >
> > On 3/11/07, Jesse Warden <[EMAIL PROTECTED]> wrote:
> > >
> > > Thanks Michael, I'll try your code.
> > >
> > > Paul, if you look in mx.containers.Container, you can see how they
> > > override and abstract the DisplayList API so that you have 2
types of
> > > children; raw and regular. This allows you to have "those you
put in
> > > Canvas" and "those that make Panel". For example, the title
bar, close
> > > button, title, etc. are NOT something you want inside your Panel
container
> > > to interact with your children. If you put a CheckBox control
into a Panel,
> > > you would expect only 1 child to be in your container
(numChildren,
> > > getChildAt(0), etc.). This allows you to build container
components for
> > > others to use without "knowing" how your child setup works.
> > >
> > > On 3/11/07, Paul DeCoursey < [EMAIL PROTECTED]> wrote:
> > > >
> > > > I'm not really sure what that is all about, Background isn't
chrome
> > > > it
> > > > is background. Children need to be in front of background. I
know at
> > > > one point I was having trouble with a background rendering
over some
> > > > graphical elements that I had. So to fix that I did my graphical
> > > > elements on a child item, that way the canvas background
rendered
> > > > behind my content. I'm not sure you have the same issue, but
perhaps
> > > > you could use that technique to solve your issue. Create a
container
> > > > with two children, one for display elements and one for
chrome. Add
> > > > the chrome first and the children second and your children will
be
> > > > above the chrome.
> > > >
> > > > Paul
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com
  http://roups.com> >,


> > > > "Jesse Warden"  wrote:
> > > > >
> > > > > I'm extending Canvas. His base class, Container, decrees on
line
> > > > 4608 that
> > > > > all children are behind chrome. I want the opposite. I want my
> > > > chr

RE: [flexcoders] Data binding: How to detect data change has happened?

2007-03-11 Thread Alex Harui
You can listen to events from the collection as well.

 

dg.addEventListener(CollectionEvent.COLLECTION_CHANGE, ...)

 

Check out the doc on that event.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Greg McCreath
Sent: Sunday, March 11, 2007 8:11 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Data binding: How to detect data change has
happened?

 

Thanks Alex,

 

I'm not looking for when the dataSource is assigned, it more the second
bit of what you have mentioned: "the ICollectionView will spew events
which the DataGrid is listening for".

 

That what I am looking to hook into.  How does the dataGrid get notified
of the change to the ICollectionView and it is possible to trap it?

 

Greg.



From: Alex Harui [mailto:[EMAIL PROTECTED] 
Sent: Monday, 12 March 2007 1:22 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Data binding: How to detect data change has
happened?

 

In the mx.controls.DataGrid, the dataProvider property is not a var, it
is a get/set function pair.  When someone assigns dataProvider, the set
function is called so we know it changed.

 

All dataProviders must implement ICollectionView or will be wrapped in
an ICollectionView.  When you change things in an ICollectionView, the
contract is the ICollectionView will spew events which the DataGrid is
listening for.

 

There is no general property watching in AS, so you have to define
contracts and use events and whatnot.

 

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Greg McCreath
Sent: Sunday, March 11, 2007 3:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Data binding: How to detect data change has
happened?

 

Hi all,

 

I'm interested to know how in an object with a data binding I can detect
a change in the datasource.

 

For example, if I were to develop (say) a custom datagrid that (in MXML)
a user of that datagrid can set the datasource property to something
like "{blah.blahblah}".

 

Then, in that custom datagrid how do I detect that that blah.blahblah
has changed and take some action when it does?  In the custom component
I do not want to know of the existence of blah.blahblah, just that it
has changed and what its new value is.

 

All help appreciated.

 

Greg.



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, store, copy, forward or use this
email for any reason, in accordance with privacy and copyright laws. If
you have received this email in error, please notify the sender by
return email, and delete this email from your inbox. 



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, store, copy, forward or use this
email for any reason, in accordance with privacy and copyright laws. If
you have received this email in error, please notify the sender by
return email, and delete this email from your inbox. 

 



RE: [flexcoders] Address Search API

2007-03-11 Thread David Mendels
Check out ESRI.  They have a great set of Flex comonents to front end
their APIs too.
 
-David



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin
Sent: Sunday, March 11, 2007 10:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Address Search API



I am looking for a good a good Address Search Webservice or API (much 
like the Yahoo Local Search) to use within a commercial Flex 
application. Unfortunately, the Yahoo Local is only available for 
non-commercial apps/websites. I am wondering if anyone out there 
utilizing something like this (or USPS Address Verification) in their 
Flex Applications.

I was very excited to see Yahoo releasing the Flex 2 API's only to 
find out that the ones I need are for non-commercial use.

Thanks!

- Kevin


 


RE: [flexcoders] Address Search API

2007-03-11 Thread Andrew Trice
I have used StrikeIron in some of my Flex applications.  They have some free 
services, and some that you have to pay for.  http://www.strikeiron.com 
 
-Andy
 
Cynergy Systems
www.cynergysystems.com 
http://www.cynergysystems.com/blogs/page/andrewtrice
 



From: flexcoders@yahoogroups.com on behalf of Kevin
Sent: Sun 3/11/2007 10:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Address Search API



I am looking for a good a good Address Search Webservice or API (much 
like the Yahoo Local Search) to use within a commercial Flex 
application. Unfortunately, the Yahoo Local is only available for 
non-commercial apps/websites. I am wondering if anyone out there 
utilizing something like this (or USPS Address Verification) in their 
Flex Applications.

I was very excited to see Yahoo releasing the Flex 2 API's only to 
find out that the ones I need are for non-commercial use.

Thanks!

- Kevin


 


[flexcoders] Address Search API

2007-03-11 Thread Kevin
I am looking for a good a good Address Search Webservice or API (much  
like the Yahoo Local Search) to use within a commercial Flex  
application.  Unfortunately, the Yahoo Local is only available for  
non-commercial apps/websites. I am wondering if anyone out there  
utilizing something like this (or USPS Address Verification) in their  
Flex Applications.

I was very excited to see Yahoo releasing the Flex 2 API's only to  
find out that the ones I need are for non-commercial use.

Thanks!

- Kevin


RE: [flexcoders] Data binding: How to detect data change has happened?

2007-03-11 Thread Greg McCreath
Thanks Alex,

 

I'm not looking for when the dataSource is assigned, it more the second
bit of what you have mentioned: "the ICollectionView will spew events
which the DataGrid is listening for".

 

That what I am looking to hook into.  How does the dataGrid get notified
of the change to the ICollectionView and it is possible to trap it?

 

Greg.

  _  

From: Alex Harui [mailto:[EMAIL PROTECTED] 
Sent: Monday, 12 March 2007 1:22 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Data binding: How to detect data change has
happened?

 

In the mx.controls.DataGrid, the dataProvider property is not a var, it
is a get/set function pair.  When someone assigns dataProvider, the set
function is called so we know it changed.

 

All dataProviders must implement ICollectionView or will be wrapped in
an ICollectionView.  When you change things in an ICollectionView, the
contract is the ICollectionView will spew events which the DataGrid is
listening for.

 

There is no general property watching in AS, so you have to define
contracts and use events and whatnot.

 

-Alex

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Greg McCreath
Sent: Sunday, March 11, 2007 3:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Data binding: How to detect data change has
happened?

 

Hi all,

 

I'm interested to know how in an object with a data binding I can detect
a change in the datasource.

 

For example, if I were to develop (say) a custom datagrid that (in MXML)
a user of that datagrid can set the datasource property to something
like "{blah.blahblah}".

 

Then, in that custom datagrid how do I detect that that blah.blahblah
has changed and take some action when it does?  In the custom component
I do not want to know of the existence of blah.blahblah, just that it
has changed and what its new value is.

 

All help appreciated.

 

Greg.

  _  

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, store, copy, forward or use this
email for any reason, in accordance with privacy and copyright laws. If
you have received this email in error, please notify the sender by
return email, and delete this email from your inbox. 

 



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, store, copy, forward or use this email for any reason, in 
accordance with privacy and copyright laws. If you have received this email in 
error, please notify the sender by return email, and delete this email from 
your inbox. 


Re: [flexcoders] Re: Chrome behind content?

2007-03-11 Thread Jesse Warden

Sorry gents, can't post the code, for an NDA project.

Regardint the Label component... it's weird.  If I add him to rawChildren,
no problem.  If I add him to my background (the Sprite you suggested be the
container Michael), it gets pissed during measurement; something about
anti-aliasing being null.  I'm not removing it all; my guess is, because the
parent isn't actually in a UIComponent, or perhaps he's not yet added to the
DisplayList during measure, that somehow ticks it off?

:: shrugs ::

rawChildren, for now, works fine as does the extending of the creating of
the contentPane to shove my custom chrome content backwards.

On 11 Mar 2007 19:11:32 -0700, Michael Schmalle <[EMAIL PROTECTED]>
wrote:


  > Could you post the code of the problem?

Are you talking to me?

I don't have a problem, Jesse asked a question, I threw some code at him
to try and that is that.

I don't want to create a second child and hack that way, I want a rawChild
that is it.

I was just responding to him, what I am doing works for the container I
made. It's a Container subclass not a composite.

Peace, Mike


On 11 Mar 2007 18:08:17 -0700, Paul DeCoursey <[EMAIL PROTECTED]> wrote:
>
>   Could you post the code of the problem? I think I understand the
> problem but I need to see what you are doing to help with the solution.
>
> I understand the background in front of things now, but I don't think
> that it was the wrong way to code chrome. It fits too narrow a use case.
>
> p
>
> --- In flexcoders@yahoogroups.com ,
> "Michael Schmalle"
> <[EMAIL PROTECTED]> wrote:
> >
> > Paul > I'm not really sure what that is all about, Background isn't
> chrome
> > it
> > is background. Children need to be in front of background.
> >
> > I have a spec where I need another background behind the view
> children and
> > in front of the border.
> >
> > Trust me, I have 1000's of hours of investigation into this. This
> applies if
> > you are doing low level coding in the framework.
> >
> > Not to mention, when the container holds more then 1 view child, the
> > children get put into a content pane. It is impossible to get
> something
> > behind child 0 without using this hack.
> >
> > Jesse,
> >
> > with the text area, after removing it from the display list did you
> set;
> >
> > textField = null;
> >
> > ??
> >
> > Peace, Mike
> >
> > On 3/11/07, Jesse Warden <[EMAIL PROTECTED]> wrote:
> > >
> > > Grr... works for everything but my Label. Keeps whining about
> antiAlias
> > > being null. Had this happen last night (this morning?) when the
> TextField
> > > isn't in the DisplayList, but gets measure called on 'em. Fuggit,
> > > everything else works; thanks a bunch Michael!
> > >
> > >
> > > On 3/11/07, Jesse Warden <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Thanks Michael, I'll try your code.
> > > >
> > > > Paul, if you look in mx.containers.Container, you can see how they
> > > > override and abstract the DisplayList API so that you have 2
> types of
> > > > children; raw and regular. This allows you to have "those you
> put in
> > > > Canvas" and "those that make Panel". For example, the title
> bar, close
> > > > button, title, etc. are NOT something you want inside your Panel
> container
> > > > to interact with your children. If you put a CheckBox control
> into a Panel,
> > > > you would expect only 1 child to be in your container
> (numChildren,
> > > > getChildAt(0), etc.). This allows you to build container
> components for
> > > > others to use without "knowing" how your child setup works.
> > > >
> > > > On 3/11/07, Paul DeCoursey < [EMAIL PROTECTED]> wrote:
> > > > >
> > > > > I'm not really sure what that is all about, Background isn't
> chrome
> > > > > it
> > > > > is background. Children need to be in front of background. I
> know at
> > > > > one point I was having trouble with a background rendering
> over some
> > > > > graphical elements that I had. So to fix that I did my graphical
> > > > > elements on a child item, that way the canvas background
> rendered
> > > > > behind my content. I'm not sure you have the same issue, but
> perhaps
> > > > > you could use that technique to solve your issue. Create a
> container
> > > > > with two children, one for display elements and one for
> chrome. Add
> > > > > the chrome first and the children second and your children will
> be
> > > > > above the chrome.
> > > > >
> > > > > Paul
> > > > >
> > > > >
> > > > > --- In flexcoders@yahoogroups.com 
 roups.com>,
>
> > > > > "Jesse Warden"  wrote:
> > > > > >
> > > > > > I'm extending Canvas. His base class, Container, decrees on
> line
> > > > > 4608 that
> > > > > > all children are behind chrome. I want the opposite. I want my
> > > > > chrome
> > > > > > BEHIND the content; I want the content IN FRONT of my chrome.
> > > > > >
> > > > > > However, since Container does all kinds of crazy
> over-writting of
> > > > > > DisplayObject methods and tucks them away in mx_internal and
> various
> > > > > other
> > > > > > private & fina

RE: [flexcoders] Data binding: How to detect data change has happened?

2007-03-11 Thread Alex Harui
In the mx.controls.DataGrid, the dataProvider property is not a var, it
is a get/set function pair.  When someone assigns dataProvider, the set
function is called so we know it changed.

 

All dataProviders must implement ICollectionView or will be wrapped in
an ICollectionView.  When you change things in an ICollectionView, the
contract is the ICollectionView will spew events which the DataGrid is
listening for.

 

There is no general property watching in AS, so you have to define
contracts and use events and whatnot.

 

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Greg McCreath
Sent: Sunday, March 11, 2007 3:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Data binding: How to detect data change has
happened?

 

Hi all,

 

I'm interested to know how in an object with a data binding I can detect
a change in the datasource.

 

For example, if I were to develop (say) a custom datagrid that (in MXML)
a user of that datagrid can set the datasource property to something
like "{blah.blahblah}".

 

Then, in that custom datagrid how do I detect that that blah.blahblah
has changed and take some action when it does?  In the custom component
I do not want to know of the existence of blah.blahblah, just that it
has changed and what its new value is.

 

All help appreciated.

 

Greg.



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, store, copy, forward or use this
email for any reason, in accordance with privacy and copyright laws. If
you have received this email in error, please notify the sender by
return email, and delete this email from your inbox. 

 



Re: [flexcoders] Re: Chrome behind content?

2007-03-11 Thread Michael Schmalle

Could you post the code of the problem?


Are you talking to me?

I don't have a problem, Jesse asked a question, I threw some code at him to
try and that is that.

I don't want to create a second child and hack that way, I want a rawChild
that is it.

I was just responding to him, what I am doing works for the container I
made. It's a Container subclass not a composite.

Peace, Mike

On 11 Mar 2007 18:08:17 -0700, Paul DeCoursey <[EMAIL PROTECTED]> wrote:


  Could you post the code of the problem? I think I understand the
problem but I need to see what you are doing to help with the solution.

I understand the background in front of things now, but I don't think
that it was the wrong way to code chrome. It fits too narrow a use case.

p

--- In flexcoders@yahoogroups.com , "Michael
Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Paul > I'm not really sure what that is all about, Background isn't
chrome
> it
> is background. Children need to be in front of background.
>
> I have a spec where I need another background behind the view
children and
> in front of the border.
>
> Trust me, I have 1000's of hours of investigation into this. This
applies if
> you are doing low level coding in the framework.
>
> Not to mention, when the container holds more then 1 view child, the
> children get put into a content pane. It is impossible to get something
> behind child 0 without using this hack.
>
> Jesse,
>
> with the text area, after removing it from the display list did you set;
>
> textField = null;
>
> ??
>
> Peace, Mike
>
> On 3/11/07, Jesse Warden <[EMAIL PROTECTED]> wrote:
> >
> > Grr... works for everything but my Label. Keeps whining about
antiAlias
> > being null. Had this happen last night (this morning?) when the
TextField
> > isn't in the DisplayList, but gets measure called on 'em. Fuggit,
> > everything else works; thanks a bunch Michael!
> >
> >
> > On 3/11/07, Jesse Warden <[EMAIL PROTECTED]> wrote:
> > >
> > > Thanks Michael, I'll try your code.
> > >
> > > Paul, if you look in mx.containers.Container, you can see how they
> > > override and abstract the DisplayList API so that you have 2
types of
> > > children; raw and regular. This allows you to have "those you
put in
> > > Canvas" and "those that make Panel". For example, the title
bar, close
> > > button, title, etc. are NOT something you want inside your Panel
container
> > > to interact with your children. If you put a CheckBox control
into a Panel,
> > > you would expect only 1 child to be in your container (numChildren,
> > > getChildAt(0), etc.). This allows you to build container
components for
> > > others to use without "knowing" how your child setup works.
> > >
> > > On 3/11/07, Paul DeCoursey < [EMAIL PROTECTED]> wrote:
> > > >
> > > > I'm not really sure what that is all about, Background isn't
chrome
> > > > it
> > > > is background. Children need to be in front of background. I
know at
> > > > one point I was having trouble with a background rendering
over some
> > > > graphical elements that I had. So to fix that I did my graphical
> > > > elements on a child item, that way the canvas background rendered
> > > > behind my content. I'm not sure you have the same issue, but
perhaps
> > > > you could use that technique to solve your issue. Create a
container
> > > > with two children, one for display elements and one for
chrome. Add
> > > > the chrome first and the children second and your children will be
> > > > above the chrome.
> > > >
> > > > Paul
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com 
,

> > > > "Jesse Warden"  wrote:
> > > > >
> > > > > I'm extending Canvas. His base class, Container, decrees on line
> > > > 4608 that
> > > > > all children are behind chrome. I want the opposite. I want my
> > > > chrome
> > > > > BEHIND the content; I want the content IN FRONT of my chrome.
> > > > >
> > > > > However, since Container does all kinds of crazy
over-writting of
> > > > > DisplayObject methods and tucks them away in mx_internal and
various
> > > > other
> > > > > private & final prefix's, I have no clue how to easily make my
> > > > chrome inside
> > > > > of rawChildren go backwards. Obviously, setChildIndex
doesn't work
> > > > at this
> > > > > point because the base class owns those methods as proxies now.
> > > > >
> > > > > The hack, for now, is to NOT have my chrome draw a
background. If it
> > > > > doesn't, I can click on children just fine. That, however, sucks
> > > > because I
> > > > > want a background. Figured 2nd hack is to just set the
> > > > backgroundColor
> > > > > property to my chrome's background, and redraw my chrome as
a mask
> > > > for the
> > > > > background. That is worse.
> > > > >
> > > > > Suggestions?
> > > > >
> > > >
> > > >
> > >
> >
> >
>
>
>
> --
> Teoti Graphix
> http://www.teotigraphix.com
>
> Blog - Flex2Components
> http://www.flex2components.com
>
> You can find more by solving the problem then by 'asking the question'.
>

 





--
Teoti Graphix
http://www.teotigraph

[flexcoders] Re: Chrome behind content?

2007-03-11 Thread Paul DeCoursey
Could you post the code of the problem?  I think I understand the
problem but I need to see what you are doing to help with the solution.

I understand the background in front of things now, but I don't think
that it was the wrong way to code chrome.  It fits too narrow a use case.

p

--- In flexcoders@yahoogroups.com, "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Paul > I'm not really sure what that is all about, Background isn't
chrome
> it
> is background. Children need to be in front of background.
> 
> I have a spec where I need another background behind the view
children and
> in front of the border.
> 
> Trust me, I have 1000's of hours of investigation into this. This
applies if
> you are doing low level coding in the framework.
> 
> Not to mention, when the container holds more then 1 view child, the
> children get put into a content pane. It is impossible to get something
> behind child 0 without using this hack.
> 
> Jesse,
> 
> with the text area, after removing it from the display list did you set;
> 
> textField = null;
> 
> ??
> 
> Peace, Mike
> 
> On 3/11/07, Jesse Warden <[EMAIL PROTECTED]> wrote:
> >
> >   Grr... works for everything but my Label.  Keeps whining about
antiAlias
> > being null.  Had this happen last night (this morning?) when the
TextField
> > isn't in the DisplayList, but gets measure called on 'em.  Fuggit,
> > everything else works; thanks a bunch Michael!
> >
> >
> > On 3/11/07, Jesse Warden <[EMAIL PROTECTED]> wrote:
> > >
> > > Thanks Michael, I'll try your code.
> > >
> > > Paul, if you look in mx.containers.Container, you can see how they
> > > override and abstract the DisplayList API so that you have 2
types of
> > > children; raw and regular.  This allows you to have "those you
put in
> > > Canvas" and "those that make Panel".  For example, the title
bar, close
> > > button, title, etc. are NOT something you want inside your Panel
container
> > > to interact with your children.  If you put a CheckBox control
into a Panel,
> > > you would expect only 1 child to be in your container (numChildren,
> > > getChildAt(0), etc.).  This allows you to build container
components for
> > > others to use without "knowing" how your child setup works.
> > >
> > > On 3/11/07, Paul DeCoursey < [EMAIL PROTECTED]> wrote:
> > > >
> > > >   I'm not really sure what that is all about, Background isn't
chrome
> > > > it
> > > > is background. Children need to be in front of background. I
know at
> > > > one point I was having trouble with a background rendering
over some
> > > > graphical elements that I had. So to fix that I did my graphical
> > > > elements on a child item, that way the canvas background rendered
> > > > behind my content. I'm not sure you have the same issue, but
perhaps
> > > > you could use that technique to solve your issue. Create a
container
> > > > with two children, one for display elements and one for
chrome. Add
> > > > the chrome first and the children second and your children will be
> > > > above the chrome.
> > > >
> > > > Paul
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com ,
> > > > "Jesse Warden"  wrote:
> > > > >
> > > > > I'm extending Canvas. His base class, Container, decrees on line
> > > > 4608 that
> > > > > all children are behind chrome. I want the opposite. I want my
> > > > chrome
> > > > > BEHIND the content; I want the content IN FRONT of my chrome.
> > > > >
> > > > > However, since Container does all kinds of crazy
over-writting of
> > > > > DisplayObject methods and tucks them away in mx_internal and
various
> > > > other
> > > > > private & final prefix's, I have no clue how to easily make my
> > > > chrome inside
> > > > > of rawChildren go backwards. Obviously, setChildIndex
doesn't work
> > > > at this
> > > > > point because the base class owns those methods as proxies now.
> > > > >
> > > > > The hack, for now, is to NOT have my chrome draw a
background. If it
> > > > > doesn't, I can click on children just fine. That, however, sucks
> > > > because I
> > > > > want a background. Figured 2nd hack is to just set the
> > > > backgroundColor
> > > > > property to my chrome's background, and redraw my chrome as
a mask
> > > > for the
> > > > > background. That is worse.
> > > > >
> > > > > Suggestions?
> > > > >
> > > >
> > > >
> > >
> >  
> >
> 
> 
> 
> -- 
> Teoti Graphix
> http://www.teotigraphix.com
> 
> Blog - Flex2Components
> http://www.flex2components.com
> 
> You can find more by solving the problem then by 'asking the question'.
>




[flexcoders] Re: Chrome behind content?

2007-03-11 Thread Paul DeCoursey
--- In flexcoders@yahoogroups.com, "Jesse Warden" <[EMAIL PROTECTED]> wrote:
>
> Thanks Michael, I'll try your code.
> 
> Paul, if you look in mx.containers.Container, you can see how they
override
> and abstract the DisplayList API so that you have 2 types of
children; raw
> and regular.  This allows you to have "those you put in Canvas" and
"those
> that make Panel".  For example, the title bar, close button, title,
etc. are
> NOT something you want inside your Panel container to interact with your
> children.  If you put a CheckBox control into a Panel, you would
expect only
> 1 child to be in your container (numChildren, getChildAt(0), etc.).
 This
> allows you to build container components for others to use without
"knowing"
> how your child setup works.

That is precisely what I have created, in fact my ideas came from
looking at how other components worked.  My issue was different.  I
was using the graphics class to draw on the Canvas in addition to
having a few child elements.  The problem came when I set the
background.  It put the background over my drawing, which in my
opinion is wrong and in fact a bug.  When I looked at how the code was
working I saw that I needed to implement the same kind of thing for my
component. I created a content page that the drawing and children were
in, and then the background could be set without interfering with my
drawing.

It's a similar approach, but I have more control over the parts.

Paul




RE: [flexcoders] Displaying single bar/column (Type: 100%)

2007-03-11 Thread Ely Greenfield
 
 
More detail would be helpful to understand exactly what you want, vs.
what you're seeing. Please be as specific and pedantic as possible.
 
If you want to get rid of the surrounding chart graphics, you can:
 
1) zero out the backgroundElements array
2) assign axisRenderers that hide all of their elements.  I don't
remember exactly which set of styles/properties you need, but if you
look at the APIs for AxisRenderer it should be apparent. something like:
 

   
  
   
   

   
   

  

 
Ely.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ichgehe
Sent: Saturday, March 10, 2007 7:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Displaying single bar/column (Type: 100%)



You certainly know the charting components BarSeries or
ColumnSeries They are great, if you need exactly this kind of
view. But I am currently in a bit of a problem, because I need a
column-/bar component which only is able to show ONE bar or column for
a series of data.
You probably say: 'Easy thing!' - just use bar-/columnseries with type
set to 100% and you will get only one bar with all data... but in
fact, you also get the cartesian chart around it, which annoys me. I
just want to have one simple Bar/Column which is able to show me
different values (Type 100%) without anything. I tried already to use
the "IBar" Interface, but no luck. 
Someone told me I have to have a look in the samples.zip of FDS (1.0)?
for an example 'Sector' but have not found it

Any help or hint is really appreciated...



 


Re: [flexcoders] Re: Function pointers?

2007-03-11 Thread Benjamin Schwehn
Alex wrote:
> Thanks Ben,
> 
>  jumping in head first with tons of heavy
> programming experience, but zero Flash/AS/Flex experience. 

btw, i've done the same a few months ago and found the learing curve to 
be very smooth (coming from a c++/c# background -- and returning there 
now :)). AS3 is close enough to other c-syntax-like (garbage collected) 
languages. Flex Builder close enough to other common IDEs I've used before.

I got started by just having a look at the quick starts at the adobe 
site (http://www.adobe.com/devnet/flex/?tab:quickstart=1). Adobe also 
provides the source code for a lot of the basic controls, having a look 
at that also helped me. Also the adobe docs/help are fairly good and 
complete all in all.

Anyways, have a nice Sunday (or what's left of it)

Ben


Re: [flexcoders] Re: Chrome behind content?

2007-03-11 Thread Michael Schmalle

Paul > I'm not really sure what that is all about, Background isn't chrome
it
is background. Children need to be in front of background.

I have a spec where I need another background behind the view children and
in front of the border.

Trust me, I have 1000's of hours of investigation into this. This applies if
you are doing low level coding in the framework.

Not to mention, when the container holds more then 1 view child, the
children get put into a content pane. It is impossible to get something
behind child 0 without using this hack.

Jesse,

with the text area, after removing it from the display list did you set;

textField = null;

??

Peace, Mike

On 3/11/07, Jesse Warden <[EMAIL PROTECTED]> wrote:


  Grr... works for everything but my Label.  Keeps whining about antiAlias
being null.  Had this happen last night (this morning?) when the TextField
isn't in the DisplayList, but gets measure called on 'em.  Fuggit,
everything else works; thanks a bunch Michael!


On 3/11/07, Jesse Warden <[EMAIL PROTECTED]> wrote:
>
> Thanks Michael, I'll try your code.
>
> Paul, if you look in mx.containers.Container, you can see how they
> override and abstract the DisplayList API so that you have 2 types of
> children; raw and regular.  This allows you to have "those you put in
> Canvas" and "those that make Panel".  For example, the title bar, close
> button, title, etc. are NOT something you want inside your Panel container
> to interact with your children.  If you put a CheckBox control into a Panel,
> you would expect only 1 child to be in your container (numChildren,
> getChildAt(0), etc.).  This allows you to build container components for
> others to use without "knowing" how your child setup works.
>
> On 3/11/07, Paul DeCoursey < [EMAIL PROTECTED]> wrote:
> >
> >   I'm not really sure what that is all about, Background isn't chrome
> > it
> > is background. Children need to be in front of background. I know at
> > one point I was having trouble with a background rendering over some
> > graphical elements that I had. So to fix that I did my graphical
> > elements on a child item, that way the canvas background rendered
> > behind my content. I'm not sure you have the same issue, but perhaps
> > you could use that technique to solve your issue. Create a container
> > with two children, one for display elements and one for chrome. Add
> > the chrome first and the children second and your children will be
> > above the chrome.
> >
> > Paul
> >
> >
> > --- In flexcoders@yahoogroups.com ,
> > "Jesse Warden" <[EMAIL PROTECTED]> wrote:
> > >
> > > I'm extending Canvas. His base class, Container, decrees on line
> > 4608 that
> > > all children are behind chrome. I want the opposite. I want my
> > chrome
> > > BEHIND the content; I want the content IN FRONT of my chrome.
> > >
> > > However, since Container does all kinds of crazy over-writting of
> > > DisplayObject methods and tucks them away in mx_internal and various
> > other
> > > private & final prefix's, I have no clue how to easily make my
> > chrome inside
> > > of rawChildren go backwards. Obviously, setChildIndex doesn't work
> > at this
> > > point because the base class owns those methods as proxies now.
> > >
> > > The hack, for now, is to NOT have my chrome draw a background. If it
> > > doesn't, I can click on children just fine. That, however, sucks
> > because I
> > > want a background. Figured 2nd hack is to just set the
> > backgroundColor
> > > property to my chrome's background, and redraw my chrome as a mask
> > for the
> > > background. That is worse.
> > >
> > > Suggestions?
> > >
> >
> >
>
 





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

Blog - Flex2Components
http://www.flex2components.com

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


Re: [flexcoders] Re: Function pointers?

2007-03-11 Thread Benjamin Schwehn
> ..to the object class.  Further, at the point where the callback
> object should fire, I've added this code:
> 
> if( callback != null )
>   callback( 3 );
> 

do you ever get here? In case you don't know: you can set breakpoints 
when using FlexBuilder. There trace(string) function is also handy for 
debugging?

I've tried this code and it works as expected, what are you doing different?

FooClass.as:

package {
public class FooClass   {
public var Callback :Function = null;
public function Fire() :void {
if (Callback != null) {
Callback(42);
}
}
}
}


app.mxml:



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













hth
Ben


[flexcoders] Dynamically create widgets? (Flex noob)

2007-03-11 Thread Alex
Hi there,

  Is there any way to dynamically load windows whilst inside a given
state?

  For example, replicate the behavior in Java where we do:

  JFrame f = new JFrame();
  f.setSize( 100, 100 );
  f.setVisible( true );

  Is there a Component.create( ) type of method?

Thanks Always!
Alex



[flexcoders] Re: Function pointers? (Solved)

2007-03-11 Thread Alex
NM I got it, seems it hasn't actually instantiated objects, even
though it's in a creationComplete block!  Adding the callback
attribute directly into the actual tag worked.



[flexcoders] Re: Function pointers?

2007-03-11 Thread Alex
Hrm,

  Seems that what may have seemed intuitive, throws this error:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.

At this line

fisheye.callback = menuSelect;

Any ideas?






[flexcoders] Re: Function pointers?

2007-03-11 Thread Alex
Thanks Ben,

  I've been poking through the docs, I just have no concept of what
each element is called yet - jumping in head first with tons of heavy
programming experience, but zero Flash/AS/Flex experience. Your
answers here are incredibly appreciated

  Back on topic..

1. I've added 

public var callback:Function = null;

..to the object class.  Further, at the point where the callback
object should fire, I've added this code:

if( callback != null )
  callback( 3 );

2. In the main app where I'm creating this object, I've added, inside
of a "creationComplete" block, the following:

customObject.callback = menuSelect;

private function menuSelect( index:int ):void{
   
}
  

Unfortunately, it doesn't seem to fire..

--- In flexcoders@yahoogroups.com, Benjamin Schwehn <[EMAIL PROTECTED]> wrote:
>
> > I'd like at some point, after the
> > button is clicked and the functions performed, that a certain callback
> > function be performed.  Something like a function pointer
> 
> 
> you can pass functions as arguments or assign to properties just as you 
> would with any other type.
> eg.
> 
> private function foo(callback :Function = null) :void {
>callback();
> }
> 
> well, I recommend just reading the docs. First sentence in the Function 
> help entry would have told you this :)
> 
> hth
> ben
>




Re: [flexcoders] Runtime Expression Evaluation

2007-03-11 Thread Ralf Bokelberg

A really old one in ActionScript 1 can be found at
http://www.bokelberg.de/actionscript/experiments/eval.html
Cheers
Ralf

On 11 Mar 2007 12:23:17 -0700, thirtyfivemph <[EMAIL PROTECTED]> wrote:


  I'd like to add the ability for a user to enter an expression, e.g.
"3+4*x+y*(z/3+4)" and be able to evaluate it. I've found plenty of
examples in JavaScript, Java, C, C++, and about every other language
out there... now, before I go start porting JEval (or similar) to
ActionScript, is there something like this already out there?

Thanks,

Troy.

 





--
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


Re: [flexcoders] Function pointers?

2007-03-11 Thread Benjamin Schwehn
> I'd like at some point, after the
> button is clicked and the functions performed, that a certain callback
> function be performed.  Something like a function pointer


you can pass functions as arguments or assign to properties just as you 
would with any other type.
eg.

private function foo(callback :Function = null) :void {
   callback();
}

well, I recommend just reading the docs. First sentence in the Function 
help entry would have told you this :)

hth
ben


Re: [flexcoders] Function pointers?

2007-03-11 Thread Ralf Bokelberg

It is possible to define a public variable of type Function
and to assign a external function to it. Generally, events
are preferred in AS3/Flex 2 though

Cheers
Ralf.


On 3/11/07, Alex <[EMAIL PROTECTED]> wrote:


  Hi there,

I'm very new to Flex 2, and was wondering if this was possible.

1. Create a basic widget or application
2. Use that widget inside of a main mxml file
3. Set a callback function on that button

For example, let's say the widget is just a plain button that has
some complex AS inside of it. I'd like at some point, after the
button is clicked and the functions performed, that a certain callback
function be performed. Something like a function pointer, or Java
AbstractAction.

This way, I could assign individual functions to the individual
buttons... Possible?

Thanks.
Alex

 





--
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


[flexcoders] Runtime Expression Evaluation

2007-03-11 Thread thirtyfivemph
I'd like to add the ability for a user to enter an expression, e.g.
"3+4*x+y*(z/3+4)" and be able to evaluate it. I've found plenty of
examples in JavaScript, Java, C, C++, and about every other language
out there... now, before I go start porting JEval (or similar) to
ActionScript, is there something like this already out there?

Thanks,

Troy.




[flexcoders] Function pointers?

2007-03-11 Thread Alex
Hi there,

  I'm very new to Flex 2, and was wondering if this was possible.

  1. Create a basic widget or application 
  2. Use that widget inside of a main mxml file
  3. Set a callback function on that button

  For example, let's say the widget is just a plain button that has
some complex AS inside of it.  I'd like at some point, after the
button is clicked and the functions performed, that a certain callback
function be performed.  Something like a function pointer, or Java
AbstractAction.

  This way, I could assign individual functions to the individual
buttons...  Possible?

Thanks.
Alex

  



Re: [flexcoders] Re: Chrome behind content?

2007-03-11 Thread Jesse Warden

Grr... works for everything but my Label.  Keeps whining about antiAlias
being null.  Had this happen last night (this morning?) when the TextField
isn't in the DisplayList, but gets measure called on 'em.  Fuggit,
everything else works; thanks a bunch Michael!

On 3/11/07, Jesse Warden <[EMAIL PROTECTED]> wrote:


Thanks Michael, I'll try your code.

Paul, if you look in mx.containers.Container, you can see how they
override and abstract the DisplayList API so that you have 2 types of
children; raw and regular.  This allows you to have "those you put in
Canvas" and "those that make Panel".  For example, the title bar, close
button, title, etc. are NOT something you want inside your Panel container
to interact with your children.  If you put a CheckBox control into a Panel,
you would expect only 1 child to be in your container (numChildren,
getChildAt(0), etc.).  This allows you to build container components for
others to use without "knowing" how your child setup works.

On 3/11/07, Paul DeCoursey <[EMAIL PROTECTED]> wrote:
>
>   I'm not really sure what that is all about, Background isn't chrome it
> is background. Children need to be in front of background. I know at
> one point I was having trouble with a background rendering over some
> graphical elements that I had. So to fix that I did my graphical
> elements on a child item, that way the canvas background rendered
> behind my content. I'm not sure you have the same issue, but perhaps
> you could use that technique to solve your issue. Create a container
> with two children, one for display elements and one for chrome. Add
> the chrome first and the children second and your children will be
> above the chrome.
>
> Paul
>
>
> --- In flexcoders@yahoogroups.com , "Jesse
> Warden" <[EMAIL PROTECTED]> wrote:
> >
> > I'm extending Canvas. His base class, Container, decrees on line
> 4608 that
> > all children are behind chrome. I want the opposite. I want my chrome
> > BEHIND the content; I want the content IN FRONT of my chrome.
> >
> > However, since Container does all kinds of crazy over-writting of
> > DisplayObject methods and tucks them away in mx_internal and various
> other
> > private & final prefix's, I have no clue how to easily make my
> chrome inside
> > of rawChildren go backwards. Obviously, setChildIndex doesn't work
> at this
> > point because the base class owns those methods as proxies now.
> >
> > The hack, for now, is to NOT have my chrome draw a background. If it
> > doesn't, I can click on children just fine. That, however, sucks
> because I
> > want a background. Figured 2nd hack is to just set the backgroundColor
> > property to my chrome's background, and redraw my chrome as a mask
> for the
> > background. That is worse.
> >
> > Suggestions?
> >
>
>  
>





Re: [flexcoders] Re: Chrome behind content?

2007-03-11 Thread Jesse Warden

Thanks Michael, I'll try your code.

Paul, if you look in mx.containers.Container, you can see how they override
and abstract the DisplayList API so that you have 2 types of children; raw
and regular.  This allows you to have "those you put in Canvas" and "those
that make Panel".  For example, the title bar, close button, title, etc. are
NOT something you want inside your Panel container to interact with your
children.  If you put a CheckBox control into a Panel, you would expect only
1 child to be in your container (numChildren, getChildAt(0), etc.).  This
allows you to build container components for others to use without "knowing"
how your child setup works.

On 3/11/07, Paul DeCoursey <[EMAIL PROTECTED]> wrote:


  I'm not really sure what that is all about, Background isn't chrome it
is background. Children need to be in front of background. I know at
one point I was having trouble with a background rendering over some
graphical elements that I had. So to fix that I did my graphical
elements on a child item, that way the canvas background rendered
behind my content. I'm not sure you have the same issue, but perhaps
you could use that technique to solve your issue. Create a container
with two children, one for display elements and one for chrome. Add
the chrome first and the children second and your children will be
above the chrome.

Paul


--- In flexcoders@yahoogroups.com , "Jesse
Warden" <[EMAIL PROTECTED]> wrote:
>
> I'm extending Canvas. His base class, Container, decrees on line
4608 that
> all children are behind chrome. I want the opposite. I want my chrome
> BEHIND the content; I want the content IN FRONT of my chrome.
>
> However, since Container does all kinds of crazy over-writting of
> DisplayObject methods and tucks them away in mx_internal and various
other
> private & final prefix's, I have no clue how to easily make my
chrome inside
> of rawChildren go backwards. Obviously, setChildIndex doesn't work
at this
> point because the base class owns those methods as proxies now.
>
> The hack, for now, is to NOT have my chrome draw a background. If it
> doesn't, I can click on children just fine. That, however, sucks
because I
> want a background. Figured 2nd hack is to just set the backgroundColor
> property to my chrome's background, and redraw my chrome as a mask
for the
> background. That is worse.
>
> Suggestions?
>

 



Re: [flexcoders] "Unable to access UserTransaction in DataService" on Java Sun Appl Server

2007-03-11 Thread Carlos Rovira

You're right. In Tomcat you must to install JOTM and use a file "context.xml"
in your web application.
You can see the test drive example from Christophe Coenraets to see an
example. I never try in Sun App server, but I suppose that would be very
similar...

09 Mar 2007 04:25:42 -0800, lruinelli <[EMAIL PROTECTED]>:


  Hello!

I'm using flex dataservice deployed in a Sun Java System Application
Server Platform Edition 9.0_01 (build b14)...but when I try to modify
some record of my dataservice application I give the "Unable to access
UserTransaction in DataService" error!!!
I think this error occours because my appl server hasn't a transaction
manager, isn't it?
As transaction manager It has to be used something like jotm...but
unfortunately I didn't found any documentation about how integrate it
on my application server.

Can someone please help me?

...thanks

Saluti
Lorenzo

 





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


[flexcoders] Re: resize / hide canvas

2007-03-11 Thread johnesocko
I thought it was on the mxna but I can;t find it

--- In flexcoders@yahoogroups.com, "johnesocko" <[EMAIL PROTECTED]> wrote:
>
> I need help finding a blog or tutorial that resizes the canvas(box) or
> hides it, I saw it a few days ago but forgot to favorite place it.
> 
> I made an image of what it looks like
> 
> http://simplexstudios.com/arrowsflex.jpg"; width="400"
> height"300">
> link to image 
> 
> 
> you click an arrow and it hides the side, thanks in advance.
>




[flexcoders] Re: Flex CacheKeyUtils error on JBoss Portal

2007-03-11 Thread johan.wasserman
Is there no one out there that can give any response to the error?  I 
have searched Adobe Labs for any groups or comunities on the Flex Tag 
library to no avail.  Is there any other way to intigrate Flex into 
JBoss portal other than using the Flex taglibs?  I desperately need to 
prsent flex apps as portlets on JBoss portal.



[flexcoders] Re: Flex CacheKeyUtils error on JBoss Portal

2007-03-11 Thread johan.wasserman
Is there no one out there that can give any response to the error?  I 
have searched Adobe Labs for any groups or comunities on the Flex Tag 
library to no avail.  Is there any other way to intigrate Flex into 
JBoss portal other than using the Flex taglibs?  I desperately need to 
prsent flex apps as portlets on JBoss portal.



Re: [flexcoders] Re: Security error accessing url

2007-03-11 Thread André Rodrigues Pena

Roman,

You will have to write a proxy, this is a PHP example for yahoo services
http://developer.yahoo.com/javascript/samples/proxy/php_proxy_simple.txt


On 3/9/07, Paul DeCoursey <[EMAIL PROTECTED]> wrote:


  Maybe I've been misinformed but doesn't the cross domain file need to
be one the server that serves the swf file?

--- In flexcoders@yahoogroups.com ,
"rzilist" <[EMAIL PROTECTED]> wrote:
>
> How to get around this error? I've written small Flex application to
> retrieve stock info in exchange for company symbol. I've used
> Eclipse with Flex plugin. Inside the app, I'm calling webservice on
> quote.yahoo.com website. I can load the html page which references
> the swf file (by either running it from within Eclipse, or by
> opening it in both IE and Firefox). This works fine, and I get some
> stock data back. However, if I try serving the page from one of my
> local servers, or even copying it (along with other supporting
> files) to other location on my hard drive, loading the same page
> results in an "Security error accessing url" from my Adobe Flash
> Player 9. I've even tried to use a straight HTTP post instead of a
> webservice call, but to no avail.
>
> Now, I know that in order to access the data on the domain other
> than the one my app is running on, Adobe Flash Player requires
> crossdomain.xml file to be on the data server root. Yahoo indeed
> hosts this file at http://quote.yahoo.com/crossdomain.xml, but it
> only has a few entries. I simply want to read company stock info
> from publicly exposed service, but I see no way of adding the domain
> name to their crossdomain file each time someone wants to read a
> stock info.
>
> Any help is appreciated.
>
> Roman
>

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Re: Chrome behind content?

2007-03-11 Thread Paul DeCoursey
I'm not really sure what that is all about, Background isn't chrome it
is background.  Children need to be in front of background.  I know at
one point I was having trouble with a background rendering over some
graphical elements that I had.  So to fix that I did my graphical
elements on a child item, that way the canvas background rendered
behind my content. I'm not sure you have the same issue, but perhaps
you could use that technique to solve your issue.  Create a container
with two children, one for display elements and one for chrome.  Add
the chrome first and the children second and your children will be
above the chrome.

Paul


--- In flexcoders@yahoogroups.com, "Jesse Warden" <[EMAIL PROTECTED]> wrote:
>
> I'm extending Canvas.  His base class, Container, decrees on line
4608 that
> all children are behind chrome.  I want the opposite.  I want my chrome
> BEHIND the content; I want the content IN FRONT of my chrome.
> 
> However, since Container does all kinds of crazy over-writting of
> DisplayObject methods and tucks them away in mx_internal and various
other
> private & final prefix's, I have no clue how to easily make my
chrome inside
> of rawChildren go backwards.  Obviously, setChildIndex doesn't work
at this
> point because the base class owns those methods as proxies now.
> 
> The hack, for now, is to NOT have my chrome draw a background.  If it
> doesn't, I can click on children just fine.  That, however, sucks
because I
> want a background.  Figured 2nd hack is to just set the backgroundColor
> property to my chrome's background, and redraw my chrome as a mask
for the
> background.  That is worse.
> 
> Suggestions?
>




[flexcoders] Re: Chrome behind content?

2007-03-11 Thread Paul DeCoursey
Also this really sounds like a bug.  You should report it.

--- In flexcoders@yahoogroups.com, "Jesse Warden" <[EMAIL PROTECTED]> wrote:
>
> I'm extending Canvas.  His base class, Container, decrees on line
4608 that
> all children are behind chrome.  I want the opposite.  I want my chrome
> BEHIND the content; I want the content IN FRONT of my chrome.
> 
> However, since Container does all kinds of crazy over-writting of
> DisplayObject methods and tucks them away in mx_internal and various
other
> private & final prefix's, I have no clue how to easily make my
chrome inside
> of rawChildren go backwards.  Obviously, setChildIndex doesn't work
at this
> point because the base class owns those methods as proxies now.
> 
> The hack, for now, is to NOT have my chrome draw a background.  If it
> doesn't, I can click on children just fine.  That, however, sucks
because I
> want a background.  Figured 2nd hack is to just set the backgroundColor
> property to my chrome's background, and redraw my chrome as a mask
for the
> background.  That is worse.
> 
> Suggestions?
>




Re: [flexcoders] Chrome behind content?

2007-03-11 Thread Michael Schmalle

Well man, this is a hack and it works though :)

I had the same issue and so far this hasn't blown up in my face.

Try this on for size... the backgroundInstance is what is going behind the
content but infront of the border.

   override mx_internal function createContentPane():void
   {
   super.createContentPane();

   if (contentPane &&
   backgroundInstance)
   {
   var border:DisplayObject = rawChildren.getChildByName("border");
   var index:Number = (border) ? 0 : -1;

   rawChildren.setChildIndex(DisplayObject(backgroundInstance),
index + 1);
   rawChildren.setChildIndex(contentPane, index + 2);
   }
   }

Peace, Mike


On 10 Mar 2007 22:25:22 -0800, Jesse Warden <[EMAIL PROTECTED]>
wrote:


  I'm extending Canvas.  His base class, Container, decrees on line 4608
that all children are behind chrome.  I want the opposite.  I want my chrome
BEHIND the content; I want the content IN FRONT of my chrome.

However, since Container does all kinds of crazy over-writting of
DisplayObject methods and tucks them away in mx_internal and various other
private & final prefix's, I have no clue how to easily make my chrome inside
of rawChildren go backwards.  Obviously, setChildIndex doesn't work at this
point because the base class owns those methods as proxies now.

The hack, for now, is to NOT have my chrome draw a background.  If it
doesn't, I can click on children just fine.  That, however, sucks because I
want a background.  Figured 2nd hack is to just set the backgroundColor
property to my chrome's background, and redraw my chrome as a mask for the
background.  That is worse.

Suggestions?
 





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

Blog - Flex2Components
http://www.flex2components.com

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


[flexcoders] Data binding: How to detect data change has happened?

2007-03-11 Thread Greg McCreath
Hi all,

 

I'm interested to know how in an object with a data binding I can detect
a change in the datasource.

 

For example, if I were to develop (say) a custom datagrid that (in MXML)
a user of that datagrid can set the datasource property to something
like "{blah.blahblah}".

 

Then, in that custom datagrid how do I detect that that blah.blahblah
has changed and take some action when it does?  In the custom component
I do not want to know of the existence of blah.blahblah, just that it
has changed and what its new value is.

 

All help appreciated.

 

Greg.



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, store, copy, forward or use this email for any reason, in 
accordance with privacy and copyright laws. If you have received this email in 
error, please notify the sender by return email, and delete this email from 
your inbox. 


Re: [flexcoders] popup menu icons duplicated

2007-03-11 Thread Paul Hastings
On 3/11/07, Doug McCune <[EMAIL PROTECTED]> wrote:
>
>Yeah, I ran into this one. I'm going to bet that you're setting the 
> dataprovider of the
> popupmenubutton with Object objects (as opposed to XML or something else). 
> There's a bug
> in the component. Try setting the type property of the Object to an empty 
> string.

yup. that did the trick. how did you ever arrive at that workaround?

thanks.