Flex memory issues.

2005-02-25 Thread Mercer, Dustin
Title: Flex memory issues. I have avery large flex app I am running into some random crashes and heavy memory consumption. Memory consumption on Standard Flash Player (not Flash Debug Player) has been reaching 150 to 170 megs. I need to know what I can do to manage this. I have seen some

Dynamic URL for HTTPService

2005-02-25 Thread digital_eyezed
I have a drop down, populated and want to use the change event to populate the httpservice url parameter which will also fire off another httpservice. I have this: mx:Script ![CDATA[ var nameOf = ; function custChange(event) { nameOf = cusBox.data; srv.send(); } ]] /mx:Script mx:HTTPService

cursor priority problems

2005-02-25 Thread Andrew Spaulding
Hi all, I have noticed that when I load a flex app into another using the Loader control, when the cursor needs to be changed it appears blank, almost as though it is appearing behind the loader and on the root application. For example the loaded app has a HDividedBox and when i place the mouse

RE: [flexcoders] Populating a Combobox from an HTTPService

2005-02-25 Thread Tracy Spratt
You may not be at the right level of your result object. To debug, create a handler function and call it from the result event of the HTTPService: mx:HTTPService result=onResult(event) Private function onResult(oEvent:Object):Void{ trace(oEvent.result.list.customer.length) //or alert } You

RE: [flexcoders] Dynamic URL for HTTPService

2005-02-25 Thread Tracy Spratt
I don't think you can bind in the query string like that. Instead you will want to manipulate the request object: var oRequest:Object = new Object({id:nameOf}); srv.send(oRequest); There is a full example on www.cflex.net at the end of the beginner tips section. Tracy -Original Message-

amfgateway

2005-02-25 Thread Wilfred LEUNG
Hi I am tuning my applications at this moment. When I check the temp files directory of the internet explorer, I found a file named amfgateway of size 300K. The amount appears to download eveytime the IE access the site. I am trying to understand what this file is for and best if possible,

Binding attributes in Flex

2005-02-25 Thread deptquote
Is there a way to bind a value of the attributes Those one are not working: mx:NumberValidator field=valeur.nombre listener=chiffre maxValue={allo.enveloppe.valeur}/ mx:Label text=First Name color={envelope.text}/ This one is working: mx:Label text=Maximum: {envelope.value}/ Our idea is to

RE: [flexcoders] Flex memory issues.

2005-02-25 Thread Mercer, Dustin
Title: Flex memory issues. Upon more investigation, my memory usage seems to be stemming from my higher resolution. When I run the app in 1024*768 the memory consumption does not seem to exceed 110mb (high, but manageable for the size of this app). When run in 1280*1024, them memory usage

Small arrow on DividedBoxes for hidding container

2005-02-25 Thread deptquote
Is there any way we can add a small arrow icon over the scrolling icon given by the DividedBoxes? Similar to the ones we have on Dreamweaver to hide a window. That would be great if that function could be added to Flex out of the box! Thanks

RE: [flexcoders] Re: ComboBox color ?

2005-02-25 Thread Tracy Spratt
Well I used this and it works fine, but the color is purple, I want red, and I am clueless how to set all those properties, even after I looked in the docs. Red offset?? What the heck is that? I tried changing things at random and managed to blow away the down arrow completely. Will someone

RE: [flexcoders] Re: ComboBox color ?

2005-02-25 Thread Tracy Spratt
Never mind, I made my changes a little more slowly and found my red! -Original Message- From: Tracy Spratt [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24, 2005 11:06 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: ComboBox color ? Well I used this and it works

Re: [flexcoders] Dynamic URL for HTTPService

2005-02-25 Thread Jeff Steiner
Tracy is right, but there is an easier way. Change your HTTPService tag to look like this: mx:HTTPService id=srv url=installation.jsp mx:request ID{nameOf}/ID /mx:request /mx:HTTPService You can still reference the srv ID from AS and call it elsewhere in your app. But now - when you call srv it

Re: [flexcoders] Re: ComboBox color ?

2005-02-25 Thread Jeff Steiner
What was the magical attribute? Jeff http://www.flexauthority.com - Original Message - From: Tracy Spratt [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 24, 2005 8:09 PM Subject: RE: [flexcoders] Re: ComboBox color ? Never mind, I made my changes a little

Re: [flexcoders] Webservice array question

2005-02-25 Thread Jeff Steiner
Tracy, Thanks. For some reason I was referencing the index after the column name. Got it up and running. Jeff http://www.flexauthority.com - Original Message - From: Tracy Spratt [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 24, 2005 2:05 PM Subject: RE:

Re: [flexcoders] Populating a Combobox from an HTTPService

2005-02-25 Thread Jeff Steiner
If you are seeing the combobox look like it contains the data (meaning that you have a solid drop down) but there is nothing there, you probably overlooked labelField=. Add that as a property and put the name of the element that you want to see there. Jeff http://www.flexauthority.com -

attributes of getURL

2005-02-25 Thread Jeff Steiner
I am looking to control the size of windows that are opened using the getURL command from an mx:Link tag. Can someone point me in the right direction here? Thanks, Jeff http://www.flexauthority.com

RE: [flexcoders] Layer Positioning

2005-02-25 Thread Matt Chotin
UIObject has setDepthAbove and setDepthBelow methods which you can use. So you can grab the depth ofboth windows, then based on whatever conditions you can call one of those methods. Matt From: goran187 [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24,2005 11:04 AM To:

RE: [flexcoders] Flex memory issues.

2005-02-25 Thread Matt Chotin
Title: Flex memory issues. Can you break the large app into smaller apps that are loaded with Loader? Have you used the profiler to see if theres a method thats being called maybe too often and creating objects that are never let go? The profiler wont give you memory information, but

Removing the Event listener...

2005-02-25 Thread anumathew76
Hi, I want to remove an event associated to a component. I have a button mx:Button id=btn label=RemEvent click=remEvent() / I want to remove the click event handler for the button I tried btn.removeEventListener(click,remEvent). It doesn't seem to be working.Please advise me. Thanks, Anu

RE: [flexcoders] MODEL BINDING / DATAGRID

2005-02-25 Thread Matt Chotin
The binding is done but youre changing an element within the DataProvider without notifying the DataGrid that anything changed. You can call invalidate() on the DG in the result handler of webservice.MethodName and see if everything draws immediately. Otherwise you could re-assign the

RE: [flexcoders] attributes of getURL

2005-02-25 Thread Matt Chotin
I think youll probably need to call out to _javascript_ and use window.open which can take the options for size, etc. Matt From: Jeff Steiner [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24,2005 9:17 PM To: [EMAIL PROTECTED] Subject: [flexcoders] attributes of getURL

RE: [flexcoders] Removing the Event listener...

2005-02-25 Thread Matt Chotin
Hmm, I think its probably harder to do this straight from the tag. You may need to set this up differently. mx:Script var funcToRemove : Function; function addListener() { funcToRemove = mx.utils.Delegate(this, remEvent); btn.addEventListener(click, funcToRemove); }

RE: [flexcoders] Flex memory issues.

2005-02-25 Thread Mercer, Dustin
Title: Flex memory issues. Unfortunately I havent had the opportunity to do any profiling yet. I tried it a couple of weeks ago, couldnt get it to work and I had to get back to developing the application. I will set aside some time to do this though. To the other suggestion, I havent

RE: [flexcoders] Flex memory issues.

2005-02-25 Thread Matt Chotin
Title: Flex memory issues. Not sure if MovieClip._quality makes a difference in Flex: http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=1548.html My guess is that youll need the default (HIGH) since your app probably

editable rows datagrid

2005-02-25 Thread ibibas
Hi pals, I have a little big problem(hope I can clear it). From a database I retrieve records I display in a datagrid. I have a column in a datagrid set to editable=false. When I add new item, this column sholud be editable in order to fill new data. . Once saved(button pressed) I refresh the

RE: [flexcoders] editable rows datagrid

2005-02-25 Thread Abdul Qabiz
Yeah, you should be able to do this without a need of Custom CellRenderer. You should be able turn on/off editable property of DataGridColumn. - Make the column editable when record is going to be added - Make the column non-editable when save button is pressed Does it help? -abdul

FlashPaper for developers?

2005-02-25 Thread Simon Fifield
Does anyone know if it's possible to get a developer (i.e. no cost) version of FlashPaper? Kind Regards, Simon Fifield

RE: [flexcoders] Removing the Event listener...

2005-02-25 Thread Matt Chotin
Yes, the cell renderers will be zombied, sort of. Its not actually truly zombied because we recycle thecell renderers. When a row isnt needed due to resizing or whatever it goes on a free list, when its needed well bring it back. What I dont remember off-hand is if we do decide to clear

RE: [flexcoders] editable rows datagrid

2005-02-25 Thread ibibas
Thanks Abdul, Can I specify the unique editable record row is the new row? Isaac Bibás Abdul Qabiz [EMAIL PROTECTED] Para: flexcoders@yahoogroups.com a.com cc: Asunto: RE: [flexcoders] editable rows datagrid 25/02/2005 10:23 Por favor, responda a flexcoders Yeah,

RE: [flexcoders] Removing the Event listener...

2005-02-25 Thread Dirk Eismann
Wouldn't itbe a good enhancement to the EventDispatcher mix-in then to wipe references to undefined automatically when the removeEventListener() method is invoked? Dirk. -Original Message-From: Matt Chotin [mailto:[EMAIL PROTECTED]Sent: Friday, February 25, 2005 10:34 AMTo:

AMFPHP and Flex

2005-02-25 Thread daniele_galiffa
Hello everybody! I just started with Flex. I would like to know if there is some support for AMFPHP. Thanks

MVC Framework for flex

2005-02-25 Thread Arjun
Hello Does anybody know of MVC framework available for flex and have you used any in your project? Thansk Arjun

RE: [flexcoders] MVC Framework for flex

2005-02-25 Thread Abdul Qabiz
Here you go: http://www.richinternetapps.com/archives/94.html A framework based on modern version of MVC framework suited for Flex RIA development..It is called Cairngorm framework... Look in flexcoders archives for any queries on the same... There is another RIA framework called Ariaware

What are the advantages to connecting an mxml page to an as page

2005-02-25 Thread nostra72
I am curious because I am still trying to figure out how to connect an mxml page to an as page and I was wondering what is the advantage to doing that as opposed to simply putting all the script on the mxml page itself?

RE: [flexcoders] MVC Framework for flex

2005-02-25 Thread Steven Webster
Hi Arjun, Does anybody know of MVC framework available for flex and have you used any in your project? Have you tried the Cairngorm framework, which a large number of the folks building big RIAs with Flex on this list are using currently... Download here:

Editable Tree Nodes

2005-02-25 Thread Speer, Dustin
Here is my Tree code: mx:Tree id=groups height=100% load=ws.PopulateTreeView.send() borderColor=#FF width=100% x=0 y=0 change=changeNode(event) editable=true cellEdit=editNode(event) / The Tree displays properly (takes the string XML result from the web service and converts it

Re: [flexcoders] What are the advantages to connecting an mxml page to an as page

2005-02-25 Thread Jeff Tapper
Remember, each MXML file is effectively a class. Following OO best practices, each class should do 1 thing, and do it well. There are effectively 3 ways to add ActionScript to a flex app. 1) mx:Script block inline of mxml page. 2) mx:Script source= pointing to .as file, 3) AS Class instantiated

Re: [flexcoders] attributes of getURL

2005-02-25 Thread Jeff Steiner
Matt, I am not sure how I go about this. I have the javascript in a web page that I am using now to open the window and make it appropriate to the size required. Should I open a window and pass it the height width attributes and resize from there? I appreciate the help Jeff

Re: [flexcoders] Firefox problem

2005-02-25 Thread Jeff Steiner
Are you sitting behind a proxy? One potential could be that IE is configured to go through the proxy and Firefox is not. Just a thought based upon the error message. Jeff http://www.flexauthority.com - Original Message - From: Andrew Kasian [EMAIL PROTECTED] To:

RE: [flexcoders] Re: ComboBox color ?

2005-02-25 Thread Tracy Spratt
Title: RE: [flexcoders] Re: ComboBox color ? This one is Purple: var colorTransform:Object = { ra: 70, rb: 0, ga: 70, gb: 0, ba: 100, bb: 0, aa: 70, ab: 0}; This one is Red: var colorTransform:Object = { ra: 100, rb: 0, ga: 0, gb: 0, ba: 0, bb: 0, aa: 70, ab: 0}; Basically I set the

RE: [flexcoders] What are the advantages to connecting an mxml page to an as page

2005-02-25 Thread Tracy Spratt
Additionally, the first two can quickly get you up to the 32k limit, where the class approach will not. Tracy -Original Message- From: Jeff Tapper [mailto:[EMAIL PROTECTED] Sent: Friday, February 25, 2005 10:03 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] What are the

RE: [flexcoders] attributes of getURL

2005-02-25 Thread Tracy Spratt
Anybody know how to get a reference to the window created this way? I want to open a window once, then use the same window again with a new url. The docs discuss the window parameter to getURL: window: An optional parameter specifying the window or HTML frame into which the document should load.

TabNavigator tab color styles?

2005-02-25 Thread Robert Brueckmann
Just was working on applying a stylesheet throughout my application and Ive successfully changed the header colors of my datagrids and panels but I cant seem to figure out how to change the gradient fill color of my tabs in my tab navigator I have a stylesheet with the following:

Re: Pre-selecting a Combo Box from Bound Data

2005-02-25 Thread stealthbaz
Thanks.. I was afraid you'd say that. Ah well. I did submit a feature request :) --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: I know it seems strange, but you will really have to iterate through the items, compare the values, and set the selected index on the

Flex Builder?

2005-02-25 Thread Cushing, Matthew
Greetings, I'm a mac user and I wondered if anyone knew if they were going to port Builder to OSX or to Linux? I use it at work and really like it (although my license has run out which sucks), but I wondered if there was a way to accomplish the same thing on OSX. I had run across a

Component scripting syntax

2005-02-25 Thread Tom Fitzpatrick
I'm having some trouble with syntax while running a script in a component. I hope I can explain the problem clearly. I've created an mxml component to which I'm passing a dataObject. In the component, I want to use a script to do some manipulation of the dataObject. To test the script, I

RE: [flexcoders] Re: UI Style Guide

2005-02-25 Thread Stephen Gilson
Hi David, Do you mean a style guide for how we implemented our existing components, or a style guide for building them. Stephen Flex Doc -Original Message- From: David Solis [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 2:20 PM To: flexcoders@yahoogroups.com Subject:

RE: [flexcoders] attributes of getURL

2005-02-25 Thread Matt Horn
You can get at the name of the window in the page's JavaScript but not in Flex AFAIK. When you use getURL() to call a function that creates a new browser window, that new window not a known object in the Flex environment. However, you can use getURL to call other functions that can access that

Re: [flexcoders] Component scripting syntax

2005-02-25 Thread Tom Fitzpatrick
At 01:13 PM 2/25/2005, you wrote: I'm having some trouble with syntax while running a script in a component. I hope I can explain the problem clearly. Never mind - labelFunction did the job. So easy when you know how.

RE: [flexcoders] attributes of getURL

2005-02-25 Thread Steiner, Jeff
Great idea. Thanks, Jeff -Original Message- From: Dirk Eismann [mailto:[EMAIL PROTECTED] Sent: Friday, February 25, 2005 8:20 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] attributes of getURL Either use mx:Link label=Foo Bar

refresh datagrid

2005-02-25 Thread Miguel Diaz Valenzuela
hi coders now i need to refresh a datagrid after click on it. how can I do this? at the moment I have tried with following: function valida_datos_2(){ - this function is executed in cellPress event on datagrid dg.removeAllColumns();--- dg = datagrid`s name llena_datagrid.send(); this

RE: [flexcoders] Looping through content of a DG

2005-02-25 Thread Tarik Ahmed
Omg... I'm such loser, that was too easy. Thanks Art. From:[EMAIL PROTECTED]Sent: Thursday, February 24, 2005 4:30 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Looping through content of a DGHi Tarik,Try: myDg.dataProvider.length-ArtQuoting Tarik Ahmed <[EMAIL PROTECTED]>: Hey Matt,

disclosure icon in a custom datagrid cellrenderer?

2005-02-25 Thread James Ward
Hi all. I would like to display the disclosure icon used by the TreeRow in a custom datagrid cellrenderer. I have tried a number of things, but can't seem to make it work. Any ideas? Thanks. -James

scroll Tip Function

2005-02-25 Thread Clint Tredway
Ok, I have searched and searched how do I reference a datagrid column for the scroll tip function?

Class to Integrate Central with Flex

2005-02-25 Thread dave buhler
Hello FlexCoders, Does anyone have the class needed to integrate Flex with Central? Dave

RE: [flexcoders] Class to Integrate Central with Flex

2005-02-25 Thread Sasha Magee
You need to go through the Central SDK download link. Once you agree to the license and login to the macromedia site, you can download the Flex SDK for Central. -Original Message- From: dave buhler [mailto:[EMAIL PROTECTED] Sent: Friday, February 25, 2005 1:26 PM To:

RE: [flexcoders] scroll Tip Function

2005-02-25 Thread Robert Brueckmann
Clint, I see that the scrollTipFunction that you create accepts a position parameter to the functioncant you just refer to a column by making a call like this using the example from the API: function scrollTipFunction(direction:String, position:Number) : String { if (direction ==

RE: [flexcoders] scroll Tip Function

2005-02-25 Thread Clint Tredway
actually this is what I did to get it to work... function scrollTipFunc(dir:String,pos:Number){ mygrid.selectedIndex = pos; return mygrid.selectedItem.column; } just took awhile to find -Original Message-From: Robert Brueckmann [mailto:[EMAIL PROTECTED]Sent: Friday, February 25,

Populating DataGrid using Remote Object with arguments

2005-02-25 Thread dhiren9
Hi, I've gone through examples where I can call a remote object by clicking on a button and populating a datagrid. The function call on the button click accepts arguments processed by the remote object (POJO). How do i populate the datagrid on page launch, without having to click a 'Get

Re: [flexcoders] Class to Integrate Central with Flex

2005-02-25 Thread dave buhler
Thanks!

RE: [flexcoders] Populating DataGrid using Remote Object with arguments

2005-02-25 Thread Clint Tredway
look at using the initialize attribute of the Application tag. You set thisto a function and when the app loads, this function is fired. BUT - in this case I would set the function on the grids creationComplete so that when the grid is created the function will fire and your data will load.

Re: [flexcoders] Populating DataGrid using Remote Object with arguments

2005-02-25 Thread Manish Jethani
dhiren9 wrote: Doing it like this does not work: mx:DataGrid id=dg3 dataProvider=remoteTagInfo.getList ('ENG').result width=100% /mx:DataGrid You could do this: mx:DataGrid id=dg3 dataProvider=remoteTagInfo.getList.result width=100% creationComplete=remoteTagInfo.getList('ENG') /mx:DataGrid Manish

How do I create a listener WITH parameters for a button dynamically?

2005-02-25 Thread Pilby
Here is an example where I am creating a button using mxml: mx:Button id="btnOK" label="OK" click="btnOKClicked(event, 'hello', 'blue', 'bird');" / Notice mythat the click event refers to a function, btnOKClicked, passing 4 parameters to it. Here is an example of me creating the same

Re: Populating DataGrid using Remote Object with arguments

2005-02-25 Thread dhiren9
thanks guys!! --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: dhiren9 wrote: Doing it like this does not work: mx:DataGrid id=dg3 dataProvider=remoteTagInfo.getList ('ENG').result width=100% /mx:DataGrid You could do this: mx:DataGrid id=dg3

Re: [flexcoders] Re: UI Style Guide

2005-02-25 Thread David Solis
Hi Stephen, I'm thinking about something like this: http://developer.apple.com/documentation/UserExperience/Conceptual/OSXHIGuidelines/index.html BTW, it'd be a good idea to have a style guide for building new components, for instance vertical accordions, docks like InfoNode's

Asfunction not working inside htmlText

2005-02-25 Thread Greg Fuller
Hi everyone, I'm having trouble getting asfunction to work inside htmlText. This post in the MM flex newgroup suggests that asfunction may have been broken with the release of 1.5:

Re: [flexcoders] How do I create a listener WITH parameters for a button dynamically?

2005-02-25 Thread Manish Jethani
Pilby wrote: mx:Button id=btnOK label=OK click=btnOKClicked(event, 'hello', 'blue', 'bird'); / [snip] Here is an example of me creating the same button, BUT dynamically: var temp = this.createChild(mx.controls.Button, null, { id:btnOK label:OK }); Now here is my question. How do I dynamically

RE: [flexcoders] form validation

2005-02-25 Thread Dimitrios Gianninas
Hi Robert, For part 1, you willhave to create your own PhoneNumberValidator class that only validates the value if there is one. I had to do the same thing for some other validator. For part 2, I use the StringValidator for validating ComboBoxes, it should be enough,never done it with

RE: [flexcoders] Log-on Driven Application

2005-02-25 Thread Dimitrios Gianninas
Hi Dustin, Are you talking about single sign-on? Meaning, having multiple Flex UIs and only having to login once? I need to do this inthe next month or so, and I plan to have a main Flex UI which provides the login form, once login is successful, it will load the appropriate secondary UI

DataGrid / dataProvider question

2005-02-25 Thread viraf_bankwalla
Hi, I have an xml document that has the following form categories category id=123 name=abc products product id=123 name=def price12.54/price /product product id=345 name=ghi price12.54/price descdescription/desc /product /products /category category id=123 name=abc products product id=123

RE: [flexcoders] Re: change row´s text

2005-02-25 Thread Dimitrios Gianninas
For the "other problem", you could either: A) modify the data on the server before it reaches the UI B) use AS2 to loop thru the dataProvider and modify the appropriate rows. Jimmy Gianninas Software Developer - Optimal Payments Inc. From: Miguel Diaz Valenzuela [mailto:[EMAIL

Re: [flexcoders] disclosure icon in a custom datagrid cellrenderer?

2005-02-25 Thread James Ward
Thanks Manish. What's the equivalent actionscript so that I can do this in my CustomDataGridCellRenderer.as ? -James On Sat, 2005-02-26 at 04:13 +0530, Manish Jethani wrote: James Ward wrote: I would like to display the disclosure icon used by the TreeRow in a custom datagrid

Re: MVC Framework for flex

2005-02-25 Thread dduuggllaa
Steven, I just installed Tomcat and and trying to insert Cairngorm into it's directory tree. I'm am pulling my hair out trying to compile the two Java source files that come with Cairngorm. I am tripping over the classpath hell of javac. Can you please provide us with the correct classpath syntax