RE: [flexcoders] getPixels() returns byteArray bigger than rectangle

2007-05-28 Thread Alex Harui
Each color channel and alpha channel get a byte From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of maybe later... Sent: Sunday, May 27, 2007 2:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] getPixels() returns byteArray bigger t

RE: [flexcoders] Tree and XML data containing two similar text nodes

2007-05-28 Thread Alex Harui
This is a known bug. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of deh_ats Sent: Monday, May 28, 2007 3:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tree and XML data containing two similar text nodes Hi there, There

RE: [flexcoders] changing focus between textinput fields?

2007-05-28 Thread Alex Harui
focusManager.getNextFocusManagerComponent From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of candysmate Sent: Monday, May 28, 2007 12:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] changing focus between textinput fields? I

RE: [flexcoders] How to get the target node in dragEnter()

2007-05-28 Thread Alex Harui
I don't think the default tree behavior is to set selectionItem on dragEnter. There doesn't look like there is a documented way to do this, but maybe using some mx_internal stuff (_dropData) you can get what you want. From: flexcoders@yahoogroups.com [mailto:[

Re: [flexcoders] Showing item roll over color in a data grid manually

2007-05-28 Thread learner
use the hitData object of the ChartItemEvent class sample is as follows : http://www.adobe.com/2006/mxml"; layout="absolute"> Regards PS ε On 5/26/07, Sandeep Malik <[EMAIL PROTECTED]> wrote: Guys, We ar

RE: [flexcoders] Struggle with TileList refresh

2007-05-28 Thread Alex Harui
The largest hammer is invalidateList(). I"d be putting a listener for collectionChange on the dataprovider to see if you're getting notifications or not. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ben Marchbanks Sent: Monday, May 2

RE: [flexcoders] Restricting number of lines in a multiline textarea

2007-05-28 Thread Alex Harui
Not to my knowledge. You can track the number of lines and set maxChars when you hit the end of the number of lines you want, but that's not a perfect solution. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of paromitadey Sent: Monday, M

Re: [flexcoders] show value in combobox

2007-05-28 Thread Harish Sivaramakrishnan
Kanu, It is not recommended to use scalar values into your dataProvider, instead use the format {label:"varun"},{label:"manav"} instead of using varun, manav ... etc. For solving your issue, use the selectedItem property on the combbox. thanks Harish On 5/29/07, kanu kukreja <[EMAIL PROTECTED]

Re: [flexcoders] compiling java classes for flex data services

2007-05-28 Thread learner
Yes ! you are correct! I got that working after some brainstorming. Thanks ! Regards PS ε On 5/29/07, Dimitrios Gianninas < [EMAIL PROTECTED]> wrote: You need to add the flex-messaging.jar to your IDE's classpath. The jar is located in the WEB-INF/lib folder I believe. Dimitrios Giannin

RE: [flexcoders] show value in combobox

2007-05-28 Thread kanu kukreja
Tx for the quick reply Tracy But i was expecting some property for this insted of applying this logic. Is there is any property? Tracy Spratt <[EMAIL PROTECTED]> wrote: You need to loop over the dataProvider, comparing the appropriate property value to the match value

[flexcoders] Superimposing chart.

2007-05-28 Thread ivansebastiansurya
Hi everyone, Is it possible to have two area series, stacked on top of each other, superimposed (overlaid) to a line series? The idea is to have the area chart stacked and the line series appear in front of the stacked area chart. Thanks, Ivan.

Re: [flexcoders] Re: Actionscript SAX Parser ?

2007-05-28 Thread Claus Wahlers
Paul DeCoursey wrote: >> Nobody on this high-volume list wants/needs a SAX parser? >> Thats just crazy. I'm going back to .NET ;) > > Actually, this is something that I have been interested in. I did see > someone had one written for AS2, I don't recall the link. The code > did not translate w

[flexcoders] Restricting number of lines in a multiline textarea

2007-05-28 Thread paromitadey
Hello All, Is there any way to restrict the number of lines entered in a multiline textarea? Something similar to maxRows/maxLines in html. Regards, Paromita

[flexcoders] Re: Actionscript SAX Parser ?

2007-05-28 Thread Paul DeCoursey
--- In flexcoders@yahoogroups.com, "powertool786" <[EMAIL PROTECTED]> wrote: > > Nobody on this high-volume list wants/needs a SAX parser? > Thats just crazy. I'm going back to .NET ;) > Actually, this is something that I have been interested in. I did see someone had one written for AS2, I don

Re: [flexcoders] Struggle with TileList refresh

2007-05-28 Thread Ben Marchbanks
Yes I think my XML is well formed - not sure how to trace the overrides set data() Interestingly I did find that if I change the TileList display dimensions to be very small then restore to original size this obviously forces the itemRenderer to refresh - there's gotta be a better

[flexcoders] How to get the target node in dragEnter()

2007-05-28 Thread Tracy Spratt
I need a reference to the tree/xml node that is the current target of a drag/drop operation from within dragEnter. All of the examples I see use calculateDropIndex and set the selectedItem, but I do not want to select the tree item on dragOver. How can I tell what the drop target node is? Tracy

RE: [flexcoders] Struggle with TileList refresh

2007-05-28 Thread Tracy Spratt
Is the overrides set data() function in the renderer being called when you expect? And you are using the XML api (appendChild, etc.) Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ben Marchbanks Sent: Monday, May 28, 2007 9:2

Re: [flexcoders] Struggle with TileList refresh

2007-05-28 Thread Ben Marchbanks
H after rewriting the process to use XML the result is the same. itemRenderer just will not refresh its display while the underlying XML dataProvider is actually modified. I'm about to abandon the TileList in favor of a AS created display array after spending 2 days on what should be a

Re: [flexcoders] still missing flashlog.txt on OS-X

2007-05-28 Thread shaun
barry.beattie wrote: > another article on how to get the trace output in firefox (or > console.app): > http://www.visible-form.com/blog/view-trace-statements-in-the-terminal-on-os-x/ > > BUT... > > I don't get it. > > I'm *sure* I installed the debug player when I installed Flexbuilder a > coupl

RE: [flexcoders] dragSource in dragOver Handler changes during drag?

2007-05-28 Thread Tracy Spratt
Maybe I figured this out. The code example I am using sets the selectedIndex of the tree in the dragOver handler to the node being dragged over. This apparently is corrupting the dragSource. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECT

[flexcoders] dragSource in dragOver Handler changes during drag?

2007-05-28 Thread Tracy Spratt
In a dragOver handler function I want to access the data being dragged: var ds:DragSource = event.dragSource; var items:Array = ds.dataForFormat("treeItems") as Array; var xmlItemSource:XML = XML(items[0]); trace(xmlItemSource.toXMLString()); The trace displays different nodes depe

[flexcoders] Re: crossdomain.xml security issues

2007-05-28 Thread dazweeja
Sincere apologies for the triple posting - I sent the first on Saturday. Then when it hadn't appeared on Sunday, I doubted that I had posted correctly so I sent another. Then when neither had appeared on Monday, I began to think that my posts through the web interface weren't working so I tried an

[flexcoders] Re: Actionscript SAX Parser ?

2007-05-28 Thread powertool786
Nobody on this high-volume list wants/needs a SAX parser? Thats just crazy. I'm going back to .NET ;)

RE: [flexcoders] compiling java classes for flex data services

2007-05-28 Thread Dimitrios Gianninas
You need to add the flex-messaging.jar to your IDE's classpath. The jar is located in the WEB-INF/lib folder I believe. Dimitrios Gianninas Optimal Payments Inc. -Original Message- From: flexcoders@yahoogroups.com on behalf of learner Sent: Sun 5/27/2007 4:29 AM To: flexcoders@yahoogro

[flexcoders] Re: Flex 2 - Using removeChild/addChild to move children with removeEffect/addEf

2007-05-28 Thread tw1l1ghtsh0ck
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg64694.html

Re: [flexcoders] Object to XML

2007-05-28 Thread Marvin Froeder
To simple objects this is great... but to more complex object can be a problem... Well, if no alternative shows up... VELO On 5/28/07, Clint Modien <[EMAIL PROTECTED]> wrote: Use the introspection API to loop over the variables in an instance of your TestObject. http://livedocs.adobe.com/f

[flexcoders] VideoDisplay volume problem

2007-05-28 Thread Paul DeCoursey
I am having an issue with a VideoDisplay. It seems to ignore any volume setting I set. I have tried to set it to 0 at many different places and times in my code and every single time I can still hear the audio when the video starts. Has anyone else had this issue? Does anyone have a workaround?

[flexcoders] Re: Bindings, E4X, and bindProperty()

2007-05-28 Thread Justin Patrin
On 5/25/07, Justin Patrin <[EMAIL PROTECTED]> wrote: > I'm just getting to the point in my flex application where I'm trying > to implement binding between my model and view. I've set up > bidirectional binding in the model and UI by setting a binding in > each. The model uses normal object syntax

RE: [flexcoders] show value in combobox

2007-05-28 Thread Tracy Spratt
You need to loop over the dataProvider, comparing the appropriate property value to the match value, then set the comboBox selectedIndex when you match. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kanu kukreja Sent: Monday,

[flexcoders] show value in combobox

2007-05-28 Thread kanu kukreja
there is a combobox with 3 values: kanu manav varun through webservices i'm getting "varun" which i need to show in a combobox after clicking a button how to do this? Best Regards Kanu Kukreja - Looking for a deal? Find great

[flexcoders] Re: Flex and Flex Data Services Hosting .... Silverlight is coming ...

2007-05-28 Thread Joseph S. Terry, Jr.
Yeah, In thinking about it further, I simply need J2ee hosting with JTA support. For instance, Godaddy's version of Tomcat 5.1 or so, is NOT adequate for FDS. Another company, EAPPS ... http://eapps.com/ is perfectly compatible, but their cheapest plan is US$30 that is compatible. Does anyone kn

[flexcoders] Re: Best way to convert PNG to for usable in Flex

2007-05-28 Thread Tim Hoff
Hi David, Flex supports using png images directly; with no conversion necessary. To reduce the size of the png files, you can save them as flattened png's. This will strip out a lot of the bloat that accompanies layers. Props to my friend and coworker Karl Johnson; for giving me this tip. -TH

[flexcoders] changing focus between textinput fields?

2007-05-28 Thread candysmate
I have an application which is an upgrade for previous DOS users (remember DOS? :) ). As textinput fields have an 'Enter' event, I wondered how I could change focus to the next textfield in the tabindex group when the enter key is pressed please?

Re: [flexcoders] Charting dataTransform.invertTransform() on DateTimeAxis

2007-05-28 Thread Brendan Meutzner
Thanks Sunil/Ely. That's what I ended up doing... Brendan On 5/24/07, Ely Greenfield <[EMAIL PROTECTED]> wrote: Nope. invertTransform converts a position along the axis to a numeric data value. For DTAxis, data values are dates For that matter, DTAxes don't have a dataProvider, so the

Re: [flexcoders] Object to XML

2007-05-28 Thread Clint Modien
Use the introspection API to loop over the variables in an instance of your TestObject. http://livedocs.adobe.com/flex/201/html/usingas_053_9.html#225061 On 5/27/07, Marvin Froeder <[EMAIL PROTECTED]> wrote: Hi folks... Anyone knows if is possible to do something like the XStream on flex?

RE: [flexcoders] Struggle with TileList refresh

2007-05-28 Thread Tracy Spratt
For dynamically changing data, avoid XMLList since, like Array, its methods do not dispatch the events necessary to update the ui. Instead, use XML, or XMLListCollection. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pdfl

RE: [flexcoders] Help with my first Flex App...

2007-05-28 Thread Tracy Spratt
When referenceing in AS, use "result", when binding, use "lastResult": dataProvider="{service.lastResult.rsp.photos.photo}" But I strongly advise using a result handler instead of directly binding. It is much easier to debug with a handler. I also advise using resultFormat="e4x" Default is

Re: [flexcoders] Best way to convert PNG to for usable in Flex

2007-05-28 Thread cisnky
How large are we talking in terms of the size of the PNG files? On 5/28/07, David Lewis <[EMAIL PROTECTED]> wrote: Hello, We are working on a project where we need to be able to work with large size PNG files using transparency. What is the best way to convert these transparent PNG files so

Re: [flexcoders] Creating live streaming video player in flex ,something like youtube

2007-05-28 Thread greg h
Hi u4zoran2002, Regarding "live streaming video" "in flex" you might want to look at an article that Renaun authored last November. It is entitled "Video Conference with Flex & FMS". Renaun blogged about the article including a link to the article here

[flexcoders] Re: Browser Nightmares ..

2007-05-28 Thread iilsley
Anyone got any thoughts ? Workarounds ? :) .. --- In flexcoders@yahoogroups.com, "iilsley" <[EMAIL PROTECTED]> wrote: > > > Hi Tom , > > For simplicity.. They are not need to show the problem.. :) > > The problem seems to come from the DOCTYPE which I have to use .. > I've noticed that the

[flexcoders] How to easly setup a php proxy that requests and receives data from wsdl service

2007-05-28 Thread pioplacz
Hi! I found many ways on internet to setup a php proxy that retrivers data from wsdl service but what about requesting data? My problems is that the API service i'm trying to access isn't that happy about setting up a crossdomain.xml file on the server and i have to find a way around it all

RE: [flexcoders] Linux Flash Player 9 buggy ?

2007-05-28 Thread Matt Chotin
Ubuntu right now is not an officially supported Linux distribution though we are working on changing that. There are a number of Linux bug fixes coming out pretty soon actually (at least in a beta player). We do care about Linux and will continue to work on it, but unfortunately with even more di

RE: [flexcoders] need property name

2007-05-28 Thread Matt Chotin
Are you looking for the selectedItem property? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kanu kukreja Sent: Monday, May 28, 2007 6:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] need property name there are some propert

Re: [flexcoders] Best way to convert PNG to for usable in Flex

2007-05-28 Thread Derek Vadneau
As of Flash Player 8 you can display PNG files just like JPG files in previous versions. That includes transparent PNGs. On 5/28/07, David Lewis <[EMAIL PROTECTED]> wrote: Hello, We are working on a project where we need to be able to work with large size PNG files using transparency. What i

[flexcoders] Best way to convert PNG to for usable in Flex

2007-05-28 Thread David Lewis
Hello, We are working on a project where we need to be able to work with large size PNG files using transparency. What is the best way to convert these transparent PNG files so that they can be properly displayed and worked with in Flash? Thanks David Lewis

[flexcoders] Creating live streaming video player in flex ,something like youtube

2007-05-28 Thread u4zoran2002
Hello guys, i just got a task at faculty to create flash player in Adobe Flex Builder, something like youtube. The professor told me that all i need is to put code for the controls and connect it to html page. All of this is very new to me as i am beginner, i would appreciate if someone has the com

Re: [flexcoders] Linux Flash Player 9 buggy ?

2007-05-28 Thread Nick Sophinos
I sympathize but I think that the popularity of Mac OS as a Linux replacement has made it even less likely On 5/28/07, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote: > > > > > > > Hello folks, > > I finally made my switch to GNU/Linux. It has been an awesome experience so > far (both in term

[flexcoders] Linux Flash Player 9 buggy ?

2007-05-28 Thread Marcelo de Moraes Serpa
Hello folks, I finally made my switch to GNU/Linux. It has been an awesome experience so far (both in terms of fun and learning). I'm using Ubuntu 7.04 (Feisty Fawn). However, I found out that the Linux version of Flash Player 9 appears to be somewhat buggy. It starts with the context menu, thou

Re: [flexcoders] RangeError: Error #2006: The supplied index is out of bounds.

2007-05-28 Thread Daniel Freiman
try this: var numChildren:Number = canvas.numChildren -1; for (var i:int = numChildren; i >= 0; i--) { if (canvas.getChildAt(i).visible == true) { canvas.removeChildAt(i); } } You were having 2 problems. First, let's say that you have 7 children and remove 5. By the end of the loop, the child

Re: [flexcoders] My problems with Events

2007-05-28 Thread Daniel Freiman
This could be a lot of things. If you could post code, that might be helpful. But before you do that, take a look at my post on MouseEvents http://nondocs.blogspot.com/2007/04/flexfaqmouseevents.html The cause of your problem may be in there. Dan Freiman nondocs

Re: [flexcoders] Re: Flex and Flex Data Services Hosting .... Silverlight is coming ...

2007-05-28 Thread Jeffry Houser
I'm not sure specifically what you are asking. but if you Google I suspect you can find your answer. http://www.adobe.com/products/flex/productinfo/faq/ [quote] You can also use a free, limited-production version of Flex Data Services Express 2. This version is production-use software tha

RE: [flexcoders] Help with my first Flex App...

2007-05-28 Thread Kevin Aebig
You need to post the classes you've included as I'm almost positive you're missing a reference. !k _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bmelendy Sent: Friday, May 25, 2007 4:16 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Help with my

Re: [flexcoders] Re: y nobody replies to my mails :(

2007-05-28 Thread Daniel Freiman
It looks to me like people are responding to your questions. Maybe they're not going through. Otherwise, a few bits of advice (some of which you're already doing). 1. Make sure emails only have one question or all questions in the email are related to each other. This just makes it easier for so

[flexcoders] Struggle with TileList refresh

2007-05-28 Thread pdflibpilot
I have a tileList that does not update its itemRenderer when the dataProvider is changed. In one scenario I have a drag and drop to the TileList that always updates the dataProvider (XMLList) but will not reflect the change in the display. I can force a refresh by iterating over the XMLList like so

[flexcoders] Re: null reference...? why? ( FDS - Spring - Hibernate)

2007-05-28 Thread peuga
--- In flexcoders@yahoogroups.com, "peuga" <[EMAIL PROTECTED]> wrote: > > Hi people... im new in the flex world. im trying to create some > components (images) that get their data from two sources, httpservice > (xml file) and dataservice (spring bean). when the results from the > dataservice arriv

[flexcoders] Re: Flex and Flex Data Services Hosting .... Silverlight is coming ...

2007-05-28 Thread barry.beattie
> If > you only need a single Flex app on the server, you can use the free > version of it. the criteria: "probably only a few hundred simultaneously." so the free version will do that? honestly?

[flexcoders] still missing flashlog.txt on OS-X

2007-05-28 Thread barry.beattie
another article on how to get the trace output in firefox (or console.app): http://www.visible-form.com/blog/view-trace-statements-in-the-terminal-on-os-x/ BUT... I don't get it. I'm *sure* I installed the debug player when I installed Flexbuilder a couple of months ago and sure enough, when I

[flexcoders] Please help!! Reduce alpha value of a color in a bitmap image?

2007-05-28 Thread arpan srivastava
Hi all, I am facing a lot of problem with bitmap image. Can anyone tell me a filter with which i can reduce the alpha value of a particular color. e.g. suppse i have a flag of Japan in which there is a white rectangle with a red circle in between and I want to reduce the alpha value of only

[flexcoders] Re: How to access last node atributes with e4x?

2007-05-28 Thread mocalocamm
I found a very ugly way of doing this but there is probably a better way... var temp = xml.month[(xml.month.length()-1)].day.length()-1; endDate = new Date(xml.month[(xml.month.length()-1)[EMAIL PROTECTED], xml.month[(xml.month.length()-1)[EMAIL PROTECTED] - 1, xml.month[(xml.month.length()-1)[EM

Re: [flexcoders] Flex and Flex Data Services Hosting .... Silverlight is coming ...

2007-05-28 Thread Jeffry Houser
I haven't read the FDS license agreement. That said, you can get a dedicated box for relatively cheap and many such plans allow you to install whatever you want on the box. In such a case, I would expect you to be able to install FDS w/o any problems. If you only need a single Flex app o

[flexcoders] need property name

2007-05-28 Thread kanu kukreja
there are some properties in a combo box like: cell meeting others i got meeting from the server side through webservices which i need to show at the time of editing evtRelType_cb.(PROPERTY NAME)=evtRelToArr[idx].label can anybody tell me the property name pls Be

[flexcoders] null reference...? why? ( FDS - Spring - Hibernate)

2007-05-28 Thread peuga
Hi people... im new in the flex world. im trying to create some components (images) that get their data from two sources, httpservice (xml file) and dataservice (spring bean). when the results from the dataservice arrive i want to provide the repeater with the data from the xml so when it is creati

[flexcoders] My problems with Events

2007-05-28 Thread jairokan
Hi, I'm doing a little application example while learning different topics. I'm in the Events topic now ,which I'm still struggling to understand (Capture, bubble phases). The application is very simple having a display list as follows. MainSprite ChildSprite TextField The Child Sprite has a

[flexcoders] Re: Dispatch event in itemClickHandler

2007-05-28 Thread hu22hugo
I doubt that this is the best solution. However, it seems to work. private function itemClickHandler(e:MenuEvent) : void { var event : PageEvent = new PageEvent(PageVO.GET, [EMAIL PROTECTED]) this.callLater(eve, [event]) } private function eve(event: PageEvent): void {

[flexcoders] Object to XML

2007-05-28 Thread Marvin Froeder
Hi folks... Anyone knows if is possible to do something like the XStream on flex? That means convert an object directly into a XML, without manual work. Class: package test { public class TestObject { public var a: String = "a paramater"; public var b: String = "b parameter";

[flexcoders] Tree and XML data containing two similar text nodes

2007-05-28 Thread deh_ats
Hi there, There must be something terribly wrong with the Tree component. Here is a very basic Flex app sample in which I try to have a Tree component render some very basic XML data. The thing is that in this XML, two text nodes have the same value ("a" in my exemple). I can't see why this would

[flexcoders] Showing item roll over color in a data grid manually

2007-05-28 Thread Sandeep Malik
Guys, We are having a data grid and a pie chart which show the same data. What we want is when user does a "mouse over" (or "item roll over") over a wedge in pie chart, then the corresponding row in data grid should also show a itemRollOver color and vice versa. Any suggestions will be apprecia

[flexcoders] Flex and Flex Data Services Hosting .... Silverlight is coming ...

2007-05-28 Thread Joseph S. Terry, Jr.
OK. Adobe... If you will not allow others to host Flex Data Services, for a fee, then do it yourself. Silverlight is coming. Yes, .Net overhead. Yes. XP, OSX, and Vista only ... leaving out millions on 98 (of course), ME(ppaaaeee), Win2k, Linux, etc. but really is that an excuse

[flexcoders] How to access last node atributes with e4x?

2007-05-28 Thread mocalocamm
This is my xml: etc... etc... More months will be added with time so I need to set a variable always with the values of the lastest month: endDate = new Date(2007,5,30) Accessing the beginning of the month is easy enough: startDate = new Date([EMAIL PROTECTED],[EMAIL PROTECT

Re: [flexcoders] Re: compiling java classes for flex data services

2007-05-28 Thread Mayur Bais
Thanks for replying, but for compiling java class why would i need swc? though I have one in my class library path. Regards PS ε On 5/28/07, simonjpalmer <[EMAIL PROTECTED]> wrote: I think you are probably missing fds.swc from your library path. If you are using the Eclipse IDE, search for

[flexcoders] adding an arraycollection VO as a property in another VO

2007-05-28 Thread Adrian Gillette
I'm trying to add an arrayCollection of VOs to another VO as a property in the following way: [ArrayElementType("com.ics.vo.ChoiceVO")] public var CHOICES:ArrayCollection; But when I run my flex project, I get the following error: ReferenceError: Error #1056: Cannot create property CHOICES on c

[flexcoders] Re: Treat a string as a reference to an object?

2007-05-28 Thread tedgies
Thanks Gordon, Following your example, can you create the name of the root object dynamically and have it be treated as a valid property reference at runtime? example: If i wanted obj1.foo, obj2.foo, or objsome_string.foo thanks, Ted --- In flexcoders@yahoogroups.com, "Gordon Smith" <[EM

[flexcoders] Re: Am I using the right technology?

2007-05-28 Thread dtramer
I am curious to know what "then talks XML with null byte terminators" means and how it is relevant here. --- In flexcoders@yahoogroups.com, "Daniel Grace" <[EMAIL PROTECTED]> wrote: > > FDS and polling are not your only options. > > Write a back-end server that answers socket connections above 10

[flexcoders] Re: Problem with RichTextEditor and states

2007-05-28 Thread Javier de la Torre
Uhmmm... What a curious feature side effect. It is not the kind of effect yo would expect I ahev to say. Using the Flex Builder somehow drives you to use states and remove add components with them. I tried this hack before and it works but it makes the code uglier :( I dont like this behaviour...

[flexcoders] crossdomain.xml security implications for Flex/Flash

2007-05-28 Thread dazweeja
I'm trying to get my head around the security implications of open (ie. allow all) crossdomain.xml files. Basically I understand that issues arise when there is an open crossdomain.xml file on a domain that uses cookie or password based authentication as the SWF can read/forge the cookie info that

[flexcoders] Tree can't render properly XML data containing two similar text nodes

2007-05-28 Thread deh_ats
Hi there, There must be something terribly wrong with the Tree component. Here is a very basic Flex app sample in which I try to have a Tree component render some very basic XML data. The trick is that in this XML, two text nodes have the same value ("a" in my exemple). I can't see why this would

[flexcoders] What are the risks of "allow-all" crossdomain.xml files?

2007-05-28 Thread dazweeja
What I'd like to do is create a simple Flex application that can be distributed to any (ie. untrusted) source that reads data from my web server using AMFPHP. I understand that this requires a crossdomain.xml file. I'm trying to get my head around the security implications of open (ie. allow all)

[flexcoders] Re: sandbox error

2007-05-28 Thread dazweeja
Sorry, the last part of my post was incorrect - I didn't read your post carefully enough regarding the cross-domain issue. If the Flex app is published on the same server where your database resides, you don't have to worry about a crossdomain.xml file. Cheers, Darren. --- In flexcoders@yahoogrou

[flexcoders] crossdomain.xml security issues

2007-05-28 Thread dazweeja
I'd like to create a simple Flex application that can be distributed to any (ie. untrusted) source that reads data from my web server using AMFPHP. I understand that this requires a crossdomain.xml file. I'm trying to get my head around the security implications of open (ie. allow all) crossdomain

[flexcoders] Re: sandbox error

2007-05-28 Thread dazweeja
Hi Joe, You might want to look into using AMFPHP rather than opening up your MySQL installation for remote access: http://www.adobe.com/devnet/flex/articles/flex2_amfphp.html Or if you don't mind sending and receiving XML, you don't need AMFPHP: http://www.adobe.com/devnet/flex/articles/flex2_p

[flexcoders] RangeError: Error #2006: The supplied index is out of bounds.

2007-05-28 Thread tw1l1ghtsh0ck
I. var numChildren:Number = canvas.numChildren - 1; for (var i:int = 0; i < numChildren; i++) { if (canvas.getChildAt(i).visible == true) { canvas.getChildAt(i).visible = false; } } II. var numChildren:Number = canvas.numChildren - 1; for (var

[flexcoders] Help with my first Flex App...

2007-05-28 Thread bmelendy
This has got to be a simple one. I am writing the tiny app given in a video tutorial by Sho Kuwamoto. The tutorial is on displaying flickr pictures in a basic tilelist control and is located here: http://labs.adobe.com/technologies/flexbuilder2/tutorials/sho_kuwamoto / I have identified these

[flexcoders] Re: DeepCopy Built In?

2007-05-28 Thread Lucas Pereira
Hi. The ObjectUtils.copy(obj:someobject) proves to be very usefull, but i ended up in a new problem. when doing the copy if i want to cast the resulting Object to a custom object it doesn't work. For instance. If i have the objetc Person that implements IValueObject and want to cast the resulting

[flexcoders] Re: Converting the output of ObjectUtil.copy() to custom type

2007-05-28 Thread Lucas Pereira
Hi. Right now I'm having the same problem. I even found this: public function cloneObject(o:Object):Object { var bytes:ByteArray = new ByteArray(); bytes.writeObject(o); bytes.position = 0; return bytes.readObject(); } but ended up always in the casting problem :( Had you find an answer? Th

[flexcoders] Re: problems with storing XML in SharedObject

2007-05-28 Thread annespg
H, still baffled. I tried as you suggested and still can't seem to save the xml. Also, you said "they do save the data type of a complext" Did you mean they do NOT save the type and when you read it back you just get type Object? I thought that's what I read in the user guide and th

[flexcoders] Re: problems with storing XML in SharedObject

2007-05-28 Thread annespg
Barry, thank you so very much for your willingness to help and for providing some code. I tried loading this into a test project and ran into a number of problems/questions. 1) I don't see in the code where you construct, write out and .flush any xml into your local SharedObject. Would that

Re: [flexcoders] Re: DataGrid and complex types

2007-05-28 Thread André Rodrigues Pena
Palmer, Thanks, that really solves the problem! :) On 5/27/07, simonjpalmer <[EMAIL PROTECTED]> wrote: write a method on your Customer and Product classes as follows: public function toString():String { return this.; } If you want more than that you can write a custom renderer for your clas

Re: [flexcoders] DataGrid and complex types

2007-05-28 Thread Andrea Santambrogio
On 27/05/2007, at 21:57, André Rodrigues Pena wrote: Although when I try to populate de DataGrid, I can't set a DataGridColumn to display the property "name" within the property "product" from the data provider. The code is the following: height="100%"> Only the simple attribute "id" i

Re: [flexcoders] Re: Container refresh

2007-05-28 Thread Michael Schmalle
fyi, content added from updateDisplay You may know this or you may not but, you do not addChild() in updateDisplayList(). You would do that in commitProperties(), then update displayList() will be called to size you new children. Peace, Mike On 5/28/07, Janis Radins <[EMAIL PROTECTED]> wrot

[flexcoders] RemoteClass

2007-05-28 Thread André Rodrigues Pena
Hi all, I have a Java service that returns an ArrayList of type Sale. At the Flex application I also have the type Sale, the simplifyed version is this: package beans { [Managed] [RemoteClass(alias="com.beans.Sale")] public class Sale { public var id:int;

[flexcoders] Re: LineSeries interpolateValues=false

2007-05-28 Thread nmunro271
For information, just setting the missing date values did the trick (i.e. the data provider now has ALL the x-axis values, but some missing y-axis values) , the graph now correctly breaks lines for missing dates. Thanks, Neil.

Re: [flexcoders] render values from datagrid

2007-05-28 Thread Harish Sivaramakrishnan
Hi Kanu Please go thru the following example http://www.adobe.com/2006/mxml"; layout="absolute" creationComplete="start()"> It is strongly recommended that you look up the AS3 / Flex documentation on the adobe website. Many of your questions will have solutions right there. Happy

Re: [flexcoders] sandbox error

2007-05-28 Thread Bjorn Schultheiss
A swf www.abc.com cannot dl data from localhost without a policyFile on localhost. If you place a policyFile on the server hosting mysql and allow the server where your swf resides you 'should' be alright. regards, Bjorn On 28/05/2007, at 6:23 PM, li.wen wrote: Hello, Such as, mysql se

Re: [flexcoders] Re: Container refresh

2007-05-28 Thread Janis Radins
Found the problem and it was my own foult. 2007/5/28, Janis Radins <[EMAIL PROTECTED]>: Thanks for reply but thats not the case. My problem is not resizing but fact that content added from updateDisplay doesn't appear unless I change size of component. 2007/5/28, simonjpalmer < [EMAIL PROTECTE

Re: [flexcoders] sandbox error

2007-05-28 Thread li.wen
Hello, Such as, mysql server I am using is "localhost:3066" in my server. And my server has address "www.abc.com". The swf file runs as www.abc.com/abc/abc.swf. Does it count in same domain? Regards, Joe - Original Message - From: John Robinson To: flexcoders@yahoogroups.com

Re: [flexcoders] Re: Container refresh

2007-05-28 Thread Janis Radins
Thanks for reply but thats not the case. My problem is not resizing but fact that content added from updateDisplay doesn't appear unless I change size of component. 2007/5/28, simonjpalmer <[EMAIL PROTECTED]>: can't answer your question myself, but take a look at this... http://www.flex-flex