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

[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

[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] 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] 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

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

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

[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

[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] 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] 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] 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] 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] 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

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] 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

[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] 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 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

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] 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

[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

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] 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

[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

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] 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] 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] 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()}

[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] 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

Re: [flexcoders] Get URL that user typed in

2010-05-28 Thread Nick Middleweek
i think you're after the HTTP referrer. You can access this information server-side and I believe some of the data is available from JavaScript so from Flex, just reach out. HTH, Nick -- Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, blog: http://blog.middleweek.co.uk } ); On 28

[flexcoders] Changing the dataProvider for a ComboBox doesn't seem to work properly

2010-05-28 Thread Nick Middleweek
wrong? Thanks, Nick -- Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, blog: http://blog.middleweek.co.uk } );

[flexcoders] advanced flex architecure books?

2010-05-28 Thread Nick Middleweek
Hi, Can anyone recommend any Advanced Flex/ Actionscript books out there that can teach me all about the writing components properly, using mx_internal, the Flex life cycle and anything else so I can know everything about Flex and it's inner workings :-) Maybe quite a lot to ask but I've often

Re: [flexcoders] How to store information in Cookies ???

2010-05-27 Thread Nick Middleweek
that helps, Nick -- Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, blog: http://blog.middleweek.co.uk } ); On 27 May 2010 10:14, Nini7016 Nini7016 nahloulaha...@hotmail.com wrote: Hello :) I have a menu item et i would like to store these information in CookiesI didn't work

Re: [flexcoders] How to store information in Cookies ???---Thank you :) Nick , Do you have an example of what you have done

2010-05-27 Thread Nick Middleweek
, download the CookieUtil library and plug it into your project. Then you can use CookieUtil.setCookie and CookieUtil.getCookie to set and get the values. Hope that helps, Nick -- Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, blog: http://blog.middleweek.co.uk } ); On 27 May

[flexcoders] Setting UI components in a composite component to private?

2010-05-27 Thread Nick Middleweek
Hi, When we create a composite component, such as an itemRenderer, based on an HBox and there's a button and TextInput inside, those sub-components are public, is there a way to specify they're private? Thanks, Nick -- Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, blog: http

[flexcoders] Intuitive search UI ideas?

2010-05-26 Thread Nick Middleweek
would return all males above 25 and all females above 20. Now using a 'standard' search screen, this isn't possible. Does anyone have any examples or ideas on how to present such custom query options to the user and keeping it relatively easy and nice :) Cheers, Nick -- Sent by Nick Middleweek

Re: [flexcoders] The Flex DOM?

2010-05-25 Thread Nick Middleweek
a DOM. It's just a hierarchical relationship of components and controls. On Mon, May 24, 2010 at 4:01 PM, Nick Middleweek n...@middleweek.co.ukwrote: Hi, Might be a silly one but Flex doesn't have a DOM does it... or does it? I'm pretty sure I've seen a debugger app that shows

Re: [flexcoders] Detecting Browser Re-Size

2010-05-25 Thread Nick Middleweek
maybe forget that you've got an IFRAME and SWF, this fluid layout concept will apply to any HTML objects such as two images. Hope that helps somehow... (unless I've misread your problem?) Cheers, Nick -- Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, mobile: +44(0)774 035 5424, blog

Re: [flexcoders] Set Width of An Item Renderer Component Based on Visible Property of the Control

2010-05-25 Thread Nick Middleweek
from within the itemRenderer itself. I'm saying only do this on row one, just to optimise it, otherwise it'll run for ever row in the DG, which would hinder performance. Hope this helps, ask if you need anymore help. Cheers, Nick -- Sent by Nick Middleweek ( { email: n...@middleweek.co.uk

[flexcoders] Looping to addChild TextInputs, then removeAllChildren, are they GC'd?

2010-05-25 Thread Nick Middleweek
Hi, If I looped ten times and added ten Ten TextInputs to the 'stage' (addChild) they would remain in memory until they were removed (removeAllChildren) and then Garbabe Collected? Right? Let's say I created an Array and changed my loop to add them to the 'stage' (addChild) *AND* put the object

[flexcoders] The Flex DOM?

2010-05-24 Thread Nick Middleweek
Hi, Might be a silly one but Flex doesn't have a DOM does it... or does it? I'm pretty sure I've seen a debugger app that shows a hierachical view starting from the Application level and displays all the containers and objects within. Thanks, Nick

Re: [flexcoders] Re: var myVar : Function = new Function ? examples?

2010-05-21 Thread Nick Middleweek
--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Nick Middleweek n...@... wrote: Hello, I can't find any examples on how to create Functon variables? Does anyone have any to hand please? Thanks, Nick -- Sent by Nick Middleweek ( { email: n...@..., blog

[flexcoders] var myVar : Function = new Function ? examples?

2010-05-20 Thread Nick Middleweek
Hello, I can't find any examples on how to create Functon variables? Does anyone have any to hand please? Thanks, Nick -- Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, blog: http://blog.middleweek.co.uk } );

Re: [flexcoders] var myVar : Function = new Function ? examples?

2010-05-20 Thread Nick Middleweek
On 20 May 2010 11:46, Oleg Sivokon olegsivo...@gmail.com wrote: You cannot construct a function like that. What you can do is more like this: var f : Function = function (arguments) : Type { function body } -- Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, mobile: +44(0

Re: [flexcoders] how to style a ComboBox - Dropdown ?

2010-05-13 Thread Nick Middleweek
is List. On 5/13/10 7:46 AM, Nick Middleweek n...@middleweek.co.uk wrote: Hi, I'm trying to find all the CSS options that are available so I can style up my ComboBox - Dropdown menu. Looking at the Language Reference I can see all the Styles available for hte ComboBox itself but one

Re: [flexcoders] how to style a ComboBox - Dropdown ?

2010-05-13 Thread Nick Middleweek
ah ha... ComboBox.dropdownFactory = Class factory that creates an mx.controls.List On 13 May 2010 19:45, Nick Middleweek n...@middleweek.co.uk wrote: ok, cool... Thanks Alex, Does it say that in the docs? I can't see it and have been stumped on similar things like this before when

[flexcoders] Resource bundles/ locales?

2010-05-11 Thread Nick Middleweek
Hi, I'm looking at Resource bundles and Locales and trying to get an understanding of how they are working in a project I've just come from. Has anyone seen this before?... We have a component who's label was bound to a Class.property... mx:Button id=me label={Labels.SAVE_LABEL} / In the

[flexcoders] Re: Resource bundles/ locales?

2010-05-11 Thread Nick Middleweek
OK, found the answer to this one... Basically, the static vars are being looped and replaced with the actual bundle.properties key-value. Hope this helps someone, it did me :) On 11 May 2010 14:42, Nick Middleweek n...@middleweek.co.uk wrote: Hi, I'm looking at Resource bundles and Locales

Re: [flexcoders] Resource bundles/ locales?

2010-05-11 Thread Nick Middleweek
Yep - it's funny what you find when you spend a little longer digging around... But I thought it was some undocumented waay of using resource bundles... Pretty cool stuff. Cheers Andriy :) Nick On 11 May 2010 16:01, Andriy Panas a.pa...@gmail.com wrote: Hi Nick, Have a closer look at

Re: [flexcoders] how to find redundant classes?

2010-04-23 Thread Nick Middleweek
Hi, This is exactly what I'm trying to do :) I'm documenting my code but am trying to clear up at the same time... Although I'm tryping in the ASDocs comments myself and in my Eclipse I've got a little toolbar that generates ASDocs comments for the current file... It doesn't though tell me if

Re: [flexcoders] how to find redundant classes?

2010-04-23 Thread Nick Middleweek
Cheers Aaron... Thanks! On 23 April 2010 01:48, Aaron Hardy aaronius...@gmail.com wrote: FlexPMD would probably do the trick: http://opensource.adobe.com/wiki/display/flexpmd/FlexPMD Aaron

Re: [flexcoders] how to find redundant classes?

2010-04-23 Thread Nick Middleweek
Ah ok, thanks Oleg... Cheers for the other tip - link-report, I'l give that a try too. Nick On 23 April 2010 09:46, Oleg Sivokon olegsivo...@gmail.com wrote: Hi, yes, just as Aron said. I was simply judging from my previous experience - usually the old classes would contradict to the

Re: [flexcoders] how to find redundant classes?

2010-04-23 Thread Nick Middleweek
FlexPMD only works on projects that do not have spaces in the the path name... Hopefully they fix that one soon... On 23 April 2010 10:00, Nick Middleweek n...@middleweek.co.uk wrote: Ah ok, thanks Oleg... Cheers for the other tip - link-report, I'l give that a try too. Nick On 23

Re: [flexcoders] Re: TitleWindow.title won't update from a setter

2010-04-22 Thread Nick Middleweek
%40yahoogroups.com, Nick Middleweek n...@... wrote: Alex, That has fixed it but has now made me realise I'm initialising my private var _iFormID : String = ; And the first time I was opening the Popup, I was setting the .iFormID = , so the setter was *not* getting called. I'm now

[flexcoders] how to find redundant classes?

2010-04-22 Thread Nick Middleweek
Hi, Is there a quick way to find Classes that I no longer need? I'm sure I've asked this before but I can't find the thread... Unless I thought about asking it but didn't :-) I'm going through a project, some of it was inherited and some I don't know if I need anymore... Is there a good way of

Re: [flexcoders] TitleWindow.title won't update from a setter

2010-04-21 Thread Nick Middleweek
sure your setter is getting called? If so, when is it called? Maybe it is being called inside commitProperties after super.commitProperties. On 4/20/10 3:07 PM, Nick Middleweek n...@middleweek.co.uk wrote: Hi, I've got a small MXML Component based on TitleWindow which I'm opening

Re: [flexcoders] TitleWindow.title won't update from a setter

2010-04-21 Thread Nick Middleweek
Alex, That has fixed it but has now made me realise I'm initialising my private var _iFormID : String = ; And the first time I was opening the Popup, I was setting the .iFormID = , so the setter was *not* getting called. I'm now initialising it to null and it's working fine... Thanks for your

Re: [flexcoders] Re: Find tree node in groupingcollection?

2010-04-20 Thread Nick Middleweek
Thanks Amy... Reading the docs a bit closer, that does make sense... GroupingCollection inherits from HierarchicalData which implements IHierarchicalData and the source of HierarchicalCollectionView is of type IHierarchicalData. Great stuff, thanks again! Nick On 19 April 2010 16:00, Amy

Re: [flexcoders] Re: GroupingCollection.getParent() doesn't exist?

2010-04-20 Thread Nick Middleweek
...@bellsouth.net wrote: Check a reference on Actionscript 3 for the definition of protected. HTH; Amy --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Nick Middleweek n...@... wrote: Hi, Does anyone know why the getParent() command listed in the docs doesn't seem

[flexcoders] TitleWindow.title won't update from a setter

2010-04-20 Thread Nick Middleweek
Hi, I've got a small MXML Component based on TitleWindow which I'm opening with PopupManager that has a setter and getter called iFormID. In the setter I have this code... public function set iFormID ( value : String ) : void { if ( _iFormID == value ) return; _iFormID = value;

[flexcoders] Cairngorm/ Command/ AdvancedDataGrid.expandChildrenOf() ?

2010-04-18 Thread Nick Middleweek
Hi, I'm working on a cairngorm flex app and have been told to put all business logic inside the CG Command. At the end of the CG Command, I need to get the ADG to expand it's grouping nodes for a particular node. What is the correct way of solving this problem because from my Command, I can't

Re: [flexcoders] Cairngorm/ Command/ AdvancedDataGrid.expandChildrenOf() ?

2010-04-18 Thread Nick Middleweek
: Download cairgorm extensions. It has classes called Callbacks which basically notifies the view after a command has finished. It's perfect for this situation. -Jake -- Sent from my Palm Prē -- On Apr 18, 2010 1:02 PM, Nick Middleweek n...@middleweek.co.uk

Re: [flexcoders] Cairngorm/ Command/ AdvancedDataGrid.expandChildrenOf() ?

2010-04-18 Thread Nick Middleweek
PM, Nick Middleweek n...@middleweek.co.uk wrote: Hi Jake, Thanks for the info... I know this sounds crazy but because of project/ company politics we have extreem difficulty getting 3rd party libraries on the project. Are there any preferred alternative ways? Cheers, Nick On 18

[flexcoders] Find tree node in groupingcollection?

2010-04-18 Thread Nick Middleweek
Hi, Does anyone know the best way to find the tree node in the grouping collection for the selected row in an AdvancedDataGrid ? Hope that makes sense... I've got an ADG with a grouping collection for the provider and I've got a selected row, what I would like to do is get the next level up and

[flexcoders] GroupingCollection.getParent() doesn't exist?

2010-04-18 Thread Nick Middleweek
Hi, Does anyone know why the getParent() command listed in the docs doesn't seem to exist? http://livedocs.adobe.com/flex/3/langref/mx/collections/GroupingCollection.html#getParent%28%29 I've trying to use it like this... refreshParent =

[flexcoders] DataGrid vs List ?

2010-04-16 Thread Nick Middleweek
Hi, Just curious... But why would you use a List control when you can use a DataGrid with one Column? Are there benefits over specifically using a List? It seems that a DG is a List but supports multiple columns... Thanks, Nick

[flexcoders] Problem with BindingUtils.bindProperty

2010-04-02 Thread Nick Middleweek
Hi, I'm trying to Bind a property on a component to a sub component but it doesn't seem to like binding to a property on this. // Set up Bindings and Watchers... __vendorAgencyOfficeFieldsEnterableChangeWatcher = BindingUtils.bindProperty(agencyOfficeHybridAccordian, enterable, this,

[flexcoders] Re: Problem with BindingUtils.bindProperty

2010-04-02 Thread Nick Middleweek
textBox.editable and then Binding my Watcher to the hidden textBox, is there a correct way of handling this? Cheers guys... Nick On 2 April 2010 23:05, Nick Middleweek n...@middleweek.co.uk wrote: Hi, I'm trying to Bind a property on a component to a sub component but it doesn't seem to like

[flexcoders] Re: Problem with BindingUtils.bindProperty

2010-04-02 Thread Nick Middleweek
Ok, the property that i'm Binding to must be public, that seems to work and the docs back it up :) On 2 April 2010 23:18, Nick Middleweek n...@middleweek.co.uk wrote: The same goes for ChangeWatcher... I can't do this... ChangeWatcher.watch( this, boolEditableProperty, callback

Re: [flexcoders] Re: Pasting an image into an image or bitmap container?

2010-03-26 Thread Nick Middleweek
Do you have a link to this blog though please? I'm still interested in reading through it... I've just googled Andrew Trice BitMapData blog getUIComponentBitmapData but can't find what you've mentioned. Cheers, Nick On 25 March 2010 10:43, bhaq1972 mbha...@hotmail.com wrote: I think i'm

Re: [flexcoders] Re: Pasting an image into an image or bitmap container?

2010-03-25 Thread Nick Middleweek
Hi, I think that is only for grabbing the bitmap of a Flex or Air app container. I want the ability for the user to paste any image into the image container. I check out the blog just incase there is some other magic there... Cheers, Nick On 25 March 2010 09:31, bhaq1972 mbha...@hotmail.com

[flexcoders] double check that this Switch statement can't work...

2010-03-25 Thread Nick Middleweek
Hi, I was hoping I could use a switch statement to test what Object type is selected on my ADG but I don't think it's possible and need to use an if, else if, chain... if ( orgStructureADG.selectedIndex = 0 ) { switch ( orgStructureADG.selectedItem ) { case VendorCompcodeData:

Re: [flexcoders] double check that this Switch statement can't work...

2010-03-25 Thread Nick Middleweek
Ah nice... Cheers Oleg. I always put my break; statement inside the case brackets. I quite like the 1st way... Easier to read I think. Thanks, Nick On 25 March 2010 12:49, Oleg Sivokon olegsivo...@gmail.com wrote: In AS3 switch construction uses break - otherwise it'll fall through (all

[flexcoders] Automatically insert name, date, time into code, etc

2010-03-24 Thread Nick Middleweek
Hi, Is it possible from Eclipse to automatically insert my name, the date and time to the top of Class files and when making code changes, perhaps press a key combo to insert this information? Thanks, Nick

[flexcoders] Pasting an image into an image or bitmap container?

2010-03-24 Thread Nick Middleweek
Hi, Using Flex 3.x, I've done a bit of research and understand that through code, for security reasons I can't access the Clipboard - makes perfect sense. Is there though, a way to allow the user to manually paste an bitmap into an on screen Object so that I can access it as a bitmap or

Re: [flexcoders] Re: Pasting an image into an image or bitmap container?

2010-03-24 Thread Nick Middleweek
Hi, I really wanted the user to be able to just paste into Flex and then click send. It's for a tech support system and when ever there are screen errors, they get logged. At the moment they're either pasted in word and word is uploaded or those that know how, paste into MS Paint, save as a JPEG

  1   2   3   >