[flexcoders] AdvancedDataGrid - help displaying custom data objects

2008-08-14 Thread cwicky99
I have two classes (shown below) and I think the AdvancedDataGrid can
display it properly. Basically there can be EmployeeGroups inside of
EmployeeGroups..nested as much as you want. Each group also contains
Employees. I'd like to display these columns:Name (of group/employee) |
Dept (of employee) any help to get started would be great. [Bindable]
public class Employee {  public var name:String;  public var
dept:String;   public function Employee(name:String, dept:String):void {
this.name = name;   this.dept = dept;  } }   [Bindable] public class
EmployeeGroup {   public var name:String;public var
parent:EmployeeGroup;  public var employees:ArrayCollection;  public var
groups:ArrayCollection;public function EmployeeGroup(name:String,
parent:EmployeeGroup=null) {   this.name = name;   this.parent = parent;
employees = new ArrayCollection();   groups = new ArrayCollection();  }
}   Here is some sample data:  var group1:EmployeeGroup = new
EmployeeGroup("Group 1");  var group11:EmployeeGroup = new
EmployeeGroup("Group 1.1");  var group2:EmployeeGroup = new
EmployeeGroup("Group 2");var emp1:Employee = new Employee("Bob", "IT
Developer");  var emp2:Employee = new Employee("Bill", "IT Developer"); 
var emp3:Employee = new Employee("Jim", "IT Admin");  var emp4:Employee
= new Employee("Todd", "IT Admin");  var emp5:Employee = new
Employee("Bryan", "Sales");  var emp6:Employee = new Employee("James",
"Sales");   group1.employees.addItem(emp1); 
group1.employees.addItem(emp2);group11.employees.addItem(emp3); 
group11.employees.addItem(emp4);group2.employees.addItem(emp5); 
group2.employees.addItem(emp6);// configure subgroups 
group1.groups.addItem(group11);  group11.parent = group1;groups =
new ArrayCollection();  groups.addItem(group1);  groups.addItem(group2);
The output in the tree would look something like:
Name   | Department
Group 1
Bob  |IT Developer
Bill   |IT Developer
Group 1.1  |
   Jim|IT Admin
   Todd |IT Admin
Group 2
Bryan  |   Sales
James  |   Sales

I've tried doing this so far to setup the AdvancedDataGrid:

groupColl = new GroupingCollection();groupColl.source = groups;var
gfield:GroupingField = new GroupingField("name");var grouping:Grouping =
new Grouping();grouping.fields = [gfield];groupColl.grouping =
grouping;groupColl.refresh();adg.dataProvider = groupColl;This just
gives me:
Name |  Dept
Group 1
 Group 1
Group 2
 Group 2

Any help would be super!



[flexcoders] Re: AdvancedDataGrid - help displaying custom data objects

2008-08-14 Thread cwicky99
so to get things to show up as I wanted I had to add a "children"
property to my EmployeeGroup (didn't see that anywhere in the
documentation, but I noticed the Adobe examples have "children"
properties).

So I added this in the EmployeeGroup:

public function get children():ArrayCollection {
var kids:ArrayCollection = new ArrayCollection();
for (var i:int=0; i < groups.length; i++) {
kids.addItem(groups[i]);
}
for (var i:int=0; i < employees.length; i++) {
kids.addItem(employees[i]);
}
return kids;
}


Obviously it can be more efficient, but it works..which is the start!



[flexcoders] Flex Books - Detailed/Nitty-Gritty

2008-09-26 Thread cwicky99
I'm looking for one or more books to really dive into Flex (and
perhaps AS3).  I know the basics and have been using it for a while,
but I really want to get into the advanced topics and the details for
some serious Flex development.  Most of the books I've seen all seem
to have the some Table of Contents covering very basic stuff. 

Is there anything out there that covers all the details (you know
sometimes when you read a blog, or watch a videocast you find out
about a little nugget of information you had never heard of)?

Thanks!



[flexcoders] Re: Flex Books - Detailed/Nitty-Gritty

2008-09-26 Thread cwicky99
Thanks (i think) for the feedback.  I realize Flex is more than  RAD
tool, in fact I have hardly used the GUI builder.  My background was
Java/Swing -> python -> C# -> Flex, based on the projects I was
working on.

Anyways, I guess coming from Swing there are books (such as Filthy
Rich Clients, one author Chet Haase works for Adobe now) which cover
lots of neat tricks, details, expert type info.  That's what I was
sort of wondering about.

--- In flexcoders@yahoogroups.com, Samuel Colak <[EMAIL PROTECTED]> wrote:
>
> 
> This strikes me a bit odd - what do people think Flex is ? It is  
> simply a tool
> for AS3 development - or do people think this is a RAD tool like VB  
> where everything
> is just point and click with no code ?
> 
> Craig - unfortunately the actual best book is the Adobe online  
> tutorials and API
> reference - its not terribly difficult to pick up once you have an  
> understanding or
> background in C# or Java. If you are new to the development scene,  
> then obviously
> flex will be rather more "daunting" - but it is worthwhile.
> 
> On Sep 26, 2008, at 12:43 PM, cwicky99 wrote:
> 
> > I'm looking for one or more books to really dive into Flex (and
> > perhaps AS3). I know the basics and have been using it for a while,
> > but I really want to get into the advanced topics and the details for
> > some serious Flex development. Most of the books I've seen all seem
> > to have the some Table of Contents covering very basic stuff.
> >
> > Is there anything out there that covers all the details (you know
> > sometimes when you read a blog, or watch a videocast you find out
> > about a little nugget of information you had never heard of)?
> >
> > Thanks!
> >
> >
> >
>




[flexcoders] Change LegendItem "fill" Color

2008-09-29 Thread cwicky99
I am trying to allow the user to select the color of the LegendItem. 
However, when I try and set the LegendItem "fill" style it doesn't
change in the UI.

I event tried:

legendItem.setStyle("fill", new SolidColor(0xFF00FF));
legendItem.invalidateDisplayList();

...but it has no effect.  I can call:

legendItem.setStyle("color", new SolidColor(0xFF00FF));

and the text associated with the LegendItem changes, but I can't seem
to change the fill color during runtime.

Any ideas or suggestions?



[flexcoders] Re: Change LegendItem "fill" Color

2008-09-29 Thread cwicky99
Currently the only work around I have is to remove the LegendItem's from
the Legend and add new ones, such as:

 var item:LegendItem = null;
 var newItem:LegendItem = null;
 for (var i:int = chartLegend.numChildren -1; i >= 0;
i--)
 {
 item = chartLegend.getChildAt(i) as LegendItem;
 if ( item == null )
 {
 continue;
 }

 newItem = new LegendItem();
 newItem.label = item.label;
 newItem.setStyle("fill", fillFunction(
chartSeries.items[i], i ));
 chartLegend.removeChildAt( i );
 chartLegend.addChildAt( newItem, i );
 }

Maybe this is a bug, since it appears that the LegendItem "fill"
property doesn't update in the UI.

--- In flexcoders@yahoogroups.com, "cwicky99" <[EMAIL PROTECTED]> wrote:
>
> I am trying to allow the user to select the color of the LegendItem.
> However, when I try and set the LegendItem "fill" style it doesn't
> change in the UI.
>
> I event tried:
>
> legendItem.setStyle("fill", new SolidColor(0xFF00FF));
> legendItem.invalidateDisplayList();
>
> ...but it has no effect.  I can call:
>
> legendItem.setStyle("color", new SolidColor(0xFF00FF));
>
> and the text associated with the LegendItem changes, but I can't seem
> to change the fill color during runtime.
>
> Any ideas or suggestions?
>




[flexcoders] LiveCycleDS + Java Enums

2008-10-06 Thread cwicky99
This post:
http://www.drflex.eu/2008/07/livecycle-es-data-services-data-management-and-java-enums/

Says that LiveCycleDS 2.6 handles Java enum's out of the box.  Does
anyone know if this only works with DataService objects?  I am using a
Consumer to listen to a JMS topic...but it doesn't seem to work.



[flexcoders] Re: LiveCycleDS + Java Enums

2008-10-06 Thread cwicky99
Ok, so I don't need to use EnumProxy from the proposed work around
(https://bugs.adobe.com/jira/browse/BLZ-17) anymore?

--- In flexcoders@yahoogroups.com, Jeff Vroom <[EMAIL PROTECTED]> wrote:
>
> The enum handling is part of the AMF serialization so you should be
able to use that with LC DS2.6 as well.Since AS does not have a
native "enum" type, by default a Java5 enum gets serialized to the
client using the string value of the enum.
> 
> Jeff
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of cwicky99
> Sent: Monday, October 06, 2008 8:18 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] LiveCycleDS + Java Enums
> 
> 
> This post:
>
http://www.drflex.eu/2008/07/livecycle-es-data-services-data-management-and-java-enums/
> 
> Says that LiveCycleDS 2.6 handles Java enum's out of the box. Does
> anyone know if this only works with DataService objects? I am using a
> Consumer to listen to a JMS topic...but it doesn't seem to work.
>




[flexcoders] LiveCycleDS - Problem Accessing RemoteObject over Secure AMF

2008-10-07 Thread cwicky99
I'm trying to access a "destination" over SSL with the "my-secure-amf"
channel.

I have a destination defined in remoting-config.xml that looks like:



  



However when my code tries to use this destination I get:

NetConnection.Call.Failed: HTTP: Failed: url:
'https://localhost:8443/myapp/messagebroker/amfsecure'


The channel in services-config.xml is defined as:

https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure";
class="flex.messaging.endpoints.SecureAMFEndpoint"/>


false



Any thoughts?



[flexcoders] Re: LiveCycleDS - Problem Accessing RemoteObject over Secure AMF

2008-10-07 Thread cwicky99
One thing I noticed is that if I just try to browse to the channel URL:

https://localhost:8443/myapp/messagebroker/amfsecure

I get:
HTTP Status 404 - Servlet MessageBrokerServlet is not available





[flexcoders] Re: LiveCycleDS - Problem Accessing RemoteObject over Secure AMF

2008-10-07 Thread cwicky99
One thing I noticed is that if I just try to browse to the channel URL:

https://localhost:8443/myapp/messagebroker/amfsecure

I get:
HTTP Status 404 - Servlet MessageBrokerServlet is not available





[flexcoders] Re: LiveCycleDS - Problem Accessing RemoteObject over Secure AMF

2008-10-08 Thread cwicky99
I do have an SSL cert installed.  

So apparently I guess LCDS 2.6 is a bit different than LCDS 2.5.  I 
was able to use FireBug and see that when I tried to browse to my 
app I was getting 404's because it couldn't find FlexSwfServlet
which was defined in my web.xml (based on LCDS 2.5):


FlexSwfServlet
SWF Retriever
flex.bootstrap.BootstrapServlet

servlet.class
flex.webtier.server.j2ee.SwfServlet


2



Looking at the latest lcds.war in LCDS 2.6 the web.xml only has the 
MessageBrokerServlet defined, nothing else:


MessageBrokerServlet
MessageBrokerServlet
flex.messaging.MessageBrokerServlet

services.configuration.file
/WEB-INF/flex/services-config.xml
   

flex.write.path
/WEB-INF/flex

1
 


Anyone know if there is information on why 2.6 doesn't explicitly 
define the other servlets?  I know in LCDS 2.5 there was a JAR in 
the lcds.war/WEB-INF/lib named flex-bootstrap which is no longer in 
the lcds.war in LCDS 2.6.



[flexcoders] ANSWER - Re: LiveCycleDS - Problem Accessing RemoteObject over Secure AMF

2008-10-08 Thread cwicky99
So I guess LCDS 2.6 did change some things, such as not having the 
flex-bootstrap JAR (not sure if this code moved somewhere else or not).

But basically I updated my web.xml so all of the LCDS 2.5 stuff (as 
mentioned in the earlier post) is gone and I only have the servlet 
mapping and definition for MessageBrokerServlet and now all is well.



[flexcoders] DataGrid: Make text bold when row is highlighted or selected

2008-10-20 Thread cwicky99
I have a DataGrid and I am trying to figure out how to make the font
Bold when the user mouses over a row or selects the row.

Any ideas?



[flexcoders] Re: LiveCycleDS - Problem Accessing RemoteObject over Secure AMF

2008-10-21 Thread cwicky99
One thing I noticed is that if I just try to browse to the channel URL:

https://localhost:8443/myapp/messagebroker/amfsecure

I get:
HTTP Status 404 - Servlet MessageBrokerServlet is not available





[flexcoders] Programmatically Determine if FlexEvent.CREATION_COMPLETE has been dispatched

2008-10-27 Thread cwicky99
I need to programmatically determine if a component has dispatched
FlexEvent.CREATION_COMPLETE so that I know it has finished being
created as well as all of it's children.

I don't see a "creationCompleted" property, is there some other way to
tell?  I know I can listen for the event I am wondering if there is
some other way to tell that it had already happened.  So I can have
logic similar:

if ( comp.creationCompleted )
{
   // do stuff to a child
   comp.fooView.fooButton.addEventListener(...);
}
else
{
comp.addEventListener(FlexEvent.CREATION_COMPLETE, handleCreation);
}



[flexcoders] Re: Programmatically Determine if FlexEvent.CREATION_COMPLETE has been dispatche

2008-10-27 Thread cwicky99
So, say I missed the creation_complete eventor I can't listen for it.

there is no programmatic way to ask a component if it is complete
right?  I know UIComponent ( or something like that ) has the
"initialized" property.

--- In flexcoders@yahoogroups.com, "florian.salihovic"
<[EMAIL PROTECTED]> wrote:
>
> Ah forgot to tell about that one.
> 
> Or delete the reference manually. There have been some discussion
about weakReferences 
>  when registering eventlisteners.But that's another topic...
> 
> Best regards.
> 
> --- In flexcoders@yahoogroups.com, "Josh McDonald"  wrote:
> >
> > Any time you're going to create a Dictionary to keep track of
things like
> > this, make sure to use weak references, by calling new
Dictionary(true) or
> > your app is likely to leak memory like a sieve :)
> > 
> > And you might be able to get away with UIComponent.initialized,
depending on
> > what it is you're actually trying to achieve.
> > 
> > -Josh
> > 
> > On Mon, Oct 27, 2008 at 9:22 PM, florian.salihovic <
> > florian.salihovic@> wrote:
> > 
> > > One way to do so:
> > >
> > > private var dictionaty:Dictionary = new Dictionary();
> > > private var button:Button = new Button();
> > >
> > > protected function initializeComponent():void
> > > {
> > > this.button.addEventListener(FlexEvent.CREATION_COMPLETE,
> > > onCreationComplete);
> > > this.dictionary[this.button] = false;
> > > }
> > >
> > > function onCreationComplete(event:Event):void
> > > {
> > > if (event.target == this.button)
> > > {
> > > dictionary[this.button] = true;
> > > }
> > >
> > > Working this way you can allways test, wether the
component-creation has
> > > been
> > > completed or not.
> > >
> > > Best regards from Germany
> > >
> > > --- In flexcoders@yahoogroups.com, "cwicky99"  wrote:
> > > >
> > > > I need to programmatically determine if a component has dispatched
> > > > FlexEvent.CREATION_COMPLETE so that I know it has finished being
> > > > created as well as all of it's children.
> > > >
> > > > I don't see a "creationCompleted" property, is there some
other way to
> > > > tell?  I know I can listen for the event I am wondering if
there is
> > > > some other way to tell that it had already happened.  So I can
have
> > > > logic similar:
> > > >
> > > > if ( comp.creationCompleted )
> > > > {
> > > >// do stuff to a child
> > > >comp.fooView.fooButton.addEventListener(...);
> > > > }
> > > > else
> > > > {
> > > > comp.addEventListener(FlexEvent.CREATION_COMPLETE,
handleCreation);
> > > > }
> > > >
> > >
> > >
> > >
> > >
> > > 
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Alternative FAQ location:
> > >
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
> 1e62079f6847
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups
> > > Links
> > >
> > >
> > >
> > >
> > 
> > 
> > -- 
> > "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> > 
> > Like the cut of my jib? Check out my Flex blog!
> > 
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: josh@
> > :: http://flex.joshmcdonald.info/
> >
>




[flexcoders] Re: Programmatically Determine if FlexEvent.CREATION_COMPLETE has been dispatche

2008-10-27 Thread cwicky99
I didn't think that necessarily meant 'creation complete' according to
the doc's, maybe I misunderstood?


--- In flexcoders@yahoogroups.com, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> So what's wrong with using the "initialized" property?
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of cwicky99
> Sent: Monday, October 27, 2008 7:37 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Programmatically Determine if
FlexEvent.CREATION_COMPLETE has been dispatche
> 
> 
> So, say I missed the creation_complete eventor I can't listen
for it.
> 
> there is no programmatic way to ask a component if it is complete
> right? I know UIComponent ( or something like that ) has the
> "initialized" property.
> 
> --- In
flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>,
"florian.salihovic"
>  wrote:
> >
> > Ah forgot to tell about that one.
> >
> > Or delete the reference manually. There have been some discussion
> about weakReferences
> > when registering eventlisteners.But that's another topic...
> >
> > Best regards.
> >
> > --- In
flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, "Josh
McDonald"  wrote:
> > >
> > > Any time you're going to create a Dictionary to keep track of
> things like
> > > this, make sure to use weak references, by calling new
> Dictionary(true) or
> > > your app is likely to leak memory like a sieve :)
> > >
> > > And you might be able to get away with UIComponent.initialized,
> depending on
> > > what it is you're actually trying to achieve.
> > >
> > > -Josh
> > >
> > > On Mon, Oct 27, 2008 at 9:22 PM, florian.salihovic <
> > > florian.salihovic@> wrote:
> > >
> > > > One way to do so:
> > > >
> > > > private var dictionaty:Dictionary = new Dictionary();
> > > > private var button:Button = new Button();
> > > >
> > > > protected function initializeComponent():void
> > > > {
> > > > this.button.addEventListener(FlexEvent.CREATION_COMPLETE,
> > > > onCreationComplete);
> > > > this.dictionary[this.button] = false;
> > > > }
> > > >
> > > > function onCreationComplete(event:Event):void
> > > > {
> > > > if (event.target == this.button)
> > > > {
> > > > dictionary[this.button] = true;
> > > > }
> > > >
> > > > Working this way you can allways test, wether the
> component-creation has
> > > > been
> > > > completed or not.
> > > >
> > > > Best regards from Germany
> > > >
> > > > --- In
flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>,
"cwicky99"  wrote:
> > > > >
> > > > > I need to programmatically determine if a component has
dispatched
> > > > > FlexEvent.CREATION_COMPLETE so that I know it has finished being
> > > > > created as well as all of it's children.
> > > > >
> > > > > I don't see a "creationCompleted" property, is there some
> other way to
> > > > > tell? I know I can listen for the event I am wondering if
> there is
> > > > > some other way to tell that it had already happened. So I can
> have
> > > > > logic similar:
> > > > >
> > > > > if ( comp.creationCompleted )
> > > > > {
> > > > > // do stuff to a child
> > > > > comp.fooView.fooButton.addEventListener(...);
> > > > > }
> > > > > else
> > > > > {
> > > > > comp.addEventListener(FlexEvent.CREATION_COMPLETE,
> handleCreation);
> > > > > }
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > --
> > > > Flexcoders Mailing List
> > > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > Alternative FAQ location:
> > > >
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
> > 1e62079f6847
> > > > Search Archives:
> > > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> Groups
> > > > Links
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> > >
> > > Like the cut of my jib? Check out my Flex blog!
> > >
> > > :: Josh 'G-Funk' McDonald
> > > :: 0437 221 380 :: josh@
> > > :: http://flex.joshmcdonald.info/
> > >
> >
>




[flexcoders] View State Help

2008-05-12 Thread cwicky99
I am trying to use States in my Flex 3 application.  The application
is run outside of the browser.  The one thing I am hoping to improve
upon is manual labor of removing and adding components when the states
change.

So for example if I have a login panel.  Once the user logs in i want
to go to a new view with some other components.  Right now in my
mx:State I have defined:




   
   


anyways...is there a better or nicer way of handling such things?  I'm
just curious because it seems like a bunch of work referencing these
components all over the place.  Just curious on how it might be done
better.

Thanks in advance.



[flexcoders] Diagramming Components

2008-11-21 Thread cwicky99
Anyone know of any good diagramming/network-type graphing components?
 Basically, I am looking for something that allows me to define nodes
(shapes, icons, etc) that can be dragged/dropped from a pallet onto a
canvas (not meaningFlex Canvas component).  Those nodes can be moved
around and connected, etc.

I have seen one from KapIT called "Diagrammer", which is one
possibility.  I have also seen yFiles (www.yworks.com), which is a
fairly pricey pay-component.

Preferably the component would be free and open-source but not required.

Any other ideas or thoughts??  I have seen this functionality in
demos/examples online, but I'm wondering if each shop is rolling their
own.



[flexcoders] Flex crossdomain failing in Internet Explorer

2009-05-14 Thread cwicky99
I have a Flex app that runs on foo.acme.com which tries to access content on 
bar.acme.com over secure communications (i.e SSL).

Both servers use tomcat and on bar.acme.com I have a crossdomain.xml file setup 
in /tomcat_home/webapps/ROOT.

When I launch the app on foo (i.e. https://foo.acme.com) it attempts to make a 
RESTful request to https://bar.acme.com/content/person (as an example).  In 
Firefox this works just fine.  However, in Internet Exploer (I am using IE7 in 
this case) it fails giving me the message:

"Error #2048: Security sandbox violation: https://foo.acme.com/myApp.swf cannot 
load data from https://bar.acme.com/content/person";

However, there is a workaround (not good enough for production use though):
1. Open IE7
2. Open a tab to https://bar.acme.com (basically launch the app over there)
3. Open a tab to https://foo.acme.com (this is the app that requests data from 
the 'bar' server).
4. Ta-Da it works

So if I first load up the app on the other server (i.e. 'bar.acme.com') things 
work just fine.  Anyone have any idea what I can do about this??  I'm not sure 
about IE6 (still need to test again)...at this point I believe if a user opens 
IE6 and visits 'bar.acme.com', then goes to 'foo.acme.com' it works (have to 
validate this though).

Just in case, here is the crossdomain.xml:









[flexcoders] Re: Flex crossdomain failing in Internet Explorer

2009-05-14 Thread cwicky99
I realize it's worth mentioning these two servers are using self-signed certs 
(at the moment).  So the first time you launch the apps in Firefox you can "add 
an exception" basically telling Firefox that you trust these self-signed certs. 
 After that Firefox won't bother the user.

However, IE doesn't seem to handle/act that way.

--- In flexcoders@yahoogroups.com, "cwicky99"  wrote:
>
> I have a Flex app that runs on foo.acme.com which tries to access content on 
> bar.acme.com over secure communications (i.e SSL).
> 
> Both servers use tomcat and on bar.acme.com I have a crossdomain.xml file 
> setup in /tomcat_home/webapps/ROOT.
> 
> When I launch the app on foo (i.e. https://foo.acme.com) it attempts to make 
> a RESTful request to https://bar.acme.com/content/person (as an example).  In 
> Firefox this works just fine.  However, in Internet Exploer (I am using IE7 
> in this case) it fails giving me the message:
> 
> "Error #2048: Security sandbox violation: https://foo.acme.com/myApp.swf 
> cannot load data from https://bar.acme.com/content/person";
> 
> However, there is a workaround (not good enough for production use though):
> 1. Open IE7
> 2. Open a tab to https://bar.acme.com (basically launch the app over there)
> 3. Open a tab to https://foo.acme.com (this is the app that requests data 
> from the 'bar' server).
> 4. Ta-Da it works
> 
> So if I first load up the app on the other server (i.e. 'bar.acme.com') 
> things work just fine.  Anyone have any idea what I can do about this??  I'm 
> not sure about IE6 (still need to test again)...at this point I believe if a 
> user opens IE6 and visits 'bar.acme.com', then goes to 'foo.acme.com' it 
> works (have to validate this though).
> 
> Just in case, here is the crossdomain.xml:
> 
> 
> 
> 
> 
> 
>




[flexcoders] Re: Flex crossdomain failing in Internet Explorer

2009-05-21 Thread cwicky99
anyone...??

--- In flexcoders@yahoogroups.com, "cwicky99"  wrote:
>
> I realize it's worth mentioning these two servers are using self-signed certs 
> (at the moment).  So the first time you launch the apps in Firefox you can 
> "add an exception" basically telling Firefox that you trust these self-signed 
> certs.  After that Firefox won't bother the user.
> 
> However, IE doesn't seem to handle/act that way.
> 
> --- In flexcoders@yahoogroups.com, "cwicky99"  wrote:
> >
> > I have a Flex app that runs on foo.acme.com which tries to access content 
> > on bar.acme.com over secure communications (i.e SSL).
> > 
> > Both servers use tomcat and on bar.acme.com I have a crossdomain.xml file 
> > setup in /tomcat_home/webapps/ROOT.
> > 
> > When I launch the app on foo (i.e. https://foo.acme.com) it attempts to 
> > make a RESTful request to https://bar.acme.com/content/person (as an 
> > example).  In Firefox this works just fine.  However, in Internet Exploer 
> > (I am using IE7 in this case) it fails giving me the message:
> > 
> > "Error #2048: Security sandbox violation: https://foo.acme.com/myApp.swf 
> > cannot load data from https://bar.acme.com/content/person";
> > 
> > However, there is a workaround (not good enough for production use though):
> > 1. Open IE7
> > 2. Open a tab to https://bar.acme.com (basically launch the app over there)
> > 3. Open a tab to https://foo.acme.com (this is the app that requests data 
> > from the 'bar' server).
> > 4. Ta-Da it works
> > 
> > So if I first load up the app on the other server (i.e. 'bar.acme.com') 
> > things work just fine.  Anyone have any idea what I can do about this??  
> > I'm not sure about IE6 (still need to test again)...at this point I believe 
> > if a user opens IE6 and visits 'bar.acme.com', then goes to 'foo.acme.com' 
> > it works (have to validate this though).
> > 
> > Just in case, here is the crossdomain.xml:
> > 
> > 
> > 
> > 
> > 
> > 
> >
>




[flexcoders] ComboBox : HBox as ItemRenderer - textRollOverColor problem

2009-06-18 Thread cwicky99
So I have an itemRenderer which simply displays text and an
image...something like:


 
 


My ComboBox is configured in MXML such as:



My CSS has:

ComboBox {
 textRollOverColor=0xFF;
}

So what I want is for the items in my ComboBox ("foo") to have "red"
text on the Label when the item is rolled over...but this isn't
happening.  How can I get this to work?  I should mention I prefer to
keep the style stuff out of the code and in a CSS file.





[flexcoders] Re: ComboBox : HBox as ItemRenderer - textRollOverColor problem

2009-06-18 Thread cwicky99
So my fix is this:

MyComboRenderer


  
  ...
 private function onRollOver():void {
 lblGroup.setStyle("color", getStyle("textRollOverColor"));
 }

 private function onRollOut():void {
 lblGroup.setStyle("color", getStyle("color"));
 }
  ...
  



You'll notice I just listen for the rollOver/rollOut events and handle
it there.  It uses the textRollOverColor style that is set on the
ComboBox :)

--- In flexcoders@yahoogroups.com, "cwicky99"  wrote:
>
> So I have an itemRenderer which simply displays text and an
> image...something like:
>
> 
>  
>  
> 
>
> My ComboBox is configured in MXML such as:
>
> 
>
> My CSS has:
>
> ComboBox {
>  textRollOverColor=0xFF;
> }
>
> So what I want is for the items in my ComboBox ("foo") to have "red"
> text on the Label when the item is rolled over...but this isn't
> happening.  How can I get this to work?  I should mention I prefer to
> keep the style stuff out of the code and in a CSS file.
>