[flexcoders] Has the Flex 4 component architecture changed much from Flex 3?

2010-06-01 Thread Nick Middleweek
Hi, Has the Flex 4 component architecture changed much from Flex 3? I was recommended to get the Flash Builder 4 Flex 4 Bible to learn about writing components but I'm still working with Flex 3 projects and realistically, I probably will be for a couple more years... Thanks, Nick

Re: [flexcoders] Has the Flex 4 component architecture changed much from Flex 3?

2010-06-01 Thread Nick Middleweek
Hi Paul, Although I'll be working with Flex 3 for a couple more years, any new projects will be Flex 4. More importantly though, in what way has the component architecture changed? Cheers, Nick On 1 June 2010 11:29, Paul Andrews p...@ipauland.com wrote: On 01/06/2010 11:00, Nick

[flexcoders] removeEventListener - is it important?

2010-06-02 Thread Nick Middleweek
if I remove that DateField from the stage, are the event handlers still attached and therefore the DateField is referenced by these handlers and therefore won't get GD'd ? Mmmm Cheers, Nick -- Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, blog: http://blog.middleweek.co.uk } );

Re: [flexcoders] removeEventListener - is it important?

2010-06-02 Thread Nick Middleweek
Hi Oleg, Thanks for the reply... I think it's important too but can't understand why the DateField Class in the Flex SDK doesn't do it? Digging a little deeper... Here's the Constructor of the DateField... /** * Constructor. */ public function DateField() { super();

[flexcoders] Different effects

2010-06-09 Thread Nick Middleweek
Hi, I'm reading up about Flex Effects... Can anyone explain the difference between the three types: 1). MaskEffect 2). TweenEffect 3). CompositeEffect. I'm guessing that Tween is animation and Composite is a combined effect such as move and resize. Thanks, Nick

[flexcoders] Defining layouts in Spark controls

2010-06-09 Thread Nick Middleweek
Hi, Is there another way of defining the layout on a Spark control? It seems we have to do this... s:Panel title = Range Search s:layout s:VerticalLayout/ /s:layout /s:Panel Is there a nicer way?... Something like... layout = {new VerticalLayout()}

Re: [flexcoders] how to place cursor in textinput

2010-06-17 Thread Nick Middleweek
that helps... Nick -- Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, mobile: +44(0)774 035 5424, blog: http://blog.middleweek.co.uk } ); On 17 June 2010 06:34, venkatreddy_006 venkatreddy_...@yahoo.com wrote: Hi everyone, i was setthe focus to the TextInput component

[flexcoders] setting the border thickness on a Spark mx.controls.VBox ?

2010-06-22 Thread Nick Middleweek
Hi, Sounds a bit contradictory - Spark and mx.controls but I'm using Flex 4 but working on some Flex 3 code and can't update to Spark at the moment. I'm struggling to find out how to set the border thickness of my VBox to 10. Has anyone acheived this ? Thanks, Nick

Re: [flexcoders] setting the border thickness on a Spark mx.controls.VBox ?

2010-06-23 Thread Nick Middleweek
on a VBox when using Spark + Halo under SDK v4... Is it possible? Cheers, Nick On 23 June 2010 17:07, Alex Harui aha...@adobe.com wrote: Which theme? On 6/22/10 3:24 PM, Nick Middleweek n...@middleweek.co.uk wrote: Hi, Sounds a bit contradictory - Spark and mx.controls but I'm

[flexcoders] Data Import Web Service... Where has it gonein FB4?

2010-06-25 Thread Nick Middleweek
Hi, Does anyone know where I can get FB3's Import Web Service feature in FB4? I just want to import all the Value Objects from my WSDL but the FB4 Connect to Web Service feature seems to create a load of bloated code. Perhaps I'm just used to the FB3 version and I need to adjust my thinking but

Re: [flexcoders] Data Import Web Service... Where has it gonein FB4?

2010-06-25 Thread Nick Middleweek
Hi, Unless I'm mistaken but I think that is the same as selecting Connect to Web Service... from the Data menu ? I was hoping to get to the FB3 import Web Service feature... Cheers, Nick On 25 June 2010 15:29, claudiu ursica the_bran...@yahoo.com wrote: Data Services Tab, usually near

[flexcoders] Input formatter?

2010-07-06 Thread Nick Middleweek
Hello, Is it possible to have a data entry/ input formatter? For example, I have a DateField and I want to override the data entry so that they can only type 1 or 2 numbers followed by a slash, then 1 or 2 numbers followed by a slash, then 4 numbers. Is there such thing in Flex as an Input Data

Re: [flexcoders] Input formatter?

2010-07-06 Thread Nick Middleweek
Hi scott, Thanks for the link, this only seems to format the 'string' when I focus out the field... What I'd like is on every key press, the entry field validates the character at each position... So taking this as an entry format... DD/MM/, or perhaps I should write it as #0/#0/ where a

Re: [flexcoders] Input formatter?

2010-07-07 Thread Nick Middleweek
Ok, cool... Thanks Scott... I was hoping there'd be a built in way that I can apply to different objects, I'm using it on the DateField object... I'll check that link out and have a hunt around... Nick On 7 July 2010 04:23, Scott h...@netprof.us wrote: Sorry, my bad. I

[flexcoders] User Interface Design Groups

2010-07-07 Thread Nick Middleweek
Hi, I've been working on a little composite search UI component but it needs polishing off and I wondered if there were any groups out there that could help with this sort of thing? Does anyone know of any? Cheers, Nick

[flexcoders] focusrect on custom components?

2010-07-08 Thread Nick Middleweek
Hi, Does anyone know the right way of applying the focusrect to a composite component, instead of the individual components that make it up? I've got a custom comp made up of about 4 basic UI objects and when I click inside it I want the whole component to look as if it's received the focus and

Re: [flexcoders] User Interface Design Groups

2010-07-08 Thread Nick Middleweek
Hi, I wil get it compiled an upload to a site and post a follow up - thanks for the message :) Cheers, NIck On 7 July 2010 22:21, dorkie dork from dorktown dorkiedorkfromdorkt...@gmail.com wrote: nick, i know the perfect group, its called flexcoders. ...or flashcoders. most flash

[flexcoders] Capturing ENTER key in a Numeric Stepper

2010-07-10 Thread Nick Middleweek
Hello, I've got a form with a few fields on, one being a numeric stepper. On the TextInput, I can test the enter key being pressed using the enter event but there doesn't appear to be an equivalent for the numericstepper... Has anyone managed to acheive this and how did you do it please? On

Re: [flexcoders] Re: Capturing ENTER key in a Numeric Stepper

2010-07-11 Thread Nick Middleweek
Middleweek n...@... wrote: Hello, I've got a form with a few fields on, one being a numeric stepper. On the TextInput, I can test the enter key being pressed using the enter event but there doesn't appear to be an equivalent for the numericstepper... -- Sent by Nick Middleweek ( { email: n

Re: [flexcoders] Capturing ENTER key in a Numeric Stepper

2010-07-11 Thread Nick Middleweek
: the canvas tag has a defaultButton property that will dispatch a click event on your submitSearch button. i'm not sure what the eq would be in flex 4. On Sat, Jul 10, 2010 at 7:08 PM, Nick Middleweek n...@middleweek.co.ukwrote: Hello, I've got a form with a few fields on, one being a numeric

Re: [flexcoders] Re: Capturing ENTER key in a Numeric Stepper

2010-07-11 Thread Nick Middleweek
stepper and sends whatever its current value is to the search function. a --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Nick Middleweek n...@... wrote: Hi Andrew. Can you trap the ENTER (keyCode = 13) on a Numeric Stepper? I've been failing to do this... :( When

[flexcoders] How to remove the DateField textInput border?

2010-07-13 Thread Nick Middleweek
Hi, Has anyone been able to modify the border of the TextInput component of the Date field? I'm trying to set it to ZERO. I've tried extending the DateField - MyDateField and specifying the borderThickness in updateDisplayList using this.textInput.setStyle(borderThickness, 0); ... to be

[flexcoders] How to detect the decimal point character?

2010-07-27 Thread Nick Middleweek
Hi, I'm doing some custom bits on the Flex 3 NumericStepper and I need to prevent more than decimal point being entered into it's textField. Is there a way to detect the character used? e.g. Germany uses a comma... Or should I do something like this... How future proof, multi-lingo is that? var

[flexcoders] How to split a String on spaces but including Quoted Phrases?

2010-07-28 Thread Nick Middleweek
Hi, I haven't been able to work out regex yet so apart from looping and parsing a string manually, is there anyway of parsing the following string... flex action script parse string function into the following Array... [0] = flex [1] = action script [2] = parse [3] = string [4] = function

[flexcoders] Mouse coordinates on DragEvent = DragManager.MOVE

2010-07-30 Thread Nick Middleweek
Hi, Has anyone been able to obtain the MouseX and MouseY in the drop phase of drag drop? I've tried the following but nothing is giving... :( var mouseEvent_X : int = MouseEvent( event ).localX; var mouseEvent_Y : int = MouseEvent( event

[flexcoders] Re: Mouse coordinates on DragEvent = DragManager.MOVE

2010-07-30 Thread Nick Middleweek
Got it... var point : Point = new Point( this.contentMouseX, this.contentMouseY ); point = contentToGlobal( point ); On 30 July 2010 14:22, Nick Middleweek n...@middleweek.co.uk wrote: Hi, Has anyone been able to obtain the MouseX and MouseY

Re: [flexcoders] How to split a String on spaces but including Quoted Phrases?

2010-08-02 Thread Nick Middleweek
Guys, I missed this one... Thank you for your replies... I'll check out the code and see what works. I did end up writing a string parser but I'm now curious to see how RegEx stands up to the task. Cheers, Nick On 29 July 2010 23:30, Oleg Sivokon olegsivo...@gmail.com wrote: Ouch,

[flexcoders] Player Security - Local SWF accessing local and network?

2010-08-03 Thread Nick Middleweek
Hi, Hopefully the Player Security subject hasn't scared you off but I'm stumped with an issue. When I'm creating a little demo app or any Flex app really, I'm accessing the local file system for an .xml settings file and a search will access a remote HTTP or Web Service so I'm accessing both

Re: [flexcoders] Player Security - Local SWF accessing local and network?

2010-08-03 Thread Nick Middleweek
Cheers Alex - I'll continue playing with the settings and report back... Thanks... On 3 August 2010 18:48, Alex Harui aha...@adobe.com wrote: The settings manager and/or flashplayertrust files make the sandbox rules LOCAL_TRUSTED instead of one of the other LOCAL_XXX sandboxes. I think

[flexcoders] Semi-dial / speedo-type control in flex

2010-08-23 Thread Nick Middleweek
Hi, I thought there was a dial or speedometer control built into Flex 3? Does anyone have any references to one if I'm mistaken? Thanks, Nick

[flexcoders] NumericInput UI control

2010-08-24 Thread Nick Middleweek
Hello, Up until now I've been using a NumericStepper Control for number entry fields... My client has been suggesting changes to the default behaviour of the Control to the point where it's almost not worth using a NumericStepper anymore... What does everyone use for numeric data entry fields?

[flexcoders] FB4: DataGroup not resizing when dataProvider is updated

2010-08-27 Thread Nick Middleweek
Hello, I'm new to FB4 and am working with another chap creating a component. We've got a DataGroup who's dataProvider is increased when a button is pressed. When the DataGroup is set to a fixed height, i.e. 200 we can see the itemRenderer components being added on screen but with the

[flexcoders] Setting a custom Air app version/ release number

2010-09-06 Thread Nick Middleweek
Hi, When I install the Air app that I've just created using Export Release Build I can see a version number in the installation window but it's always set to the same value... How can I change this? Are there any rules or gotchas around it as well? Other Air apps I've installed have custom

Re: [flexcoders] Setting a custom Air app version/ release number

2010-09-06 Thread Nick Middleweek
ah nice one Rob, thank you. On 6 September 2010 14:09, Rob Parkhill rob_parkh...@yahoo.com wrote: There is a version number section in the XML for the application. Same place where you can enter app name and such. Rob -- *From:* Nick Middleweek n

[flexcoders] Flex 4: MouseOver not firing on a UIComponent Item Renderer

2011-09-05 Thread Nick Middleweek
(); ... the MouseOver event DOES fire on the red background. Is there a way of achieving this without drawing a rectangle? I did think of setting the rect to white but this doesn't seem like the correct approach. Thanks for any help... Nick -- Sent by Nick Middleweek ( { email: n

[flexcoders] Re: Flex 4: MouseOver not firing on a UIComponent Item Renderer

2011-09-06 Thread Nick Middleweek
OK, well I've settled with the white background for now... On 5 September 2011 11:36, Nick Middleweek n...@middleweek.co.uk wrote: Hi, We're using Flex 4 and have an Item Renderer that extends UIComponent. We're adding a TextField that's added in createChildren(). In the Constructor

[flexcoders] What is the a correct lifecycle phase to add new child components?

2011-09-06 Thread Nick Middleweek
? Is it simply 'ok' to *this.addChild( *myNewButton *)* in a MOUSE_EVENT function handler or should I be setting some dirty flag to trigger off an invalidation and then add the button in a lifecycle override function? Thanks, Nick -- Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, mobile

[flexcoders] Using RemoteClass meta tag

2011-09-06 Thread Nick Middleweek
Hi, Am I right in thinking the [RemoteClass] meta tag is used for mapping ActionScript Objects to Server-Side Objects AND vice versa? I've been reading the Adobe docs and I can't figure out at what point the RemoteClass meta tag kicks in to aid conversion. Does anyone have a super simplified

Re: [flexcoders] What is the a correct lifecycle phase to add new child components?

2011-09-06 Thread Nick Middleweek
on the update_complete event. It seems like an unnecessary way to force yet another full render of the component.. On 9/6/2011 5:28 AM, Nick Middleweek wrote: Hi, I've been trying to find the correct 'place' to create new components after the parent component is UPDATE_COMPLETE. During

Re: [flexcoders] What is the a correct lifecycle phase to add new child components?

2011-09-06 Thread Nick Middleweek
' button that should be visible on mouse-over, then I would use skin states and manage visibility of the components in the skin. Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com On Tue, Sep 6, 2011 at 10:28 AM, Nick Middleweek n...@middleweek.co.ukwrote: ** Hi

Re: [flexcoders] Re: Flex 4: MouseOver not firing on a UIComponent Item Renderer

2011-09-06 Thread Nick Middleweek
and it will still work. You can also set background=true and pick a backgroundColor on the TextField and not have to draw the fill. On 9/6/11 2:18 AM, Nick Middleweek n...@middleweek.co.uk wrote: OK, well I've settled with the white background for now... On 5 September 2011 11:36

Re: [flexcoders] Re: Flex 4: MouseOver not firing on a UIComponent Item Renderer

2011-09-06 Thread Nick Middleweek
and not have to draw the fill. On 9/6/11 2:18 AM, Nick Middleweek nick@... wrote: OK, well I've settled with the white background for now... On 5 September 2011 11:36, Nick Middleweek nick@... wrote: Hi, We're using Flex 4 and have an Item Renderer

Re: [flexcoders] What is the a correct lifecycle phase to add new child components?

2011-09-07 Thread Nick Middleweek
Douglas, Thanks... So as a rule of thumb, add all children that I know I need up front and show/ hide them using visibility in e.g. onMouseOver/ Out. Or set a dirty flag and then invalidateDisplayList(), then from within updateDisplayList(), check the dirty flags and addChild( x ) in there...

Re: [flexcoders] What is the a correct lifecycle phase to add new child components?

2011-09-07 Thread Nick Middleweek
need them. The List components create them in updateDisplayList since that’s when they finally know how many to create. On 9/6/11 10:48 AM, Nick Middleweek n...@middleweek.co.uk wrote: Thanks for this... So I'm extending UIComponent, does this mean I'm doing it the MX way? Cheers

Re: [flexcoders] What is the a correct lifecycle phase to add new child components?

2011-09-07 Thread Nick Middleweek
of objects and deleting them , the new objects need to be garbage collected. The initial load is going to be more ofcourse, but then its a set number since you are only going to be creating a set number of buttons. On Wed, Sep 7, 2011 at 10:23 AM, Nick Middleweek n...@middleweek.co.uk wrote

Re: [flexcoders] What is the a correct lifecycle phase to add new child components?

2011-09-08 Thread Nick Middleweek
Alex, Not sure if I've overlooked something but how can the blue focus rectangle help? Cheers, Nick On 8 September 2011 03:11, Alex Harui aha...@adobe.com wrote: ** I think I’d just hack it in. You can probably hang it off of the DG when not used and grab it from there when needed.

Re: [flexcoders] What is the a correct lifecycle phase to add new child components?

2011-09-08 Thread Nick Middleweek
at 3:21 PM, Nick Middleweek n...@middleweek.co.ukwrote: ** Alex, That's a good idea... What's your thoughts on approach to implement a shared Button? Would you create it at the parent view level and inject into the IR's using some kind of IFactory or perhaps attach it to the data property

[flexcoders] Can't see scrollbars on an MX list in a Spark TitleWindow

2011-09-09 Thread Nick Middleweek
Hi, Are there any obvious reasons why my MX List won't show scrollbars. It's tucked inside a Spark TitleWindow. The list has verticalScrollPolicy = on, width and height = 100% and the TitleWindow is width = 400, height = 250. There is enough data so the List should render scrollbars. Thanks,

[flexcoders] Re: Can't see scrollbars on an MX list in a Spark TitleWindow

2011-09-09 Thread Nick Middleweek
? Cheers, Nick On 9 September 2011 16:31, Nick Middleweek n...@middleweek.co.uk wrote: Hi, Are there any obvious reasons why my MX List won't show scrollbars. It's tucked inside a Spark TitleWindow. The list has verticalScrollPolicy = on, width and height = 100% and the TitleWindow is width

[flexcoders] Util, Helper, Worker, etc Classes

2011-09-14 Thread Nick Middleweek
Hello, Does anyone know of a good list of Class types, their naming and usage conventions? I'm trying to find the difference between say a Worker or Helper Class, when to use each and what other standards there are? Cheers, Nick

[flexcoders] Creating an unconvential Air app like kuler

2011-11-03 Thread Nick Middleweek
Hi, How does one create an Air app that has a non-rectangle window like Kuler? And is it possible to create an Air app that has multi windows? Thanks, Nick

[flexcoders] Replacing double slash with a single slash

2011-11-08 Thread Nick Middleweek
Hi, I'm trying to replace a double slash with a single slash and am having a little trouble, has anyone done this before? Here's what I've got thus far... var doubleSlash : RegExp = /(\\)(\\)/g; var slash : RegExp = /(\\)/; winMessage = winMessage.replace( doubleSlash, slash ); Cheers, Nick

Re: [flexcoders] Re: Replacing double slash with a single slash

2011-11-09 Thread Nick Middleweek
or replacement string. --- In flexcoders@yahoogroups.com, Nick Middleweek nick@... wrote: Hi, I'm trying to replace a double slash with a single slash and am having a little trouble, has anyone done this before? Here's what I've got thus far... var doubleSlash : RegExp

<    1   2   3