RE: [flexcoders] change sort arrow position in a datagrid header

2009-10-28 Thread Alex Harui
I think I'd set the sortArrowSkin to an empty object and just draw it myself in 
a custom header renderer.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of gerry81611
Sent: Wednesday, October 28, 2009 3:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] change sort arrow position in a datagrid header



hello,

i need to move the sort arrow from the right side of the header to the left 
side. i'm guessing this is not done through skins but instead through 
overriding the code that does the drawing? can someone please point me in the 
right direction?

thanks,

gerry



RE: [flexcoders] bytearray.readObject doesn't convert my objects back

2009-10-28 Thread Alex Harui
Did you call registerClassAlias or use [RemoteClass] metadata?

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of flexaustin
Sent: Wednesday, October 28, 2009 3:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] bytearray.readObject doesn't convert my objects back



So I am using

var myArray:Array = [someObjectOfTypeObject, someOtherObjectOfTypeObject ];

bytearray.writeObject(myArray);

var blah:Array = bytearray.readObject();

Blah comes back with two Objects but not someObjectOfTypeObject they come back 
with generic "Objects" and no data inside?

Anyone have a clue on this? someObjectOfTypeObject and 
someOtherObjectOfTypeObject are of a special type of Class in my app so
someOtherObjectOfTypeObject:FooClass.

Why doesn't it put them back as the correct type?



RE: [flexcoders] CallLater() inside UpdateDisplayList

2009-10-28 Thread Alex Harui
Something sound wrong.  Remember that renderers are recycled so make sure 
positions are completely derived from the data object.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of asea19
Sent: Wednesday, October 28, 2009 3:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] CallLater() inside UpdateDisplayList



Hi,

Quick question. I optimized an item renderer that was previously using a really 
heavy grid to layout a bunch of labels. Now, I use the move() method in the 
updateDisplayList(). of the renderer to move the labels instead.

It works great, except for some reason when the next page is accessed(multiple 
pages of search results...)the updateDisplayList() doesnt lay the fields out 
properly. I tried calling invalidateDisplayList() again after the measuring, 
but still didn't work. I don't want to do any binding because of performance 
overhead.

The only thing that works is to actually take the move() methods out of the 
updateDisplayList() and put them into another method, and then use CallLater() 
in updateDisplayList() to actually call that method. This works great. I just 
feel like it is kinda sloppy. Is there something I'm missing here?



RE: [flexcoders] Tabbing not working on component with text inputs

2009-10-28 Thread Alex Harui
Does it work in an application?  It did for me.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of dorkie dork from dorktown
Sent: Wednesday, October 28, 2009 9:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tabbing not working on component with text inputs



I have a simple MXML component with a contact form in it. This contact
form has 4 TextInputs, a TextArea and a Submit button. When I place
the cursor in the TextInput and hit tab it doesn't move to the next
tab input. If I press tab repeatedly it doesn't cycle back around like
I'd expect it to. Is there something I am doing wrong? This is a Flex
4 project. Here is the component code:


http://ns.adobe.com/mxml/2009";
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" width="100%">





















[flexcoders] Tabbing not working on component with text inputs

2009-10-28 Thread dorkie dork from dorktown
I have a simple MXML component with a contact form in it. This contact
form has 4 TextInputs, a TextArea and a Submit button. When I place
the cursor in the TextInput and hit tab it doesn't move to the next
tab input. If I press tab repeatedly it doesn't cycle back around like
I'd expect it to. Is there something I am doing wrong? This is a Flex
4 project. Here is the component code:


http://ns.adobe.com/mxml/2009";
 xmlns:s="library://ns.adobe.com/flex/spark"
 xmlns:mx="library://ns.adobe.com/flex/halo" width="100%">




















[flexcoders] Re: Disable sort when values in grid change (on propertyChanged)

2009-10-28 Thread tntomek
So my final solution to this problem is to copy ArrayCollection and 
ListCollectionView and rebrand those as my own and update the private 
handlePropertyChangeEvents method. Fortunately all interfaces seem to be 
consistently implemented and my ADG behaves likes before. Added this: 
enablePostSortReorder

private function handlePropertyChangeEvents(events:Array):void
{
   var eventItems:Array = events;

   if (sort && enablePostSortReorder || filterFunction != null)



--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> You could implement some sort of a transaction system where changes are 
> queued to temporary places until committed.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of tntomek
> Sent: Friday, October 23, 2009 12:30 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Disable sort when values in grid change (on 
> propertyChanged)
> 
> 
> 
> Unfortunately scrolling is pretty important :) so is my only option to reset 
> dataProvider with new sorted collection?
> 
> --- In flexcoders@yahoogroups.com, Alex 
> Harui  wrote:
> >
> > Try blocking the collectionEvent. It will have kind = 
> > CollectionEventKind.REFRESH. Note that any scrolling will be incorrect 
> > since it will use the new sort order.
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.
> > Blog: http://blogs.adobe.com/aharui
> >
> > From: flexcoders@yahoogroups.com 
> > [mailto:flexcoders@yahoogroups.com] On 
> > Behalf Of tntomek
> > Sent: Thursday, October 22, 2009 5:46 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Disable sort when values in grid change (on 
> > propertyChanged)
> >
> >
> >
> > I don't want my grid reordering itself on every propertyChanged event that 
> > would cause the sort order to change, can I prevent this somehow?
> >
> > I understand this is default behavior but it's not an option for our 
> > customer, and it is really annoying when the 1000 row grid is re-ordered 
> > every time user changes any values, not to mention slow.
> >
> > I tried returning 0 from sortComparer with no luck, grid still seems to 
> > reorder itself according to original data provider and not the sorted view 
> > when sort() was set.
> >
> > Specifically using AdvancedDataGrid and I'm starting to run out of ideas. 
> > Do I reset the dataprovider every time I decide to change my sort? I'm 
> > already intercepting headerRelease and setting sort explicitly as well as 
> > calling sort from controls outside the grid. How would I get the currently 
> > sorted list from my ArrayCollection, does the baseclass CollectionView have 
> > a current sorted view? Is there really no way to take a snapshot or current 
> > view and set it to current? Is there a way to tell sort() to physically 
> > move the rows instead of maintaining a view?
> >
> > What I found online:
> > http://www.actionscript.org/forums/showthread.php3?t=199554
> > Not an option since grid is sortable, I just want to suppress the updates 
> > AFTER initial sort
> >
>




Re: [flexcoders] SharedObject problem/bug? Cannot store a subclass of ByteArray.

2009-10-28 Thread Muzak
Add a RemoteClass metadata tag to the custom class:

Example at the bottom of the article
http://cookbooks.adobe.com/post_How_to_keep_the_type_of_your_objects_when_serializ-8323.html


- Original Message - 
From: "Geoffrey" 
To: 
Sent: Wednesday, October 28, 2009 12:45 PM
Subject: [flexcoders] SharedObject problem/bug? Cannot store a subclass of 
ByteArray.


> Hi,
>
> I have a subclass of ByteArray (let's call it ByteArrayPlus), which I want to 
> write to a SharedObject. I can store it fine, but 
> when I read it back, it says it's of type ByteArray, not ByteArrayPlus. Does 
> anyone have an idea what may be wrong? Has anyone 
> gotten this to work?
>
> FYI, I am already using registerClassAlias(). And it works fine with a custom 
> class, and with a custom class extending another 
> custom class. I also tried implementing IExternalizable, but that did not 
> help. I also tried [RemoteClass] and 
> [RemoteClass(alias="ByteArrayPlus")].
>
> Also, ByteArrayPlus is really simple: I only added a String (name) to it.
>
> This is my first post to FlexCoders.
>
> Any help appreciated.
>
> --Geoff
> 



Re: [flexcoders] outerDocument vs parentDocument

2009-10-28 Thread Keith H
Thanks!

-- Keith H --
www.keith-hair.net

reyna...@gmail.com wrote:
>  
>
> Outerdocument is used in itemRenderers, parentDocument just relates 
> any component to its parent.
>
> -Jake
>
> -Original Message-
> Date: Wednesday, October 28, 2009 4:22:47 pm
> To: flexcoders@yahoogroups.com 
> From: "Keith H" mailto:khair%40nc.rr.com>>
> Subject: [flexcoders] outerDocument vs parentDocument
>
> What's the difference between "outerDocument" and "parentDocument"?
>
> -- Keith H --
> www.keith-hair.net
>
> 




[flexcoders] change sort arrow position in a datagrid header

2009-10-28 Thread gerry81611
hello,

i need to move the sort arrow from the right side of the header to the left 
side.  i'm guessing this is not done through skins but instead through 
overriding the code that does the drawing?  can someone please point me in the 
right direction?


thanks,


gerry



[flexcoders] bytearray.readObject doesn't convert my objects back

2009-10-28 Thread flexaustin
So I am using 

var myArray:Array = [someObjectOfTypeObject, someOtherObjectOfTypeObject ];

bytearray.writeObject(myArray);

var blah:Array = bytearray.readObject();

Blah comes back with two Objects but not someObjectOfTypeObject they come back 
with generic "Objects" and no data inside?

Anyone have a clue on this? someObjectOfTypeObject and 
someOtherObjectOfTypeObject are of a special type of Class in my app so
someOtherObjectOfTypeObject:FooClass.

Why doesn't it put them back as the correct type?



[flexcoders] Re: SharedObject problem/bug? Cannot store a subclass of ByteArray.

2009-10-28 Thread Geoffrey


I forgot to mention what versions I am using: Flex SDK 3.4 (via Flex Builder 
3), targeting Flash Player 10.

--- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
>
> Hi,
> 
> I have a subclass of ByteArray (let's call it ByteArrayPlus), which I want to 
> write to a SharedObject. I can store it fine, but when I read it back, it 
> says it's of type ByteArray, not ByteArrayPlus. Does anyone have an idea what 
> may be wrong? Has anyone gotten this to work?
> 
> FYI, I am already using registerClassAlias(). And it works fine with a custom 
> class, and with a custom class extending another custom class. I also tried 
> implementing IExternalizable, but that did not help. I also tried 
> [RemoteClass] and [RemoteClass(alias="ByteArrayPlus")].
> 
> Also, ByteArrayPlus is really simple: I only added a String (name) to it.
> 
> This is my first post to FlexCoders. 
> 
> Any help appreciated.
> 
> --Geoff
>




[flexcoders] CallLater() inside UpdateDisplayList

2009-10-28 Thread asea19
Hi,

Quick question.  I optimized an item renderer that was previously using a 
really heavy grid to layout a bunch of labels.  Now, I use the move() method in 
the updateDisplayList(). of the renderer to move the labels instead.  

It works great, except for some reason when the next page is accessed(multiple 
pages of search results...)the updateDisplayList() doesnt lay the fields out 
properly.  I tried calling invalidateDisplayList() again after the measuring, 
but still didn't work.  I don't want to do any binding because of performance 
overhead.  

The only thing that works is to actually take the move() methods out of the 
updateDisplayList() and put them into another method, and then use CallLater() 
in updateDisplayList() to actually call that method.  This works great.  I just 
feel like it is kinda sloppy.  Is there something I'm missing here?






RE: [flexcoders] Datagrid measureHeightOfItems wrong - DG harbors items that shouldn't be there

2009-10-28 Thread Alex Harui
Renderers are recycled and kept on the display list with visible=false.  I 
don't know of any bugs related to that.  Older versions of flex had some bugs 
around measureHeightOfItems.  There might still be bugs but make sure you're on 
the latest.

Most commonly, custom renderers don't handle recycling and do not measure 
correctly, throwing off the result of measureHeightOfItems.

If you have a simple test case, post it or file a bug.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of atomilux
Sent: Tuesday, October 27, 2009 12:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid measureHeightOfItems wrong - DG harbors items 
that shouldn't be there



Sorry for the gravity of the accusation - I could be entirely wrong and 
hopefully this post will flesh out the truth. I'm not sure if what I've found 
is a clue in the answer to getting this measurement accurately or simply normal 
and needed functionality of the DataGrid I just don't understand.

Scenario - 2 DataGrids that have drag/drop turned on where users move items 
between the two at random. Items are currently identical in height in both 
DataGrids.

I've tried DataGrid.measureHeightOfItems() - relatively accurate but returned 
value is random and quirky in relation to what's visually there.

I've tried various functions people have kindly written and posted using 
variations on the measureHeightOfItems() theme, thank you all.

I've learned about the viewMetrics object that should be taken into account. In 
my case the bottom and top values were both 1 - wasn't the missing item, but 
rolled it in the calculations for future use.

None of those have been giving me accurate math for dynamic height assignment 
to an ever changing DataGrid.dataProvider.

What I've resorted through is picking apart the DataGrid object and tracing out 
what children actually are there and have found something very very odd.

I dug into the Datagrid like so:
DataGrid.getChildAt(2);
gave me: categoryContainer.questionList.ListBaseContentHolderXXX

Inside there I find my Label objects that contain my text and thus a visual 
representation of the dataProvider (mostly)? Sure seems like it.

When moving Items to/from the DataGrid and reordering I found something 
peculiar - the old items were plucked (correctly) off the dataProvider, but 
were still in the DataGrid with a visibility of false and an includeInLayout of 
true and register's a height measurement.

If my DataGrid.dataProvider.length were say 3 - I should have 3 items in the 
DataGrid.
However, I'd find an extra one or two max that weren't supposed to be there - 
thus 4 or 5.

A few times I noticed a random bug of an empty datagrid item randomly show up 
as a byproduct of drag/drops in and out. I'm guessing it has something to do 
with this. I'm not handling the data swaps from DataGrid to DataGrid - flex's 
built in drag/drop class is - so I'm pretty sure I don't have AScript passing a 
random empty exception in.

Sure seems like this is the culprit, but I could be wrong.

I tried turning off the includeInLayout of these freeloaders - to no avail.

What gave me an initial (but later fleeting) score was to call removeChild() on 
them.

I have two instances of these containers of which I drag items to/from and 
after a few drag/drops the math falls apart again.



[flexcoders] Save an Array to a database or an Object SQLite

2009-10-28 Thread flexaustin
What would be the process to save an array to a database? Can it be converted 
to a bytearray or do I have use a blob?

J



RE: [flexcoders] outerDocument vs parentDocument

2009-10-28 Thread reyna...@gmail.com
Outerdocument is used in itemRenderers, parentDocument just relates any 
component to its parent.

-Jake

-Original Message-
Date: Wednesday, October 28, 2009 4:22:47 pm
To: flexcoders@yahoogroups.com
From: "Keith H" 
Subject: [flexcoders] outerDocument vs parentDocument

What's the difference between "outerDocument" and "parentDocument"?


-- Keith H --
www.keith-hair.net







[flexcoders] outerDocument vs parentDocument

2009-10-28 Thread Keith H
What's the difference between "outerDocument" and "parentDocument"?


-- Keith H --
www.keith-hair.net





Re: [flexcoders] AdvancedDataGrid Grouping: itemRenderer for parent

2009-10-28 Thread Tom McNeer
What do you actually intend to render? The ADG itself has attributes for
GroupItemRenderer, GroupIconFunction and GroupLabelFunction. One of those
ought to handle what you need.

On Wed, Oct 28, 2009 at 3:54 PM, powers  wrote:

>
>
>
> I have an advanced data grid with a dataprovider with a grouped collection.
>
> The default of the ADG is to display a folder icon, along with whatever
> text
> is contained in the datafield, as the parent element. All the children are
> displayed with the paper icon and the text that is displayed in the
> datafield. I want to display a custom component as the parent AND another
> custom component as the child. Setting the itemRenderer property on the
> column will solve my problem for displaying a custom component for the
> child. How can I use a itemRenderer for the parent?
> --
> View this message in context:
> http://www.nabble.com/AdvancedDataGrid-Grouping%3A-itemRenderer-for-parent-tp26101136p26101136.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>  
>



-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Re: Scalability Blazeds | 3000 messages | 1 Min

2009-10-28 Thread ilikeflex
It is 3000 messages per minute and not seconds.

--- In flexcoders@yahoogroups.com, "ilikeflex"  wrote:
>
> Corrected the title.
> 
> --- In flexcoders@yahoogroups.com, "ilikeflex"  wrote:
> >
> > Hi
> >  
> > I am using Blazeds-3.2.0.3978 amd Weblogic 10.0.0.1. I have the session 
> > timeout for 5 minutes.
> >  
> > Below is channel definition i am using
> >  > class="mx.messaging.channels.AMFChannel">
> >  
> >  > url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling";
> >  class="flex.messaging.endpoints.AMFEndpoint"/>
> >  
> > 
> > true
> > 1
> > 
> > 
> > 
> > 
> > 
> > I have declared destination as
> > 
> > 
> > 
> > 
> > 
> >  12
> > 
> > 
> > 
> > 
> > 
> > Generally 10-15 users uses the system simultaneously. The server side code 
> > sends approx 3000 messages in one second on the destination. Everthing 
> > works fine but some time the client misses few messages. It happens 
> > sometimes. It is difficult to reproduce also. But any client cannot afford 
> > to loose message. I can send you the conference files for your 
> > reference.Any blaze expert can provide any pointer???
> > 
> > Thanks
> > ilikeflex
> >
>




[flexcoders] Re: Scalability Blazeds | 3000 messages | 1 Min

2009-10-28 Thread ilikeflex
Corrected the title.

--- In flexcoders@yahoogroups.com, "ilikeflex"  wrote:
>
> Hi
>  
> I am using Blazeds-3.2.0.3978 amd Weblogic 10.0.0.1. I have the session 
> timeout for 5 minutes.
>  
> Below is channel definition i am using
>  class="mx.messaging.channels.AMFChannel">
>  
>  url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling";
>  class="flex.messaging.endpoints.AMFEndpoint"/>
>  
> 
> true
> 1
> 
> 
> 
> 
> 
> I have declared destination as
> 
> 
> 
> 
> 
>  12
> 
> 
> 
> 
> 
> Generally 10-15 users uses the system simultaneously. The server side code 
> sends approx 3000 messages in one second on the destination. Everthing works 
> fine but some time the client misses few messages. It happens sometimes. It 
> is difficult to reproduce also. But any client cannot afford to loose 
> message. I can send you the conference files for your reference.Any blaze 
> expert can provide any pointer???
> 
> Thanks
> ilikeflex
>




[flexcoders] Re: BlazedS | message-time-to-live does not work appropiately

2009-10-28 Thread ilikeflex
It is working fine.I forget to add 

msg.setTimestamp(System.currentTimeMillis());.

thanks
ilikeflex

--- In flexcoders@yahoogroups.com, "Mete Atamel"  wrote:
>
> Note that message-time-to-live is in milliseconds. You're not receiving any 
> messages? What if you try longer time-to-live values? If you're sure it's not 
> working, please open a bug in BlazeDS bug base.
> 
> Thanks,
> Mete
> 
> 
> --- In flexcoders@yahoogroups.com, "ilikeflex"  wrote:
> >
> > Hi 
> > 
> > When i use message-time-to-live i am not able to recieve the messages.
> > I am using the message-time-to-live in messages-config.xml file. The 
> > problem i am facing is that when i use 
> > message-time-to-live  i do not get the messages. I am sure there are lot of 
> > messages are being generated between any 10 min from my java server. Do i 
> > need to do any other settings to make message-time-to-live to work.If i 
> > remove this tag i get the messages.
> > 
> > 
> > 
> > 
> > 
> > 
> > 60
> > 
> > 
> > 
> > 
> > I have the following channel def in services-config.xml file.
> > 
> > 
> > 
> >  > url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf"; 
> > class="flex.messaging.endpoints.AMFEndpoint"/>
> > 
> > false
> >  
> > true 
> >  
> > 
> > 
> > 
> >  > class="mx.messaging.channels.SecureAMFChannel">
> >  > url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure";
> >  class="flex.messaging.endpoints.SecureAMFEndpoint"/>
> > 
> > false
> > 
> > 
> > 
> >  > class="mx.messaging.channels.AMFChannel">
> >  > url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling";
> >  class="flex.messaging.endpoints.AMFEndpoint"/>
> > 
> > true
> > 1
> > 
> > 
> > 
> > Thanks
> > ilikeflex
> >
>




[flexcoders] Re: Using Flex and Vb.Net

2009-10-28 Thread Tracy
The most common architecture is to do as you say and use Flex for the UI and 
.net for the logic/integration tier.  You can alss use asp.net to host, deliver 
and control swfs, and you can even host a Flex app in a browser control.

You develop Flex apps by writing mxml and as code and compiling it into a SWF, 
and you don't do any of that with dot.net.  I think you know that but needed to 
be sure.

Certainly the simplest integration (on both ends) is to use HTTPService.  You 
can get a "hello world" level example working in the time you can download an 
install WebOrb.  This puts you in full control of the xml.

WebService, because it wraps data in SOAP to facilitate third party usage, is a 
bit more complicated to work with.  Use WebService if there is any chance you 
will need to make the buisiness logic available to an anonymous third party.

Use WebOrb or someting like it if your business tier object structure is also 
suitable for your client side object structure, or if you can and want to make 
it that way.  It will be more complicated initially, but could be a good long 
term choice.  It is also probably the fastest transport protocol, but data 
transport is often not the bottleneck in a Fles app.

Tracy

--- In flexcoders@yahoogroups.com, "shot2flow"  wrote:
>
> Tracy,
> 
> What do yo mean by several ways and "you don't really develop flex apps with 
> vb.net"
> 
> My company develop web apps using Asp.net/vb.net. I just joined and i use 
> flex and coldfusion, but since i cant introduce CF. I intend to still 
> leverage flex with vb.net.
> 
> For instance.. i need to work on an asp.net that can generate an excel data 
> from db using vb.net.
> 
> I would like to use flex for the UI and vb.net for the logic.
> 
> I have a basic knowlegde of vb.net so i am sure to be fine.
> 
> Any tip or help?
> 
> 
> Regards.
> 
> --- In flexcoders@yahoogroups.com, "Tracy"  wrote:
> >
> > Yes, heavily.
> > 
> > Now, you do not really "develop flex apps with vb.net".  There are several 
> > ways to use the two environments together, however.
> > 
> > What do you want to do?
> > 
> > Tracy Spratt
> > 
> > --- In flexcoders@yahoogroups.com, "shot2flow"  wrote:
> > >
> > > Has anyone worked with Flex and VB.Net. Please i am interested in the 
> > > two. I presently use flex and coldfusion, but my company used vb.net so i 
> > > am wondering how to develop flex apps with vb.net.
> > > 
> > > Thanks
> > >
> >
>




[flexcoders] AdvancedDataGrid Grouping: itemRenderer for parent

2009-10-28 Thread powers

I have an advanced data grid with a dataprovider with a grouped collection. 
The default of the ADG is to display a folder icon, along with whatever text
is contained in the datafield, as the parent element.  All the children are
displayed with the paper icon and the text that is displayed in the
datafield.  I want to display a custom component as the parent AND another
custom component as the child.  Setting the itemRenderer property on the
column will solve my problem for displaying a custom component for the
child.  How can I use a itemRenderer for the parent?
-- 
View this message in context: 
http://www.nabble.com/AdvancedDataGrid-Grouping%3A-itemRenderer-for-parent-tp26101136p26101136.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Scalability Blazeds | 3000 messages | 1 Sec

2009-10-28 Thread ilikeflex
Hi
 
I am using Blazeds-3.2.0.3978 amd Weblogic 10.0.0.1. I have the session timeout 
for 5 minutes.
 
Below is channel definition i am using

 
http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling";
 class="flex.messaging.endpoints.AMFEndpoint"/>
 

true
1





I have declared destination as





 12





Generally 10-15 users uses the system simultaneously. The server side code 
sends approx 3000 messages in one second on the destination. Everthing works 
fine but some time the client misses few messages. It happens sometimes. It is 
difficult to reproduce also. But any client cannot afford to loose message. I 
can send you the conference files for your reference.Any blaze expert can 
provide any pointer???

Thanks
ilikeflex



[flexcoders] There Must Be A Way!

2009-10-28 Thread cjsteury2
I am trying to figure out how to do a 'per-item' fill for OHLC Style Chart for 
color of stroke for bar to be green when Close is greater than Open and Red for 
vice versa.  The FillFunction is not support for OHLC Charts and I have tried 
to create my own but it displays only the color for the last bar for all of 
them, not per item...

 private function fillPlot(): void   
{
 for (var i:int=0;i

Re: [flexcoders] add a url/link to the datagrid datatip?

2009-10-28 Thread coder3

this will the the datagrid item as a link.

what i need is to have a link in the datatip/tooltip




valdhor-3 wrote:
> 
> Here is one way...
> 
> 
> http://www.adobe.com/2006/mxml";
> xmlns:local="*" >
>  
>  
>  
>   paddingTop="0" paddingBottom="0" verticalAlign="middle"
> itemClick="cellClicked(event)">
>  
>   textAlign="left" width="180" itemRenderer="LinkRenderer"/>
>   width="60" />
>  
>  
>  
> 
> 
> LinkRenderer.as:
> package
> {
>  import mx.controls.*;
>  import mx.controls.dataGridClasses.DataGridListData;
> 
>  public class LinkRenderer extends LinkButton
>  {
>  private var fieldValue:String;
> 
>  public function LinkRenderer()
>  {
>  super();
>  }
> 
>  override public function set data(value:Object):void
>  {
>  if(value != null)
>  {
>  super.data = value;
>  fieldValue =
> value[DataGridListData(listData).dataField];
> 
>  label = fieldValue;
>  enabled = true;
>  useHandCursor = true;
>  setStyle("color", "#FF");
>  setStyle("textDecoration", "underline");
>  setStyle("textRollOverColor:", "#CC");
>  }
>  }
>  }
> }
> 
> 
> 
> HTH
> 
> 
> 
> Steve
> 
> --- In flexcoders@yahoogroups.com, coder3  wrote:
>>
>>
>> Hi All,
>>
>> I need to show a list of information for the items in the
>> datagrid/advancedDatagrid.
>>
>> the output text is ok but it contains a url that needs to be displayed
> as a
>> htmlLink so that when user clicks on it, the browser can goto that
> url.
>>
>> for example it's like this:
>>
>> "
>> URL: www.nabble.com
>> ..."
>>
>> Is there a way to do it?
>>
>> thanks
>>
>> C
>>
>> --
>> View this message in context:
> http://www.nabble.com/add-a-url-link-to-the-datagrid-datatip--tp26065104\
> p26065104.html
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/add-a-url-link-to-the-datagrid-datatip--tp26065104p26100491.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: Associative Array and Custom Renderer for TileList

2009-10-28 Thread valdhor
Check out Item Renderers on Alex Harui's Blog - 
http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html

--- In flexcoders@yahoogroups.com, "anuppc"  wrote:
>
> Hi,
> 
> I have an Associative Array as the dataprovider of a TileList.
> The associative array has this kind of data:
> 
> var foodPrices:Object = new Object();
> foodPrices["meat"] = "5.00";
> foodPrices["fish"] = "7.00";
> foodPrices["juice"] = "1.00";
> 
> How do i create a custom renderer for the TileList which displays the Keys : 
> meat, fish, juice tc... with different color codes
> 
> If price is > 4.00 then display the item in Red
> if price is < 4.00 then display the item in Black
> 
> Any suggestions??
> Thanks
>




[flexcoders] Re: Flex Soap Version Mismatch

2009-10-28 Thread valdhor
I would love to know too but after running around naked and sacrificing some 
chickens I could not get it to work.

All I know is that you will actually save time by doing the hand coding. Maybe 
some day we'll have an answer but that day is not today.


HTH.




Steve

--- In flexcoders@yahoogroups.com, "Joshua"  wrote:
>
> Thanks for the advice Steve.  So to do that I'm gonna need to 'hand-code' all 
> the calls from Flex to php and then do the same with php, creating all the 
> methods by hand from the wsdl?  Isn't there a simpler way to do it using the 
> Flex wsdl wizard and a php proxy that just passes through the soap request?  
> And either way I do it I still want to know why the way I'm attempting to do 
> it won't work.  Why does going through php change my soap envelop and create 
> a mismatch I guess is the big question??
>  
> 
> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> >
> > I think you may be over thinking this.
> > 
> > I have the same situation as you - a local PHP server and a remote Web 
> > Service.
> > 
> > I tried for a long time to get it working by proxying through PHP like what 
> > you are trying. I could never get it to work.
> > 
> > Instead, I created a SOAP Client in PHP that could talk to the Web Service. 
> > Once this was working I used WebORB to create a service to talk to Flex. 
> > Then I merged the code. Now I have Flex sending and receiving objects via 
> > WebORB and PHP exchanging data via SOAP. The best of both worlds.
> > 
> > 
> > HTH
> > 
> > 
> > 
> > 
> > Steve
> > 
> > --- In flexcoders@yahoogroups.com, "Joshua"  wrote:
> > >
> > > I have a problem with soap and flex 3.  I have created a webservice 
> > > through the import webservice menu in Flex Builder.  If I use the service 
> > > as is I get a security error because the crossdomain policy on the remote 
> > > server doesn't comply.  So, instead I am using a php proxy to relay the 
> > > webservice through my server and out to the webservice back to the server 
> > > back to Flex.  When I try to do this I get a SOAP mismatch error coming 
> > > from the below code.
> > > 
> > > else if (envNS.uri != SOAPConstants.SOAP_ENVELOPE_URI)
> > > {
> > > throw new Error("SOAP Response Version Mismatch");
> > > }
> > > 
> > > I went back in and checked the value of envNS.uri and 
> > > SOAPConstants.SOAP_ENVELOPE_URI in both the previously described 
> > > situations (php proxy and straight security riddled call).  In the 
> > > security riddled call the two variables match.  In the proxy call I get 
> > > back differing values of envNS.uri and SOAPConstants.SOAP_ENVELOPE_URI.
> > > 
> > > Can somebody tell me why the variables are not matching when put through 
> > > the php proxy.  The php is simple, just curl, so I've pasted it below.  
> > > 
> > > ///START PHP SNIPPET
> > > 
> > > $url = $_GET['url'];
> > > $headers = $_GET['headers'];
> > > $mimeType = $_GET['mimeType'];
> > > 
> > > //Start the Curl session
> > > $session = curl_init();
> > > 
> > > // Don't return HTTP headers. Do return the contents of the call
> > > curl_setopt($session, CURLOPT_URL, $url);
> > > curl_setopt($session, CURLOPT_HEADER, ($headers == "true") ? true : 
> > > false);
> > > curl_setopt($session, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
> > > curl_setopt($session, CURLOPT_FOLLOWLOCATION, 1);
> > > curl_setopt($session, CURLOPT_RETURNTRANSFER, 1);
> > > 
> > > // Make the call
> > > $response = curl_exec($session);
> > > 
> > > if ($mimeType != "")
> > > {
> > > // The web service returns XML. Set the Content-Type appropriately
> > > header("Content-Type: ".$mimeType);
> > > }
> > > 
> > > echo $response;
> > > 
> > > curl_close($session);
> > > 
> > > //END PHP SNIPPET
> > > 
> > > Any help would be great.  Thanks,
> > > 
> > > Josh
> > >
> >
>




[flexcoders] Re: States: SetStyle not returning to base state

2009-10-28 Thread turbo_vb

As a work-around, you can always just create another state that
explicitely sets the styleName back to the original.

-TH

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> Don't quote me on this, but that rings a bell. I do believe that is in
the documentation somewhere.
>
> Your best bet may be to listen for the change event and then set the
style in the event handler.
>
> --- In flexcoders@yahoogroups.com, "Tracy" tracy@ wrote:
> >
> > I have component that functions as a button. It has its own
styleName (menuButton) specified. It has a subcomponent that is a label
with its own styleName (menuButtonLabel) specified.
> >
> > On rollOver, I set the button to a selected State, using SetStyle to
set the label style:
> > 
> > 
> >
> > This correctly sets the label's style per the
menuButtonLabelSelected css values.
> >
> > However, when I return the button to its base state (currentState =
"";), The label styleName does not get reset to it base menuButtonLabel
style, but instead takes on the parent menuButton style.
> >
> > Any ideas what I am doing wrong, or suggestions to try? Is my theory
correct?
> >
> > Tracy Spratt
> >
>





re: [flexcoders] Re: Using Flex and Vb.Net

2009-10-28 Thread Wally Kolcz
Right now I am using WebORB.NET and it does all the .NET for me well. It is 
awesome.

I am a CF developer, by trade, but this allows me to have a .NET back end and 
be able to modify as I need.


From: "turbo_vb" 
Sent: Wednesday, October 28, 2009 11:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Using Flex and Vb.Net 

You might want to check out WebOrb

-TH

 --- In flexcoders@yahoogroups.com, "shot2flow"  wrote:
>
> Has anyone worked with Flex and VB.Net. Please i am interested in the two. I 
> presently use flex and coldfusion, but my company used vb.net so i am 
> wondering how to develop flex apps with vb.net.
> 
> Thanks
>





[flexcoders] Re: Using Flex and Vb.Net

2009-10-28 Thread turbo_vb

You might want to check out WebOrb


-TH

  --- In flexcoders@yahoogroups.com, "shot2flow"  wrote:
>
> Has anyone worked with Flex and VB.Net. Please i am interested in the
two. I presently use flex and coldfusion, but my company used vb.net so
i am wondering how to develop flex apps with vb.net.
>
> Thanks
>




[flexcoders] Comparison between Adobe Flex's Server Side Languages/Technologies

2009-10-28 Thread Paulo Cassiano
Do you know some comparison between Adobe Flex's Server Side Languages/
Technologies, approaching resources, capabilities, limitations and so
on?



  

[flexcoders] SharedObject problem/bug? Cannot store a subclass of ByteArray.

2009-10-28 Thread Geoffrey
Hi,

I have a subclass of ByteArray (let's call it ByteArrayPlus), which I want to 
write to a SharedObject. I can store it fine, but when I read it back, it says 
it's of type ByteArray, not ByteArrayPlus. Does anyone have an idea what may be 
wrong? Has anyone gotten this to work?

FYI, I am already using registerClassAlias(). And it works fine with a custom 
class, and with a custom class extending another custom class. I also tried 
implementing IExternalizable, but that did not help. I also tried [RemoteClass] 
and [RemoteClass(alias="ByteArrayPlus")].

Also, ByteArrayPlus is really simple: I only added a String (name) to it.

This is my first post to FlexCoders. 

Any help appreciated.

--Geoff



RE: [flexcoders] Keep an object in flash player memory despit swf unloading?

2009-10-28 Thread Battershall, Jeff
What problem are you trying to solve?  In order to save state you're going to 
need some kind of persistent scope.  If Shared Object can't be used, something 
else needs to be a repository for your state information.

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Flap Flap
Sent: Wednesday, October 28, 2009 12:21 PM
To: FlexCoders
Subject: [flexcoders] Keep an object in flash player memory despit swf 
unloading?



Hi all,

Is there a way to keep an actionscript object in Flash Player memory even when 
the swf that set up this object is unloaded.
And no, SharedObject is not an option :)

I know is nearly impossible but I also know that I don't know everything :D

Benoît Milgram / Flapflap
http://www.kilooctet.net

I'm also a music mashup / bootlegs producer :
http://www.djgaston.net






[flexcoders] How to find and open node in HierarchicalCollectionView?

2009-10-28 Thread rumblestilzchen
How can i find a desired node and open it? my ADG data looks like this:

- Node 1
-- Node 1.1
- Node 2
-- Node 2-1

How can i find Node 2 by caption and open only this node with all subnodes? i 
thought there's something like HierarchicalCollectionView.nodes where i can 
loop through. any help?

regards 



[flexcoders] Re: Using Flex and Vb.Net

2009-10-28 Thread shot2flow
Tracy,

What do yo mean by several ways and "you don't really develop flex apps with 
vb.net"

My company develop web apps using Asp.net/vb.net. I just joined and i use flex 
and coldfusion, but since i cant introduce CF. I intend to still leverage flex 
with vb.net.

For instance.. i need to work on an asp.net that can generate an excel data 
from db using vb.net.

I would like to use flex for the UI and vb.net for the logic.

I have a basic knowlegde of vb.net so i am sure to be fine.

Any tip or help?


Regards.

--- In flexcoders@yahoogroups.com, "Tracy"  wrote:
>
> Yes, heavily.
> 
> Now, you do not really "develop flex apps with vb.net".  There are several 
> ways to use the two environments together, however.
> 
> What do you want to do?
> 
> Tracy Spratt
> 
> --- In flexcoders@yahoogroups.com, "shot2flow"  wrote:
> >
> > Has anyone worked with Flex and VB.Net. Please i am interested in the two. 
> > I presently use flex and coldfusion, but my company used vb.net so i am 
> > wondering how to develop flex apps with vb.net.
> > 
> > Thanks
> >
>




[flexcoders] Keep an object in flash player memory despit swf unloading?

2009-10-28 Thread Flap Flap
Hi all,

Is there a way to keep an actionscript object in Flash Player memory even
when the swf that set up this object is unloaded.
And no, SharedObject is not an option :)

I know is nearly impossible but I also know that I don't know everything :D

Benoît Milgram / Flapflap
http://www.kilooctet.net

I'm also a music mashup / bootlegs producer :
http://www.djgaston.net


[flexcoders] Re: Using Flex and Vb.Net

2009-10-28 Thread shot2flow

Cool Angelo,

I really need to get goin cus my company uses ASP.Net/VB.Net, but since i use 
(and love) flex i want to introduce the beauty of flex apps while leverage 
VB.Net as i dare not suggest Coldfusion.

Can you please send me like an "hello world" example?

Thanks.

With regards.

Tola
--- In flexcoders@yahoogroups.com, Angelo Anolin  wrote:
>
> You can use Flex for the UI (front-end) and the server side processing using 
> VB.Net. Your VB.Net comes to the picture as web/http services.
> 
> Although I only began doing the same a few months back, I must say that it's 
> darn pretty good rather than creating a web app using static HTML/ASP.Net 
> only.
> 
> Angelo
> 
> 
> 
> 
> 
> 
> 
> From: shot2flow 
> To: flexcoders@yahoogroups.com
> Sent: Wednesday, 28 October, 2009 0:26:38
> Subject: [flexcoders] Using Flex and Vb.Net
> 
>   
> Has anyone worked with Flex and VB.Net. Please i am interested in the two. I 
> presently use flex and coldfusion, but my company used vb.net so i am 
> wondering how to develop flex apps with vb.net.
> 
> Thanks
>




RE: [flexcoders] Where did Livedocs go?

2009-10-28 Thread Gregor Kiddie
It came back for me earlier this afternoon, I reckon it had something to
do with me being logged into a different Adobe account (though I can't
replicate it)

 

Nice site though! Haven't seen that one before!

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tom Chiverton
Sent: 28 October 2009 15:13
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Where did Livedocs go?

 

  

On Wednesday 28 Oct 2009, Gregor Kiddie wrote:
> The link for them isn't working and returning a 404...

Eep,
http://downforeveryoneorjustme.com/livedocs.adobe.com/flex/3/langref/


agrees !






Re: [flexcoders] Where did Livedocs go?

2009-10-28 Thread Tom Chiverton
On Wednesday 28 Oct 2009, Gregor Kiddie wrote:
> The link for them isn't working and returning a 404...

Eep, http://downforeveryoneorjustme.com/livedocs.adobe.com/flex/3/langref/ 
agrees !


-- 
Helping to administratively engineer frictionless B2C real-time e-business as 
part of the IT team of the year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

[flexcoders] Re: Adobe-like logo maker

2009-10-28 Thread breizo


@ Wally 
Great, this is exactly what I was looking for, thanks!

@ Erique
Thanks. If you right click, you have access to the source code and can modify 
it to save the logo.

@ Gregor,
I did not know this one and it is very useful too, since it seems to fit the 
different sizes needed to deploy an Air app. 
Thanks for the link!

Breizo

--- In flexcoders@yahoogroups.com, "Wally Kolcz"  wrote:
>
> I thought Degrafa had a logo maker like that. 
> http://www.degrafa.org/source/CS4IconPreviewer/CS4IconPreviewer.html
> 
> 
> From: thomas parquier 
> Sent: Tuesday, October 27, 2009 1:38 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Adobe-like logo maker 
> 
> Have a look at riaforge.org
> thomas parquier
> ---
> http://www.web-attitude.fr/
> msn : thomas.parqu...@...
> 
> softphone : sip:webattit...@...
> téléphone portable : +33601 822 056
> 
> 2009/10/27 breizo 
> 
> Can anybody point me to the Flex example that creates and customizes these 
> nice Fx, Fl, Ai, PS... logos that Adobe has?
> 
> I played with the application a while back, but I can't find it anymore.
> 
> Thanks!
> 
> Breizo
>




RE: [flexcoders] Re: Where did Livedocs go?

2009-10-28 Thread Gregor Kiddie
I've been thinking that too, but we are all served by the same proxy...
I can't even blame this one on Service Capture being screwy! Weird...

 

Using Igor Costa's online copy of the API instead... thanks Igor ;)

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of valdhor
Sent: 28 October 2009 13:23
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Where did Livedocs go?

 

  

Do you use a local proxy or caching server? maybe the 404 is coming from
there.






[flexcoders] How to catch IOErrorEvent's from setting Text.htmlText with broken links

2009-10-28 Thread Greg Hess
Hi All,

I am setting the Text.htmlText property with some HTML I get from
reading an RSS feed. All was working well until recently I started
getting ActiionScript errors reporting:

Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.

In debugging this I could never catch this error in the debugger or
even get a stack trace, however, I eventually found that it was caused
by setting the Text.htmlText property with some HTML that referenced a
dead image link.

I would like to suppress the error but am unable to figure out how to
catch it, I tried listening to the IOErrorEvent.IO_ERROR on the Text
compoenent and the parent module with no success. Does anyone know how
I can catch and suppress this error.

Any help much appreciated,

Greg


[flexcoders] Re: add a url/link to the datagrid datatip?

2009-10-28 Thread valdhor
Here is one way...


http://www.adobe.com/2006/mxml";
xmlns:local="*" >
 
 
 
 
 
 
 
 
 
 


LinkRenderer.as:
package
{
 import mx.controls.*;
 import mx.controls.dataGridClasses.DataGridListData;

 public class LinkRenderer extends LinkButton
 {
 private var fieldValue:String;

 public function LinkRenderer()
 {
 super();
 }

 override public function set data(value:Object):void
 {
 if(value != null)
 {
 super.data = value;
 fieldValue =
value[DataGridListData(listData).dataField];

 label = fieldValue;
 enabled = true;
 useHandCursor = true;
 setStyle("color", "#FF");
 setStyle("textDecoration", "underline");
 setStyle("textRollOverColor:", "#CC");
 }
 }
 }
}



HTH



Steve

--- In flexcoders@yahoogroups.com, coder3  wrote:
>
>
> Hi All,
>
> I need to show a list of information for the items in the
> datagrid/advancedDatagrid.
>
> the output text is ok but it contains a url that needs to be displayed
as a
> htmlLink so that when user clicks on it, the browser can goto that
url.
>
> for example it's like this:
>
> "
> URL: www.nabble.com
> ..."
>
> Is there a way to do it?
>
> thanks
>
> C
>
> --
> View this message in context:
http://www.nabble.com/add-a-url-link-to-the-datagrid-datatip--tp26065104\
p26065104.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>



[flexcoders] Re: Flex Soap Version Mismatch

2009-10-28 Thread Joshua
Thanks for the advice Steve.  So to do that I'm gonna need to 'hand-code' all 
the calls from Flex to php and then do the same with php, creating all the 
methods by hand from the wsdl?  Isn't there a simpler way to do it using the 
Flex wsdl wizard and a php proxy that just passes through the soap request?  
And either way I do it I still want to know why the way I'm attempting to do it 
won't work.  Why does going through php change my soap envelop and create a 
mismatch I guess is the big question??
 

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> I think you may be over thinking this.
> 
> I have the same situation as you - a local PHP server and a remote Web 
> Service.
> 
> I tried for a long time to get it working by proxying through PHP like what 
> you are trying. I could never get it to work.
> 
> Instead, I created a SOAP Client in PHP that could talk to the Web Service. 
> Once this was working I used WebORB to create a service to talk to Flex. Then 
> I merged the code. Now I have Flex sending and receiving objects via WebORB 
> and PHP exchanging data via SOAP. The best of both worlds.
> 
> 
> HTH
> 
> 
> 
> 
> Steve
> 
> --- In flexcoders@yahoogroups.com, "Joshua"  wrote:
> >
> > I have a problem with soap and flex 3.  I have created a webservice through 
> > the import webservice menu in Flex Builder.  If I use the service as is I 
> > get a security error because the crossdomain policy on the remote server 
> > doesn't comply.  So, instead I am using a php proxy to relay the webservice 
> > through my server and out to the webservice back to the server back to 
> > Flex.  When I try to do this I get a SOAP mismatch error coming from the 
> > below code.
> > 
> > else if (envNS.uri != SOAPConstants.SOAP_ENVELOPE_URI)
> > {
> > throw new Error("SOAP Response Version Mismatch");
> > }
> > 
> > I went back in and checked the value of envNS.uri and 
> > SOAPConstants.SOAP_ENVELOPE_URI in both the previously described situations 
> > (php proxy and straight security riddled call).  In the security riddled 
> > call the two variables match.  In the proxy call I get back differing 
> > values of envNS.uri and SOAPConstants.SOAP_ENVELOPE_URI.
> > 
> > Can somebody tell me why the variables are not matching when put through 
> > the php proxy.  The php is simple, just curl, so I've pasted it below.  
> > 
> > ///START PHP SNIPPET
> > 
> > $url = $_GET['url'];
> > $headers = $_GET['headers'];
> > $mimeType = $_GET['mimeType'];
> > 
> > //Start the Curl session
> > $session = curl_init();
> > 
> > // Don't return HTTP headers. Do return the contents of the call
> > curl_setopt($session, CURLOPT_URL, $url);
> > curl_setopt($session, CURLOPT_HEADER, ($headers == "true") ? true : false);
> > curl_setopt($session, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
> > curl_setopt($session, CURLOPT_FOLLOWLOCATION, 1);
> > curl_setopt($session, CURLOPT_RETURNTRANSFER, 1);
> > 
> > // Make the call
> > $response = curl_exec($session);
> > 
> > if ($mimeType != "")
> > {
> > // The web service returns XML. Set the Content-Type appropriately
> > header("Content-Type: ".$mimeType);
> > }
> > 
> > echo $response;
> > 
> > curl_close($session);
> > 
> > //END PHP SNIPPET
> > 
> > Any help would be great.  Thanks,
> > 
> > Josh
> >
>




[flexcoders] Re: TextArea and new line problems (with PHP and MySQL)

2009-10-28 Thread valdhor
My suggestion would be to grab a copy of Charles (http://www.charlesproxy.com) 
and take a look at exactly what Flex is sending.

Next, if Flex is sending the carriage returns properly, create some code in PHP 
(eg. file write) to output what PHP is seeing from your middleware (I use 
WebORB and carriage returns come through fine).

Then do the same with MySQL etc. It shouldn't take too long to figure out where 
the problem is.


HTH



Steve




[flexcoders] Re: Where did Livedocs go?

2009-10-28 Thread valdhor
Do you use a local proxy or caching server? maybe the 404 is coming from there.

--- In flexcoders@yahoogroups.com, "Gregor Kiddie"  wrote:
>
> Since some of my colleagues have come in, it's working for them, but I'm
> getting the Adobe 404 page back, rather than it failing to load (which
> suggests Adobe can't find the page for me, but it can for the person
> sitting beside me), weird...
> 
>  
> 
> Gk.
> 
> Gregor Kiddie
> Senior Developer
> INPS
> 
> Tel:   01382 564343
> 
> Registered address: The Bread Factory, 1a Broughton Street, London SW8
> 3QJ
> 
> Registered Number: 1788577
> 
> Registered in the UK
> 
> Visit our Internet Web site at www.inps.co.uk
> http://www.inps.co.uk/> 
> 
> The information in this internet email is confidential and is intended
> solely for the addressee. Access, copying or re-use of information in it
> by anyone else is not authorised. Any views or opinions presented are
> solely those of the author and do not necessarily represent those of
> INPS or any of its affiliates. If you are not the intended recipient
> please contact is.helpd...@...
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Leonardo Camargo
> Sent: 28 October 2009 11:19
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Where did Livedocs go?
> 
>  
> 
>   
> 
> It's working here:  http://livedocs.adobe.com/flex/3/langref/index.html
> 
>




[flexcoders] Re: Flex Soap Version Mismatch

2009-10-28 Thread valdhor
I think you may be over thinking this.

I have the same situation as you - a local PHP server and a remote Web Service.

I tried for a long time to get it working by proxying through PHP like what you 
are trying. I could never get it to work.

Instead, I created a SOAP Client in PHP that could talk to the Web Service. 
Once this was working I used WebORB to create a service to talk to Flex. Then I 
merged the code. Now I have Flex sending and receiving objects via WebORB and 
PHP exchanging data via SOAP. The best of both worlds.


HTH




Steve

--- In flexcoders@yahoogroups.com, "Joshua"  wrote:
>
> I have a problem with soap and flex 3.  I have created a webservice through 
> the import webservice menu in Flex Builder.  If I use the service as is I get 
> a security error because the crossdomain policy on the remote server doesn't 
> comply.  So, instead I am using a php proxy to relay the webservice through 
> my server and out to the webservice back to the server back to Flex.  When I 
> try to do this I get a SOAP mismatch error coming from the below code.
> 
> else if (envNS.uri != SOAPConstants.SOAP_ENVELOPE_URI)
> {
> throw new Error("SOAP Response Version Mismatch");
> }
> 
> I went back in and checked the value of envNS.uri and 
> SOAPConstants.SOAP_ENVELOPE_URI in both the previously described situations 
> (php proxy and straight security riddled call).  In the security riddled call 
> the two variables match.  In the proxy call I get back differing values of 
> envNS.uri and SOAPConstants.SOAP_ENVELOPE_URI.
> 
> Can somebody tell me why the variables are not matching when put through the 
> php proxy.  The php is simple, just curl, so I've pasted it below.  
> 
> ///START PHP SNIPPET
> 
> $url = $_GET['url'];
> $headers = $_GET['headers'];
> $mimeType = $_GET['mimeType'];
> 
> //Start the Curl session
> $session = curl_init();
> 
> // Don't return HTTP headers. Do return the contents of the call
> curl_setopt($session, CURLOPT_URL, $url);
> curl_setopt($session, CURLOPT_HEADER, ($headers == "true") ? true : false);
> curl_setopt($session, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
> curl_setopt($session, CURLOPT_FOLLOWLOCATION, 1);
> curl_setopt($session, CURLOPT_RETURNTRANSFER, 1);
> 
> // Make the call
> $response = curl_exec($session);
> 
> if ($mimeType != "")
> {
> // The web service returns XML. Set the Content-Type appropriately
> header("Content-Type: ".$mimeType);
> }
> 
> echo $response;
> 
> curl_close($session);
> 
> //END PHP SNIPPET
> 
> Any help would be great.  Thanks,
> 
> Josh
>




[flexcoders] Re: States: SetStyle not returning to base state

2009-10-28 Thread valdhor
Don't quote me on this, but that rings a bell. I do believe that is in the 
documentation somewhere.

Your best bet may be to listen for the change event and then set the style in 
the event handler.

--- In flexcoders@yahoogroups.com, "Tracy"  wrote:
>
> I have component that functions as a button.  It has its own styleName 
> (menuButton) specified. It has a subcomponent that is a label with its own 
> styleName (menuButtonLabel) specified.  
> 
> On rollOver, I set the button to a selected State, using SetStyle to set the 
> label style:
> 
>value="menuButtonLabelSelected" />
> 
> This correctly sets the label's style per the menuButtonLabelSelected css 
> values.
> 
> However, when I return the button to its base state (currentState = "";), The 
> label styleName does not get reset to it base menuButtonLabel style, but 
> instead takes on the parent menuButton style.
> 
> Any ideas what I am doing wrong, or suggestions to try?  Is my theory correct?
> 
> Tracy Spratt
>




[flexcoders] Associative Array and Custom Renderer for TileList

2009-10-28 Thread anuppc
Hi,

I have an Associative Array as the dataprovider of a TileList.
The associative array has this kind of data:

var foodPrices:Object = new Object();
foodPrices["meat"] = "5.00";
foodPrices["fish"] = "7.00";
foodPrices["juice"] = "1.00";

How do i create a custom renderer for the TileList which displays the Keys : 
meat, fish, juice tc... with different color codes

If price is > 4.00 then display the item in Red
if price is < 4.00 then display the item in Black

Any suggestions??
Thanks




Re: [flexcoders] Adobe-like logo maker

2009-10-28 Thread Wally Kolcz
I thought Degrafa had a logo maker like that. 
http://www.degrafa.org/source/CS4IconPreviewer/CS4IconPreviewer.html


From: thomas parquier 
Sent: Tuesday, October 27, 2009 1:38 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Adobe-like logo maker 

Have a look at riaforge.org
thomas parquier
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr

softphone : sip:webattit...@ekiga.net
téléphone portable : +33601 822 056

2009/10/27 breizo 

Can anybody point me to the Flex example that creates and customizes these nice 
Fx, Fl, Ai, PS... logos that Adobe has?

I played with the application a while back, but I can't find it anymore.

Thanks!

Breizo





RE: [flexcoders] How to save a bytearray to a database

2009-10-28 Thread Russ Ferguson


Sent from my Windows Mobile® phone.

-Original Message-
From: Kevin F. Benz 
Sent: Wednesday, October 28, 2009 2:31 AM
To: flexcoders@yahoogroups.com 
Subject: Re: [flexcoders] How to save a bytearray to a database [5 Attachments]

You want to serialize it..

bytearray.writeObject() writes it to an AMF serialized object.
bytearray.readObject() reads it from an AMF serialized object.

On Oct 27, 2009, at 10:18 PM, flexaustin wrote:

> So I am trying to save a bytearray to a database. I tried  
> bytearray.toString, which works as expected.
>
> But on retrieving the string (bytearray) from the database how would  
> I convert it back to a bytearray?
>
> Thx, J
>
> 

Kevin F. Benz

  kb...@kbenz.com (425) 785-7100
  http://www.kbenz.com

  http://www.facebook.com/kbenz  http://www.linkedin.com/in/kbenz

"We can't solve problems by using the same kind of thinking we used  
when we created them" - Albert Einstein







[flexcoders] Re: Adobe-like logo maker

2009-10-28 Thread erique_de_la_neutique

Do you mean the one on the Degrafa web site?
http://www.degrafa.org/source/CS4IconPreviewer/CS4IconPreviewer.html

You'd have to take a screenshot if you want to grab the image created there, 
though.

Erik


--- In flexcoders@yahoogroups.com, "breizo"  wrote:
>
> Can anybody point me to the Flex example that creates and customizes these 
> nice Fx, Fl, Ai, PS... logos that Adobe has?
> 
> I played with the application a while back, but I can't find it anymore.
> 
> Thanks!
> Breizo
>




[flexcoders] Help Wanted

2009-10-28 Thread Trish Glidden
>
> Hi,
> Hopefully this is ok.  I wasn't sure where to find freelance Flex
> developers.  I'm looking for someone who can make a nice UI with an
> itemRenderer for messages kind of like the one that tweetie uses.  I need to
> display a similar list with a picture, with a message bubble, time, author,
> etc.
>
> Does anyone want to help with a small project?
>
> Thanks
>
> Trish
>


[flexcoders] Datagrid measureHeightOfItems wrong - DG harbors items that shouldn't be there

2009-10-28 Thread atomilux
Sorry for the gravity of the accusation - I could be entirely wrong and 
hopefully this post will flesh out the truth. I'm not sure if what I've found 
is a clue in the answer to getting this measurement accurately or simply normal 
and needed functionality of the DataGrid I just don't understand.

Scenario - 2 DataGrids that have drag/drop turned on where users move items 
between the two at random. Items are currently identical in height in both 
DataGrids.

I've tried DataGrid.measureHeightOfItems() - relatively accurate but returned 
value is random and quirky in relation to what's visually there.

I've tried various functions people have kindly written and posted using 
variations on the measureHeightOfItems() theme, thank you all.

I've learned about the viewMetrics object that should be taken into account. In 
my case the bottom and top values were both 1 - wasn't the missing item, but 
rolled it in the calculations for future use.

None of those have been giving me accurate math for dynamic height assignment 
to an ever changing DataGrid.dataProvider.

What I've resorted through is picking apart the DataGrid object and tracing out 
what children actually are there and have found something very very odd.

I dug into the Datagrid like so:
DataGrid.getChildAt(2);
gave me: categoryContainer.questionList.ListBaseContentHolderXXX

Inside there I find my Label objects that contain my text and thus a visual 
representation of the dataProvider (mostly)? Sure seems like it.

When moving Items to/from the DataGrid and reordering I found something 
peculiar - the old items were plucked (correctly) off the dataProvider, but 
were still in the DataGrid with a visibility of false and an includeInLayout of 
true and register's a height measurement.

If my DataGrid.dataProvider.length were say 3 - I should have 3 items in the 
DataGrid.
However, I'd find an extra one or two max that weren't supposed to be there - 
thus 4 or 5.

A few times I noticed a random bug of an empty datagrid item randomly show up 
as a byproduct of drag/drops in and out. I'm guessing it has something to do 
with this. I'm not handling the data swaps from DataGrid to DataGrid - flex's 
built in drag/drop class is - so I'm pretty sure I don't have AScript passing a 
random empty exception in.

Sure seems like this is the culprit, but I could be wrong.

I tried turning off the includeInLayout of these freeloaders - to no avail.

What gave me an initial (but later fleeting) score was to call removeChild() on 
them.

I have two instances of these containers of which I drag items to/from and 
after a few drag/drops the math falls apart again.





RE: [flexcoders] use local flash dll instead of installed one for embedded flex app

2009-10-28 Thread Amitabh Ghatak
steve:

 

from what i can tell, it allows you to use a local ocx file that wraps
around the installed flash dll. 

 

are you actually able to use a different flash player dll? if so, how
are you doing it?

 

cheers

amitabh

 

 

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Steve Mathews
Sent: Wednesday, October 21, 2009 10:07 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] use local flash dll instead of installed one
for embedded flex app

 

  

Are you using f-in-box (http://www.f-in-box.com/
 )? We are using it and it allows you to use a
local player version rather than the installed one.

 

Steve

On Tue, Oct 20, 2009 at 11:09 PM, Amitabh Ghatak
mailto:amita...@ivycomptech.com> > wrote:

 

hi,

 

i've created a flex app that is embedded in a VC++ container app (thru
activex). we're facing a lot of headaches in terms of versioning (QA
efforts, stability etc).

 

is there any way i can use a specific version of flash dlls only shipped
for my app (and placed in my app's install directory regardless of the
system's installed flash version? also, could there be any EULA issues?

 

thanks

amitabh

 

 

 

Amitabh Ghatak

Architecture Council

 

IVY Comptech Private Limited
Cyber Spazio, Road No 2, Banjara Hills, 
Hyderabad 500033, Andhra Pradesh, INDIA

 



This email is sent for and on behalf of Ivy Comptech Private Limited.
Ivy Comptech Private Limited is a limited liability company.

This email and any attachments are confidential, and may be legally
privileged and protected by copyright. If you are not the intended
recipient dissemination or copying of this email is prohibited. If you
have received this in error, please notify the sender by replying by
email and then delete the email completely from your system. Any views
or opinions are solely those of the sender.  This communication is not
intended to form a binding contract on behalf of Ivy Comptech Private
Limited unless expressly indicated to the contrary and properly
authorised. Any actions taken on the basis of this email are at the
recipient's own risk.

Registered Office:

Ivy Comptech Private Limited, Cyber Spazio, Road No. 2, Banjara Hills,
Hyderabad 500 033, Andhra Pradesh, India.

Registered number: 37994. Registered in India. A list of members' names
is available for inspection at the registered office.



 

 




This email is sent for and on behalf of Ivy Comptech Private Limited. Ivy 
Comptech Private Limited is a limited liability company.  

This email and any attachments are confidential, and may be legally privileged 
and protected by copyright. If you are not the intended recipient dissemination 
or copying of this email is prohibited. If you have received this in error, 
please notify the sender by replying by email and then delete the email 
completely from your system. 
Any views or opinions are solely those of the sender.  This communication is 
not intended to form a binding contract on behalf of Ivy Comptech Private 
Limited unless expressly indicated to the contrary and properly authorised. Any 
actions taken on the basis of this email are at the recipient's own risk.

Registered office:
Ivy Comptech Private Limited, Cyber Spazio, Road No. 2, Banjara Hills, 
Hyderabad 500 033, Andhra Pradesh, India. Registered number: 37994. Registered 
in India. A list of members' names is available for inspection at the 
registered office.



RE: [flexcoders] Where did Livedocs go?

2009-10-28 Thread Gregor Kiddie
Since some of my colleagues have come in, it's working for them, but I'm
getting the Adobe 404 page back, rather than it failing to load (which
suggests Adobe can't find the page for me, but it can for the person
sitting beside me), weird...

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Leonardo Camargo
Sent: 28 October 2009 11:19
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Where did Livedocs go?

 

  

It's working here:  http://livedocs.adobe.com/flex/3/langref/index.html
  



 



Re: [flexcoders] Where did Livedocs go?

2009-10-28 Thread Leonardo Camargo
It's working here:  http://livedocs.adobe.com/flex/3/langref/index.html


2009/10/28 Gregor Kiddie 

>
>
>  The link for them isn’t working and returning a 404…
>
>
>
> Flex API  ??
>
>
>
> Gk.
>
> *Gregor Kiddie*
> Senior Developer
> *INPS*
>
> Tel:   01382 564343
>
> Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
>
> Registered Number: 1788577
>
> Registered in the UK
>
> Visit our Internet Web site at www.inps.co.uk
>
> The information in this internet email is confidential and is intended
> solely for the addressee. Access, copying or re-use of information in it by
> anyone else is not authorised. Any views or opinions presented are solely
> those of the author and do not necessarily represent those of INPS or any of
> its affiliates. If you are not the intended recipient please contact
> is.helpd...@inps.co.uk
>
>
>  
>


RE: [flexcoders] Adobe-like logo maker

2009-10-28 Thread Gregor Kiddie
Is this what you are after?

 

http://clockmaker.jp/labs/air_icon/

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of breizo
Sent: 27 October 2009 15:16
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Adobe-like logo maker

 

  

Can anybody point me to the Flex example that creates and customizes
these nice Fx, Fl, Ai, PS... logos that Adobe has?

I played with the application a while back, but I can't find it anymore.

Thanks!
Breizo





[flexcoders] Where did Livedocs go?

2009-10-28 Thread Gregor Kiddie
The link for them isn't working and returning a 404...

 

Flex API   ??

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk

 



RE: [flexcoders] Binding & Model Objects

2009-10-28 Thread Gregor Kiddie
If you can't change the DTO in anyway you might be out of luck. There's
a couple of hacky techniques that could help if you can change the
DTO...

 

You might be able to get away with making the bindable properties
transient, so that AMF doesn't try to get / set them during
(de)serialization, and a separate set of non-bindable properties which
are used for setting up the object, both of which point to the same
private variable internally. You'd need to find some way of triggering
the binding update event once the object had been deserialized into an
AS3 object, and this is a really horrible hack...

 

Something like

 

public class Foo extends EventDispatcher {

private var _bar : String;



[transient]

[Bindable("fooChanged")]

public function get bar() : String {

return _bar;

}



public function set nbBar( nbBar : String ) : void {

_bar = nbBar;

}



public function get nbBar() : String {

return _bar;

}



public function dispatchChangeEvent() : void {

dispatchEvent( new Event( "fooChanged" ) );

}

}

 

That's really horrible though...

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Richard Rodseth
Sent: 27 October 2009 16:09
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Binding & Model Objects

 

  

This is consistent with the way I've done things. In my case conversion
was necessitated by needing a "dirty" flag on each record, but I also
like it philosophically.

However, in another portion of the application that I don't own, there
is a large DTO displayed in a table (with user-configurable columns),
and I don't think we can pay the price of conversion without also
implementing pagination/lazy loading.