Re: [flexcoders] Possible to setStyle on the entire application?

2005-05-24 Thread Jeff Steiner
ha Sorry - I am looking to change them after the app has loaded. dynamically. Jeff - Original Message - From: Abdul Qabiz [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, May 23, 2005 10:47 PM Subject: RE: [flexcoders] Possible to setStyle on the entire application?

RE: [flexcoders] Possible to setStyle on the entire application?

2005-05-24 Thread Richard Butler
Jeff, mx.core.Application.application.setStyle(themeColor, 0xCC) should give you some joy... Unfortunately at runtime you can only change one style at a time, so if you're parsing a stylesheet it can be quite strenuous on the client machine's processing load, especially if you're changing a

RE: [flexcoders] Cairngorm 0.99 ViewHelper problem

2005-05-24 Thread Alistair McLeod
Hi Stephen, A few people have asked a similar question to yours and we're still thinking about the best solution. Here's one way If you create the ViewHelper yourself, as in the example you gave, the initialized() method will not be called - the Flex Framework calls that method at component

RE: [flexcoders] can I bind more that one checkbox to a send requ est?

2005-05-24 Thread Craig Newroth
Matt: Thanks for the response, I am trying to pass a list of the ones that are checked..values in the checkboxes are going to be passed to a cfc to get data from query and returned to datagrid. so I guess that you are saying to build an array out of the checkboxes (if they are checked) and then

[flexcoders] When do I need to Recompile mxml files?

2005-05-24 Thread Valy Sivec
Hello flexcoders, I have a flex project and want to precompile the mxml files. I was wondering if I need to re-compile the mxml files in case for example I fix a bug in the business logic of a remote object method.. ( not method signature changes ). So, when do I need to recompile the mxml

RE: [flexcoders] creating row in datagrid at runtime

2005-05-24 Thread Doodi, Hari - BLS CTR
Tracy, Thank you very much the info. I have a question for you about the NOTE you mentioned in earlier mail. Are you referring editcell event and editField( ) method with reference to new row or in general any cell? To my surprise I did not trap editcell event and did not call

Re: [flexcoders] Custom Datagrid (like Excel)

2005-05-24 Thread Beck Novaes
Thank you Jim! It will be very useful for me and I really appreciate the job you have done. Thanks again! Beck On 5/23/05, Tracy Spratt [EMAIL PROTECTED] wrote: There are about three dependencies you will need to modify/comment out, and it will run just fine. Tracy -Original

RE: [flexcoders] When do I need to Recompile mxml files?

2005-05-24 Thread Abdul Qabiz
Hi, Any changes to MXML associated AS files would require recompilation. Any changes to backend logic (POJO, EJB) doesn't require flex app recompilation, unless you have use Model/XML tag to fetch data from backend. Data of Model/XML tags get compiled in flex application, so you need

[flexcoders] error message working thru flexbook

2005-05-24 Thread diamondtearz
Good morning. I'm working through chapter 2 of the flexbook and came across an error message when trying to do the exercise. 2 Errors found. Error /TheBook/myBlogReader.mxml:5 URI is unknown! The namespace must either be defined via a manifest, or specified in package syntax (prefix.* or * for

[flexcoders] how to get value from datagrid cell?

2005-05-24 Thread Doodi, Hari - BLS CTR
Hi All, One small and very simple question I can not figure it out how - How to get the value from a cell of datagrid? I am tried the following but in vain. Please some one help me out. Thanks in advance. Function setData(event:Object) {

RE: [flexcoders] error message working thru flexbook

2005-05-24 Thread Abdul Qabiz
Hi, I believe the code in book corresponds to Flex 1.0 version. However, you can modify it work under Flex 1.5. Add this xmlns=* to Application tag and it would work. mx:Applcation xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* ///rest of code /mx:Application -abdul

RE: [flexcoders] can I bind more that one checkbox to a send requ est?

2005-05-24 Thread Matt Chotin
Yep, thats what Im saying. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Craig Newroth Sent: Tuesday, May 24, 2005 7:56 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] can I bind more that one checkbox to a send requ est?

Re: [flexcoders] how to get value from datagrid cell?

2005-05-24 Thread jeff tapper
You need to tell it which row of data you want myDataGrid.getItemAt(rowNum).column Name At 10:07 AM 5/24/2005, you wrote: Hi All, One small and very simple question I can not figure it out how - How to get the value from a cell of datagrid? I am tried the following but in vain. Please

RE: [flexcoders] how to get value from datagrid cell?

2005-05-24 Thread Doodi, Hari - BLS CTR
Jeff, Thanks for response, you mean Var dataValue = myDataGrid.getItemAt(event.itemIndex).getColumnAt(event.columnIndex).columnN ame; I don't want the name of the column user is modifying but I want the value entered by the user. I am sorry if I confused you. If you have an example code

RE: [flexcoders] When do I need to Recompile mxml files?

2005-05-24 Thread Valy Sivec
Thanks Abdul. Do I need to re-compile mxml files in case I made some changes to flex-config.xml? Thanks again, Valy Abdul Qabiz [EMAIL PROTECTED] wrote: Hi, Any changes to MXML associated AS files would require recompilation. Any changes to backend logic (POJO, EJB) doesn't require flex

[flexcoders] Validating XML

2005-05-24 Thread JesterXL
When the back-end is using validated XML value objects (using Castor to convert XML to Java objects, and since they are XML with an XSD, they can validate the data), how can Flex validate this data as well? I've dug and haven't seen anything that allows HTTPService or XML, or even the XML

Re: [flexcoders] Possible to setStyle on the entire application?

2005-05-24 Thread Jeff Steiner
Thank you very much. Jeff - Original Message - From: Richard Butler [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, May 24, 2005 2:24 AM Subject: RE: [flexcoders] Possible to setStyle on the entire application? Jeff,

Re: [flexcoders] can I bind more that one checkbox to a send requ est?

2005-05-24 Thread Jeff Steiner
Craig, I have a specific example on FlexAuthority. Visit: http://www.flexauthority.com/samplesIndex.cfm?sampleID=23 I have multiple checkboxes that pass along their checked state to a CFC that returns XML to populate a chart. Let me know if that does not answer your specific question. Jeff

Re: [flexcoders] Possible to setStyle on the entire application?

2005-05-24 Thread JesterXL
Try this. Put this code in your Application: function setupAppColor() { if(appColor == blue) { setStyle(themeColor, haloBlue); } else if(appColor == orange) { setStyle(themeColor, haloOrange); } else if(appColor == green) { setStyle(themeColor, haloGreen); } else

RE: [flexcoders] When do I need to Recompile mxml files?

2005-05-24 Thread Abdul Qabiz
Hi, Not sure, depends on your requirements. Some of the settings like generate-profile-swfs generate-debug-swfs optimize actionscript-classpath lib-path cache fonts might require recompilation of swf... May be someone who is more familiar with this stuff, comment. -abdul From:

RE: [flexcoders] When do I need to Recompile mxml files?

2005-05-24 Thread Matt Chotin
Abduls right, depends what you change in the flex-config.xml but I think for the most part a change to flex-config is probably meant to affect the SWF unless youre only changing the whitelist for one of the proxies. So Id generally re-compile. Its not like flex-config needs to change

[flexcoders] Storing Web Service Results in Unique Arrays/Objects

2005-05-24 Thread Dave
I have a sticky situation that seems easy to solve. Each time a row of a dataGrid (bound to webserviceA) is selected, a request to web serviceB is made. The sticky part is that each unique result from webserviceB (from a unique row selection), must be saved in order to be used by another

[flexcoders] Detecting flash player

2005-05-24 Thread viraf_bankwalla
Hi, I have a Flex application that is embeded in a HTML page. When the application is referenced using 'appname.mxml.swf' I have noticed that the flash player is not being detected. If I visit 'appname.mxml' directly from the browser, the version detection takes place. How do I enable the

Re: [flexcoders] Validating XML

2005-05-24 Thread JesterXL
My perception of Castor and the reason to use it is based on the ability to validate your data/value objects in Java, thus ensuring that if your data is valid, and another system has problems using it, it is the other system and not the base Java code. Furthermore, the use of XSD's for data

RE: [flexcoders] how to get value from datagrid cell?

2005-05-24 Thread jeff tapper
ok, try this: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; creationComplete=initApp() mx:Script ![CDATA[ var schedAdj_do:Array; function initApp(){ var item1:Object = new Object(); item1.name = Jeff;

[flexcoders] Making a page with a video clip

2005-05-24 Thread nostra72
One of the sample pages has a clip on it and its written like this ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" mx:MediaPlayback width="300" height="300" contentPath="../assets/clip.flv" controllerPolicy="on"/ /mx:ApplicationWhat I want

RE: [flexcoders] how to get value from datagrid cell?

2005-05-24 Thread Doodi, Hari - BLS CTR
Hi Jeff, Thank you very much for the help and the code. That helped me a lot in understanding getColumnAt() and getItemAt(). Thanks agin. Thanks! Hari -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jeff tapper Sent: Tuesday, May 24, 2005 11:55

RE: [flexcoders] Making a page with a video clip

2005-05-24 Thread Richard Butler
Title: Message You need Flash MX 2004 Pro and the Flash Video Exporter, which you can grab from macromedia.com, which you can then use to export movies to FLVsfrom programs such asAfter Effects. Sorenson Squeeze is also an exceptional tool for streaming media. Cheers Rich

Re: [flexcoders] Making a page with a video clip

2005-05-24 Thread nostra72
How much do these programs cost Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

[flexcoders] Re: Tree component's calculateWidth() method, does it work?

2005-05-24 Thread pilby1
No, that's not the problem. I did notice how I had the missing 's' after the fact, but in my code, it is calculateWidths(). If you would just create a tree component and try it, you will see calculateWidths () always returns NaN. --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL

RE: [flexcoders] Making a page with a video clip

2005-05-24 Thread Blake Kadatz
How much do these programs cost If you're not already familiar with it, http://froogle.google.com is a good place to start shopping for software prices. Enter appropriate product to search for (eg: sorenson squeeze) and have fun! Cheers, Blake Yahoo! Groups Links * To visit your group

[flexcoders] Panel Mouse Down Problem

2005-05-24 Thread kaibabsowats
I have a problem where the mouse doesn't fire off the correct MouseDown event. It only happens when the mouse doesn't move and a new container with a mouseDown event is loaded under it. It seems to remember the last container's mouseDown area and fires that event. I am trying to figure out how

[flexcoders] Minimal Tomcat Deployment

2005-05-24 Thread Dan Glauser
Hello folks, I'm sorry if this topic has already been covered but when searching the list I was unable to find what I am looking for. I'd like to put together a *minimal* set of tasks for deploying a Flex app in Tomcat. Specifically I'm looking for what jars need to be where and what deployment

[flexcoders] Re: Making a page with a video clip

2005-05-24 Thread kaibabsowats
There is also a free encoder here http://www.rivavx.com/ We ended up with Sorenson for quality reasons, but Riva is a good starting point. As for playing video in Flex, its pretty simple just explore the API of MediaPlayback, MediaDisplay and MediaController. Yahoo! Groups Links * To

Re: [flexcoders] Custom Datagrid (like Excel)

2005-05-24 Thread Beck Novaes
Hey Jim, I have a question: What is the dataProvider property in the Class ComboBoxCellRenderer2? Thanks. On 5/23/05, Jim Laing [EMAIL PROTECTED] wrote: Hey Beck, I've done exactly what you're looking for (plus a lot of other stuff you might not want), through digging into the DataGrid

RE: [flexcoders] creating row in datagrid at runtime

2005-05-24 Thread Doodi, Hari - BLS CTR
Tracy, Here is my code. If you don't mind can you help me out in resolving this issue. Thanks! mx:DataGrid id=myDataGrid width=100% dataProvider={schedAdj_do} textAlign=left height=250 headerHeight=50 editable=true cellEdit=updateData(event) mx:columns mx:Array

Re: [flexcoders] Custom Datagrid (like Excel)

2005-05-24 Thread Beck Novaes
I have a question: What is the dataProvider property in the Class ComboBoxCellRenderer2? Ignore! I know what it is. Thanks. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:

Re: [flexcoders] Making a page with a video clip

2005-05-24 Thread dave buhler
Yes, the MediaPlayback and MediaDisplay only support one type of video file. it has to be an FLV file. You can use any file format you want such as the following video types: WMV, AVI, MPEG as the video type. You then need to convert one of the aforementioned video types to an FLV. You can use

[flexcoders] Re: Eclipse as a main flex dev

2005-05-24 Thread r0main
Well, basically I'd just want to validate that the MXML files can be compiled... With MTASC I compile .as files just to get error messages, nothing more ! (then I can see flex mx.core classes have duplicates getter definitions ;-) ) And I'd like as well to have an eclipse-based MXML error

[flexcoders] Terribly confused on which methodology...

2005-05-24 Thread Mike Anderson
Hello All, I am converting a Flash MX app into a Flex App - but am super confused as to which Containers I should select, and which method I should use when creating a Data Model. One that can collect information from multiple Forms - which are from separate MXML files that get loaded into each

RE: [flexcoders] Terribly confused on which methodology...

2005-05-24 Thread Steven Webster
Mike, If you look at the Cairngorm Store sample that we shipped with Cairngorm 0.99 recently, you'll see the ModelLocator pattern that we advocate. Essentially, the ModelLocator provides you with a single place in your application where client-side state (the model) is held, and easily accessed

[flexcoders] media display question

2005-05-24 Thread venkat_berkly
I'm trying to build a media player application with a playlist. I would like to change the dataProvider property of the mediaDisplay dynamically when a song ends. Can someone help me. Thanks Yahoo! Groups Links * To visit your group on the web, go to:

RE: [flexcoders] Detecting flash player

2005-05-24 Thread Matt Chotin
We have a detection filter set to run for the mxml files. If you want it to run on SWF files as well youll need to adjust the filter settings in web.xml. Im not an expert in that but I dont think it should be too hard if youre familiar with J2EE. Matt From:

RE: [flexcoders] Storing Web Service Results in Unique Arrays/Objects

2005-05-24 Thread Matt Chotin
Check out the docs on the Asynchronous Completion Token (ACT) pattern. You can use the call object to keep track of the appropriate array index and then in the result handler store the result in the right slot. Or something similar Matt From: flexcoders@yahoogroups.com

[flexcoders] Dispathching and Event from Combo Box cell renderer

2005-05-24 Thread Mohanraj Jayaraman
Hi , I have a main.mxml where I have this DataGrid function initListener(){ addEventListener(statusChanged, mx.utils.Delegate.create(this, onStatusChange)); } function onStatusChange(e){ mx.controls.Alert.show(listener is Listening); }

RE: [flexcoders] Panel Mouse Down Problem

2005-05-24 Thread Tracy Spratt
Try this. Add this property to your button tag: trackAsMenu=true Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kaibabsowats Sent: Tuesday, May 24, 2005 12:44 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Panel Mouse Down

RE: [flexcoders] creating row in datagrid at runtime

2005-05-24 Thread Tracy Spratt
What is working, and what is not working? Implement your UpdateData() function in the sample app I provided. See if that works. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doodi, Hari - BLS CTR Sent: Tuesday, May 24, 2005 1:31 PM To:

[flexcoders] Saving a Flex chart as a jpeg file

2005-05-24 Thread greenfishinwater
I have a request for an application that presents data as various kinds of charts and graphs. The user would like thye ability to save specific charts as a jpeg, for later use in a powerpoint slide. Is this possible, I have a feeling it is not, I know how to print out, but to save as a jpeg?

RE: [flexcoders] can I bind more that one checkbox to a send requ est?

2005-05-24 Thread Tracy Spratt
I would use the editField() method to update the dataProvider as you go. When you are ready to submit, iterate through the dataProvider, check the value of the field you updated with editField. If it is true, push an element on a new array. Submit the new array. Or, create a new submit array on

RE: [flexcoders] media display question

2005-05-24 Thread Matt Chotin
When you get the complete event thats when it has reached the end of the media. You can then set the contentPath again and restart it playing. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of venkat_berkly Sent: Tuesday, May 24, 2005 4:10 PM To:

RE: [flexcoders] creating row in datagrid at runtime

2005-05-24 Thread Tracy Spratt
Huh? I can always be wrong, but I did not think that editable fields automatically updated a dataProvider. I will go test this now. Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doodi, Hari - BLS CTR Sent: Tuesday, May 24, 2005 9:06

[flexcoders] ProgressBar and cached images problem

2005-05-24 Thread Kristopher Schultz
Hey guys and gals, I've stumbled upon a quirky behavior I'm hoping you can help me resolve. The ProgressBar component does not appear to work properly if the graphic asset being loaded is in the browser's cache. The simple example below illustrates this problem. The first time this app

RE: [flexcoders] Dispathching and Event from Combo Box cell renderer

2005-05-24 Thread Matt Chotin
Its the ComboCellRenderer dispatching the statusChanged event? In that case the addEventListener is on the wrong thing because its not main dispatching the event. I think if the ComboCellRenderer does listOwner.parentDocument.dispatchEvent({type: statusChanged}) then it will execute on

RE: [flexcoders] can I bind more that one checkbox to a send requ est?

2005-05-24 Thread Tracy Spratt
Never mind, I was solving the wrong problem. Tract -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Tuesday, May 24, 2005 6:30 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] can I bind more that one checkbox to a

RE: [flexcoders] Re: Tree component's calculateWidth() method, does it work?

2005-05-24 Thread Matt Chotin
OK, it's a bug. Here's a class that you can use that fixes the problem. I didn't spend too much time testing it but the basic algorithm worked. I'll file this too. class FixedTree extends mx.controls.Tree { /** * Returns the recommended width of the control based on its

RE: [flexcoders] creating row in datagrid at runtime

2005-05-24 Thread Tracy Spratt
Im completely wrong! Holy crap, I have to go back an fix a lot of apps! Hari, Ill work on your issue in the other thread. Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Tuesday, May 24, 2005 6:34 PM To:

[flexcoders] Re: Panel Mouse Down Problem

2005-05-24 Thread kaibabsowats
Here I made it simplier: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:Panel id=panel1 title=Some Panel width=210 height=320 mouseDown=mx.controls.Alert.show('You have Clicked Me!')

RE: [flexcoders] Dispathching and Event from Combo Box cell renderer

2005-05-24 Thread Mohanraj Jayaraman
Hi Matt, Thanks , that worked. Mohanraj --- Matt Chotin [EMAIL PROTECTED] wrote: It's the ComboCellRenderer dispatching the statusChanged event? In that case the addEventListener is on the wrong thing because it's not main dispatching the event. I think if the ComboCellRenderer does

[flexcoders] Cairngorm error

2005-05-24 Thread Mehdi, Agha
Hi guys, I just started with Cairngorm 0.99 and am running into the following error. Did everything by the book. Any help will earn my thanks. :) Error /com/littler/ourpeople/business/Services.mxml:11 Namespace http://macromedia.com/2003/mxml has not been associated with component

[flexcoders] Applications forgetting variables

2005-05-24 Thread nostra72
I can not help but feel I have ran in to more problems than neccessary because my flex applicaitons forget variables. I mean I know from a code standpoint I am doing the right thing when I write my code but I think it forgets variables and I think this is causing me more stress than need be.

Re: [flexcoders] Cairngorm error

2005-05-24 Thread dave buhler
Hi Agha, Copy the Flex-Config file from the source files that came with either the Login sample or Store sample that came with the cairngorm download.Copy it over your existing Flex-Config file Best, DaveOn 5/24/05, Mehdi, Agha [EMAIL PROTECTED] wrote: Hi guys, I just started with

Re: [flexcoders] Saving a Flex chart as a jpeg file

2005-05-24 Thread dave buhler
http://www.convertzone.com/net/cz-adshareit%20swf%20to%20video%20converter%20pro-swf-jpg.htm On 5/24/05, greenfishinwater [EMAIL PROTECTED] wrote: I have a request for an application that presents data as variouskinds of charts and graphs. The user would like thye ability to savespecific charts

RE: [flexcoders] Cairngorm error

2005-05-24 Thread Mehdi, Agha
Did that just now. Same error. I restarted flex services but didn't work. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dave buhlerSent: Tuesday, May 24, 2005 7:43 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm error Hi Agha,Copy the

RE: [flexcoders] Applications forgetting variables

2005-05-24 Thread Gordon Smith
Can you be more specific about what you mean when you say it keeps forgetting, or post a tiny but complete mx:Application that demonstrates the problem? The meanings of 'var age' in your two examples are very different. Your second example would forget that you set age to 23, because

Re: [flexcoders] Applications forgetting variables

2005-05-24 Thread nostra72
I will set a variable to be a certain amount in one function then call it in a later function and its completely forgotten it Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL

RE: [flexcoders] Applications forgetting variables

2005-05-24 Thread Gordon Smith
It is 99.% likely that you have a coding error, but I can't tell you what it is if you won't post malfunctioning code. : ) It certainly sounds like you are declaring a local variable when you should be using an instance variable. - Gordon From: