[flexcoders] Re: Flex2B2 :: Changing State :: Problem with parent child

2006-04-20 Thread Tim Hoff
Looks like you need an equal sign.     modifierCheckGroup.currentState "matchState"; should be:    modifierCheckGroup.currentState = "matchState"; - Tim --- In flexcoders@yahoogroups.com, "Michael Schmalle" <[EMAIL PROTECTED]> wrote: > > Hi, > > Real quick is there a problem with

[flexcoders] Re: Flex2b2: Top-level exception handler

2006-04-20 Thread Tim Hoff
I'm not sure how you would create a global listener for all dispatched events, since each event has a currentTarget property.  But, in your onFault functions, you could use something like this: public function onFault( event : FaultEvent ) : void {     Alert.show("Fault Error: \n "+event.faul

[flexcoders] Re: Problem with AMFGateway and Sessions - please help

2006-04-20 Thread Dmitry Miller
I assume so. The event handler class's methods are all static. This is also unnamed service. Thanks, --- Dmitry --- In flexcoders@yahoogroups.com, "Peter Farland" <[EMAIL PROTECTED]> wrote: > > Did the request come through the gateway servlet? > > -Original Message- > From: flexcod

[flexcoders] Re: Combobox not highlighting on mouseOver (Flex2Beta2)

2006-04-20 Thread sufibaba
Hi simeon, I finally figured out a work around solution after quite a few permutations on the databinding situation. - thumbnail.mxml ( the itemrenderer)   [Bindable]     public var category:CategoryVO;       {data as CategoryVO}    --

[flexcoders] Flex2b2: Top-level exception handler

2006-04-20 Thread Tobias Patton
Hello flexcoders;   Does anyone know of a way to intercept all uncaught errors in a Flex application? The default behavior is for the Flash Player to display a simple dialog with the error text (the debug player also shows a stack trace.) I’d like to change this behavior to display a di

RE: [flexcoders] Best way to set component height based on size of parent container?

2006-04-20 Thread Tobias Patton
To have the width of the panel be calculated in relation to the parent container, you could do something like: -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexabledev Sent: Thursday, April 20, 2006 2:48 PM To: flexcoders@yahoogroups.com Su

Re: [flexcoders] Best way to set component height based on size of parent container?

2006-04-20 Thread Johannes Nel
just set the vScrollPolicy = off  whilst setting the height to what you want.On 4/20/06, flexabledev <[EMAIL PROTECTED] > wrote:I have two simple scenarios that I need help with.1.  I have a Canvas that scales with the Browser window.  On that Canvas, I have a panel with a "top" and "bottom" lay

[flexcoders] Using Hibernate, Gateway pushing out two Error: null

2006-04-20 Thread crrb
We're using Mysql 4.1 with Hibernate 3.1, Cairngorm, Flex 1.5, and Hibernate Synchronizer to auto generate Java classes and AS classes. I'm new to Flex and Hibernate both.  I've search as many sites as I could for both products in relation to this issue, no joy.  We have an object called De

[flexcoders] Re: Background color of DataGrid row and column

2006-04-20 Thread Mustaq Pradhan
Hi Karl, Thanks for your reply. I couldn't find setPropertiesAt() defined for DataGrid or any of its parent object. I am using Flex 2 Beta 2 and new to Flex. How I get rowId? If possible, please send me an example. Thank you very much for the help. Mustaq Pradhan --- In flexcoders@yahoogro

[flexcoders] Re: Background color of DataGrid row and column

2006-04-20 Thread Mustaq Pradhan
Hi Brendan, Thanks for your reply. I have tried setting the style at runtime using: setStyle("backgroundColor", 0xFF);. This is giving me a compiler error: CSS Value for '{cssValue}' not supported.  Any idea, please. Mustaq --- In flexcoders@yahoogroups.com, "Brendan Meutzner" <[

[flexcoders] Best way to set component height based on size of parent container?

2006-04-20 Thread flexabledev
I have two simple scenarios that I need help with. 1.  I have a Canvas that scales with the Browser window.  On that Canvas, I have a panel with a "top" and "bottom" layout constraint, but I need the width to be dynamically calculated based on the width of the Canvas - X.  2. I have a VBox on

RE: [flexcoders] Background color of DataGrid row and column

2006-04-20 Thread Ashish Goyal
backgroundColor style is not supported for DataGrid. DataGrid has a style called alternatingRowColors which accepts two colors in an array. You can just specify same colors to get set the uniform background color. For eg, to make green background color, you can set alternatingRowColors="[0x00FF

RE: [flexcoders] Problem with AMFGateway and Sessions - please help

2006-04-20 Thread Peter Farland
Did the request come through the gateway servlet? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dmitry Miller Sent: Wednesday, April 19, 2006 8:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem with AMFGateway and Sessions -

RE: [flexcoders] flex newbie - dispatchEvent question

2006-04-20 Thread Gordon Smith
If you are using a debugging version of the player, this would have caused an runtime exception alert when onTestEvent() was passed an argument that it wasn't expecting. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andrea Varga Se

Re: [flexcoders] Re: flex newbie - dispatchEvent question - Part 2

2006-04-20 Thread Oscar . Cortes
Another alternative would be something like this.,... 1. Add Metadata tag in your component with the name of your event.       [Event(name="login", type="flash.events.Event")]   2. Catch that event in your component     3. Add AS to handle the event.    public function ha

[flexcoders] Re: flex newbie - dispatchEvent question - Part 2

2006-04-20 Thread Doug Lowder
Hmm, the code you posted for Login.mxml dispatches a "login" event, not "test", so that's one thing to be aware of.  You'll need to add the listener to the Login object, which you can do by giving the Login component an id () and then calling something similar to: loginComponentId.addEventL

Re: [flexcoders] flex newbie - dispatchEvent question - Part 2

2006-04-20 Thread Andrea Varga
Well, this worked, but in the Cairngorm framework this was correct and the problem is somewhere else. Below is my new little test. This time the button that does the dispatchEvent is not in the application, but inside another component The  Main.mxml code is almost the same as before, just th

[flexcoders] Flex 2 and OS X

2006-04-20 Thread Michael Klishin
Hi guys, I just wonder is there a way to run Flex 2 under OS X at the moment? I was asked and have no idea 'cause I'm still an unhappy Windows user by some reason :) Thanks! -- Michael "Antares" Klishin, Email: [EMAIL PROTECTED] Web: www.novemberain.com Non progredi est regredi --

Re: [flexcoders] Flex framework: ARP, Cairngorm... Which to use?

2006-04-20 Thread Dominick Accattato
I've used as2patters and then moved to cairngorm for Flex.  I think you will just find it very clean and simple to use.  If your looking for advice on which side to choose, just try out the cairngorm flex2 sample login and I think that you will see how simple the framework makes Flex.  In other

Re: [flexcoders] Flex2 ButtonBar; Can its buttons be individually enabled or disabled?

2006-04-20 Thread Michael Schmalle
Hi, Did you cast the returned button instance to Button? var child:Button = getChildAt(buttonIndex) as Button; Peace, MikeOn 4/20/06, wlbagent <[EMAIL PROTECTED]> wrote: I know this can be done using individual buttons but can the individual buttons in a ButtonBar component (not the whole

Re: [flexcoders] Background color of DataGrid row and column

2006-04-20 Thread Brendan Meutzner
Which brings up something I noticed the other day... when setting the backgroundColor for a DatagridColumn for compile time within the MXML tag, it was causing a runtime error when the application loaded... like the style was being set before the DatagridColumn existed... a bug?  Style is set fi

[flexcoders] Flex2 ButtonBar; Can its buttons be individually enabled or disabled?

2006-04-20 Thread wlbagent
I know this can be done using individual buttons but can the individual buttons in a ButtonBar component (not the whole ButtonBar) be enabled or disabled? For example.  You have a ButtonBar with 4 buttons labeled "A","B","C",and "D".  You want button "A" to always be enabled but the remaining b

[flexcoders] Flex2B2 Problem with XML insertChildBefore

2006-04-20 Thread greenfishinwater
I am experimenting with using XML as the data provider for a tree. I want to be able to inset new nodes at run time. I have successfully used  appendChild and insertChildAfter, but cannot get insertChildBefore to work. In my example app I think I maybe setting up the position where to insert inc

RE: [flexcoders] Flex Remoting

2006-04-20 Thread Peter Farland
It depends on what the method signature for SampleDAO.getPersons looks like. Where did you find this sample? Note that the AS signature for NetConnection.call() is:     public function call(command:String, responder:Responder, ... arguments):void So the ... syntax in AS means "the rest of the

Re: [flexcoders] flex newbie - dispatchEvent question

2006-04-20 Thread Andrea Varga
Yes, this has solved it Thanks [EMAIL PROTECTED] wrote: >Try changing > > >public function onTestEvent() >to >public function onTestEvent(event:Event) > > >  You should add event:Event in your listener. > > >  > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/f

Re: [flexcoders] flex newbie - dispatchEvent question

2006-04-20 Thread Andrea Varga
It didn't work with  this.addEventListener either. Andi JesterXL wrote: >Out of curiosity, try changing: > >Application.application.addEventListener("test", onTestEvent); > >to: > >this.addEventListener("test", onTestEvent); > >- Original Message - >From: "Andrea Varga" <[EMAIL PROTE

Re: [flexcoders] flex newbie - dispatchEvent question

2006-04-20 Thread Oscar . Cortes
Try changing public function onTestEvent() to public function onTestEvent(event:Event)   You should add event:Event in your listener. |-+-> | | | | |  "Andrea Varga" | | |  <[EMAIL PROTEC

[flexcoders] Re: Flex 2: Inline ItemRenderer --> Getting current row of DataGrid

2006-04-20 Thread Doug Lowder
I haven't tested this, but I suspect you could programmatically select the row through the selectedItems property.  Add the row data (not the index) to the selectedItems array, and the selectedIndices property should be updated to reflect the addition. Doug --- In flexcoders@yahoogroups.com

Re: [flexcoders] flex newbie - dispatchEvent question

2006-04-20 Thread JesterXL
Out of curiosity, try changing: Application.application.addEventListener("test", onTestEvent); to: this.addEventListener("test", onTestEvent); - Original Message - From: "Andrea Varga" <[EMAIL PROTECTED]> To: Sent: Thursday, April 20, 2006 10:52 AM Subject: [flexcoders] flex newbie

[flexcoders] Flex2B2 :: Changing State :: Problem with parent child

2006-04-20 Thread Michael Schmalle
Hi, Real quick is there a problem with changing a parent component state and in the next call calling one if it's children's state changes? I cannot get this to work, but in the mxml component the child component changes state fine. IE                 if (event.label == "Match") {           

[flexcoders] flex newbie - dispatchEvent question

2006-04-20 Thread Andrea Varga
Hi! I have to mention first that I'm new in Flex. I have started to develop a small application using Cairngorm, just to get more into it. But I have faced  a problem,  my Command is never executed. It seams the Event I'm sending is lost somewhere. So I made a small test (to see if I'm gettin

Re: [flexcoders] Custom itemrenderer in datagrid

2006-04-20 Thread Thomas Ott
hi   I did it like this:   setValue (str:String, obj:Object):Void {   var col:DataGridColumn = listOwner.getColumnAt(columnIndex);   var itemProperty = obj[col.columnName];   …. }   you got to define listOwner and columnIndex in the cellRenderer Class     Thomas --

[flexcoders] Flex Remoting

2006-04-20 Thread murtuza_ab
Hi, Need help in the Remoting Implementation I have tried example of below, with the method which does not take any param it works but what is the syntax for passing the argument to the remote method. We are using this example as we are not using flex data service server side component. if

[flexcoders] Loading image in Tilelist using itemrenderer

2006-04-20 Thread imran_b_l
i m trying to load image in TileList using "itemrenderer" and "dataprovider" but there's some error which i m not able to sort. i m pasting the code below.   // dataProvider="{myArr}" columnCount="1" width="100%" itemRenderer="renderer/imagecomp"/>

[flexcoders] Flex2 beta2 binding issue.

2006-04-20 Thread sufibaba
Hi All, Background info:  Coldfusion and Flex. I have a a TileList that is being populate by an Array of CategoryVO's.      xmlns:mx="http://www.adobe.com/2006/mxml"     dataProvider="{model.templateList}"    width="100%"    itemRenderer="Thumbnail"    columnWidth="200"    height="100%"     dra

[flexcoders] Flex 2: Inline ItemRenderer --> Getting current row of DataGrid

2006-04-20 Thread Mike Collins
I have the following for a DataGridColumn, which works just fine: width="65" headerText="Product" >                                               color="{outerDocument.checkProductUsage(this,data.selected)}" />

[flexcoders] items are stretched width listItemRenderer in TileList flex2

2006-04-20 Thread moyosaned
I'm using a listItemRenderer in a TileList. But for some reason the horizontal lines are stretch so the lineThickness(! canvas and hrule) is bigger..                 backgroundColor="#FF"       x="10" y="7.5"       width="100" height="90"  

[flexcoders] update Datagrid but stay in edit mode (Flex 1.5)

2006-04-20 Thread Thomas Ott
Hi everyone   I have a Datagrid with editable cells. Pressing tab or enter key while editing a Cell, calls the function updateTotal which calculates other non-editable fields in the grid and updates the dataProvider. The problem is now, that the non-editable values dont show up in the g

[flexcoders] Flex code review with Adobe Consulting

2006-04-20 Thread tr.coffey
Recent posts have circulated in this forum regarding a Flex code review with Adobe Consulting. I was present at that review and feel that the Adobe attendees were unfairly represented. Forging new relationships can be difficult, even under the best circumstances, but particularly via a remote

RE: [flexcoders] Custom itemrenderer in datagrid

2006-04-20 Thread Dirk Eismann
Yes. If your item renderer implements the mx.controls.listClasses.IDropInListItemRenderer interface you can get to the column like this: public function set listData(value:BaseListData):void {   // for a DataGrid the passed in data is of type   // mx.controls.dataGridClasses.DataGridListData  

RE: [flexcoders] Custom itemrenderer in datagrid

2006-04-20 Thread Kyle Quevillon
Try this:                 public function initApp():void {     var arr: Array = new Array();     arr.push({one:"abc", two: "ABC"});     arr.push

RE: [flexcoders] Custom itemrenderer in datagrid

2006-04-20 Thread B.Brey
Well i need the data for the current cell. Is there any way to find out which column is the current column rendered?   -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of WebdevotionSent: donderdag 20 april 2006 16:03To: flexcoders@yah

Re: [flexcoders] Custom itemrenderer in datagrid

2006-04-20 Thread Webdevotion
Found something for you at Livedocs :)It confirms my thought about using data.label, data.id, data.productImage, ...as the correct syntax to access these properties.Basically your data object contains the data for the whole row, which is a good thing, since you might want to combine data frommu

RE: [flexcoders] Custom itemrenderer in datagrid

2006-04-20 Thread B.Brey
Well a little code example:   my data grid:                         MyItemRenderer.mxml:   http://www.adobe.com/2006/mxml" xmlns="*">         This does not work, the data.name does not exist and has to be: "data.data_field1.name". As you can see that is not ve

[flexcoders] Flex2/OpenAMF/Easybeans(EJB3) integration with JOnAS/WTP

2006-04-20 Thread Carlos Rovira
Hi list,I want to share a POC that I made some days ago, is about integration of Flex2/OpenAMF/EasyBeans in JOnAS app server and using WTP (Web Tools Project for eclipse). http://www.carlosrovira.com/blog/?p=388http://www.carlosrovira.com/projects/ flope/flope.zip The key here is the use of t

Re: [flexcoders] FDS - Problem configurating message destinations

2006-04-20 Thread Thomas Rühl -akitogo-
Great, I'll test that sometime later. I just read in the comments on the Adobe site, that it wouldn't work at all interesting. Thomas Thijs Triemstra | Collab wrote: > We're running JRun4 (updater 6) on jre 1.5 here, on mac osx and > linux.. To make it work on osx we had to change this

Re: [flexcoders] Custom itemrenderer in datagrid

2006-04-20 Thread Webdevotion
Have you tried a for loop through the data object ?What about data["column"].label notation ?I'm at work now, can't test myself ...  On 4/20/06, B.Brey <[EMAIL PROTECTED]> wrote: That is just the thing, the DataGrid differs from a List. The "data" object your receive in an itemrenderer for a D

Re: [flexcoders] FDS - Problem configurating message destinations

2006-04-20 Thread Thijs Triemstra | Collab
We're running JRun4 (updater 6) on jre 1.5 here, on mac osx and  linux.. To make it work on osx we had to change this line in /JRun4/ bin/jvm.config: java.home=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/ Home Thijs Op 20-apr-2006, om 11:14 heeft Thomas Rühl -akitogo- het

[flexcoders] Re: Can't use RemoteObject on HTTPS ONLY Server?

2006-04-20 Thread sof4real03
Interesting, has anyone gotten Flex 2 Beta 2 to work over HTTPS with AMF? Also adding the complexity of proxying through Apache SSL? --- In flexcoders@yahoogroups.com, "Steven Toth" <[EMAIL PROTECTED]> wrote: > > Here are the console messages from the non-secure amf: > > [Flex] Channel endpoin

RE: [flexcoders] Background color of DataGrid row and column

2006-04-20 Thread Karl Johnson
Are you trying to set the background color for a specific row or for ever row at once? Are you seeing alternating row colors instead of the color you want? If that is the case, they you probably want to set the the alternatingRowColors style (takes two RRGGBB colors). http://livedocs.macromedia

[flexcoders] Flex2B2 :: List bug :: Exception when using mousewheel

2006-04-20 Thread Michael Schmalle
Hey, I think this is a bug, I swear I brought this up in alpha to I can't remember. Say I create a List with the PopUpManager, then it gets populated. There is enough for a scrollbar and if you are rolling the List AS you mouseOut of the List component; This error raises TypeError: Error #1

[flexcoders] DataGridItemRenderer with AS3

2006-04-20 Thread Webdevotion
Hello,I'm trying to create a datagriditemrenderer using Actionscript.I know I'm importing to much right now, it's for testing purposes ; )Does anyone have some insight into this techniques ?All I am seeing now is false in the cells of my datagrid.Another question: I can't use addChildAt, but I

[flexcoders] importing button designed in flash

2006-04-20 Thread Chaitu Vadlapatla
Hi,    I am trying to import a button designed in flash into my flex project and use it. I imported it and I can see it in my navigator view. But when I try to drag it into my Panel I cant do it. Looks like something is wrong with the way I am doing it or flash designed buttons or compon

[flexcoders] Re: Arranging checkboxes in Tile-Like Format

2006-04-20 Thread dave7273
It's amazing how complicated I try to make things Thanks! --- In flexcoders@yahoogroups.com, "Michael Schmalle" <[EMAIL PROTECTED]> wrote: > > Hi, > > Can't you just put the repeater in a Tile ? Then control your checkbox > layout through the Tile's layout and properties IE titleWidth,

[flexcoders] Re: Updating and Retriving Data From XML File FLEX 2

2006-04-20 Thread Libby
I would like it sent to me too. Or, maybe it could be posted in the Files section of the Flexcoders website for download. Thanks, Libby --- In flexcoders@yahoogroups.com, "livnginabluewrld" <[EMAIL PROTECTED]> wrote: > > Would there be any way I could get this sample sent to me? I don't see >

RE: [flexcoders] Custom itemrenderer in datagrid

2006-04-20 Thread B.Brey
That is just the thing, the DataGrid differs from a List. The "data" object your receive in an itemrenderer for a DataGrid contains data of the whole row. I just want the cell data.     -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of

Re: [flexcoders] Arranging checkboxes in Tile-Like Format

2006-04-20 Thread Michael Schmalle
Hi, Can't you just put the repeater in a Tile ? Then control your checkbox layout through the Tile's layout and properties IE titleWidth, width etc... I just did this yesterday Ironically. Peace, MikeOn 4/20/06, dave7273 <[EMAIL PROTECTED]> wrote: I have a list of checkboxes that are dynami

Re: [flexcoders] Custom itemrenderer in datagrid

2006-04-20 Thread Webdevotion
Does this clear things out for you ?I guess just use {data.property}.Check out this article snip:     "complete" width="20" x="10" y="4" selected= "{data.selected}"/>  "taskname" text="{data.label}"/>        -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/gro

[flexcoders] Background color of DataGrid row and column

2006-04-20 Thread Mustaq Pradhan
How to set background color of a DG row. By setting backgroundColor property I get nothing displayed, but the mxml compiled ok. Is there any way to set background color of a DG row? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Searc

[flexcoders] Arranging checkboxes in Tile-Like Format

2006-04-20 Thread dave7273
I have a list of checkboxes that are dynamically created using a repeater and am having a difficult time trying to arrange them in something similar to a tileList.  Currently, I will have about a dozen checkboxes and would more or less like them arrange vertically, in groups of 4 (or somethi

Re: [flexcoders] FDS - Problem configurating message destinations

2006-04-20 Thread Thomas Rühl -akitogo-
Thanks for the input, but that really wasn't the problem. In the meantime I figured out myself... When I finally found the logfiles and detected that there was one called flex-errors.log, I looked into it and saw what? Right, what I didn't expect to see and was noted down nowhere on the way

[flexcoders] Custom itemrenderer in datagrid

2006-04-20 Thread B.Brey
I've been busy with creating an ItemRenderer for DataGrid cells. After reading the help i noticed that the "data" that is given to the ItemRenderer is the row data. I'm wondering how I could get the data for just the cell so i can have a generic ItemRenderer. with regards, Bas J. Brey Multime

RE: [flexcoders] Re: How to override type cast operator @ runtime?

2006-04-20 Thread Peter Farland
Well, you can't have ObjectTracer cast to A or B so it's not going to be exactly what you want. But if the API were made to accept Object in the relevant places, then you could do something like this: package com.mycompany { import flash.util.Proxy; import flash.util.flash_proxy; use names

[flexcoders] Re: How to override type cast operator @ runtime?

2006-04-20 Thread Vadim Melnik
Thanks for information, sorry it was incorrect question, it was not related to ObjectProxy. I wanted to create special object wrapper, overriding flash.util.Proxy methods and forwarding all calls to inner object, something like ObjectProxy does. But instead ObjectProxy it will only trace me

Re: [flexcoders] Flex app URL

2006-04-20 Thread Andriy Panas
Hello Dmitry, Thursday, April 20, 2006, 12:14:23 AM, you wrote: > Does anyone know how to retrieve url of the Flex app from within the > application? Are you on Flex 1.5 or Flex 2 b2? In Flex 1.5 world we use Flash derived API command:  "_level0._url". How cool is that?! -- Best regards,