[flexcoders] Drag and Drop question

2008-05-01 Thread Rafael Faria
If i'm dragging an element from one tree to another. How do i get the updated xml of the tree i'm dragging off? For instance TREE 1 - Element 1 - Element 2 TREE 2 if i get the xml from tree 1 it would be something like root element label=Element 1 / element label=Element 2 / /root

Re: [flexcoders] Drag and Drop question

2008-05-01 Thread Josh McDonald
I'm fairly certain that there's no voodoo to automatically delete nodes from your XML, you need to do that yourself in your drop handler. -J On Thu, May 1, 2008 at 4:36 PM, Rafael Faria [EMAIL PROTECTED] wrote: If i'm dragging an element from one tree to another. How do i get the updated

RE: [flexcoders] Processing a filtered XMLListCollection as a complete list

2008-05-01 Thread Thind, Aman
good idea... i created a copy as follows: tmplist = new XMLListCollection(resultlist.source); tmplist.filterFunction = resultlist.filterFunction; and after processing the tmplist, reset resultlist = tmplist Thanks Alex! From:

[flexcoders] Re: Drag and Drop question

2008-05-01 Thread Rafael Faria
I wouldn't say voodoo but if you drag an item from tree 1 to tree 2 the dataprovider should not contain the item you've dragged to the other tree... am i wrong? rafael --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: I'm fairly certain that there's no voodoo to

[flexcoders] Re: Showroot - Tree control

2008-05-01 Thread Rafael Faria
This was just an example i got on adobe website so i can show what i need. On my project i use XML. I just think if i find a solution for whatever i use as dataprovider i could apply on my project. Anyone else can help me with it!? Thanks Rafael --- In flexcoders@yahoogroups.com, Tracy Spratt

[flexcoders] Re: Drag and Drop question

2008-05-01 Thread Rafael Faria
If im moving the object i would assume it will not be in the tree 1 anymore... anyone would help me how do i drag from tree 1, drop on tree 2 and after i drop i get the elements on tree 1 without the one i just dropped on tree 2? should this be that painfull? do i have to delete manually?!

Re: [flexcoders] Re: Drag and Drop question

2008-05-01 Thread Josh McDonald
It makes sense to me that you would. Drag and drop is a visual operation, not a data operation, and in no way does it always mean that you're removing something from the first list. For an example think of the components palette in Builder. There might be some way to enable the sort of automatic

[flexcoders] ROLL_OVER on Componeont does not bubble? HOW??

2008-05-01 Thread James Gardiner
Hi, I was wondering if anyone could point me at how to archive the folloing. I make some boxes in Flex as a time line. But use a label component on top... The Label componeont blocks the roll_over event on the boxes... I want the label to ignore the ROLL_OVER event, and let the BOX under it

Re: [flexcoders] ROLL_OVER on Componeont does not bubble? HOW??

2008-05-01 Thread Manish Jethani
On 4/7/08, James Gardiner [EMAIL PROTECTED] wrote: I was wondering if anyone could point me at how to archive the folloing. I make some boxes in Flex as a time line. But use a label component on top... The Label componeont blocks the roll_over event on the boxes... I want the label

[flexcoders] -compiler.mxml.compatibility-version

2008-05-01 Thread VELO
Hi, When I use compc or mxmlc with -compiler.mxml.compatibility-version. Can use swc libraries (e.g. framework.swc) from flex SDK 2.0.1? VELO

[flexcoders] Reading Flex local shared object from Flash - problem

2008-05-01 Thread Borek
We can't read Flex-created local shared objects from Flash applications. When I compare .sol files, it looks like Flash and Flex use a different file format - is that correct? If so, is there any work around? Thanks, Borek

[flexcoders] Re: Need help finding and fixing SQL Error in AIR App

2008-05-01 Thread bredwards358
That's fine, I again figured something out a short while ago while experimenting with importing the text documents. Turns out you can't have the special characters such as the - or / in the column header, the actual data in the rows beneath them can have those characters. So instead of doing a

Re: [flexcoders] Reading Flex local shared object from Flash - problem

2008-05-01 Thread rrao
Hi Borek, Are you talking of Shared Objects written by AS2 applications not being able to read in Flex? Is your Flash app built in pre Flash CS3? (i.e. In AS2) Raghu On 5/1/08 4:35 AM, Borek [EMAIL PROTECTED] wrote: We can't read Flex-created local shared objects from Flash

[flexcoders] gif images as renderers

2008-05-01 Thread moonrchand
Hi All, in our application we are using 'gif' animated images as item renderer. we are able to renderer the image but it is not showing animated behaviour. basically that image will be rotating/blinking, but when we renderer it shows as normal image. please help me how can i get animated

[flexcoders] HTTPService and Browser Differences

2008-05-01 Thread Tom Armstrong
Hi All, As I continue my Flex education I've come across an issue in my first production application. I'm using ROR along with Flex and passing XML back and forth, etc. I've learned a bunch via Flex Solutions, Flex on Rails, and Training from the Source, etc. The issue I'm having seems to be

[flexcoders] error with old flex data service code

2008-05-01 Thread strykker75
I have some code that was created a couple years ago, when flex data services was young. I am trying to use it now, but can't seem to get the java files working. I am having trouble in particular with the ChatAdapter file: package chat; import java.util.Collections; import java.util.HashMap;

[flexcoders] Re: gif images as renderers

2008-05-01 Thread valdhor
This has been asked before. Flash Player doesn't support animated GIF natively. There are a couple of ways to get this functionality (AFAIK): http://www.bytearray.org/?p=95 (I cannot reach this site at the moment).

[flexcoders] Re: Reading Flex local shared object from Flash - problem

2008-05-01 Thread Borek
Hi Raghu, It's the other way around - we CAN store shared object in a Flash (AS2) app and then read it in a Flex app, we CAN'T store the shared object in a Flex app and then read it in a Flash app. I think the Flash application is compiled using Flash MX. Thanks, Borek --- In

RE: [flexcoders] Re: Reading Flex local shared object from Flash - problem

2008-05-01 Thread Jim Hayes
I believe the as2 app will be using the AMF1 style, and flex the AMF3 style of encoding. I'm not sure if you can set the encoding used for shared objects in flex, but it's worth having a look. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

RE: [flexcoders] Re: Reading Flex local shared object from Flash - problem

2008-05-01 Thread Jim Hayes
I just had to know. http://livedocs.adobe.com/flex/201/langref/flash/net/SharedObject.html#o bjectEncoding Looks like you can set the encoding used, so I'd try that if I were you. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Hayes

[flexcoders] Re: Raising Events with Properties

2008-05-01 Thread caffeinewabbit
Thanks for pointing that out Manish, it wasn't something I was aware of! --G --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 5/1/08, caffeinewabbit [EMAIL PROTECTED] wrote: You'll need to extend event and create a custom child class. Custom event code:

[flexcoders] Reading a message with SeviceAdapters

2008-05-01 Thread netdeep
I'm using messaging with blazeds and I can send a message with a producer from flex, but I don't know how to read its contents in my java ServiceAdapter. I have a class: public class ChannelListener extends ServiceAdapter { public Object invoke(Message message) { } } } But what do I do in

[flexcoders] Extending Alert

2008-05-01 Thread climbfar
How do I extend the Alert class such that the new class cannot be created using MXML tags? Taking it a step further is it possible to create an ActionScript class extended from Panel that cannot be constructed using MXML tags? G'day Mike

[flexcoders] Re: Reading Flex local shared object from Flash - problem

2008-05-01 Thread Borek
Thank you very much, we will try this. Didn't know of this encoding thing! Borek --- In flexcoders@yahoogroups.com, Jim Hayes [EMAIL PROTECTED] wrote: I just had to know. http://livedocs.adobe.com/flex/201/langref/flash/net/SharedObject.html#o bjectEncoding Looks like you can set the

[flexcoders] Flex Profiler Not Connecting

2008-05-01 Thread myspivey2
Having some weirdness with the Flex Profiler. Using Eclipse, current stable builds of everything. Profiler was working a couple months ago, haden't used it because of being changed to some other projects, trying to get back in, it launches IE with the Flex app but never asks me to connect in

RE: [flexcoders] Flex Profiler Not Connecting

2008-05-01 Thread Gaurav. Jain
Can you make sure you are using the debugger version of the player in IE? Also do you see anything in the console of the Flex Profiling perspective? Thanks, Gaurav -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of myspivey2 Sent: Thursday, May 01,

Re: [flexcoders] Extending Alert

2008-05-01 Thread Maciek Sakrejda
Why do you need to prevent usage through MXML? MXML is compiled down to ActionScript, so it's essentially just syntactic sugar. That is, by preventing using your components through MXML, you are just removing a convenient interface, and not restricting functionality. -- Maciek Sakrejda Truviso,

RE: [flexcoders] Flex Profiler Not Connecting

2008-05-01 Thread Mike Krotscheck
I had a similar problem: Turns out our newly installed firewall decided to be helpful and get in the way. Have you guys updated your security settings recently? Michael Krotscheck Senior Developer RESOURCE INTERACTIVE http://www.resource.com/ www.resource.com http://www.resource.com

[flexcoders] Bubble chart itemrenderer not updating

2008-05-01 Thread hworke
Hi I need to use a bubblechart with the button as its itemrenderer. So I should get buttons insted of circles. Now if I update the dataprovider during runtime it shows the same old data with some rearrangements. My observarion is that once those button child are created they

[flexcoders] Re: Extending Alert

2008-05-01 Thread climbfar
I believe this is a restriction brought on by the Adobe developers. You cannot do this in MXML: mx:Panel id=panel mx:Alert /mx:Alert /mx:Panel If you try to compile, you will get this message: Could not resolve mx:Alert to a component implementation. To instantiate

Re: [flexcoders] ConstraintColumn in VBox- why not?

2008-05-01 Thread Tom Chiverton
On Wednesday 30 Apr 2008, ben.clinkinbeard wrote: Before I go whining to bugs.adobe.com, is there a good reason VBox couldn't support ConstraintColumn and HBox couldn't support ConstraintRow? Adobe's answer will probably be that with constraint based layout you don't need H or V boxes any

[flexcoders] Sort a List Comp?

2008-05-01 Thread Justin Stanczak
I have the following: * mx:HTTPService id=getMajorsVisitdates url=ServiceServlet mx:List id=majorsList width=342 dataProvider={getMajorsVisitdates.lastResult.root.major} change=selectMajor() height=200 labelField=name x=10 y=36/mx:List* How do I sort the majorsList? Seems like it

[flexcoders] Flex3 UIComponents not dispatching addremove events when loaded within Modules

2008-05-01 Thread mrvx23
I ran across this anomaly and wonder if anyone else has encountered it and what a possible solution would be. I am trying to create a scenario whereby when a UIComponent becomes visible (loaded as part of a (application) viewstate change), it registers listeners to certain events, and when it

Re: [flexcoders] ConstraintColumn in VBox- why not?

2008-05-01 Thread Ben Clinkinbeard
they were originally going to be deprecated in Flex 3 remember Really? Thats an awful idea. Constraints are not even remotely related to V|HBox in my opinion. Ben On Thu, May 1, 2008 at 11:51 AM, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 30 Apr 2008, ben.clinkinbeard wrote:

[flexcoders] Re: Disabling MenuBar+MenuItem transitions/animations

2008-05-01 Thread nathanpdaniel
You can set the openDuration value to 0 - it's also in the docs (that's where I learned) :D --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: I do not know how, probably someone else here will. But, believe it or not, many users like that stuff. Effects like

RE: [flexcoders] error with old flex data service code

2008-05-01 Thread Jeff Vroom
Instead of using that service variable you can get the same thing with this statement: MessageService msgService = (MessageService)getDestination().getService(); Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

[flexcoders] Animation Delays...

2008-05-01 Thread nathanpdaniel
I'm working on a project with a lot of animation. I've noticed when I do something that causes animation - the first instance the animation runs, it seems to load something - though there's nothing to be loaded - no processing, etc. With this delay, it skips to the point in the animation

Re: [flexcoders] Flex3 UIComponents not dispatching addremove events when loaded within Modules

2008-05-01 Thread Veiko Sammelselg
I bet it's some named law that an explanation presents itself right after you have left all hope and posted a public cry for help. In case the UIComponent is part of a Flex Module, it is the module itself that dispatches the FlexEvent.REMOVE, since it is the hierarchically topmost element

[flexcoders] Re: compc and manifest file

2008-05-01 Thread mt1_18
ok, I used a javascsript script to create the manifest file. Now however when I run the compc command I am getting errors on all the embedded images: FileName.as(72): col: 6: Error: unable to resolve /path/to/image.png' for transcoding [Embed(source='path/to/image.png')] I tried using the

[flexcoders] Re: compc and manifest file

2008-05-01 Thread mt1_18
I resolved the issue. It was simply a relative path issue. --- In flexcoders@yahoogroups.com, mt1_18 [EMAIL PROTECTED] wrote: ok, I used a javascsript script to create the manifest file. Now however when I run the compc command I am getting errors on all the embedded images:

[flexcoders] online docs seem to be unavailable

2008-05-01 Thread ivo
Have recently been using the online docs again, as of a few minutes I am getting: 502 Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /flex/3/langref/index.html. Reason: DNS lookup failure for:

Re: [flexcoders] online docs seem to be unavailable

2008-05-01 Thread Maciek Sakrejda
I'm seeing the same thing. Fortunately, the offline docs are available: http://livedocs.adobe.com/flex/3/flex3_documentation.zip (warning: ~70MB download). -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: ivo [EMAIL PROTECTED] Reply-To:

[flexcoders] Image Resampling

2008-05-01 Thread Ezekiel48
I want to create a thumbnail of a picture, but if I just resize the picture to say, 95X95 pixels the data of the 6MP picture is still loaded into memory so the program take up A LOT of memory. I want to resize and/or resample the image to be of a lower resolution so the unused data can be cleaned

[flexcoders] Dynamic combobox from JSON request

2008-05-01 Thread timgerr
Hello all, I have a Json request that I get from PHP backend. I am learning so I have created a dynamic list for a combo box. The problem is that when I press a button and it gets the data, I then go to the combo box and I see 1 entry. If I then select the combo box again I then will see all

[flexcoders] DataGrid and exporting values

2008-05-01 Thread Dominic Pazula
Like a lot of people, I've been wanting to export values out of a data grid and into a file. I decided that I didn't want to go with the round trip to the server. Instead, I use the ExternalInterface to call a js function that opens a new window and writes the values into a HTML table (uses

RE: [flexcoders] online docs seem to be unavailable

2008-05-01 Thread Stephen Gilson
Our apologies - there seems to be an issue with adobe.com today. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Maciek Sakrejda Sent: Thursday, May 01, 2008 2:10 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] online

Re: [flexcoders] DataGrid and exporting values

2008-05-01 Thread Maciek Sakrejda
Well, that ExternalInterface performs really poorly with moderate-sized data sets is a known issue: http://codinginparadise.org/weblog/2006/02/how-to-speed-up-flash-8s.html -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Dominic Pazula [EMAIL PROTECTED]

RE: [flexcoders] DataGrid and exporting values

2008-05-01 Thread Tracy Spratt
There was a thread sometime ago about performance problems with large data sets and ExtenalInterface. Why not skip that part. You could generate the HTML in Flex and put it on the clipboard directly using System.setClipboard(sHTML); Tracy From:

RE: [flexcoders] HTTPService and Browser Differences

2008-05-01 Thread Tracy Spratt
This does sound like a caching issue. I understand that POST does not cache. You could change the GET to a POST to see if that is so. Alternatively, you can append some unique string to the GET url. Many folks use Date.time for this. Tracy From:

RE: [flexcoders] Drag and Drop question

2008-05-01 Thread Tracy Spratt
Actually I am pretty sure the list-based component's built-in drag/drop functionality does do this on a MOVE. The docs describe this. Are the XML structures the same? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh

[flexcoders] Re: DataGrid and exporting values

2008-05-01 Thread Dominic Pazula
That is a good idea. Actually pushing the data across didn't seem to be the problem. That loop is what was taking forever. I could literally watch the individual cells get added. A couple hundred rows took 10 seconds. Of course I could always be missing something... Thanks --- In

Re: [flexcoders] HTTPService and Browser Differences

2008-05-01 Thread Tom Armstrong
Thanks Tracy, Well, given ROR's focus on using REST techniques I can't really change the method. IOW, The router identifies requests by the HTTP method + URL, etc. I'll continue my research and see what I can do. In the meantime I'll do my development with FF and won't release to prod until I

[flexcoders] ListCollectionView.contains()

2008-05-01 Thread Maciek Sakrejda
Does ListCollectionView.contains() use reference equality to check if the collection contains a given object? Is there a simple way of using value equality (besides the obvious iteration)? -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com

[flexcoders] Re: error with old flex data service code

2008-05-01 Thread strykker75
Thanks Jeff, that took care of it. I guess they changed the class when they released it as LiveCycle data services instead of Flex data services. Thanks again for the help --- In flexcoders@yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: Instead of using that service variable you can get

[flexcoders] Re: BlazeDS Security Confusion

2008-05-01 Thread Jim Boone
Mete, Thank you for the response. Unfortunately, I am still having troubles. I have: * confirmed that the Tomcat Valve is being loaded correctly. * defined the TomcatLoginCommand in services-config.xml (see below). * secured the destination (see remoting-config.xml below). * configured JBoss

[flexcoders] SOT: ColdFusion backend for Flex, what the heck am i doing wrong...

2008-05-01 Thread Derrick Anderson
i see nothing in the CF community about this and since many here have CF for their back-end apps I figured I'd give it a try. I'm using CF7 standard on the backend and communicating to my CFC's with remote object. The problem I've had for months now is every now and then the onApplicationStart

Re: [flexcoders] Re: BlazeDS Security Confusion

2008-05-01 Thread Robert Cadena
try setting server to Tomcat instead of JBoss in your services-config.xml security login command node? /r On Thu, May 1, 2008 at 12:50 PM, Jim Boone [EMAIL PROTECTED] wrote: Mete, Thank you for the response. Unfortunately, I am still having troubles. I have: * confirmed that the Tomcat

[flexcoders] Lose my state instance when opening and closesing a popup modal window

2008-05-01 Thread kpjj31
Is a specific reason why I would lose my ability to use state management after I open and close a modal title window?

[flexcoders] Re: BlazeDS Security Confusion

2008-05-01 Thread Jim Boone
Robert, Well that certain made it spring to life! Thank you. It now throws an exception back to the front end with a Client.Authentication faultCode and faultString = Login required before authorization can proceed. The developers doc imply that the browser should pop a login dialog box, but that

Re: [flexcoders] Drag and Drop question

2008-05-01 Thread Josh McDonald
How do you mark a drag/drop operation as having a certain type (ie Move)? -J On Fri, May 2, 2008 at 5:32 AM, Tracy Spratt [EMAIL PROTECTED] wrote: Actually I am pretty sure the list-based component's built-in drag/drop functionality does do this on a MOVE. The docs describe this. Are the

[flexcoders] Flex Flash Animation slowdown woes and Long(!) Flex Builder Build Times

2008-05-01 Thread cougar_shuttle
Hi Group, We are building a large, complex, highly-skinned Flex site with maybe 30 modules and maybe 100 flash components built with the kit. Our performance on flash-animated graphics throughout the site is terrible right now and we're researching how to optimize to make the animations smooth

[flexcoders] E4X vs Array Collection

2008-05-01 Thread Nate Pearson
What's faster, E4X or array collections with typed classes? I can have my data nested three levels in XML or I can have it pretty flat in an array collection. I'll be using this data with graphs, but will also be do analysis of the selected area on the graph. Thanks, Nate

RE: [flexcoders] Drag and Drop question

2008-05-01 Thread Tracy Spratt
Move is the default, there is extra work to copy. http://livedocs.adobe.com/flex/3/html/dragdrop_8.html Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Thursday, May 01, 2008 5:05 PM To:

[flexcoders] Re: pending item

2008-05-01 Thread annouss79
here is the code , i hope it can help : myFirstArray = usertest.offres; counteurMarked = 0; var count:int=myFirstArray.length; for(var i:int = 0; i count; i++){ var offreCollection:Offre = myFirstArray.getItemAt(0) as Offre; mySecondArray = offreCollection.markings; counteurMarked +=

[flexcoders] execute external application in adobe air

2008-05-01 Thread Carlo Gulliani
can i execute another external application through adobe air app? for example, i want to run .app file, which kind as shell file. there is command line stroke, which move files from location 1 to location 2, can i execute it from air or, maybe, can i call terminal (i work on mac os) and send to

[flexcoders] execute external application in adobe air

2008-05-01 Thread Carlo Gulliani
can i execute another external application through adobe air app? for example, i want to run .app file, which kind as shell file. there is command line stroke, which move files from location 1 to location 2, can i execute it from air or, maybe, can i call terminal (i work on mac os) and send to

[flexcoders] Cairngorm - always event, always command?

2008-05-01 Thread chigwell23
pseudocode: creationComplete var ipAddress:String ipAddress = getUserIP() function getuserIP():String{ // use Services to go out to ColdFusion which can tell me user IP return IP } But Cairngorm encapsulates actions into commands which are driven by an event and a delegate.

Re: [flexcoders] Drag and Drop question

2008-05-01 Thread Josh McDonald
Ew =) All my dragdrop stuff is funky custom components so I never noticed. But ew. -J On Fri, May 2, 2008 at 7:49 AM, Tracy Spratt [EMAIL PROTECTED] wrote: Move is the default, there is extra work to copy. http://livedocs.adobe.com/flex/3/html/dragdrop_8.html Tracy

Re: [flexcoders] execute external application in adobe air

2008-05-01 Thread Jeffry Houser
Officially no. I blogged about one possible work around. http://www.jeffryhouser.com/index.cfm/2008/4/22/Using-AIR-to-launch-other-applications Carlo Gulliani wrote: can i execute another external application through adobe air app? for example, i want to run .app file, which

Re: [flexcoders] SOT: ColdFusion backend for Flex, what the heck am i doing wrong...

2008-05-01 Thread Jeffry Houser
I thought that the application.cfc was ignored for Flex Remoting requests. I have no idea why I think that, though, especially since it is documented that OnRequest can interfere with Flex remoting requests. I'll add that, I think it's a very bad idea to have Remote use CFCs that rely on

[flexcoders] Re: resizing a textArea to fit Text of the container.

2008-05-01 Thread Dmitri Girski
TextField has a problem calculating numLines if text contains CR/LF symbols. Dmitri. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: At measure time, it's width may not have been passed to the internal textfield. From:

[flexcoders] Re: resizing a textArea to fit Text of the container.

2008-05-01 Thread Dmitri Girski
--- In flexcoders@yahoogroups.com, Dmitri Girski [EMAIL PROTECTED] wrote: TextField has a problem calculating numLines if text contains CR/LF symbols. Still, I don't know why you've got such a difference in your case. I am using the following thing: override public function set

RE: [flexcoders] Cairngorm - always event, always command?

2008-05-01 Thread Jim Hayes
I can't see how you'd benefit from sidestepping the cairngorm event - command way of working in this case. If you use a service to get the IP address then it's asynchronous, and has a few possible outcomes. I can't see why you wouldn't want to wait for it's got one of those results or an error

Re: [flexcoders] E4X vs Array Collection

2008-05-01 Thread Daniel Gold
It doesn't get any faster than a typed class as far as data access, but there are some things to think about. To get the data into the typed class you have to parse the XML at some point, so it will probably come down to how often each property is accessed. If you're only going to hit each

Re: [flexcoders] Re: DataGrid and exporting values

2008-05-01 Thread Daniel Gold
Is the server round trip a huge problem? I have a loopback CSV servlet that I hit quite often in our application. Most of our datagrids are subclassed and have an Export CSV button at the bottom. Simple function to convert all the rows to CSV and send it the server as a parameter to a

Re: [flexcoders] ListCollectionView.contains()

2008-05-01 Thread Daniel Gold
contains is an object comparison, so it is by reference except when dealing with primitives I believe. The collection wouldn't know how you wanted to compare your objects so you'll have to iterate and check the relevant properties or extend a collection class, add a containsByValue, and have your

[flexcoders] Weird list item height problem.

2008-05-01 Thread Josh McDonald
Hey guys, I googled this and can't seem to find where I'm going wrong. I've got a list with an inline itemRenderer, with variableHeight turned on, but all non-visible items are losing their height. What I mean is that when you scroll down, all revealed items having standard list-item height, and

Re: [flexcoders] Sort a List Comp?

2008-05-01 Thread Daniel Gold
The List is simply the view for your data. You need to sort the dataProvider of the list so when the List is iterating over your data rendering it, it will be accessing the data in the order specified. I would pull the data from lastResult, store it in an ArrayCollection or

[flexcoders] Re: Drag and Drop question

2008-05-01 Thread Rafael Faria
That's nice that everybody is learning from my question :p I'm hereee o/ ehheheh someone can help me? :0 i still don't know how to get an updated tree after i move the node... or there is any easy way to remove a node from an xml?! thanks rafael --- In flexcoders@yahoogroups.com, Josh

Re: [flexcoders] Re: Drag and Drop question

2008-05-01 Thread Josh McDonald
Does it disappear from the first tree (i mean visually)? On Fri, May 2, 2008 at 9:57 AM, Rafael Faria [EMAIL PROTECTED] wrote: That's nice that everybody is learning from my question :p I'm hereee o/ ehheheh someone can help me? :0 i still don't know how to get an updated tree after i

RE: [flexcoders] Re: Drag and Drop question

2008-05-01 Thread Alex Harui
The answer should be to wait for dragComplete on the source tree. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Thursday, May 01, 2008 5:08 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Drag and

RE: [flexcoders] Weird list item height problem.

2008-05-01 Thread Alex Harui
Scour the archives. Folks ask about using Text in a renderer often. You always have to supply a custom measure() method that uses the explicitWidth of the renderer to measure the Text properly. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

RE: [flexcoders] Dynamic combobox from JSON request

2008-05-01 Thread Alex Harui
Arrays don't notify when you push items onto them, so you have to use ArrayCollection or use a temporary Array and assign it to myList From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of timgerr Sent: Thursday, May 01, 2008 11:42 AM To:

RE: [flexcoders] Image Resampling

2008-05-01 Thread Alex Harui
Scale it, use bitmapData.draw to get the new results From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ezekiel48 Sent: Thursday, May 01, 2008 11:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Image Resampling I want to

RE: [flexcoders] -compiler.mxml.compatibility-version

2008-05-01 Thread Alex Harui
No, it just sets different code paths in Flex 3 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of VELO Sent: Thursday, May 01, 2008 4:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] -compiler.mxml.compatibility-version Hi,

RE: [flexcoders] execute external application in adobe air [Windows]

2008-05-01 Thread zoltan
(For Windows only) here is the first release of the Aperture framework (it should be considered alpha-quality) The installer comes with the framework, help and samples http://www.fluorinefx.com/aperture/download/1.0.0.1/aperture.exe Zoli http://www.fluorinefx.com _ From:

Re: [flexcoders] Re: BlazeDS Security Confusion

2008-05-01 Thread Robert Cadena
weird. should just popup with an auth box. good luck with the rest of your app. /r On Thu, May 1, 2008 at 1:51 PM, Jim Boone [EMAIL PROTECTED] wrote: Robert, Well that certain made it spring to life! Thank you. It now throws an exception back to the front end with a Client.Authentication

[flexcoders] Re: Drag and Drop question

2008-05-01 Thread Rafael Faria
Yes it does... I found a solution. I used callLater and apparently it works now. I couldn't understand callLater before but it is a function that it's saving my life a lot lately! :P Now the question i have is there is anyway to get the XML from the tree without getting from the dataprovider?

RE: [flexcoders] Re: Drag and Drop question

2008-05-01 Thread Alex Harui
You still should be able to use dragComplete instead. The dataProvider wraps the XML and is the only good way to get it. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rafael Faria Sent: Thursday, May 01, 2008 7:08 PM To:

Re: [flexcoders] Weird list item height problem.

2008-05-01 Thread Josh McDonald
Thanks for that, I eventually found what I needed: http://flexnaut.blogspot.com/2007/11/adding-mxcontrolstext-component-to.html -J On Fri, May 2, 2008 at 10:18 AM, Alex Harui [EMAIL PROTECTED] wrote: Scour the archives. Folks ask about using Text in a renderer often. You always have to

Re: [flexcoders] Re: Extending Alert

2008-05-01 Thread Daniel Gold
This peaked my interested and I quickly flipped through the Alert class to see what was going on. Nothing really caught my attention so it seems like this is enforced by the MXML compiler. I verified this by adding an Alert in AS without using the static show funciton. In a simple test application

[flexcoders] Switching between RTMP and HTTP

2008-05-01 Thread Shailesh Mangal
We are using RTMP as our main protocol and HTTP as a fall back. I have bunch of questions. 1. We observed that when RTMP fails, DataService in client automatically falls back to HTTP. But when RTMP comes back, it doesn't reconnects and continues with HTTP. Is there an API to do this (other

[flexcoders] Re: Drag and Drop question

2008-05-01 Thread Rafael Faria
The thing is ... if the dataprovider is blank and i drop some element there, i'm not able to retrieve it. For instance i create a tree 1 and i set the dataprovider root element label=test 1 / element label=test 2 / /root and create a second tree without any dataprovider. At the moment i drop

[flexcoders] How can i refresh the mx:XML runtime.

2008-05-01 Thread Swamy Nathan
Hi Folks, I am working with the Dragndrop app. When i finished the dragndrop images to the canvas, i saved into the xml file. and also load into the canvas. My problem is when i edit the saved xml file at runtime after i saved. but i open to load the same file after i saving the file. this time

[flexcoders] Re: How can i refresh the mx:XML runtime.

2008-05-01 Thread Swamy Nathan
Am using to load the xml file via URLLoader(); -- Thanks Regards Swaminathan. M

RE: [flexcoders] itemFocusOut for dataGid ItemRenderer

2008-05-01 Thread jitendra jain
Its an Datagrid itemFocusOut Event See what iam doing is. public function handleRendererFocusOut(event: DataGridEvent):void{ if(event.reason == DataGridEventReason.CANCELLED || event.reason == DataGridEventReason.OTHER){ return; }

[flexcoders] Re: Drag and Drop question

2008-05-01 Thread Rafael Faria
So here is a example to what i'm talking about. someone can tell me why: 1 - First test on this example if i drag an item from a branch(NOT the WHOLE BRANCH) from tree1 and drop to tree2, and than click on get elements from tree 2 button. it shows nothing... and if you keep adding elements it

[flexcoders] Re: How can i refresh the mx:XML runtime.

2008-05-01 Thread Rafael Faria
hi Swamy, i'm not sure if i got that right, but you can try to use callLater functin. callLater(function():void { functionyouload() }); or set the dataprovider with the xml you load again. like i said, it's not clear what you want, but i think that one of those solution might work. good lucky

[flexcoders] Re: How can i refresh the mx:XML runtime.

2008-05-01 Thread Tim Hoff
So, the data is saved to the file, but the tree's dataProvider isn't getting updated with the saved data. URLLoader is a type of HTTP service. If you want to refresh the data that persists in the client, you will probably want to make an aditional request for the data, after each transaction

[flexcoders] ComboBox binding

2008-05-01 Thread Richard Rodseth
ComboBox binding is driving me crazy. [Bindable] public var selectedGranularity:String; mx:ComboBox id=granularityCombo dataProvider={source} selectedIndex={findSelectedIndex(this.selectedGranularity)} labelFunction=labelFunction / If I set a breakpoint on

  1   2   >