[flexcoders] Flashvars not available

2006-08-10 Thread grahampengelly
HiCan someone please point out the glaringly obvious thing that I am doing that is preventing me accessing flashVars from my application. I have included the flashVars in the object tags of the html wrapper page (as param tags and in the embed) and am attempting to access them from my mxml like

[flexcoders] Re: Flashvars not available

2006-08-10 Thread grahampengelly
the same. Graham --- In flexcoders@yahoogroups.com, "Brendan Meutzner" <[EMAIL PROTECTED]> wrote: > > can you post the html script/tags where the flashVars are embedded? They do > work... > > > > On 8/10/06, grahampengelly <[EMAIL PROTECTED]> wrote: >

[flexcoders] Flex/Cairngorm Syntax

2006-08-15 Thread grahampengelly
HiI am just embarking on my first Cairngorm based Flex app. In one of the sample apps there is the following syntaxpublic function onResult(event:* = null):void{}Could somebody please explain exactly what the argument "(event:* = null)" is actually doing. Obviously the argument is called 'event'

[flexcoders] Re: Flex/Cairngorm Syntax

2006-08-15 Thread grahampengelly
Darron's page explains an alternative, IResponder, that is already > part of the Flex API. It does the same thing, but it's more flexible, > simpler to use, and easier to understand (just my opinion). I'm using it in > all my new Cairngorm apps. I have yet to find a

[flexcoders] Deserializing WebService call... Flex/Cairngorm

2006-08-15 Thread grahampengelly
I am just getting up to speed with the Cairngorm architecture and have been struggling with this problem for a while. I have got to the point where I am getting a response from my web service call that has the data in that I expect but I cannot seem to get it to deserialize into the object that

[flexcoders] Re: Flex/Cairngorm Syntax

2006-08-16 Thread grahampengelly
> this. In effect event is cast as any object rather than having a > strongly typed function call. Be aware in doing this though as type > coercion issues may occur later on when dealing with the result. > > Since all event classes usually subclass from Event, you might use Event

[flexcoders] Re: Deserializing WebService call... Flex/Cairngorm

2006-08-16 Thread grahampengelly
x27;t have experience casting to a custom object but if you do > end up needing to use Franck's suggested methodology I would certainly > recommend creating a factory that will accept the SOAP return values > and return an instance of your custom object. > > HTH, > Ben >

[flexcoders] Re: Deserializing WebService call... Flex/Cairngorm

2006-08-16 Thread grahampengelly
t up some sort of Java <-> AS class > mapping in a config file. > > Ben > > > --- In flexcoders@yahoogroups.com, "grahampengelly" wrote: > > > > Thanks Ben & Franck for your help. Like you Franck I couldn't see why > > it would work t

[flexcoders] Re: Deserializing WebService call... Flex/Cairngorm

2006-08-17 Thread grahampengelly
the conversions automatically > generated. That's what I'm after ... > > > > Cheers, > > Franck > > > > _ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of grahampengelly > Sent: Wednesday, August 16,

[flexcoders] CSS in custom components

2006-09-04 Thread grahampengelly
HiI have created a custom component that derives from Box. I have added a couple of style decarations within the code for the component. The following is an example:[Style(name="headingFontColor", type="uint", format="Color", inherit="no")]...and then I access this using getStyle("headingFontCol

[flexcoders] Re: CSS in custom components

2006-09-04 Thread grahampengelly
, "Tim Hoff" <[EMAIL PROTECTED]> wrote:>> Hi Graham,> > Have you tried this:> > AnswerButtonPanel.setStyle('headingFontColor', '#FF');> > Or use a CSS file:> > CSS:> > myStyle {> headingFontColor:#FF;> }> >

[flexcoders] Re: CSS in custom components

2006-09-04 Thread grahampengelly
7;#FF'); > > Or use a CSS file: > > CSS: > > myStyle { > headingFontColor:#FF; > } > > MXML: > > > > -TH > > --- In flexcoders@yahoogroups.com, "grahampengelly" > wrote: > > > > Hi > > > > I have create

[flexcoders] CSS in custom component

2006-09-04 Thread grahampengelly
HiI am building a custom component derived from Box. I have added a few style declarations as follows:[Style(name="headingFontColor", type="uint", format="Color", inherit="no")]...and then in the component I use the style with getStyle("headingFontColor") wrapped with a bit of default value stuf

[flexcoders] Re: CSS in custom components

2006-09-04 Thread grahampengelly
og --- In flexcoders@yahoogroups.com, "grahampengelly" <[EMAIL PROTECTED]> wrote:>> Hi Tim> > Thanks for your quick reply... Both of those suggestions work. The> problem I have is that it is actually some child components of the> AnswerButtonPanel that I want to be a

[flexcoders] Re: CSS in custom components

2006-09-05 Thread grahampengelly
@yahoogroups.com, "grahampengelly" <[EMAIL PROTECTED]> wrote:>> Firstly, apologies if there was a more or less duplicate post prior to> this one... I got a bit impatient waiting for the first one to show up> and assumed it hadn't landed.> > I have now just realised that whe

[flexcoders] Cairngorm... Where should this go?

2006-09-07 Thread grahampengelly
Hi I am building an assessment application with Cairngorm. All is going swimmingly but I am wondering where I should put the following. The view collects the respondents answers and fires off an event, containing them. The Controller picks this up and updates the Model... Pretty standard stuff.

[flexcoders] Re: Cairngorm... Where should this go?

2006-09-07 Thread grahampengelly
> Dimitrios Gianninas > RIA Developer > Optimal Payments Inc. > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of grahampengelly > Sent: Thursday, September 07, 2006 8:41 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders]

[flexcoders] Array Serialization & .NET Web Service

2006-09-07 Thread grahampengelly
HiI have a .NET web service I am calling from Flex. One of the methods expects an object described in the following extract from the WSDL:                                                                                I am having trouble getting the array ResponseIds array to serialize properly

[flexcoders] Re: Cairngorm... Where should this go?

2006-09-07 Thread grahampengelly
Thanks all for the discussion...So it seems the consensus is the validation, from a pattern purist point of view should sit in the model. Someone suggested a model.isDataValid property... This gives us an indication but how should we be communicating back to the view which data it is that is inv

[flexcoders] Re: Cairngorm... Where should this go?

2006-09-08 Thread grahampengelly
s the same.> Data drives the view via dataBinding. There are alternatives to the way you> would structure your models and views but the principle remains the same.> > > Regards,> > Bjorn Schultheiss> Senior Flash Developer> QDC Technologies> > > _ >

[flexcoders] Re: Array Serialization & .NET Web Service

2006-09-08 Thread grahampengelly
k out the section on constructing> XML in the docs.> > Ben> > --- In flexcoders@yahoogroups.com, "grahampengelly" graham@ wrote:> >> > Hi> > > > I have a .NET web service I am calling from Flex. One of the methods> > expects an object described in th