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

2010-03-24 Thread Nick Middleweek
that's a goood idea, ha :) On 24 March 2010 16:14, Oleg Sivokon olegsivo...@gmail.com wrote: Not unless the user has your AIR app installed, and that app will channel that image through LocalConnection. Or you may ask them to Base64 encode the image and paste it as text :D *sorry* Best.

[flexcoders] Is there an internal build number?

2010-03-16 Thread Nick Middleweek
Hi, Is there some kind of internal build number that I can show on screen so I know when testing/ debugging that i'm looking at the latest compiled version? I guess I could maintain my own date/ time stamp but was wondering if there's any mx_internals variables or something? Thanks, Nick

[flexcoders] [Bindable(event=numButtonsChange)]

2010-03-10 Thread Nick Middleweek
Hi, In this example: http://www.adobe.com/devnet/flex/quickstart/building_components_in_as/#comp_as ... they've got [Bindable(event=numButtonsChange)] above the getter for numButtons. I'm used to putting [Bindable] above the getter and dispatchEvent(new Event(myCustomEventName)) inside the

Re: [flexcoders] Dynamically create a Value Object...

2010-03-03 Thread Nick Middleweek
Hi, An idea... You could use XML to transfer the data from Flex -- CF and to create a dynamic ObjecVo in Flex you could just create and object and just add properties to that object and assign the values. You could create a VO in Flex that is designed around the XML... But I guess why would

[flexcoders] Lightweight Flex framework?

2010-03-03 Thread Nick Middleweek
Hi, Here's one to those that have experience with many frameworks... I'm currently using Cairngorm in a big project but want to start a couple of personal projects and want to use a proven framework for good measure. Is there a lightweight framework that is good for knocking out quick

Re: [flexcoders] Dynamically create a Value Object...

2010-03-03 Thread Nick Middleweek
I'm sure you can send XML data over CFAMFSecure. I've not done it myself but it's just text at the end of the day and you mentioned in your original post you thought it'd be a good idea using and writing XML. Iit is possible but if you prefer to use strictly typed VO's then perhaps you should

Re: [flexcoders] Re: Lightweight Flex framework?

2010-03-03 Thread Nick Middleweek
the Framework guessing game. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Nick Middleweek n...@... wrote: Hi, Here's one to those that have experience with many frameworks... I'm currently using Cairngorm in a big project but want to start a couple of personal

[flexcoders] Searching through an ArrayCollection of Objects

2010-03-02 Thread Nick Middleweek
Hi, I was wondering if there are any quick ways to solving this, quick as in CPU time, not developer time... I have an Array Collection of VO's called contact which has two properties... var myAC : ArrayCollection = new ArrayCollection(); var myContact : Contact = new Contact(); myContact.name

Re: [flexcoders] Dynamically create a Value Object...

2010-03-02 Thread Nick Middleweek
Hi Laurence, I'm pretty new to Flex so there might be reasons to stick with Value Objects that I'm unaware of but you can definitely read and write XML and generate forms, layouts, etc on the fly based on the XML contents. I've used E4X to query XML data that I've sucked in from an HTTP call,

Re: [flexcoders] Re: Searching through an ArrayCollection of Objects

2010-03-02 Thread Nick Middleweek
Thanks for the replies... How can I find out what's going on behind the scenes with IViewCursors or ListCollectionViews? Do they actually index the Collection data to make the filter super fast or do you think it's comparable if I'm just looping and searching using a brute comparison? I only

Re: [flexcoders] Re: Changing the speed of sound?

2010-02-25 Thread Nick Middleweek
Thanks James, I'll have a read of that link. Where did you get the java code from? Cheers, nick On 25 February 2010 00:27, jamesfin james.alan.finni...@gmail.com wrote: Hi Nick, This will get ugly quickly as this isn't as easy as it sounds, pardon the pun. ;) You need to do some

Re: [flexcoders] Strategies for switching between testing and deployment addresses

2010-02-25 Thread Nick Middleweek
Hey David, If you have a local DNS you could setup a subdomain for the production IP and edit your windows hosts file to override it to point locally... Tracy mentioned FlashVars, that's a real easy way. You've help me enough in the world of 4D so I'll ping something over if you need it...

Re: [flexcoders] advanced datagrid in popped up titlewindow issue

2010-02-25 Thread Nick Middleweek
It's a bit hard without seeing the full code: http://pastebin.com/ But... It might be worth changing your attributesData.initialize to a function call and perform the layerGroup.refresh() inside that function. But just before that call drop in a break point and debug what the grouping.source

Re: [flexcoders] using a class once throughout the all app

2010-02-25 Thread Nick Middleweek
I'm interested in this... So you're findings are that if you have say 5 MXML components and each component uses and imports the popupManager class/ package it is bloating the SWF file 5 times what it should be rather than just importing it once? On 25 February 2010 06:35, ZIONIST

Re: [flexcoders] advanced datagrid in popped up titlewindow issue

2010-02-25 Thread Nick Middleweek
Ah yes... of course... creationComplete_handler. I had this problem when setting up form validation and the fields on the form weren't actually initialized themselves... something like that. On 25 February 2010 16:09, Tracy Spratt tr...@nts3rd.com wrote: Probably a timing issue. Binding

Re: [flexcoders] Embedded Flash in ASP.Net Page

2010-02-25 Thread Nick Middleweek
Hi Angelo, Embedding a SWF file in an ASP.Net page is the same as embedding it in an .html page, the SWF is rendered on the client and the browser doesn't care about the server-side technology. If I were you, I'd create a blank html page on your web server and between the BODY tags put similar

[flexcoders] Changing the speed of sound?

2010-02-24 Thread Nick Middleweek
Hi, Is it possible to load in an mp3 and slow the playback down slightly? I've looked at the API but can't see anything specific but am wondering if there's any tricks? Thanks, Nick

Re: [flexcoders] Re: Cleaning up source code

2010-02-23 Thread Nick Middleweek
This is great, thanks for the links, I'm using FlexFormatter and that's awesome. PMD could be what I'm after, I want to remove dead code and Class files and thanks for the tip on CPD. ?What is TDD? Thanks! On 22 February 2010 18:52, adebonis anth...@troywebconsulting.com wrote: Try

Re: [SPAM] [flexcoders] Component Data Calls

2010-02-23 Thread Nick Middleweek
Hi Tracy, Can you expand a bit please on the 'special component' for your data access. Is a non-visual component that you instruct it to fetch something and the results are then stored in your model? Is this a bit like a delegate/ responder ? Thanks, Nick On 14 February 2010 16:37, Tracy

[flexcoders] Detecting Events in Flex

2010-02-19 Thread Nick Middleweek
Hello, Is it possible to put a generic listener on an Object so that a function is fired and I can trace(event.type) from that function to see exactly what events are being fired and in what order so I can then read about the events to see which is appropriate for my needs? Cheers and have a

Re: [flexcoders] Re: Deep Object Copy?

2010-02-18 Thread Nick Middleweek
Hey Alex, What does that mean? Frozen? Is development frozen on it? Also, I'm confused, is that Flash Builder 4 or the SDk 4? Cheers, Nick On 18 February 2010 01:48, Alex Harui aha...@adobe.com wrote: Yeah, I didn’t even know about it. We took a look at it today and we’re going to

[flexcoders] Cleaning up source code

2010-02-18 Thread Nick Middleweek
Hello... Are there any utilities to help clean up project source code? Over the months, various VO's and Event Classes, etc have been added and things have changed making some redundant and I'd like to clean up my project. Rather than go through it all manually, are there any utilities to help?

Re: [flexcoders] Deep Object Copy?

2010-02-17 Thread Nick Middleweek
Alex, I think that's exactly what I'm after... Great stuff! Cheers... I've found this link to back up your claim as well :) http://www.flexer.info/2007/10/25/deep-object-copy/ I'll give it a go and see what happens. Cheers, Nick On 16 February 2010 22:09, Alex Harui aha...@adobe.com wrote:

Re: [flexcoders] Re: Deep Object Copy?

2010-02-17 Thread Nick Middleweek
Hi HP... I think that's what ObjectUtil.copy does under the bonnet so I'm guessing it will also strip the Class information from the original objects in serialize/ deserialize process. Cheers, Nick On 16 February 2010 22:34, hpatino.rm hpat...@rocketmail.com wrote: From Programming

Re: [flexcoders] Re: Deep Object Copy?

2010-02-17 Thread Nick Middleweek
Cheers Mike, great find! We;re stuck on 3.3 for now but thanks for pointing that out... Nick p.s. Not sure about UID's .copy? On 17 February 2010 18:10, Mike msl...@mslinn.com wrote: I just noticed the ObjectUtil.clone() method, new for Flex SDK 4. public static function

[flexcoders] executeNextCommand() Cairngorm - Why?

2010-02-17 Thread Nick Middleweek
Hi, Hopefully this is a quick... I'm looking at some code that is using the executeNextCommand() in Cairngorm but I'm wondering why don't we just dispatch() the event that is created instead of calling executeNextCommand()... I'm quite new to Cairngorm and frameworks but to it seems

Re: [flexcoders] Deep Object Copy?

2010-02-16 Thread Nick Middleweek
an object. Can't recall off the top of my head the code but I'm sure you could find it via the Google. :-) On 16/02/2010, at 8:00 AM, Nick Middleweek wrote:

Re: [flexcoders] Deep Object Copy?

2010-02-16 Thread Nick Middleweek
ok, cool... I guess that was the answer I didn't want :) Shame there's no generic solution. Thanks for your help. On 16 February 2010 10:16, claudiu ursica the_bran...@yahoo.com wrote: Write your own utility. Do something recursive it takes some time but it will fit your needs. C

[flexcoders] Reverse Binding?

2010-02-16 Thread Nick Middleweek
Hi, Am I correct in thinking it is NOT possible to do automatic 'reverse' binding In Flex? e.g. You can bind an Object.property to a textInput which updates if the Object.property is changed but when you change the TextInput.text, it doesn't update the Object.property and you need to DIY using

Re: [flexcoders] PureMVC Folks...

2010-02-16 Thread Nick Middleweek
Nice! Cheers James! On 16 February 2010 00:57, jamesfin james.alan.finni...@gmail.com wrote: For you PureMVC/AS3 Folks... There's a new PureMVC Port in town...JavaScript. Well sort of. There's really an update using MooTools which will really move JavaScript along in the AS3/PureMVC

[flexcoders] Deep Object Copy?

2010-02-15 Thread Nick Middleweek
Hi, Are there any working utilities/code out there that can help me with a deep object copy? I have an Object that is about 4-5 levels deep and some of the elements are ArrayCollections of CustomObjects that have nested Objects. Basically it's quite complex! :-) My understanding is that

[flexcoders] Flex builder automation?

2010-02-11 Thread Nick Middleweek
Hello, Is it possible to setup an automation task to do this... 1. Open Project Properties of a Flex Library Project 2. Deselect all items in the Classes tab 3. Reselect all items in the Classes tab 4. Deselect assets in the Classes tab 5. *Reselect all but 'com' in the Assets

[flexcoders] ArrayCollection of a specific type?

2010-02-11 Thread Nick Middleweek
Hello, Is it possible to specifc a class property to be an ArrayCollection of a certain Interface rather than just an ArrayCollection? Thanks, Nick

[flexcoders] A framework to help with busines apps?

2010-02-11 Thread Nick Middleweek
Hi, Are there any frameworks/ methods of working/ general thoughts on how to design business applications. By this I mean best practices to load a flex app, show a login screen, display a search screen, get data, show results, double click to view detail form, etc... I realise we can use

[flexcoders] Can I get 1:1 tuition in London or Paris?

2010-02-08 Thread Nick Middleweek
Hi guys, Does anyone know of a good company or individual(s) where I can get some private Flex/ ActionScript tuition? I've been coding for about 6 months and working on a great project but feel I need guidance in advanced areas and methodologies and to get an understanding of different and

Re: [flexcoders] Can I get 1:1 tuition in London or Paris?

2010-02-08 Thread Nick Middleweek
Hi, I'd like to work through a project and learn the ropes the correct way and when I have specific questions, I have someone to hand who is experienced to put me back on track, discuss the issue and explain why... :) Official training would be cool, I'm guessing that's heading towards the

[flexcoders] Eclipse IDE and Windows 7

2010-02-05 Thread Nick Middleweek
Hi guys, Sorry for the off-topic question but I've moved over from Flex Builder to Eclipse with the FB plugin. A work friend suggesting working this way as Eclipse is better and I've noticed I now have brace matching like I used to have in Aptana :-) We have also installed WDT, SVN and a few

Re: [flexcoders] WSDL objects - Flex value objects

2010-02-04 Thread Nick Middleweek
Hi, Is there any article on how to use your method and does it work with nth-level nested data structures? It could be that your way is easier and saves recoding/ recreating classes?... Is there a benefit though to using Typed objects rather than untyped? Does your way use untyped? Or perhaps

[flexcoders] What are your thoughts on Search results in a business app - tabular or hierachical?

2010-02-04 Thread Nick Middleweek
Hello, Here's just a general question I want to throw out there and get peoples thoughts. In a business system we have various search screens, you can then double click the search results to view the detail screen. There is a Web Service to do the Search operation, and There is a Web Service to

Re: [flexcoders] WSDL objects - Flex value objects

2010-02-04 Thread Nick Middleweek
-- *From:* Nick Middleweek n...@middleweek.co.uk *To:* flexcoders@yahoogroups.com *Sent:* Thu, February 4, 2010 10:21:59 AM *Subject:* Re: [flexcoders] WSDL objects - Flex value objects Hi, Is there any article on how to use your method and does it work with nth-level nested data structures

Re: [flexcoders] WSDL objects - Flex value objects

2010-02-04 Thread Nick Middleweek
OK, super stuff... So I can use the automated Web Service - VO builder that Peeyush mentioned and then a one liner to convert the SOAP object to a typed VO Class... Nice and thanks for persevering with me! :) On 4 February 2010 20:41, claudiu ursica the_bran...@yahoo.com wrote: Yes you

Re: [flexcoders] WSDL objects - Flex value objects

2010-02-03 Thread Nick Middleweek
Hey, thanks for the reply... I'm not sure how that helps though? Thanks On 2 February 2010 16:56, claudiu ursica the_bran...@yahoo.com wrote: Google for Object Translator custom class. C

Re: [flexcoders] WSDL objects - Flex value objects

2010-02-03 Thread Nick Middleweek
This is super, I'll try this out today and seems it could save me some leg-work... Claudiu, I'll check out the translator class as well. Cheers, Nick On 3 February 2010 15:40, Peeyush Tuli peeyus...@gmail.com wrote: Why dont you use this?

[flexcoders] WSDL objects - Flex value objects

2010-02-02 Thread Nick Middleweek
Hello, Does anyone know of a way to convert a WSDL document into a bunch of Flex Classes? I'm working on a project where the WDSL data structures are changing and it's a real pain to have to re-check what has changed and then re-code the classes and Interfaces... Thanks, Nick

[flexcoders] styleFunction on adv datagrid

2010-01-14 Thread Nick Middleweek
Hello, I've got a groupingCollection as the dataProvider for my adv data grid (ADG) and I've got a styleFunction attached to the ADG to set the text color to grey. The groupingCollection is collapsed to start with and when I expandthe tree nodes, the rows come into show but they are rendered in

[flexcoders] Setting adv data grid row text.alpha = 0.5

2010-01-12 Thread Nick Middleweek
Hello, I've got an Adv DataGrid and I'm trying to set the text alpha of the rows to 0.5 if the .extend property of the dataprovider = true. Previously I have created item renderers for my own Adv Datagrid but I'm using a search results component and don't have access to the itemRenderers.

Re: [Spam] RE: [SPAM] [flexcoders] Re: Problem Casting an Object to a known type

2010-01-08 Thread Nick Middleweek
? Bodrul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Nick Middleweek n...@... wrote: Hello... We've just run into a problem... Has anyone else come across this before? We're making HTTP Service calls and we're getting back nested data. We have set

Re: [Spam] Re: [Spam] Re: [flexcoders] Problem Casting an Object to a known type

2010-01-07 Thread Nick Middleweek
-- *From:* Nick Middleweek n...@middleweek.co.uk *To:* flexcoders@yahoogroups.com *Sent:* Wed, January 6, 2010 5:13:46 PM *Subject:* Re: [Spam] Re: [flexcoders] Problem Casting an Object to a known type Hi, Thanks for your reply... Our problem is that the http

Re: [Spam] [flexcoders] Re: Expressions panel in FB3 Mmmmmm

2010-01-07 Thread Nick Middleweek
, Nick Middleweek n...@... wrote: Hi, Has anyone managed to get this what seems to 'could' be a wonderfull tool working? i just get a message in red saying something like Cant evaluate Thanks for any pointers... Nick

Re: [Spam] Re: [Spam] Re: [Spam] Re: [flexcoders] Problem Casting an Object to a known type

2010-01-07 Thread Nick Middleweek
which return plane objects to me. You should be able to parse that result as xml anytime. -- *From:* Nick Middleweek n...@middleweek.co.uk *To:* flexcoders@yahoogroups.com *Sent:* Thu, January 7, 2010 1:53:38 PM *Subject:* Re: [Spam] Re: [Spam] Re: [flexcoders

Re: [Spam] [Spam] [flexcoders] Re: Problem Casting an Object to a known type

2010-01-07 Thread Nick Middleweek
in. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Nick Middleweek n...@... wrote: Hey Valdor... Thanks for the tip there. Have you ever had problems receiving 4th level nested data from an HTTP Service? We're trying to receive it as e4x or xml but it's coming back

Re: [Spam] [Spam] [flexcoders] Re: Expressions panel in FB3 Mmmmmm

2010-01-07 Thread Nick Middleweek
The second part doesn't work... I just get an error... I will take some screen shots of what I'm doing and will also try non-XML objects to see if my problem is just with XML objects. Nick 2010/1/7 valdhor valdhorli...@embarqmail.com M... It'd be great if i can on the fly edit

Re: [Spam] [Spam] [Spam] [flexcoders] Re: Problem Casting an Object to a known type

2010-01-07 Thread Nick Middleweek
No, SAP is SAP. It's a beast of a German system. We're talking directly to it's Web Service layer. 2010/1/7 valdhor valdhorli...@embarqmail.com What does SAP run on? Java? Is there no way to add some kind of middleware like WebORB?

Re: [Spam] [Spam] [flexcoders] Re: Problem Casting an Object to a known type

2010-01-07 Thread Nick Middleweek
flexcoders%40yahoogroups.com, Nick Middleweek n...@... wrote: Hey Valdor... Thanks for the tip there. Have you ever had problems receiving 4th level nested data from an HTTP Service? We're trying to receive it as e4x or xml but it's coming back as untyped Objects. I'm guessing this is a bug

[flexcoders] garbage Collection articles

2010-01-07 Thread Nick Middleweek
Hi, Can anyone recommend a good read for garbage collection and when it kicks in, how it works, etc?... I'm particularly interested in learning about what happens to variables/ objects that are declared in a local function but are assigned to the global 'Model', then the function ends so the

Re: [Spam] [Spam] [Spam] [flexcoders] Re: Problem Casting an Object to a known type

2010-01-07 Thread Nick Middleweek
, Nick Middleweek n...@... wrote: Hi Amy, Mm... What is a way of verifying the returned data is valid XML? It 'looks' ok, but are there tools to check it, I mean it's valid in terms that it looks formatted correctly... Try calling the service from a web browser. Most of them

Re: [Spam] RE: [flexcoders] garbage Collection articles

2010-01-07 Thread Nick Middleweek
. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Nick Middleweek *Sent:* Thursday, January 07, 2010 11:16 AM *To:* flexcoders@yahoogroups.com

Re: [Spam] [flexcoders] Re: Anyone using demonsterdebugger ?

2010-01-06 Thread Nick Middleweek
Hi Sean, You're right, I missed out the 'this' keyword... All is good now, thanks! :) Do you know if it's possible to inspect the Event objects as code is running? Or would you just switch back to the Flex debugger for that? Thanks! 2010/1/5 seanmcmonahan s...@seanmonahan.org Love

[flexcoders] Coding in Cairngorm and using code planning tools

2010-01-06 Thread Nick Middleweek
Hi, Hope the subject makes sense... I was going to ask if there people use any UML tools when coding with frameworks such as Cairngorm but wanted to keep the topic slightly open. As I'm working more with Cairngorm on the project I'm on I'm realising that things can get a bit confusing and it'd

[flexcoders] Expressions panel in FB3 Mmmmmm

2010-01-06 Thread Nick Middleweek
Hi, Has anyone managed to get this what seems to 'could' be a wonderfull tool working? i just get a message in red saying something like Cant evaluate Thanks for any pointers... Nick

[flexcoders] Problem Casting an Object to a known type

2010-01-06 Thread Nick Middleweek
Hello... We've just run into a problem... Has anyone else come across this before? We're making HTTP Service calls and we're getting back nested data. We have set the resultFormat=e4x which we then parse into known Object types, such a IContactData, IInvoiceDetails... The Problem: With some

Re: [Spam] Re: [flexcoders] Problem Casting an Object to a known type

2010-01-06 Thread Nick Middleweek
Hi, Thanks for your reply... Our problem is that the http service isn't returning e4x or xml (even though the returnResult is set to that) if the data levels are 4 or more. It's coming back as untyped Objects. Normally we would call the HTTP Service asking for e4x, get the data back in the

Re: [Spam] [flexcoders] Re: Problem Casting an Object to a known type

2010-01-06 Thread Nick Middleweek
it. The proper way to do what you are trying is: var myContact:ContactPerson = ContactPerson(myPerson); --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Nick Middleweek n...@... wrote: Hello... We've just run into a problem... Has anyone else come across this before

[flexcoders] Anyone using demonsterdebugger ?

2010-01-05 Thread Nick Middleweek
Hi, I've installed the http://demonsterdebugger.com/ and my MonsterDebugger.trace(this, Hello World!); works fine but I can't seem to inspect any objects as explained here... I just get a timeline thing moving along the bottom and the Hello World message is displayed. Is there anything

Re: [Spam] RE: [Spam] RE: [flexcoders] Using Cairngorm and how to display a Popup from aCommand

2009-12-29 Thread Nick Middleweek
Hello, thanks for your reply... The event is being dispatched from a Command but I'm using HTTP Service and AsyncToken to call a Web Service. I think my problem would be getting the function ref from the delegate to the responder Command as they are de-linked if that makes sense... Cheers, Nick

Re: [Spam] [flexcoders] Re: remove expand option from tree node?

2009-12-29 Thread Nick Middleweek
Excellent find, I needed this as well... :) 2009/12/29 MicC chigwel...@yahoo.com got it! Embedded isBranch=false into the xml very cool. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, MicC chigwel...@... wrote: The xml file on which the tree is based goes many

Re: [Spam] [Spam] Re: [flexcoders] Re: Passing parameters to flashplayer while launching from Flexbuilder

2009-12-22 Thread Nick Middleweek
. www.tiborballai.com --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Nick Middleweek n...@... wrote: Guys, what is wrong with Erdal's reponses? That is how I do it but am curious to know why if it's not a good way? Thanks, Nick

Re: [Spam] [flexcoders] Setting focus after confirming Alert

2009-12-22 Thread Nick Middleweek
Hi, Check out the example on the Alert language reference... http://livedocs.adobe.com/flex/3/langref/mx/controls/Alert.html#includeExamplesSummary You can assign a callback Handler like in the example: alertClickHandler() ... where you can check the button clicked and in that function you can

Re: [Spam] Re: [flexcoders] [Spam] Setting focus after confirming Alert

2009-12-22 Thread Nick Middleweek
? Personally, I would create a global variable to store the temp reference to the object you want to refocus in the alertHandler(). Nick 2009/12/22 sasuke uzumaki.naruto...@gmail.com Nick Middleweek wrote: Hi, Check out the example on the Alert language reference... http

Re: [Spam] RE: [flexcoders] Using Cairngorm and how to display a Popup from aCommand

2009-12-22 Thread Nick Middleweek
Nice post and thanks for replying... I understand your first solution, I think it's similar to a ChangeWatcher approach... but I'm a bit lost with the 2nd approach... In my circumstance, I have a button in my view that fires a Flash CLICK event, the view-mediator Handles it and fires a

Re: [Spam] [Spam] [Spam] Re: [flexcoders] Re: Passing parameters to flashplayer while launching from Flexbuilder

2009-12-22 Thread Nick Middleweek
Tibor, Thanks for your help... That's totally cleared things up, now I see why you were suggesting to Extend the Application, etc and spoof it... Perhaps he can put a ?querystring of required values at the end of the filename in that settings screen? Nick 2009/12/22 Tibor

Re: [Spam] Re: [flexcoders] How to dispatchevent in popup window?

2009-12-21 Thread Nick Middleweek
Hi, I'm quite new to Flex and was wondering if it's possible to use Meta Tags to declare the custom Event that is to be fired from the 'popup' component. And then assign that Custom Event to the function handler in the parent MXML or AS file? I guess this is the same as Geoff and Vaibhav's

Re: [Spam] Re: [flexcoders] Re: Passing parameters to flashplayer while launching from Flexbuilder

2009-12-21 Thread Nick Middleweek
Guys, what is wrong with Erdal's reponses? That is how I do it but am curious to know why if it's not a good way? Thanks, Nick

[flexcoders] Using Cairngorm and how to display a Popup from a Command

2009-12-21 Thread Nick Middleweek
Hi, If there's a preferred place to ask this, please let me know but I'm working on my first Cairngorm project and am getting used to how it all works which is great. I have a command that is fired after an event is notified that data is received from a Web Service. If there is a Fault or Error I

Re: [Spam] RE: [Spam] [flexcoders] Re: getters before setters

2009-12-18 Thread Nick Middleweek
Cheers Gordon... Thanks for the confirmation... 2009/12/18 Gordon Smith gosm...@adobe.com As far as I know, the setter never auomatically calls the getter. It certainly shouldn't, since the getter could have some undesirable side-effect that you wouldn't want happening in the setter.

Re: [Spam] [flexcoders] Re: getters before setters

2009-12-17 Thread Nick Middleweek
Thanks for your replies guys... I'll go with getters first then :) Also, i'm sure I've read somewhere that internally when you access a setter, it's self-checks the getter and only executes the setter if the return of the getter is different from the getter... Have I made this up? I normally

[flexcoders] getters before setters

2009-12-16 Thread Nick Middleweek
Hi, I've been told to put my getters before my setters when defining Interfaces and creating the Class functions... ... then Bind my getters. Is this a known practice? Any what's the benefit? Is it something to do with how Flex calls the getters when setting via the setters? Thanks, Nick

[flexcoders] Re: Accessing the URLRequest object from the URLLoader?

2009-12-11 Thread Nick Middleweek
intrigued to what the experts think... Also, does this create an issue with garbage collection? Cheers, N 2009/12/11 Nick Middleweek n...@middleweek.co.uk Hi, When we use URLLoader we pass it the URLRequest object either in the constructor or via the load method... When the URLLoader

Re: [Spam] [flexcoders] Re: new StringValidator() .source problem?

2009-12-10 Thread Nick Middleweek
Hello Tibor, Thanks for replying. this_initializeHandler is the handler for the initialize event. A colleague told me to try creationComplete for the component and it now works... :) I'm thought that on the initiialize phase of the parent component, the children objects/components were

[flexcoders] Accessing the URLRequest object from the URLLoader?

2009-12-10 Thread Nick Middleweek
Hi, When we use URLLoader we pass it the URLRequest object either in the constructor or via the load method... When the URLLoader is complete, the 'complete' function is invoked where we can get access to the URLLoader object that has completed but I also want to access the URL that was

[flexcoders] new StringValidator() .source problem?

2009-12-09 Thread Nick Middleweek
Hi, I'm trying to use StringValidator in ActionScript. The following example shows MXML and then adding the ID's to an Array... http://blog.flexexamples.com/2007/08/13/validating-flex-forms-using-the-validator-classes/ ... I'd like to do this entirely in ActionScript but am getting an error

[flexcoders] Re: new StringValidator() .source problem?

2009-12-09 Thread Nick Middleweek
with the ActionScript ? Can anyone see what I'm doing wrong? Thanks, N 2009/12/9 Nick Middleweek n...@middleweek.co.uk Hi, I'm trying to use StringValidator in ActionScript. The following example shows MXML and then adding the ID's to an Array... http://blog.flexexamples.com/2007/08/13

Re: [Spam] RE: [flexcoders] mx:ControlBar horizontalAlign=right - doesn'twork?

2009-11-27 Thread Nick Middleweek
colleague Gilles! :) 2009/10/6 Nick Middleweek n...@middleweek.co.uk It just stays left aligned... that's odd... Could there be anything that is over riding it? Thanks, Nick 2009/10/5 Alex Harui aha...@adobe.com Works for me. What did you see? Alex Harui Flex SDK Developer

[flexcoders] How to test if an object contains a certain property?

2009-11-12 Thread Nick Middleweek
Hello, Does anyone know if it's possible to check if an object has a given property? objADGLD is of type AdvancedDataGridListData which always contains a property called .item Looking at the debugger, objADGLD.item's Declared Type can either be an Object or XML in different situations. When it

[flexcoders] Re: How to test if an object contains a certain property?

2009-11-12 Thread Nick Middleweek
Thanks for your help guys... that works perfectly!...

Re: [Spam] RE: [flexcoders] tabbing between headerRenderers?

2009-11-11 Thread Nick Middleweek
Hey Alex, Thanks for your reply... I'm finding that event.preventDefault isn't working for me... This is it in a new flex web app... http://pastebin.com/m40b6a13c And when I run it in debug mode, click into the text input and press any key, I can see the keyCode but cancelable = false and

Re: [Spam] RE: [flexcoders] tabbing between headerRenderers?

2009-11-11 Thread Nick Middleweek
Alex, I've sorted it... My mistake.. I wasn't using the correct event and I needed to assign it using AS, not MXML... http://pastebin.com/d5a59014b Thanks for your help :) Nick 2009/11/11 Nick Middleweek n...@middleweek.co.uk Hey Alex, Thanks for your reply... I'm finding

[flexcoders] How to disable the folder/tree icon in Adv Data Grid?

2009-11-10 Thread Nick Middleweek
Hello, I've got an Advanced Data Grid that lists XML data in the following (simplified) form... address Address_Row_ID=12/ address Address_Row_ID=13/ address Address_Row_ID=14/ Clicking a button in the Adv Data Grid row, appends a child XML node to the row clicked so it looks like

[flexcoders] Re: How to disable the folder/tree icon in Adv Data Grid?

2009-11-10 Thread Nick Middleweek
to the the Address node XML, which in turn will (hopefully) cause my listData setter to be modified for that row so I can then set the sub-Data Grid to visible = true. Has anyone else loaded data dynamically for a sub-Data Grid in side an itemRenderer of an Advanced Data Grid? Thanks, Nick 2009/11/10 Nick

[flexcoders] Sending a message to each headerRenderer of an Adv DataGrid?

2009-11-10 Thread Nick Middleweek
Hello, At the moment, we are using EventBroker.subscribe within the headerRenderer's of a DataGrid so they can listen out for a CLEAR_FILTERS event. This fires a function to set the textinput object to which is inside the headerRenderer. Does anyone know any other way to talk to the

[flexcoders] Re: Sending a message to each headerRenderer of an Adv DataGrid?

2009-11-10 Thread Nick Middleweek
intLoop:int = 0; intLoop advancedDataGrid.headerItems[0].length; intLoop++){ if(advancedDataGrid.headerItems[0][intLoop] is HeaderFilterRenderer) HeaderFilterRenderer(advancedDataGrid.headerItems[0][intLoop]).clearFilter(); } Hope that helps someone... Nick 2009/11/10 Nick Middleweek n

[flexcoders] tabbing between headerRenderers?

2009-11-10 Thread Nick Middleweek
Hi, I've got a text input in each of my headerRenderers on my Adv Data Grid... Can anyone suggest a good way to allow tabbing between the headerRenderers text input objects? Have I got to roll my own? as in detect which one I'm in and then on key press, detect the tab and try put the focus in to

Re: [Spam] [flexcoders] Re: Memory leak with Data Grid and Item Renderers

2009-11-09 Thread Nick Middleweek
Hi, There doesn't seem to be a removeAllChildren() method of the Advanced Data Grid. Also, when I test test the numChildren property it only gives me 4 but I've got a renderer (child) for each of the 9 columns over 20 rows = 180... I've just found a rendererArray which is an Array of Arrays for

Re: [Spam] [flexcoders] addEventListner help

2009-10-30 Thread Nick Middleweek
Hi, As far as i'm aware the event is fired, which in turn calls a function that is set using button.addEventListener(MOUSE.CLICK, myClickHandler) So when the CLICK event fires on the button object it invokes myClickHandler pasing it an event object. if you want to call another function at the

[flexcoders] Skinning a scrollbar with Symbols, SWFs with poor mans Flash CS?

2009-10-23 Thread Nick Middleweek
Hi, By looking at the .css file from a ScaleNine theme I think I've worked out how to reskin a scrollbar in Flex using symbols from a .SWF file I've also stumbled across a tutorial that shows how to do it using PNG images. I'm guessing the advantage to using Symbols in SWF's is that the images

Re: [Spam] [flexcoders] Re: How do you understand the style properties and what values they need?

2009-10-15 Thread Nick Middleweek
armoury... :) .headerDragProxyStyle { borderColor: black; borderStyle: sold; borderThickness: 3; backgroundColor: green; } Thanks :-) 2009/10/14 valdhor valdhorli...@embarqmail.com In line... --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Nick Middleweek n

Re: [Spam] Re: [flexcoders] Checkbox in Datagrid

2009-10-15 Thread Nick Middleweek
Hey Angleo, Just curious here but what's the outerDocument. prefix for on the change 2009/10/15 Angelo Anolin angelo_ano...@yahoo.com Agha, You need to use Itemrenderer to render your checkbox control inside your gridview: mx:DataGridColumn headerText=Testing width=100

Re: [Spam] Re: [flexcoders] Checkbox in Datagrid

2009-10-15 Thread Nick Middleweek
Hey Angleo, Just curious here but what's the outerDocument. prefix for on the change event for? Cheers, Nick 2009/10/15 Angelo Anolin angelo_ano...@yahoo.com Agha, You need to use Itemrenderer to render your checkbox control inside your gridview: mx:DataGridColumn

Re: [Spam] [flexcoders] Re: How do you understand the style properties and what values they need?

2009-10-15 Thread Nick Middleweek
Hi again :) In fact, this didn't fully work... it only implemented a green backgroundColor... The border styles were completely ignored, Mmmm?... :) 2009/10/15 Nick Middleweek n...@middleweek.co.uk e.g. By chance I just tried this and alas it worked but my question now

Re: [Spam] [flexcoders] Re: How do you understand the style properties and what values they need?

2009-10-15 Thread Nick Middleweek
Middleweek n...@middleweek.co.uk Hi again :) In fact, this didn't fully work... it only implemented a green backgroundColor... The border styles were completely ignored, Mmmm?... :) 2009/10/15 Nick Middleweek n...@middleweek.co.uk e.g. By chance I just tried this and alas it worked but my

<    1   2   3   >