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,
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
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
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
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
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
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
Does this clear things out for you ?I guess just use {data.property}.Check out this article
snip:mx:itemRenderer mx:Component mx:Canvas
mx:CheckBox id=complete width=20 x=10 y=4 selected=
{data.selected}/ mx:Text id=taskname text={data.label}/
/mx:Canvas /mx:Component/mx:itemRenderer
--
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
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
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,
width
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
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
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).
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 endpoint
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
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
Well a
little code example:
my
data grid:
mx:DataGrid dataProvider="{my_data}"
mx:columns
mx:Array
mx:DataGridColumn
dataField="data_field1" itemRenderer="myItemRenderer"/
/mx:Array
/mx:columns
/mx:DataGrid
MyItemRenderer.mxml:
mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml"
Foundsomething 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
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:
Try this:
?xml version=1.0?
mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml initialize=initApp()
mx:Script
public function initApp():void {
var arr: Array = new Array();
arr.push({one:abc, two: ABC});
arr.push({one:def, two: DEF});
arr.push({one:ghi, two:
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
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
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
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..
mx:itemRenderer
mx:Component
mx:Canvas width=100 height=90
mx:Canvas id=image_canvas
backgroundColor=#FF
x=10 y=7.5
I have the following for a DataGridColumn, which works just fine:
mx:DataGridColumn dataField=label id=dg_products_label
width=65 headerText=Product
mx:itemRenderer
mx:Component
mx:Text text={data.label}
color={outerDocument.checkProductUsage(this,data.selected)} /
Hi All,
Background info: Coldfusion and Flex.
I have a a TileList that is being populate by an Array of CategoryVO's.
mx:TileList xmlns:mx="http://www.adobe.com/2006/mxml" dataProvider="{model.templateList}" width="100%" itemRenderer="Thumbnail" columnWidth="200" height="100%" dragEnabled =
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.
//
?xml version="1.0" encoding="utf-8"?
mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
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
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
--
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 getting
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) {
trace(Match);
Out of curiosity, try changing:
Application.application.addEventListener(test, onTestEvent);
to:
this.addEventListener(test, onTestEvent);
- Original Message -
From: Andrea Varga [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, April 20, 2006 10:52 AM
Subject:
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
Try changing
public function onTestEvent()
to
public function onTestEvent(event:Event)
You should add event:Event in your listener.
|-+-
| | |
| | Andrea Varga |
| | [EMAIL PROTECTED] |
| | Sent by: |
| | flexcoders@yahoogroups.com |
| | 04/20/2006
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 PROTECTED]
To:
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:
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
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
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 buttons
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
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
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
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
--
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
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 (Login id=loginComponentId ...) and then
calling something similar to:
Another alternative would be something like this.,...
1. Add Metadata tag in your component with the name of your event.
mx:Metadata
[Event(name=login, type=flash.events.Event)]
/mx:Metadata
2. Catch that event in your component
Login x=333 y=56 login=handleTestEvent(event)/
3. Add AS to
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
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
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
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 the
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
[EMAIL
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
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
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 layout
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
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.) Id like to change this behavior to display a
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;
mx:Model id=catDat
catData{data as CategoryVO}/catData
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:
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
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 changing a parent
61 matches
Mail list logo