I have a component comprised of a mx:Text field that is rendered in a
datagrid. I am trying to access the data.name and the data.descr of
the data that is bound to the component so that I can use both in one
mx:Text field and not two.
If I access them separately like this it works fine:
mx:Text
I am coming from Flash Timeline Development to Flex (as opposed to
coming from C#, Java, etc to Flex). So I have some catching up to do.
One of the things I find most frustrating is the ability to so a
simple trace statement, run the code and watch my traces in an output
window. Is this possible
You may want to take a look at the following where the setter function
is overridden to maintain sorting (which may help with the row height
issue).
http://www.returnundefined.com/2006/10/item-renderers-in-datagrids-a-primer-for-predictable-behavior/
Jeff
--- In flexcoders@yahoogroups.com,
!-- In the HTML source add this to the javascript func... --
AC_FL_RunContent(
flashvars,'historyUrl=history.htm%3Flconid=' + lc_id + '',
flashvars,myFlashVarValue=Hello from the html page,
...
!-- In the object embed html source add... --
param name=flashvars
I currently have FP 9.0.0.296 installed. When I try to test a Flex
App I get the following message:
c:\Windows\system32\Macromedia\Flash\Flash8a.ocx
Flex Builder cannot locate the requried version of
the Flash Player.
You may need to install Flash Player 9.0 or reinstall
Flex
Usually the ones screaming the loudest about Flash or Flex being used
as a website platform are the ones that fear that the antiquated web
technologies that they are versed in are going to be replaced.
If the client wants an all Flash/Flex website, give it to them as long
as they know the pros
Is there a way to click on a stacked ColumnChart and receive data
about the specific segment of ColumnChart stack that was clicked?
I am using mx.charts.events.ChartItemEvent but I can't find anything
in the event object that identifies the exact slice that was clicked.
Thanks. Jeff
Is there a way to combine a combobox/label cell renderer for a
datagrid so that when the cell has NO focus is displays a label and
when the cell takes focus the combobox takes visibility?
I have a label renderer and combobox renderer but I can't seem to get
them to work in tandem.
Thanks in
as the itemEditor.
-TH
--- In flexcoders@yahoogroups.com, securenetfreedom nv1000@
wrote:
Is there a way to combine a combobox/label cell renderer for a
datagrid so that when the cell has NO focus is displays a label and
when the cell takes focus the combobox takes visibility?
I have
@yahoogroups.com, securenetfreedom nv1000@
wrote:
Thanks, Tim!
Works well. It displays the combobox's label property in the Text
field. However, I need to update the datagrid's dataprovider with
the
'data' property of the combobox.
Currently I'm capturing the grid's itemEditEnd
in the dataGridColumn editorDataField property. In
your itemEditor, cast the selected item data to the public variable,
on the comboBox change event.
-TH
--- In flexcoders@yahoogroups.com, securenetfreedom nv1000@
wrote:
I tried using that earlier and got undesirable results:
If I use
When typing in a datagrid cell, I am capturing the datagrid's change
event and then making calculations on other cells in that row.
I've used both invalidateList and invalidateDisplayList after I make
my calcs but it doesn't seem to update the text in the grid until I've
tabbed out of that cell
Although unorthodox, I'm trying to take a pre-generated soap-formatted
xml doc that's sitting in myData.xml on my server and pass it thru the
mx.rpc.soap.SoapDecoder.
Since I'm not formally calling a WebService to obtain the soap xml,
but using URLLoader to retrieve the soap-formatted xml doc, I
In your example, would 'decoder' be of type SOAPDecoder?
To what class does the method decode() belong?
Jeff
--- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote:
I'd guess decoder.decode() - You might need to provide it with the
definitions built up from various XSDs
Ok, here we go...
How do I instantiate a decoder:SOAPDecoder when it's an excluded
class? [ExcludeClass]
I would love to do this:
import mx.rpc.soap.SOAPDecoder;
decoder:SOAPDecoder = new SOAPDecoder();
serializedConent:SOAPResult = decoder.decode('SOAP-ENV...[xml
stuff]/SOAP-ENV');
I
In your mx:Script block try:
import mx.charts.PieChart;
public var pie:PieChart
pie.dataProvider
-Jeff
--- In flexcoders@yahoogroups.com, fflexhelp [EMAIL PROTECTED] wrote:
Hi
I am trying to create pie charts dynamically.
Var myPieChart:Piechart;
in the init()
{
myPieChart=new
This should do it:
txt.setFocus();
-Jeff
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:
textInput.setSelection(0,0)
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Nicolas Boulet-Lavoie
Sent:
timgerr,
Capture the field name and value pass it to the PHP page.
mx:DataGrid id=dg change=onChange(event)/
private function onChange(e:DataGridEvent){
var field:String = e.dataField;
var value:String = dg.dataProvider[e.rowIndex][field];
sendDataToPHP(field,
I have custom item render in a datagrid that is exhibiting
unpredictable behavior. It does not update when scrolling the
datagrid. Other times it does update, and other times it updates but
on the wrong row.
Here's the component:
?xml version=1.0 encoding=utf-8?
mx:HBox
timgerr,
dg is the id of the datagrid.
Jeff
--- In flexcoders@yahoogroups.com, timgerr [EMAIL PROTECTED]
wrote:
Jeff, I am getting an error :
var value:String = dg.dataProvider[e.rowIndex][field];
Access to undefined property dg.
Not sure what to do, thanks
timgerr
mx:DataGrid
@yahoogroups.com, Muzak [EMAIL PROTECTED] wrote:
http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.
html
- Original Message -
From: securenetfreedom [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, May 11, 2008 8:44 AM
Subject: [flexcoders] itemRenderer
I have a combobox that opens onFocus. When using arrow keys I would
like to fire the itemRollOver for each item in the list as the arrow
key highlights it.
This works well with mouse over, but not with arrow keys.
Is there a simple solution?
Thanks,
Jeff
I figured it out using a combination of Key Event capture and
selectedIndex.
--- In flexcoders@yahoogroups.com, securenetfreedom [EMAIL PROTECTED] wrote:
I have a combobox that opens onFocus. When using arrow keys I would
like to fire the itemRollOver for each item in the list as the arrow
How do you highlight the entire row of a datagrid or advanceddatagrid
conditionally.
For instance I want to set a row's background/highlight color to blue
for prices under $100 and red for prices over $100.
I've used the styleFunction on the ADG to color text conditionally but
cannot get row
Thanks, Josh.
--- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote:
http://blog.mikenimer.com/index.cfm/2006/10/3/BackgroundRowColor-DataGrid-component
-Josh
On Tue, Jun 10, 2008 at 3:36 PM, securenetfreedom [EMAIL PROTECTED] wrote:
How do you highlight
I am using an ADG with HierarchicalData to group my data. I am using a
checkbox item renderer that the user can check to archive the row.
However, the checkbox is diplaying on every row and I need it to
display only on the sub-set like below:
Group | Archive | Title |
Group1
--|-- chk --|
visibility there as
opposed to in set data(...).
--- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
, securenetfreedom nv1000@ wrote:
I am using an ADG with HierarchicalData to group my data. I am using
a
checkbox item renderer that the user can check to archive the row
When using a filter function on an AdvancedDataGrid whose dp is a
HierarchicalData object derived from an XMLCollectionList passed into
it, the dataprovider will not refresh by calling dp.refresh directly.
So I tried datagrid.dataProvider.refresh() and it works until one of the
row's criteria for
();
}
Jeff
--- In flexcoders@yahoogroups.com, securenetfreedom [EMAIL PROTECTED] wrote:
When using a filter function on an AdvancedDataGrid whose dp is a
HierarchicalData object derived from an XMLCollectionList passed into
it, the dataprovider will not refresh by calling dp.refresh directly.
So
I might be able to help. I had a similar issue with XMLListCollection
dataProvider for an AdvacncedDataGrid. The filter function works great
and with lists in the 100's. You get the to sub nodes with e4x.
Here's the filtering code:
public function hideShowFilterFunc(item:Object):Boolean{
Peter,
e4x is the new XML access notation that complies with ECMA. It will make
your life easy in your scenario by eliminating that ugly getChildren
func and simplifying your code.
In your case, here's how it would work:
public function hideShowFilterFunc(item:Object):Boolean{
// item.name()
In an DataModel class what is the best way to bind data.
1) Make the Setter Bindable, or
2) Make the Getter Bindable and dispatch an event on the Setter?
What are the advantages and disadvantages of each?
/*
*Binding #1
*
*/
[Bindable]
public function set foo(val:String):void{
Any thoughts?
In an DataModel class what is the best way to bind data.
1) Make the Setter Bindable, or
2) Make the Getter Bindable and dispatch an event on the Setter?
What are the advantages and disadvantages of each?
// Binding #1
[Bindable]
public function set foo(val:String):void{
thing either way. The
only
time you have to use a custom event to trigger the binding is when you
have
read-only properties (a getter but no setter).
Doug
On Fri, Jun 27, 2008 at 12:08 PM, securenetfreedom [EMAIL PROTECTED] wrote:
Any thoughts?
In an DataModel class what is the best
Josh,
That's one of the better explanations I've seen on the subject. It
fills the blanks left by
http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.html.
Thanks for the contribution.
And BTW, the keyboard is a bad place to be while consuming adult
beverages, partaking in a
How do I access my application's version at runtime?
... the one set in the descriptor file and used for updating
versionv0.51/version.
Thanks,
Jeff
For those of you who may want to know, I found I can get access to the
entire descriptor file via:
var descriptor:XML =
NativeApplication.nativeApplication.applicationDescriptor;
Jeff
--- In flexcoders@yahoogroups.com, securenetfreedom [EMAIL PROTECTED] wrote:
How do I access my
Is there anyway to modify Air App install options like:
* disabling or set default on 'Place Icon Desktop' option
* disabling or set default on 'Start Application After Install'
* Modifying the install dir to other than c:\Program Files (on
Windows)
Is there a way to embed passed
-bump-
Any ideas?
--- In flexcoders@yahoogroups.com, securenetfreedom [EMAIL PROTECTED] wrote:
Is there anyway to modify Air App install options like:
* disabling or set default on 'Place Icon Desktop' option
* disabling or set default on 'Start Application After Install
I am trying to update an ArrayCollection with new values from a
localeChain change. Everything tied to an display control is changing
properly, however, the ArrayCollection does not.
I've tried the following three methods for accessing the resource, but
none work. Is the ResourceManager binding
I am creating ActionScript ResourceBundles.
Is possible to create a resource key/value via AS that allows arguments
like:
rb.content[DISTANCE_FORMAT] = {0} miles;
I am getting key/value pairs from a database so I will be creating the
RBs at runtime. So will be looping thru the result set with
Is it possible to have an ArrayCollection value updated by a resource
bundle value.
[Bindable]
public var cbDP:ArrayCollection = new ArrayCollection();
cbDP.addItem(
{label:ResourceManager.getInstance().getString('myResources','NAME') });
When changing locales at runtime, all label fields of
} miles; //?? does not like {0}
Thanks,
Jeff
--- In flexcoders@yahoogroups.com, securenetfreedom nv1...@...
wrote:
I am creating ActionScript ResourceBundles.
Is possible to create a resource key/value via AS that allows
arguments
like:
rb.content[DISTANCE_FORMAT] = {0} miles;
I am getting
Thanks, Alex.
So I assume a flex button listens for the locale change event and
therefore updates it's label?
Are you saying create say a LocaleArrayCollection class that dispatches
the locale change event?
Or are you saying create LocaleChangeDispatcher that dispatches the
locale change event
So, 3.3 will *not* apply to eclipse FB plugin?
Jeff
--- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote:
It's all bug fixes, and not a huge number of them. We're not going
to have an associated Flex Builder release either, just the SDK
(though we'll get the charts updated).
This is over a year old but is way cooler than iGoogle.
http://examples.adobe.com/flex3/devnet/dashboard/main.html
--- In flexcoders@yahoogroups.com, thelordsince1984 lore...@... wrote:
Hi,
i would create an app that has the same functionality that igoogle
provides..
in particular i
How would you gain access to the .doc XML?
--- In flexcoders@yahoogroups.com, Weyert de Boer w...@... wrote:
I would think that using the Word COM+ objects would be the easiest
way to read Word documents. Of course, you can also only support the
XML-based version of Word documents Office
47 matches
Mail list logo