[flexcoders] mxml compile fails

2006-01-09 Thread Mika Kiljunen
Hi, Does anyone have a clue what causes this error or is there any output anywhere? It occurs always when I try to compile a simple mxml file with mxmlc.   The error is: “Failed to compile testApp.mxml” and that’s all. Not much help there?   I *think* my params are correct for mxmlc

RE: >< [flexcoders] Flex 1.5 and CPU load

2006-01-09 Thread Mika Kiljunen
After checking things out I solved the CPU pumping by a setting in flex-config, it seems that since there are so many files it just needs a bit more time to check the files for modifys which causes the pumping effect on CPU. By giving more delay between checks it seems to solve it, at lea

RE: [flexcoders] Re: Flex 2.0 Form validation

2006-01-09 Thread Philip Costa
Hi, I sent this response to the labs forums as well. phil - I have an internal build, and your code works as written. I don't have the public alpha version installed at the moment, but it's possible there was a bug in the validator that's preventing your application from working pr

[flexcoders] {Resending] Component DataBinding issue

2006-01-09 Thread superabe superabe
Resending in case this was missed. Hi there,   I have a custom AS component that seems to generate a script time-out error when I use databinding to set one of its params. It works fine if I hard code the param value.   Any ideas as to why this may be happening ? (code pasted below)   TIA - sup

Re: [flexcoders] Re: Need help in tackling this event problem...

2006-01-09 Thread JesterXL
Opposite. Dispatching events is syncronous, meaning your ServiceLocator's webservice/remoteobject call is actually run last. So, if you set your event data on the ModelLocator before setting it, you'll be safe since even if the WebService magically returned while the ActionScript AVM was still

RE: [flexcoders] State Transistions

2006-01-09 Thread David Mendels
Hi,   This will be implemented in the public beta...it isn't in the alpha.   -David From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rebel_assualtSent: Sunday, January 08, 2006 7:31 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] State Transi

[flexcoders] nested applications / widgets

2006-01-09 Thread Angus Johnson
Hi everyone! Just picking up Flex for the first time and playing with the Alpha and AS3. I'd like to run a question passed you all. We have a Coldfusion html based application that is made up of many sub applications. These sub app's are selected by users and displayed as pods under one shell

[flexcoders] Re: Need help in tackling this event problem...

2006-01-09 Thread george_lui
JesterXL, Yeah, that's kinda what I suspected. I suppose I could stick it in a ModelLocator. However all my events are asynchronous, so I suppose that *theoretically* your data in ModelLocator might not be in the *correct* context if, say, you have some chained asychronous events right? thanks,

RE: [flexcoders] dynamic number of datagrid columns

2006-01-09 Thread Gordon Smith
The DataGrid class has addColumn() and addColumnAt() methods.   - Gordon   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of t_msreddy Sent: Monday, January 09, 2006 2:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] dynamic number of datagrid c

RE: [flexcoders] Remoting over HTTPS fails in IE 6.0

2006-01-09 Thread Peter Farland
From reading your subject line, did you mean the opposite of what you said below? That is, did you mean:   when I open it using http://bla-bla/index.mxml remoting works fine in IE, but when I do it using https://bla-bla/index.mxml it loads nothing no request come to the amf gateway     Rem

RE: [flexcoders] dynamic number of datagrid columns

2006-01-09 Thread Tracy Spratt
As I recall, if your dataProvider is a clean array of simple objects, the DataGrid will default to displaying all the columns, with the property names as column headers, and in unpredictable order.   Alternatively, you can dynamically create the DG columns.  To do this you will need som

RE: [flexcoders] State Transistions

2006-01-09 Thread Ashish Goyal
States will have support for transition effects in the next alpha/beta release. Thanks -Ashish -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rebel_assualt Sent: Sunday, January 08, 2006 7:31 PM To: flexcoders@yahoogroups.com Subject: [flexcod

[flexcoders] dynamic number of datagrid columns

2006-01-09 Thread t_msreddy
HiI need to implement a datagrid based on user input. User input determines the number of datagrid columns.Can you please tell me how to do this? In all the examples I have seen the grid columns are static though data is rendered through data provider like this:ataGrid id="datagrid1" width="100%

Re: [flexcoders] Re: Need help in tackling this event problem...

2006-01-09 Thread JesterXL
Oh... well that's different. The reason you're not getting it is because the event you dispatch is handling internally in Cairngorm, and triggers the Command. After that, it's done, gone, and no longer can be access. The Responder.onResult event is the event returned from a successful webserv

[flexcoders] Re: Need help in tackling this event problem...

2006-01-09 Thread george_lui
Actually that is the problem. The event I dispatch *doesn't* appear to be the same event I get back in my result handler. We use our custom event broadcaster to pass an event, pass it some event data, and pass the Responder object (ViewHelper) in our case. The command has access to the event dat

[flexcoders] Remoting over HTTPS fails in IE 6.0

2006-01-09 Thread Mykola Paliyenko
Hi guys I have a following problem I have a page index.mxml that need to be able to pass data to the server via HTTPS when I open it using https://bla-bla/index.mxml remoting works fine in IE, but when I do it using http://bla-bla/index.mxml it loads nothing no request come to the amf gateway.

[flexcoders] Re: Mac theme for Flex

2006-01-09 Thread bss_rao
Hi Abdul, How to apply this theme for an external mxml that gets loaded from another mxml with loader control? If I specify theme attribute in both mxml applications, then the external mxml fails to initialize. Any solution for this? Thks, BSS --- In flexcoders@yahoogroups.com, "Abdul Qabiz"

[flexcoders] State Transistions

2006-01-09 Thread rebel_assualt
Hey, I was wondering if anyone had any information of transistion effects for flex 2 states? For example an animation or something that displays when different states are navigated to. Thanks Matt -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ

[flexcoders] RE: Get selected tree node for dynamically created tree

2006-01-09 Thread Ault, Gary - BLS
Thanks, Matt, for your answer, which saved me a lot of time. I see the answer is in the MM flexfaq, but somehow I missed it. Gary Message: 13 Date: Wed, 4 Jan 2006 20:56:08 -0800 From: "Matt Chotin" <[EMAIL PROTECTED]> Subject: RE: Get selected tree node for dynamically created tr

Re: [flexcoders] Re: Need help in tackling this event problem...

2006-01-09 Thread JesterXL
Sure, I reckon. I've never used Cairngorm, but if memory serves when I was reading the files, yeah. If you dispatch the event, he should have all of the properties that you set on the event carred over since the event you dispatch is the one you'll get in your result handler. - Original M

[flexcoders] Re: Dynamically increasing size of container to fit all characters

2006-01-09 Thread Brendan Meutzner
Leon, Does this container need to size itself based on it's content when being loaded, or is its content bound to dynamic data, resulting in it requiring resize itself during use? Brendan --- In flexcoders@yahoogroups.com, "Leon Tanner" <[EMAIL PROTECTED]> wrote: > > Hi all, > I am trying to a

[flexcoders] Re: Need help in tackling this event problem...

2006-01-09 Thread george_lui
Event is a class in Cairngorm. I'm assuming that you meant that I should subclass the Event class right? TIA, george --- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote: > > Impossible to do with anonymous objects. However, if you make your event a > class, you have no pro

[flexcoders] Re: Need help in tackling this event problem...

2006-01-09 Thread george_lui
Hi, We are using commands. The command has access to this when the event is broadcasted. It's the event that you get on onResult(event) and onFault(event) that doesn't have this data. event.data and event.type are undefined as well. We thought about the global variable route. Actually we th

[flexcoders] Re: Multi frame swfs not playing

2006-01-09 Thread Brendan Meutzner
Hi Roger, Well, that get's me one step closer. If I extend MyMovieAsset from either MovieClip or SkinMovieClip it gives me the following RTE "TypeError: Error #1034: Type Coersion failed: cannot convert [EMAIL PROTECTED] to mx.core.IUIComponent" However, if I continue to load, the swf loads pro

RE: [flexcoders] Theme and Loader

2006-01-09 Thread Roger Gonzalez
In 1.5, themes are a linker trick. Basically, the default version of a symbol is substituted at the last second for a themed version of the same symbol. Its pretty evil. AS2 semantics were "don't redefine a class that is already defined" when a new SWF is loaded as a child. I would thus expect

RE: [flexcoders] Re: Multi frame swfs not playing

2006-01-09 Thread Roger Gonzalez
If you want to use it directly as a child in MXML, you might need to extend mx.core.SkinMovieClip instead of flash.display.MovieClip. Otherwise I think the frameworks will throw an RTE about your asset not extending IFlexDisplayObject. Otherwise, try it in ActionScript, via "addChild( new MyMovieA

[flexcoders] problem in displaying pie chart

2006-01-09 Thread nicy_neha
I want to draw a pie chart displaying two values -Gold & Silver of same object...

[flexcoders] Component DataBinding issue

2006-01-09 Thread superabe superabe
Hi there,   I have a custom AS component that seems to generate a script time-out error when I use databinding to set one of its params. It works fine if I hard code the param value.   Any ideas as to why this may be happening ?   TIA - superabe   Component code(RatingCell.as) =

RE: [flexcoders]Displaying a value in datagrid column

2006-01-09 Thread Avik Chakrabarty
Hi Neha,You cando the same on the tracy's way too. Thanks Tracy it works Thx... for your help Regards,Avik On Fri, Jan 6, 2006 at 11:38 PM, Tracy Spratt wrote:I am not sure what you mean by “ object does nt have a specified property ”, but if the data is anywhere in the dataProvider item, yo

[flexcoders] Theme and Loader

2006-01-09 Thread bss_rao
Hi, There is a problem in loading an external mxml using loader control when there is theme set in application tag. It never gets initialized. Here is the sample scenario, There are two flex applications, app1.mxml and app2.mxml. I have applied a theme (mac / XP / pulseBlue etc) for app1.mxml

RE: [flexcoders]Displaying a value in datagrid column

2006-01-09 Thread Avik Chakrabarty
Yes Neha. you can do this as per the Tracy's way Thanks Tracy it works On Fri, Jan 6, 2006 at 11:38 PM, Tracy Spratt wrote:I am not sure what you mean by “ object does nt have a specified property ”, but if the data is anywhere in the dataProvider item, you can get to it using labelF

RE: [flexcoders] Having hard time understanding what features are available to whom when and how

2006-01-09 Thread David Mendels
Hello,   Just catching up on some threads from the vacation period.   a) You don't need OpenAMF if you are using Flex 1.5.  Flex 1.5 comes with AMF (Remoting) fully integrated. b) The Trial version reverts to an IP limited developer edition after 60 or 90 days, but no functionality goes awa

[flexcoders] Re: Multi frame swfs not playing

2006-01-09 Thread Brendan Meutzner
Hi Roger, Can I confirm the following usage you've suggested: //MyMovieAsset.as package { import flash.display.MovieClip; [Embed('assets/cube.swf')] public class MyMovieAsset extends MovieClip { } } //MyMXML.mxml http://www.macromedia.com

[flexcoders] Dynamically increasing size of container to fit all characters

2006-01-09 Thread Leon Tanner
Hi all, I am trying to achieve the following: 1) Have a control or container that can accomodate a set of characters (could be 5 chars or 500 chars) 2) It should increase in size to accomodate the count of characters 3) The control or container should take into account not only the count of char

RE: [flexcoders] Re: Multi frame swfs not playing

2006-01-09 Thread Roger Gonzalez
Ok, the issue may be the base class wrapped around the embedded asset. Basically, your asset will need to be associated with a class deriving from MovieClip. In theory, it should figure this out on its own. (Turn keep-generated-actionscript on and check out the class associated with your asset.

Re: [flexcoders] Re: Flex 2 - swf symbols

2006-01-09 Thread JesterXL
I didn't use String because I got compilation errors or some such issue when trying to add an embedded image to the display list, bitching about it being a string or whatever. Will have to go back and find out why. The 2nd format doesn't work in 2; I think I already filed a bug for 2. For 1.5,

RE: [flexcoders] Re: Flex 2 - swf symbols

2006-01-09 Thread Roger Gonzalez
Aiigh, you're killing me. :-) String does work. It may not do what you expect, but it should work. If it doesn't work, file a bug. Typing the variable as Class is best practice. The syntax is either Embed('file#ass') or Embed(source='file', symbol='asset') If that weird amalgamation of puttin

[flexcoders] Re: Multi frame swfs not playing

2006-01-09 Thread Brendan Meutzner
Embedded. --- In flexcoders@yahoogroups.com, "Roger Gonzalez" <[EMAIL PROTECTED]> wrote: > > Are you dynamically loading the SWF, or embedding it? > > -rg > > > -Original Message- > > From: flexcoders@yahoogroups.com > > [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner > > Sent

RE: [flexcoders] Multi frame swfs not playing

2006-01-09 Thread Roger Gonzalez
Are you dynamically loading the SWF, or embedding it? -rg > -Original Message- > From: flexcoders@yahoogroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner > Sent: Monday, January 09, 2006 5:22 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Multi frame swfs

RE: [flexcoders] Drawing on a chart?

2006-01-09 Thread Matt Horn
In Flex 2, if you want to draw on the chart (or place buttons on it, etc) you should create a custom chart element (like an annotationElement) and add it to the chart's annotationElements array. matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sreeni

RE: >< [flexcoders] Flex 1.5 and CPU load

2006-01-09 Thread Stacy Young
Wondering if the flex server is in production mode? (flex-config) Stace   From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika Kiljunen Sent: Monday, January 09, 2006 6:19 AM To: flexcoders@yahoogroups.com Subject: >< [flexcoders] Flex 1.5 and

Re: [flexcoders] Drawing on a chart?

2006-01-09 Thread Sreenivas R
Yes it is possible to draw shapes on top of a chart. You can create a generic UIComponent and add as a child to the application or chart. Then you can draw using the normal beginFill/drawRect/endFill rounties.   -Sreenivas  On 1/3/06, Doug Wagner <[EMAIL PROTECTED]> wrote: Is it possible to draw

[flexcoders] Multi frame swfs not playing

2006-01-09 Thread Brendan Meutzner
Hi All, When I load a swf movie into a Flex 2 app, it's not playing the movie. It loads in the first frame, but just freezes there. The same swf movie loaded into a 1.5 app plays properly. We're talking about a very basic multi-frame swf with no components or actionscript embedded. Is there a

[flexcoders] Re: Flex 2 - swf symbols

2006-01-09 Thread Brendan Meutzner
Well Jester, you've got the magic touch. I can't explain this one, as I've copied your code below into my app, and all of a sudden it's working. I'm looking at your code here, and my old code that wasn't working and they're identical (gods honest truth). Dunno... Thanks very much for your help

[flexcoders] Flex 1.5 and CPU load

2006-01-09 Thread Mika Kiljunen
Hi, I have a weird problem with flex 1.5 server. It seems that when it is running it seems constantly consume CPU load around 20 to 25 percent (according to task manager). It keeps pumping it up to 25% and then drops back a little and instantly goes back to 25% and drops again and back u

Re: [flexcoders] How to find that in which font type the text is written

2006-01-09 Thread Sreenivas R
You can use measureText available on the controls (Button, TextInput etc) to find out the text width and height.   You can use fontFamily, fontSize etc styles to set/get the font type and size.   -Sreenivas.  On 1/6/06, leorajpoot <[EMAIL PROTECTED]> wrote: Hi all,I want to find the number of pi

RE: [flexcoders] Flex 1.5: AS2 serialization issue . Parent/Child data model implementation

2006-01-09 Thread Peter Farland
Valy, I would add some trace statements into your ActionScript code around these lines:      addr.individual = ModelLocator._individual; // _individual gets loaded when app is initializes.   ModelLocator._individual.physicalAddresses.push(addr); I would double check that t