I am not sure this is going to answer your question, but you could
clone one of the other rows and just change the contents. That way you
would not need to know specifically what the root tag of the
particular node is..
--Mike
--- In flexcoders@yahoogroups.com, iko_knyphausen [EMAIL PROTECTED]
Precia,
Just need to ask the question, does it absolutely have to be a
TextArea? The TextField class (and descendants) have an autoSize
property and more control over some of these aspects.
--Mike
--- In flexcoders@yahoogroups.com, app.developer [EMAIL PROTECTED]
wrote:
When creating a
Hara,
Take a look at the expandChildrenOf () method of the tree class.
public function expandChildrenOf(item:Object, open:Boolean):void
Opens or closes all the tree items below the specified item.
Parameters item:Object the starting item
open:Boolean toggles an open or close
To add to what Tracy was saying..
Let's say you have a component in the comps directory called MyComp.
It could be in MXML or in Actionscript, it doesn't matter.
First you would need to import that component definition by saying
import comps.MyComp;
Then, at anytime, for instance in response
Maciek,
You may want to read up on crossdomain files. You should be able to
google this term and find information. Here is a link to explore, but
there are probably easier to understand resources.
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213
Mike
--- In
Mike,
I apologize in advance if this is now what you are asking, but, have
you looked at the editorDataField property?
If this isn't what you are looking for, I can post an example of a
ComboBox renderer in a DataGrid.
--Mike
--- In flexcoders@yahoogroups.com, Mike Anderson [EMAIL PROTECTED]
Michael,
Problem is that ComboBase uses a textInput control to display the
currently selected item. The TextInput is limited to displaying a
single line of text.
You could certianly change this, but, it seems as though it will
require extending ComboBox, not just making an itemRenderer.
--Mike
The PopUpManager.createPopUp method calls addPopUp which, as part of
the method seems to ensure that the new Popup is on top.
After it is created, you could manually move it around using
setChildIndex... a good place to look is at PopUpManager.bringToFront
Hope that help a little,
Mike
@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Labriola
Sent: Monday, October 16, 2006 3:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox itemEditor example inside of
DataGrid??
Mike,
I apologize in advance if this is now what you are asking, but, have you
In your result handler, function that is called once the read is
complete, you can access this data as follows:
if ( event.result.record.category == 4 ){
}
else{
}
You can also include XML at compile time using the mx:XML tag,
however, you should not do this if the contents of the XML may
Frank,
The problem is that the dateField is looking for a Flex Date object.
Guessing from the conversion to XML, the x.result[0].arrivaldate[0] is
an XML node which contains a String. This String needs to be made into
a Flex Date Object.
There are a few ways to do this: var myDate:Date = new
..one more note..
You may want to also check out Referencing repeated child components
in the help docs, which is specifically about components within a
repeater.
--Mike
--- In flexcoders@yahoogroups.com, Marlon Moyer [EMAIL PROTECTED]
wrote:
sorry, I didn't phrase the question correctly. I
Marlon,
So long as you know the container where the child exists, you can say:
container.getChildByName(name:String):DisplayObject
or
container.getChildIndex(child:DisplayObject):int
Hope that helps,
Mike
--- In flexcoders@yahoogroups.com, Marlon Moyer [EMAIL PROTECTED]
wrote:
sorry,
, the
reusability factor...
Well, thanks again - I truly appreciate your help on this :)
Mike
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Labriola
Sent: Monday, October 16, 2006 4:47 PM
To: flexcoders@yahoogroups.com
Unfortunately, no.
This is an area where I have spent countless hours trying to work
around. Flash player has absolutely no support for right to left
natively. Further, while you can manually do *some* things to fix
this, ultimately none of the text components (input, area, etc) allow
editing in
Frank,
I think you might be approaching this from the wrong perspective. In
particular, if you don't have object oriented programming experience,
you may want to take a few minutes and read some of the many tutorials
available online.
As Flex is a pretty OO heavy environment, without this
Steve,
Do me a favor and test something out. Make the items Array an
ArrayCollection on your own.
Here is the gist: When you pass an Array to either ComboBox or List it
makes an ArrayCollection out of it for the purposes of binding. List
does something slightly different in that it stops
Mike,
I might need some more explanation, as I think I am missing something.
I have a lot of textInputs that format on focus out. Is your concern
that the data in the field is now 'formatted' so it will be useless
for sending back to some server.
Let me know and I will be glad to help more,
@yahoogroups.com, Michael Labriola labriola@
wrote:
Frank,
I think you might be approaching this from the wrong perspective. In
particular, if you don't have object oriented programming experience,
you may want to take a few minutes and read some of the many tutorials
available online
Not sure if this helps in your particular situation, however, the
validation error messages are really nothing more than styled tooltips.
You have some control over tips, such as their maximum width.
Look in the Flex Help under Setting the width of ToolTips
-Mike
--- In
File.
Will this cause an error, since a String Var is required, in order to
keep the $ format?
This is where I could use some guidance...
Thanks in advance for your help,
Mike
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael
Tangent,
Remove the {} from around selected :
var counties:XMLList = _myXml.state.(@label=selected).county;
Mike
--- In flexcoders@yahoogroups.com, Tan [EMAIL PROTECTED] wrote:
I try writing two comboboxes to facilitate selection of the
following XML,
data
state label=Texas
Link just became LinkButton in 2.0
Best luck,
Mike
--- In flexcoders@yahoogroups.com, fuad_kamal [EMAIL PROTECTED] wrote:
While I've been porting a huge application from Flex 1.5 to Flex 2.0,
every now and then I come across things that just weren't mentioned
anywhere in the migration
You are correct. By default the dataField on DataGridColumn only goes
to the root level of the structure you are passing.
If you are feeling a little ambitious, you can subclass dataGridColumn
and do something like this:
protected function deriveComplexColumn( data:Object,
Overall it is not a bad way to proceed. The only place I might direct
you some place different is where you save to the local drive if the
server is unavailable.
For this part, I would suggest you take a look at a concept called
'Local Shared Objects'
Without knowing all of the details of your
2 more things to consider.
Not sure of your particular setup, but, you may want to look at the
[Managed] metadata tag. Setup dependent, it may be what you are
looking for.
Second, and more generally, casts fail when the system cannot convert
one type to another. So, take a look at your objects.
;
}
// function from Michael Labriola from Flexcoders mail list
protected function deriveComplexColumn( data:Object,
complexFieldName:String ):Object {
var dataPtr:Object = data;
var complexName:Array = complexFieldName.split( '.', 10
Can you explain more about what you are trying to do?
I see that you have 3 arrayCollections.
Only 1 of them seems to be used in the code, and, in that one, you are
only using the length property.
Please provide details about what you are trying to accomplish.
Thanks,
--Mike
--- In
the epCollection to be
a dataprovider. With
simpel words what i'm trying to do is to make epCollection result to
work in a diffrent
MXML file.
Is is a better explenation?
--- In flexcoders@yahoogroups.com, Michael Labriola labriola@ wrote:
Can you explain more about what you are trying
nicely done
--- In flexcoders@yahoogroups.com, Darron J. Schall [EMAIL PROTECTED] wrote:
Interesting, Yahoo garbled most of the content of that message. Here's
what I actually sent:
For those having trouble converting generic objects into class
instances
(Value Objects), I've created
I know this is not actually the answer to the question, however, is it
necessary to specifically set the width and height to literals, or
could they just be set to 100%?
--Mike
--- In flexcoders@yahoogroups.com, pilby1 [EMAIL PROTECTED] wrote:
When I run my application where mx:Application's
My first thought:
I would probably write a simple component that serves as an
itemRenderer. From within that component I would be to launch a
modal popup window from the itemEditBeginning event. Ensure that you
pass the row and the dataGridColumn (much like a labelFunction) to
the new popup.
In flex, children are generally not created until they are actually
needed, which generally translates to: when they are displayed on the
screen. This keeps startup time and memory use down as, on average,
most users do not navigate to every corner of an app.
As suggested, you could set the
Thank you. Thank you. Thank you.
--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:
rant
Several times a week someone complains that they can't seem to set data
into controls on the second, third, etc. pane of a ViewStack, Accordion,
or TabNavigator because
to help walk you through it.
--Mike
--- In flexcoders@yahoogroups.com, advantexllc [EMAIL PROTECTED]
wrote:
--- In flexcoders@yahoogroups.com, Michael Labriola labriola@
wrote:
Overall it is not a bad way to proceed. The only place I might
direct
you some place different is where
If I understand your question correctly (and I am not sure that I do),
I would personally put your filter function in the file that currently
calls the HTTPService and gets the result. Unless you are using one of
the, or your own, common frameworks, most people seem to put this in
their main
Libby,
Like this:
var newClass:DisplayObject = new MyClassToAdd();
var newChild:DisplayObject = viewStack.addChild(newClass);
--Mike
--- In flexcoders@yahoogroups.com, Libby [EMAIL PROTECTED] wrote:
Hello
In 1.5 I was adding complex components to a viewstack by doing
Diego,
Here is a starting point. There are probably bugs, it is bloated,
and it is not completely tested, however, it is a starting point.
A final version of this, along with some actual example code, error
handling and other dynamic tools will eventually be available in a
devnet article.
Rick,
Check out the filter capabilities of the list collections. Basically,
the dataProvider of the datagrid can be filtered as you requested.
--Mike
--- In flexcoders@yahoogroups.com, Rick Root [EMAIL PROTECTED] wrote:
Let's say I've got a datagrid containing a persons gifts to the
/mx:VBox
/mx:Canvas
--- In flexcoders@yahoogroups.com, Michael Labriola labriola@ wrote:
If I understand your question correctly (and I am not sure that I do),
I would personally put your filter function in the file that currently
calls the HTTPService and gets the result. Unless you
Rick,
Just one more comment on your labelFunction versus subclass of
DataGridColumn. There are times to subclass, but, what you are doing
here really seems like a good argument for a labelFunction.
You don't have to build a function for every column, so, if you
rewrote your labelFunction like
Glad you are enjoying it.
We have occasionally seen the same thing. The flex compiler seems to
get confused with the inline renderer and the valueObject.
This line is the cause:
outerDocument.removeItem(valueObjects.ShoppingCartItem(data));
You can literally go an modify this line by adding a
and those
two are located in MovieView.mxml
--- In flexcoders@yahoogroups.com, Michael Labriola labriola@ wrote:
In your result handler, call the refresh method after you set the
filterFunction.
--Mike
--- In flexcoders@yahoogroups.com, pioplacz icep87@ wrote:
Yes, i want
Oct 2006 16:47:11 +1300, Michael Labriola [EMAIL PROTECTED]
wrote:
Diego,
Here is a starting point. There are probably bugs, it is bloated,
and it is not completely tested, however, it is a starting point.
A final version of this, along with some actual example code, error
1) HTML as a DisplayObject
2) Getting rid of the browser where people believe the back button is
there only source of navigation
3) Generating desktop apps with all of the framework we have written
for flex :)
--Mike
Just wondering, since I'm working on it... what features of Apollo
are
Check out fireDaemon, it is handy for this type of situation:
http://www.firedaemon.com/
It will let you run the command line integrated jrun fds as a service.
--Mike
--- In flexcoders@yahoogroups.com, Shannon Hicks [EMAIL PROTECTED] wrote:
But there's no version of JRun that is free, and
Aaron,
Need to clarify something:
When you say : The XML is changes, do you mean that the XML data
retrieved from http://Path/To/XML.aspx changes or that you change the
XMl after loading at the client?
I don't want to answer the wrong question, but the
mx:XML tag includes data at compile
Hank,
If you are setting the dataProvider of the linkBar to the viewStack,
the LinkBar will indicate the selectedChild of the viewStack as a
disabled button on the bar.
The linkbar responds to the viewStack. When you say you are setting
the selectedIndex to 0, do you mean you are setting it on
Parag,
Send me the code offline and I will help you debug. I am not sure I
understand the issue currently.
Mike
--- In flexcoders@yahoogroups.com, Parag Metha [EMAIL PROTECTED]
wrote:
Hi All,
I have written multiple login testcases using dpunit and using
sequence as
per sample
Guys, sorry, but that's not quite right. UIComponents can contain
other UIComponents without being a container. It is a common use
case. Take a look at the simple example Adobe includes with their
docs:
http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.h
tm?href=1742.html
Indra,
Look in the AIR help files for the presence API.
I think this article also covers it, but not sure how up to date it
is:
http://www.adobe.com/devnet/air/flex/articles/flickr_floater_06.html
HTH,
Labriola
--- In flexcoders@yahoogroups.com, Indra Prastha [EMAIL PROTECTED]
wrote:
Hi
If you find anything specific and it is not yet on the peachpit
site, feel free to email me directly off-list.
--- In flexcoders@yahoogroups.com, Joseph Balderson [EMAIL PROTECTED] wrote:
Check the peachpit website.
_
__
Trainer
Author, Professional Flex 3 (coming Winter 2008)
Staff Writer, Community MX | http://communitymx.com/author.cfm?
cid=4674
Michael Labriola wrote:
Guys, sorry, but that's not quite right. UIComponents can
contain
other UIComponents without being a container. It is a common use
Jason,
In an ideal world, component A would throw events up. Those events
would be caught in the application (in this case) and call
corresponding methods in component B.
You really, really don't want to start coupling these components
together by calling the internals of one from the other
54 matches
Mail list logo