[flexcoders] Re: Sideways text

2009-07-28 Thread postwick
In this example, you are not using an embedded font. Google flex 3 embed font and you'll see what we mean. --- In flexcoders@yahoogroups.com, Gordon Smith gosm...@... wrote: Really? When I try mx:Label x=100 y=100 text=Hello rotation=90 blendMode=layer/ I don't see anything.

[flexcoders] Re: how to auto refresh datagrid using httpservice

2009-07-23 Thread postwick
You would use setInterval() http://blog.flexexamples.com/2008/02/14/creating-timers-using-the-setinterval-method/ However, I recommend looking into LCDS (LiveCycle Data Services). It does this automatically. --- In flexcoders@yahoogroups.com, Shoukat Ali a.shou...@... wrote: this is my mxml

[flexcoders] Re: how to auto refresh datagrid using httpservice

2009-07-23 Thread postwick
I should have finished reading that blog post before I sent this. I guess there is a more modern way to do this: http://livedocs.adobe.com/flex/3/html/help.html?content=08_Dates_and_times_4.html --- In flexcoders@yahoogroups.com, postwick p...@... wrote: You would use setInterval() http

[flexcoders] Re: Horizontal List - the Images don't appear - help?!

2009-07-23 Thread postwick
You should populate an ArrayCollection or XMLListCollection, and then set that collection as the data provider for the horizontal list. --- In flexcoders@yahoogroups.com, jamiebadman jamie.bad...@... wrote: Hi! I'm trying to display images in a Horizontal List. I receive the url's of the

[flexcoders] Re: channel.connect.failed error netconnection.call.badversion Exception

2009-07-23 Thread postwick
It sounds like a generic error that isn't giving you real detail about what the true problem is. This blog post explains how to solve that issue so you can see real info on the error. http://www.5etdemi.com/blog/archives/2005/06/i-did-it-i-killed-netconnectioncallbadversion --- In

[flexcoders] Re: better option than repeater?

2009-07-23 Thread postwick
the properties and methods of something and then repeat that, the possibilities are endless. HTH Steve --- In flexcoders@yahoogroups.com, postwick paul@ wrote: Can you give me a brief example of code that would achieve the part where you say create a component? Keep in mind the number

[flexcoders] Re: better option than repeater?

2009-07-23 Thread postwick
Sorry, link should have been http://www.ubeek.com/Flex/testrend.txt --- In flexcoders@yahoogroups.com, postwick p...@... wrote: OK, thanks to the below example, I have made some progress on setting up my first custom itemRenderer. Code can be viewed here: http://www.ubeek.com/Flex

[flexcoders] Re: variables name are in array

2009-07-22 Thread postwick
This is very dangerous, IMO. It opens you up for getting things misaligned and then you have the wrong value in the wrong variable. Why aren't you storing the variable name AND the value in the same array? --- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote: Hi, Do you

[flexcoders] Re: Event's cancelable

2009-07-22 Thread postwick
Events propagate through the hierarchy of objects. If necessary, you can stop them (cancel them) once they get to a certain point in the propagation. http://livedocs.adobe.com/flex/3/html/help.html?content=events_08.html Specifically, the section on Bubbling answers your question. --- In

[flexcoders] better option than repeater?

2009-07-20 Thread postwick
I don't like repeaters. They are too clumsy. The biggest drawback is an inability to access values after the repeater has finish executing. It's not the same as, for example, looping over values and generating static HTML using ColdFusion. I seem to always end up having to navigate up and

[flexcoders] Re: better option than repeater?

2009-07-20 Thread postwick
person={Person(myStaff.currentItem)} / /mx:Repeater HTH Steve --- In flexcoders@yahoogroups.com, postwick paul@ wrote: I don't like repeaters. They are too clumsy. The biggest drawback is an inability to access values after the repeater has finish executing. It's

[flexcoders] Re: better option than repeater?

2009-07-20 Thread postwick
passing in the data objects returned from the remote object call... mx:Repeater id=myStaff dataProvider= {staffArrColl} custom:CheckBoxCom ponent id=checkBoxs person={Person( myStaff.currentI tem)} / /mx:Repeater HTH Steve --- In flexcod...@yahoogro ups.com, postwick paul@ wrote: I

[flexcoders] Re: better option than repeater?

2009-07-20 Thread postwick
that, the possibilities are endless. HTH Steve --- In flexcoders@yahoogroups.com, postwick paul@ wrote: Can you give me a brief example of code that would achieve the part where you say create a component? Keep in mind the number of checkboxes and their labels is not static

[flexcoders] Re: Drag and drop

2009-07-20 Thread postwick
I had the same question regarding drag and drop and this is an excellent answer. I would expect it to be a little more automatic to drop an element at its dragged-to position rather than having to go through this but it's not that complex of a solution. --- In flexcoders@yahoogroups.com,

[flexcoders] ColdFusion service restart not picking up new LCDS destinations

2009-07-18 Thread postwick
I added a couple destinations to the data-management-config.xml file and restarted ColdFusion. My Flex app gave an error that the destination was not found. I restarted and tried again, same thing. Did this a few times and nothing. Then I went in and add a single space to the xml file,

[flexcoders] LCDS data service error in IE (but not in Firefox)

2009-07-17 Thread postwick
I have a destination set up and in Firefox and IE all creates, updates, and fills work fine. Delete works fine in Firefox but when I do a delete in Internet Explorer I get the following error: [FaultEvent fault=[RPC Fault faultString=Item with id '449F8202-2B8F-C91B-D0B2-8B70B3D940D3' not

[flexcoders] Re: look for a actionscript function?

2009-07-16 Thread postwick
Assuming you're doing this in Flex, use a formatter: http://livedocs.adobe.com/flex/3/html/help.html?content=formatters_4.html --- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote: I have a number 0.3563567,I want to convert it to 0.36,which function can do this?I check

[flexcoders] bind one arraycollection to another

2009-07-16 Thread postwick
I have an arraycollection that has two columns. the second column actually stores an object that has properties on it. I want to put those values into a second datagrid. Can I do this using binding? I was able to use a loop to fill the second arraycollection, to which a datagrid is bound,

[flexcoders] Re: bind one arraycollection to another

2009-07-16 Thread postwick
@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of postwick Sent: Thursday, July 16, 2009 5:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] bind one arraycollection to another I have an arraycollection that has two columns. the second column actually stores

[flexcoders] Re: create class on the fly

2009-07-15 Thread postwick
searching, so let me know if this question and answer are closer to what you are trying to accomplish in your project and I can share my simple code (two files with 70 lines of code, no comments). --- In flexcoders@yahoogroups.com, postwick paul@ wrote: I want to store descriptions of classes

[flexcoders] Re: create class on the fly

2009-07-15 Thread postwick
to be returned. But if you don't Flex can handle untyped dynamic objects just fine, and you should use them when the results of a service can't be known at compile time. --- In flexcoders@yahoogroups.com, postwick paul@ wrote: I cannot predict at compile-time what the name (or properties

[flexcoders] Re: create class on the fly

2009-07-14 Thread postwick
If I compile the class as a module, can I then load it in without having to statically reference it in my compiled code? I can predict the package name based on data from my database ie com.something.somethingelse etc. Then I could compile new classes as needed and load them. --- In

[flexcoders] Re: create class on the fly

2009-07-14 Thread postwick
From your blog post... var myClass:Class = getDefinitionByName(com.myDomain.myPackage.SomeClass); Does this mean I don't have to create the class as a .as file and compile it into the SWF, I can just reference it this way? Then I could add a new class to myPackage and tell my app (via db,

[flexcoders] Re: create class on the fly

2009-07-14 Thread postwick
, postwick paul@ wrote: If I compile the class as a module, can I then load it in without having to statically reference it in my compiled code? I can predict the package name based on data from my database ie com.something.somethingelse etc. Then I could compile new classes as needed and load

[flexcoders] Re: create class on the fly

2009-07-14 Thread postwick
file. When ever I want to add new components I just publish a new module and update my database so my apps knows about it. --- In flexcoders@yahoogroups.com, postwick paul@ wrote: From your blog post... var myClass:Class = getDefinitionByName(com.myDomain.myPackage.SomeClass

[flexcoders] Re: Livecycle DS with Flex Questions

2009-07-14 Thread postwick
1 - as far as I know, it doesn't care what app it is. if you're subscribed to that data service, that's all that matters. 2 - yes. I get to go back to the drawing board on about 40% of my app because I just learned how to use the data service...and everything so far is remoteobjects. but

[flexcoders] LCDS without a class for every table?

2009-07-14 Thread postwick
OK, so I was the one looking for a way to do classes at runtime. The bottom line is I want to use LCDS because it's, well, fantastic. However, in my app I cannot know at compile time all the tables (and columns in them) that will need to be accessed. Is there a way to use one single class

[flexcoders] create class on the fly

2009-07-13 Thread postwick
I want to store descriptions of classes in an external file (such as XML) or database, and use them in my Flex application such that I can add, remove, or change the classes in the external file with recompling the Flex application. Is there any way to do this? In a nutshell, is there a way to

[flexcoders] Re: Error: Unknown Property: 'constructor'. when using LCDS

2009-07-12 Thread postwick
I realize this is an old thread I'm digging up, but I am running into the same problem. I did the artists example from : http://www.adobe.com/devnet/coldfusion/articles/data_app.html The grid fills just fine but when I try to edit a cell I get: Error: Unknown Property: 'constructor' I looked

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread postwick
You access the value in a column of a datagrid like this... yourDataGrid.selectedItem[dataColumnNameOfColumn] --- In flexcoders@yahoogroups.com, Craig cra...@... wrote: I GIVE UP!! I have tried everything!!.. I have a dataGrid that binds to an ArrayCollection. I need to change the value of

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread postwick
it in the labelfunction of the datagrid column that I am trying to change? --- In flexcoders@yahoogroups.com, postwick paul@ wrote: Is the datagrid bound to a collection? if so, change the value in the collection. or try... yourDataGrid.selectedItem[dataColumn1

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread postwick
that code below are you suggesting that I use it in the labelfunction of the datagrid column that I am trying to change? --- In flexcoders@yahoogroups.com, postwick paul@ wrote: Is the datagrid bound to a collection? if so, change the value in the collection. or try

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread postwick
it in the labelfunction of the datagrid column that I am trying to change? --- In flexcoders@yahoogroups.com, postwick paul@ wrote: Is the datagrid bound to a collection? if so, change the value in the collection. or try... yourDataGrid.selectedItem[dataColumn1] = yourDataGrid.selectedItem

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread postwick
: cause I was doing it within the custom component (column) itself for the datagrid, which can not hold an Id value, I can put it in the parent component however i'll give that a whack. --- In flexcoders@yahoogroups.com, postwick paul@ wrote: Not sure why you have all

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread postwick
of another column. If I use ...selectedItem... it does not work, unless I am mistaken. --- In flexcoders@yahoogroups.com, postwick paul@ wrote: You access the value in a column of a datagrid like this... yourDataGrid.selectedItem[dataColumnNameOfColumn] --- In flexcoders

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread postwick
DataField to Profit not the value of col2 itself. Can I use: dgOrdExt.getChildAt(i)[Profit].dataField = Profit CS --- In flexcoders@yahoogroups.com, postwick paul@ wrote: You can't use selectedItem because there is no selectedItem. You haven't clicked a row. Try looping through