[flexcoders] Builder code generation - change styles?

2008-04-28 Thread Josh McDonald
Hi guys, Is it possible to change the way Builder formats generated code? It doesn't fit with the style I like and use, and I'm sick of changing it :) -J -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]

[flexcoders] Advanced(?) Actionscript question

2008-04-28 Thread Josh McDonald
Guys, what's the difference (if it exists) between: public function foo() : * {} and: public var foo : Function = {}; Does it exist? I assume you can call Bar.foo() in both cases, and foo shows up as a variable in describeType() in the second instance? Are there other details I'm not aware of?

Re: [flexcoders] Advanced(?) Actionscript question

2008-04-28 Thread Josh McDonald
bject. > > I'm pretty certain you cant do, > var foo:Function = {trace('foo')} > > > > On 29/04/2008, at 9:37 AM, Josh McDonald wrote: > > Guys, > > what's the difference (if it exists) between: > > public function foo() : * {} > > an

Re: [flexcoders] Advanced(?) Actionscript question

2008-04-28 Thread Josh McDonald
nction = ' case). > > > > And I don't think that the rules for what 'this' is, when the function > executes, are the same. > > > > Gordon Smith > > Adobe Flex SDK Team > > > ------ > > *From:* flexcoders@ya

Re: [flexcoders] Re: Advanced(?) Actionscript question

2008-04-28 Thread Josh McDonald
gt; > function myfunction():void {trace('hi')}; > > > var foo:Foo = new Foo; > foo.bar = myfunction; > > if you have > class Foo > { > function bar():void {} > } > > then you must override. > > But you have more flexibility if Foo is defined as a D

[flexcoders] A good auto-complete control? (from an in memory list, no server-side)

2008-04-28 Thread Josh McDonald
Guys, I'm looking for a good auto-complete control that works with an in memory IList / Array. I've got and it's not sitting too nicely with me. I can see a few pixels of the underlying combobox on the RHS of the component, and I can't cajole it into defaulting to nothing selected. Any suggestio

Re: [flexcoders] Advanced(?) Actionscript question

2008-04-28 Thread Josh McDonald
- > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Josh McDonald > *Sent:* Monday, April 28, 2008 8:06 PM > > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] Advanced(?) Actionscript question > > > > Thanks for that info. >

Re: [flexcoders] Re: Cairngorm Model Locator

2008-04-29 Thread Josh McDonald
The whole point of MVC is that the model knows *nothing* about the view. Which is one of the reasons UM is a great extension to Cairngorm. -J On Wed, Apr 30, 2008 at 8:46 AM, Bjorn Schultheiss < [EMAIL PROTECTED]> wrote: > I think the problem is that the current flex framework architecture > d

Re: [flexcoders] Re: Cairngorm Model Locator

2008-04-29 Thread Josh McDonald
to Cairngorm UM released, I'm still not > sold on the benifits of all of them or the implementation. > > > --- In flexcoders@yahoogroups.com , "Josh > McDonald" <[EMAIL PROTECTED]> wrote: > > > > The whole point of MVC is that the model knows *nothing*

[flexcoders] http 500 responses from soap, can Flex handle them?

2008-04-29 Thread Josh McDonald
Hey guys, The best information I can get from Flex when I get a SOAP fault seems to be "Error #2032: Stream Error" which seems to me to be rubbish - there's a SOAP fault being sent back to the client which I have verified with Charles, but the header response is a 500 - does Flex use this to decid

[flexcoders] Re: http 500 responses from soap, can Flex handle them?

2008-04-29 Thread Josh McDonald
Gah! Never mind, I've managed to dig up the fact that no, Flex can't handle 500 codes becuase the Flash Player chucks the body :( -J On Wed, Apr 30, 2008 at 10:37 AM, Josh McDonald <[EMAIL PROTECTED]> wrote: > Hey guys, > > The best information I can get from Flex when

Re: [flexcoders] Re: Cairngorm Model Locator

2008-04-29 Thread Josh McDonald
, etc >loginForm.enabled = true; > } > > private function handleLoginFault( event:FaultEvent ):void > { >// handle failure, etc >loginForm.enabled = true; > } > > > HTH, > Ben > > > On Tue, Apr 29, 2008 at 8:01 PM, Josh McDonald <[EMAIL PROTECT

Re: [flexcoders] Re: Cairngorm Model Locator

2008-04-29 Thread Josh McDonald
Cheers! -J On Wed, Apr 30, 2008 at 1:27 PM, Ben Clinkinbeard < [EMAIL PROTECTED]> wrote: > http://code.google.com/p/flexcairngorm/source/browse > > > > On Tue, Apr 29, 2008 at 11:15 PM, Josh McDonald <[EMAIL PROTECTED]> wrote: > > > Is the source browea

Re: [flexcoders] Re: http 500 responses from soap, can Flex handle them?

2008-04-30 Thread Josh McDonald
his allows the execeptions to make it through to > flex. Perhaps there are times when the 500 shouldn't be changed, I'm > not sure. > > The end result is that the exeptions make it back to the fault > handler code in Flex, as I would expect. > > > --- In flexcoders@yah

[flexcoders] Is anybody here using Oracle SOA suite with Flex?

2008-04-30 Thread Josh McDonald
Hi guys, Is anybody here using Oracle SOA suite? We're trying to come up with the best solution to the problem of http/500 codes here, and while it's easy to wrap an endpoint in a ServletFilter for XFire on Tomcat, we're not sure of all our options or the best way to do the same on Oracle. How hav

Re: [flexcoders] pending item

2008-04-30 Thread Josh McDonald
This thread is surreal. On Thu, May 1, 2008 at 2:46 PM, Alex Harui <[EMAIL PROTECTED]> wrote: >That is an ItemPendingError. You can read about it in the docs and see > how we handle it in our source code. > > > -- > > *From:* flexcoders@yahoogroups.com [mailto:[E

Re: [flexcoders] Drag and Drop question

2008-04-30 Thread Josh McDonald
I'm fairly certain that there's no voodoo to automatically delete nodes from your XML, you need to do that yourself in your drop handler. -J On Thu, May 1, 2008 at 4:36 PM, Rafael Faria <[EMAIL PROTECTED]> wrote: > If i'm dragging an element from one tree to another. How do i get the > updated

Re: [flexcoders] Re: Drag and Drop question

2008-05-01 Thread Josh McDonald
ally?! > > Thanks > > --- In flexcoders@yahoogroups.com , "Rafael > Faria" > > <[EMAIL PROTECTED]> wrote: > > > > I wouldn't say "voodoo" but if you drag an item from tree 1 to tree 2 > > the dataprovider should not contain the

Re: [flexcoders] Drag and Drop question

2008-05-01 Thread Josh McDonald
scribe this. Are the XML > structures the same? > > > > Tracy > > > -- > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Josh McDonald > *Sent:* Thursday, May 01, 2008 2:46 AM > *To:* flexcoders@yah

Re: [flexcoders] Drag and Drop question

2008-05-01 Thread Josh McDonald
drop_8.html > > Tracy > > > -- > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Josh McDonald > *Sent:* Thursday, May 01, 2008 5:05 PM > > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] D

[flexcoders] Weird list item height problem.

2008-05-01 Thread Josh McDonald
Hey guys, I googled this and can't seem to find where I'm going wrong. I've got a list with an inline itemRenderer, with variableHeight turned on, but all non-visible items are losing their height. What I mean is that when you scroll down, all revealed items having standard list-item height, and w

Re: [flexcoders] Re: Drag and Drop question

2008-05-01 Thread Josh McDonald
don't know how to get an updated tree after i move the node... > > or there is any easy way to remove a node from an xml?! > > thanks > > rafael > > --- In flexcoders@yahoogroups.com , "Josh > McDonald" <[EMAIL PROTECTED]> wrote: > > >

Re: [flexcoders] Weird list item height problem.

2008-05-01 Thread Josh McDonald
always have to supply a custom measure() method that uses the > explicitWidth of the renderer to measure the Text properly. > > > -- > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Josh McDonald > *Sent:*

Re: [flexcoders] Re: Extending Alert

2008-05-01 Thread Josh McDonald
The original question was about how to emulate that restriction, not get around it. Although the motivation for such escapes me! On Fri, May 2, 2008 at 4:09 PM, Alex Harui <[EMAIL PROTECTED]> wrote: >You can't instanitate Menu from MXML either. > > > > Instead of extending Alert, just use a T

[flexcoders] SOAP requests and arrays being collapsed into "val1,val2,val3"... Any ideas?

2008-05-05 Thread Josh McDonald
Hi guys, I've got something that should be going out like this: ALLOC005is1 Noveaux but what I'm getting in my message is this: ALLOC005is1,Noveaux Is this something you've come across before? Any ideas? Even any ideas what I should be looking for? -- "Theref

[flexcoders] Bug in XMLEncoder or SOAPEncoder, and I want to fix it myself - who do I talk to about it?

2008-05-06 Thread Josh McDonald
Hi guys, I'm 99% sure I've located a bug in Flex's XML encoding for SOAP requests that's mangling my into a single element, and I'd like to know who I need to talk to to help me fix it, so I can get on with my work and submit a patch so everybody else can use it too. Please note that I'd really

[flexcoders] Re: Bug in XMLEncoder or SOAPEncoder, and I want to fix it myself - who do I talk to about it?

2008-05-06 Thread Josh McDonald
Update: I filed a bug, and posted a fix. Shout out to Doug for his monkey patching info :) http://bugs.adobe.com/jira/browse/SDK-15484 -J On Wed, May 7, 2008 at 11:37 AM, Josh McDonald <[EMAIL PROTECTED]> wrote: > Hi guys, > > I'm 99% sure I've located a bug in Fle

Re: [flexcoders] For each in an object

2008-05-06 Thread Josh McDonald
for each(var value in object) {} and for (var key in object) { var value = object[key]; } -J On Wed, May 7, 2008 at 3:27 PM, timgerr <[EMAIL PROTECTED]> wrote: > I have this object and I am not sure what is in it. So I do this > for each (var somthing:String in myObject){ > trace(somhting

[flexcoders] isDynamic(obj) ?

2008-05-06 Thread Josh McDonald
Guys, Is there some easy way to tell if an object is dynamic without wrapping it in a try-catch and just messing with it? Cheers, -J -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]

Re: [flexcoders] Re: isDynamic(obj) ?

2008-05-06 Thread Josh McDonald
> flash.utils.describeType() returns XML describing the object. > The root node has an attribute "isDynamic".. > > --- In flexcoders@yahoogroups.com , "Josh > McDonald" <[EMAIL PROTECTED]> wrote: > > > > Guys, > > > > Is there some easy

Re: [flexcoders] Error #2032: Stream Error

2008-05-07 Thread Josh McDonald
The stream error is what you get when the server returns a 500 fault. Try using a proxy like Charles to see what the actual data returned from the server was, there's usually better information in the response, but the browser doesn't let Flash see it. -J On Wed, May 7, 2008 at 9:45 PM, Deniz Dav

Re: [flexcoders] Error #2032: Stream Error

2008-05-07 Thread Josh McDonald
icated nothing wrong with the response, go figure. > > search the archives, its not a uncommon subject. > > DK > > On Wed, May 7, 2008 at 9:40 AM, Josh McDonald <[EMAIL PROTECTED]> wrote: > > > The stream error is what you get when the server returns a 500 fault.

[flexcoders] Declaring protected fields in MXML?

2008-05-07 Thread Josh McDonald
Hey guys, Is it possible to define (non visual) components in MXML that are protected instead of public, but can still be referenced by the ID (or a name, or something)? Cheers, -J -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 2

Re: [flexcoders] Re: Declaring protected fields in MXML?

2008-05-07 Thread Josh McDonald
> > --- In flexcoders@yahoogroups.com , "Josh > McDonald" <[EMAIL PROTECTED]> wrote: > > > > Hey guys, > > > > Is it possible to define (non visual) components in MXML that are > protected > > instead of public, but can still be referenced by

Re: [flexcoders] Re: Declaring protected fields in MXML?

2008-05-07 Thread Josh McDonald
adobe.com/2006/mxml"; xmlns="*" > > width="400" height="300"> > > > > > > > > > > > > > > > > > > testcmp.mxml > > http://www.adobe.com/2006/mxml"; width="400" > > height="300"> >

Re: [flexcoders] Soap XML doc passed to SoapDecoder.as

2008-05-07 Thread Josh McDonald
I'd guess decoder.decode() - You might need to provide it with the definitions built up from various XSDs though. I'd put some breakpoints on it, use a real service, and look into what it's doing normally. -J On Thu, May 8, 2008 at 1:27 PM, securenetfreedom <[EMAIL PROTECTED]> wrote: > Althoug

Re: [flexcoders] Flex 3: Async Token will not remember the "injected" function and properties.

2008-05-07 Thread Josh McDonald
I'd go a step further and recommend disabling your UI with a modal "Loading..." dialog until you receive LOAD or FAIL from the web service initialisation (load() or whatever it is that kicks it off), unless there's a time-consuming user task to be performed before anything can be sent to the server

Re: [flexcoders] data object transfer

2008-05-07 Thread Josh McDonald
Just create a new actionscript class with the same variable names (as publics), and have it extend EventDispatcher like so class MyDTO extends EventDispatcher { public var REQ_CW : Object; //..etc.. } Then when you get your result object, just do this: bindableResult : MyDTO = new MyDTO();

Re: [flexcoders] data object transfer

2008-05-07 Thread Josh McDonald
I don't think ObjectProxy can be bound to with the dynamic properties? -J On Thu, May 8, 2008 at 3:23 PM, Anirudh Sasikumar < [EMAIL PROTECTED]> wrote: > Hi, > > I'm not sure if this will solve what you are trying to accomplish, but > try using an ObjectProxy on the flex side instead of Object

Re: [flexcoders] set breakpoint does not work

2008-05-07 Thread Josh McDonald
There used to be a URL where you could point your browser and it'd tell you off the bat whether or not you're using the debug player, is that still available somewhere? It's something I could probably use from time to time when dealing with giving people "work in progress" SWFs as well as to help p

Re: [flexcoders] Re: Soap XML doc passed to SoapDecoder.as

2008-05-07 Thread Josh McDonald
> wrote: > In your example, would 'decoder' be of type SOAPDecoder? > To what class does the method decode() belong? > > Jeff > > > --- In flexcoders@yahoogroups.com , "Josh > McDonald" <[EMAIL PROTECTED]> wrote: > > > > I'd g

Re: [flexcoders] Re: need help deciphering error message

2008-05-07 Thread Josh McDonald
This would imply that courseCat is null, or perhaps if the exception is actually being thrown inside the SDK code, it could have a null dataProvider? I'm not sure about that second possibility though. -J On Thu, May 8, 2008 at 3:36 PM, hoytlee2000 <[EMAIL PROTECTED]> wrote: > private function

Re: [flexcoders] Re: need help deciphering error message

2008-05-07 Thread Josh McDonald
When you're assigning to catList, it's no longer the dataprovider for courseCat, courseCat's provider is whatever catList *used* to be. -J On Thu, May 8, 2008 at 4:03 PM, hoytlee2000 <[EMAIL PROTECTED]> wrote: > To clarify > > catList is the dataprovider for a combobox whose id is courseCat. S

Re: [flexcoders] Re: Soap XML doc passed to SoapDecoder.as

2008-05-08 Thread Josh McDonald
uld love to do this: > > import mx.rpc.soap.SOAPDecoder; > decoder:SOAPDecoder = new SOAPDecoder(); > serializedConent:SOAPResult = decoder.decode('[xml > stuff]'); > > I appreciate your help thus far...really! I just need a kick in the > right direction. >

Re: [flexcoders] Vector printing and transparency - consistency problem

2008-05-08 Thread Josh McDonald
Using transparency causes some sort of "mode switch" inside Flash. It used to be one of the tricks you could do in order to get around a bug that was in the player for years where movement over the top of a bitmap would cause parts of it to shift around by a few pixels. So my long-winded point is t

Re: [flexcoders] ComboBox and ViewStack inside a Repeater

2008-05-08 Thread Josh McDonald
? On another note, an entire viewstack inside a repeater seems like a recipe for memory usage to me. Are you sure you couldn't at least use a list? It instantiates less components and scrolls by changing renderer.data -J On Fri, May 9, 2008 at 12:25 PM, kalpkat9 <[EMAIL PROTECTED]> wrote: >

[flexcoders] How big does a SWF get before IE starts to worry?

2008-05-08 Thread Josh McDonald
Hey guys, I've been reading a lot about explorer not being so nice with Flex / Flasg apps that use up a bit of memory, and I'm wondering at what kind of thresholds this starts to become a problem? Is it mainly about SWF size, or how loose you are with your allocations and leaving dead references a

Re: [flexcoders] How big does a SWF get before IE starts to worry?

2008-05-08 Thread Josh McDonald
und > (as in eat large quantities of) webservices/servlets/etc, and… well you get > the point. Buy some books… lots of em. Take a (qualified) nerd/geek out to > lunch. Ask to see cool things people 'talk' about and then ask to take a > look at the source. > > > &

Re: [flexcoders] Re: Help with Module strategy

2008-05-08 Thread Josh McDonald
" if you want a G.I. Joe with kung-fooBAR grip. Don't settle for 10 Malibu Ken dolls with pasted on peach-fuzz beards" I love it! On Fri, May 9, 2008 at 2:10 PM, Rick Winscot <[EMAIL PROTECTED]> wrote: >Have you considered writing some of your libraries as ActionScript > (only) libraries? Ju

Re: [flexcoders] How big does a SWF get before IE starts to worry?

2008-05-08 Thread Josh McDonald
Do yer' nuts hurt? Hmm… cause I just kicked em' There are more answers than > questions these days – enough in this earth for every/any one to have more > than a fair share of light and knowledge. The only real obstacle is not > coming to the table hungry. > > > > Ric

Re: [flexcoders] How big does a SWF get before IE starts to worry?

2008-05-08 Thread Josh McDonald
Apologies to the list, I meant to address that off-list! -J On Fri, May 9, 2008 at 3:20 PM, Josh McDonald <[EMAIL PROTECTED]> wrote: > Say what? > > The only point I was trying to make was that I already know about SQL and > such. And the reason I can't just swit

Re: [flexcoders] How big does a SWF get before IE starts to worry?

2008-05-08 Thread Josh McDonald
I assume you're the Doug he's talking about? I didn't know you lived around here, should I? And is there intermediate - advanced training going on in Flex in Brisbane? I could probably get the powers-that-be to spring for some in the new Financial year when we're less rushed :) -J

Re: [flexcoders] Re: How big does a SWF get before IE starts to worry?

2008-05-08 Thread Josh McDonald
lking about, but if you're looking for > training, local info, etc, ask on the flexaussie mailing list. > > http://groups.yahoo.com/group/flexaussie > > > --- In flexcoders@yahoogroups.com , "Josh > McDonald" <[EMAIL PROTECTED]> wrote: > > > > I as

Re: [flexcoders] How big does a SWF get before IE starts to worry?

2008-05-08 Thread Josh McDonald
x data objects, you can really eat up tons of memory and be > data-bound. How you optimize for each scenario is pretty straightforward, > but you have to know which scenario you are in, and the Profiler is not > going to fully measure the memory that goes to code and display objects. > >

Re: [flexcoders] Re: Modules the way to go?

2008-05-09 Thread Josh McDonald
Does the SDK open up developer access to the weak references? -J On Fri, May 9, 2008 at 5:33 PM, Gregor Kiddie <[EMAIL PROTECTED]> wrote: >From the docs… > > "Unloads the module. Flash Player and AIR will not fully unload and > garbage collect this module if there are any outstanding referen

Re: [flexcoders] Re: How do I change transparency of BitmapData to BLACK?

2008-05-09 Thread Josh McDonald
Wouldn't it be easier to just draw a black rectangle, then draw the bitmap on top? On Sat, May 10, 2008 at 2:10 AM, toofah_gm <[EMAIL PROTECTED]> wrote: > I figured out how to get what I wanted using BitmapData.threshold: > image.bitmapData.threshold(image.bitmapData, > image.getRect(image), ne

[flexcoders] WSDLs with multiple tags?

2008-05-11 Thread Josh McDonald
Is there any support in Flex at the moment for WSDLs with multiple tags? We're having a problem with our ESB that it's adding a second containing ESB-specific voodoo, and it's before the normal SOAP binding in the WSDL, and Flex is trying to use this one, and *kablammo* it can't build any request

[flexcoders] Programmatically setting "default" styles that can be overriden with a stylesheet?

2008-05-12 Thread Josh McDonald
Hey guys, let's say I have a Label I'm creating programmatically, and I'd like to have some default styles (like a big red font), but still allow them to be overriden with the stylesheet - can it be easily done? Cheers, -J -- "Therefore, send not to know For whom the bell tolls. It tolls for th

Re: [flexcoders] Re: Programmatically setting "default" styles that can be overriden with a stylesheet?

2008-05-12 Thread Josh McDonald
t; .labelStyle { > color: #00ff00; > } > > > > > --- In flexcoders@yahoogroups.com , "Josh > McDonald" <[EMAIL PROTECTED]> wrote: > > > > Hey guys, > > > > let's say I have a Label I'm creating programmatically, and I'd > li

Re: [flexcoders] Disable compiler warning: CSS type selectors are not supported in components: 'xxx'

2008-05-12 Thread Josh McDonald
Hey guys, Can anybody help me on this? I'm having the same thing. I don't want to turn off all warnings, they're very useful sometimes (like "BAR won't be able to detect updates to FOO" when you forget [Bindable], but I can't see these for all the damned CSS warnings I get when editing a big proje

Re: [flexcoders] Re: RPC Fault, Error #1088 when receiving SOAP response with MTOM enabled

2008-05-12 Thread Josh McDonald
In case this bites me in the near future (everything else SOAP does), what's MTOM? -J On Tue, May 13, 2008 at 8:41 AM, Robert Csiki <[EMAIL PROTECTED]> wrote: > Hi there, > > Is MTOM still unsupported, in Flex3? I'm still getting the same type of > error, looks like Flex can't decode SOAP resp

Re: [flexcoders] Disable compiler warning: CSS type selectors are not supported in components: 'xxx'

2008-05-12 Thread Josh McDonald
ias… > > -show-unused-type-selector-warnings > > > > Rick Winscot > > > > > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Josh McDonald > *Sent:* Monday, May 12, 2008 6:18 PM > *To:* flexcoders@yahoogroups.com > *Subjec

Re: [flexcoders] DataGridHeader with TextInput : text values lost on scroll

2008-05-12 Thread Josh McDonald
My guess is you'll have to keep a copy of the new text in your dataprovider, as it's done that way in order to re-use the renderers for the rows and cut down on memory usage. On Tue, May 13, 2008 at 4:38 PM, gaurav1146 <[EMAIL PROTECTED]> wrote: > Hi, > I have a datagrid to which I am adding a

Re: [flexcoders] Disable compiler warning: CSS type selectors are not supported in components: 'xxx'

2008-05-13 Thread Josh McDonald
will be filtered. > > > > -show-unused-type-selector-warnings=false > > > > Details at: http://www.quilix.com/node/8 > > > > Rick Winscot > > > > > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Josh McDonald &

Re: [flexcoders] Re: DataGridHeader with TextInput : text values lost on scroll

2008-05-13 Thread Josh McDonald
I was thinking if there could > be any other way where I could read the current value from the textbox > and set the new textbox to this value without storing the user entered > values in an array. > > --- In flexcoders@yahoogroups.com , "Josh > McDonald" <[EMAIL PROTE

Re: [flexcoders] String Replace

2008-05-13 Thread Josh McDonald
Not tested, but should be what you want var s : String = ",AA,BB,CC,DD"; var regex : RegExp = /^\s*,/; s = s.replace(regex,""); -J On Wed, May 14, 2008 at 3:34 AM, Alex Harui <[EMAIL PROTECTED]> wrote: >What code did you use? A regular string replace sho

[flexcoders] Quick question - who calls UIComponent.measure()?

2008-05-13 Thread Josh McDonald
Hey guys, Since UIComponent.measure() is protected, does the container invoke it via a round-about way, or is it simply called from a ResizeEvent.RESIZE handler somewhere in UIComponent? -J -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' McDonald :

Re: [flexcoders] Quick question - who calls UIComponent.measure()?

2008-05-13 Thread Josh McDonald
-- > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Josh McDonald > *Sent:* Tuesday, May 13, 2008 4:33 PM > *To:* flexcoders@yahoogroups.com > *Subject:* [flexcoders] Quick question - who calls UIComponent.measure()? > > > > Hey guys, &

Re: [flexcoders] Re: Memory leak in UIDUtil.createUID()

2008-05-13 Thread Josh McDonald
Shlomic - Check the browser process size with taskman (or whatever it is in Windows these days) rather than the profiler, while using the debug player. See if it grows too much; if not, you've got nothing to worry about. If so, file a bug, it's the only way these things will get fixed. -J On Wed,

Re: [flexcoders] Quick question - who calls UIComponent.measure()?

2008-05-13 Thread Josh McDonald
- who calls > UIComponent.measure()? > > It is called by LayoutManager via validateSize() > > ____ > > From: flexcoders@yahoogroups.com [mailto: > flexcoders@yahoogroups.com ] On > Behalf Of Josh McDonald > Sent: Tuesday, May 13, 2008 4:33 PM > To: flexc

[flexcoders] Classes defined in MXML - are they dynamic? Can they be?

2008-05-13 Thread Josh McDonald
Like I'm an unpopular Digger, "Title says it all". -J -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]

Re: [flexcoders] Classes defined in MXML - are they dynamic? Can they be?

2008-05-13 Thread Josh McDonald
m:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Josh McDonald > *Sent:* Tuesday, May 13, 2008 8:41 PM > *To:* flexcoders@yahoogroups.com > *Subject:* [flexcoders] Classes defined in MXML - are they dynamic? Can > they be? > > > > Like I'm an

Re: [flexcoders] Classes defined in MXML - are they dynamic? Can they be?

2008-05-13 Thread Josh McDonald
> dynamic nature was a real pain in the ass. It was a huge step forward to go > back to working with stricter languages. > > > -- > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Josh McDonald > *Sent:* Tu

Re: [flexcoders] Quick question - who calls UIComponent.measure()?

2008-05-13 Thread Josh McDonald
uot;. It is > possible to create invalidation loops where by the time we finish > validating, something is invalidated again. > > > -- > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Josh McDonald > *Sent:* Tuesday, May 13

Re: [flexcoders] error while extending dictionary error ..

2008-05-13 Thread Josh McDonald
If it's not giving away any business secrets, why on earth would you want to subclass Dictionary? Flex already has some sort of built in support for singletons, I believe. -J On Wed, May 14, 2008 at 2:43 PM, Mayur Bais <[EMAIL PROTECTED]> wrote: > Any specific reason why we should not extend d

Re: [flexcoders] error while extending dictionary error ..

2008-05-13 Thread Josh McDonald
addToMemberlist(obj:Object):void { >for(var i:int=0;i var tempMember:MemberObject = new MemberObject() > tempMember.fill(obj[i]); > appendtomemelist(tempMember); > } > } > > > /** > *Set instance of

Re: [flexcoders] customizing navigateToURL

2008-05-13 Thread Josh McDonald
You'd have to have a javascript function that opens and resizes the window, and then sets the href to your url, and hopefully the user has those resizing functions disabled anyway, coz they're evil :) What i mean is a URLRequest("javascript:doJavaScriptCode()") instead of the url of the PDF itself

Re: [flexcoders] error while extending dictionary error ..

2008-05-13 Thread Josh McDonald
var tempMember:MemberObject = new MemberObject() > tempMember.fill(obj[i]); > appendtomemelist(tempMember); > } > } > > > /** > *Set instance of memberList null on logout > */ > pub

Re: [flexcoders] Quick question - who calls UIComponent.measure()?

2008-05-13 Thread Josh McDonald
- > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Josh McDonald > *Sent:* Tuesday, May 13, 2008 9:46 PM > > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] Quick question - who calls > UIComponent.measure()? > >

Re: [flexcoders] error while extending dictionary error ..

2008-05-13 Thread Josh McDonald
mark it final. > > > -- > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Josh McDonald > *Sent:* Tuesday, May 13, 2008 10:41 PM > > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] error while exten

Re: [flexcoders] error while extending dictionary error ..

2008-05-14 Thread Josh McDonald
at 3:58 PM, Alex Harui <[EMAIL PROTECTED]> wrote: >Sure. Thanks. > > > -- > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Josh McDonald > *Sent:* Tuesday, May 13, 2008 10:53 PM > > *To:* flexcoders@

Re: [flexcoders] delayed action

2008-05-14 Thread Josh McDonald
I'd just bind those properties to (model.comparisons.length > 0) in the MXML, or if the components are instantiated in actionscript, use the BindingUtils.bindSetter() function. -J On Wed, May 14, 2008 at 8:13 PM, Rubeel <[EMAIL PROTECTED]> wrote: > hi All, > i am trying to do an action after t

Re: [flexcoders] Flash Player 10 is in prerelease!

2008-05-15 Thread Josh McDonald
Nuts to enums, typesafe metadata! :D On Thu, May 15, 2008 at 5:16 PM, Marcus Engene <[EMAIL PROTECTED]> wrote: > Gordon Smith wrote: > > > > http://labs.adobe.com/technologies/flashplayer10/ > > > > > > > > Gordon Smith > > > > Adobe Flex SDK Team > > > > > > > Hurra! I see you have h/w support

[flexcoders] How do I dispatch an "everything" PropertyChangeEvent on this?

2008-05-15 Thread Josh McDonald
Hi guys, Disclaimer: this is probably a stupid question, but I've been trying to figure this out for way too long! I've got some code that does all sorts of things to this.foo, this.bar, and this.baz etc etc. At the moment I'm dispatching several standard PropertyChangeEvents as I change fields.

[flexcoders] Re: How do I dispatch an "everything" PropertyChangeEvent on this?

2008-05-15 Thread Josh McDonald
"populated")); -J On Fri, May 16, 2008 at 4:30 PM, Josh McDonald <[EMAIL PROTECTED]> wrote: > Hi guys, > > Disclaimer: this is probably a stupid question, but I've been trying to > figure this out for way too long! > > I've got some code that does all

Re: [flexcoders] Re: How do I dispatch an "everything" PropertyChangeEvent on this?

2008-05-18 Thread Josh McDonald
same > event. Just depends on exactly what the use case is, if your class is set up > with the default Binding events you could use describeType in your updateAll > method to dispatch a PropertyChangeEvent for each property in your class. > > > On Fri, May 16, 2008 at 1:36 AM, Josh

Re: [flexcoders] Re: How do I dispatch an "everything" PropertyChangeEvent on this?

2008-05-18 Thread Josh McDonald
e result of the describeType so that it will only happen > once on each qualified class name as that method can be pretty heavy. > > > On Sun, May 18, 2008 at 7:42 PM, Josh McDonald <[EMAIL PROTECTED]> wrote: > >> Does this mean I will no longer receive any automatic upda

Re: [flexcoders] run flex builder using Java 6 on mac?

2008-05-18 Thread Josh McDonald
Java 6 on mac is currently incompatible with SWT, which is what Eclipse uses for its GUI, so It can't be done.\ -J On Mon, May 19, 2008 at 9:15 AM, Rich Rodecker <[EMAIL PROTECTED]> wrote: > Not sure if this is possible or not, but since apple released the Java 6 > update recently, is there a

Re: [flexcoders] run flex builder using Java 6 on mac?

2008-05-18 Thread Josh McDonald
By the way, is this Mac only, or is SWT just not J6 ready anywhere? -J On Mon, May 19, 2008 at 11:30 AM, Josh McDonald <[EMAIL PROTECTED]> wrote: > Java 6 on mac is currently incompatible with SWT, which is what Eclipse > uses for its GUI, so It can't be done.\ > > -J >

Re: [flexcoders] Bindable tag question

2008-05-18 Thread Josh McDonald
If you call addItem(), updateItem(), etc, the PropertyChangedEvent is dispatched by the IList implementor (ie, ArrayCollection). But, if you have an IList of objects, and you do this: var company : Company = companyList.getItemAt(3) as Company; company.name = "New name"; then you'll only get the

[flexcoders] [ArrayElementType] warning

2008-05-18 Thread Josh McDonald
Hey guys, I'm getting this on MXML files referring to classes using [ArrayElementType] rather than in the classes themselves: [ArrayElementType](CompositeMapping)]: type CompositeMapping is unavailable. The CompositeMapping class is definitely referenced from the MXML file though:

[flexcoders] Determine "IS" with a Class object rather than an instance?

2008-05-19 Thread Josh McDonald
Guys, Say I have this: function findMeAClassMagic() : Class { ... } var foo : Class = findMeAClassMagic(); Can I determine whether or not the class represented by Foo is a Bar or a subclass of Bar, without attempting to call a new foo() and hoping foo has a zero-argument constructor inside a tr

Re: [flexcoders] Re: Bindable tag question

2008-05-19 Thread Josh McDonald
quot; initialize="createCompanies()"> > > > > > > > > > > > > > > > > > > > > ***Company.as**** > package > { > public class Company > { > public function Company() >

Re: [flexcoders] Determine "IS" with a Class object rather than an instance?

2008-05-19 Thread Josh McDonald
ote: >Try getQualifiedClassName/getQualifiedSuperClassName > > -- > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Josh McDonald > *Sent:* Monday, May 19, 2008 12:57 AM > *To:* flexcoders@yahoogroups.com > *Subj

Re: [flexcoders] "unable to bind to property" warnings binding to read-only properties

2008-05-20 Thread Josh McDonald
Alex, if you bind to a non-bindable property on an object that is itself a bindable property (as in this case), despite the warning will the compiler generate a binding that updates when the entire object is updated? Ie will it update when range changes? Or will nothing be generated at all? On a s

Re: [flexcoders] suppress zeros in dataGrid

2008-05-20 Thread Josh McDonald
You'll just need a custom labelfunction on your DataGridColumn: function myLabelFunction(item:Object, column:DataGridColumn):String { return item[column.fieldName] == 0 ? "" : item[column.fieldName]]; } Keep in mind that's typed in gmail, not Flex, so it may not work. Should be close though. -

[flexcoders] Flex SDK Licensing Q

2008-05-20 Thread Josh McDonald
(sorry if this is a dupe, Yahoo gave me one of its occasional "no rcpt from gmail" messages. Yay!) Hey guys, Quick question: I'm fairly certain this is OK, but I want to double check so as to not open my employers up to any troubles down the road - If I make a modification to a source file inclu

Re: [flexcoders] Re: suppress zeros in dataGrid

2008-05-20 Thread Josh McDonald
It should be column.dataField Like I said, it was from memory :) -J On Wed, May 21, 2008 at 12:56 PM, markgoldin_2000 <[EMAIL PROTECTED]> wrote: > column.fieldName gives me an error. > > > --- In flexcoders@yahoogroups.com , "Josh > McDonald" <[EMAIL PROT

Re: [flexcoders] Re: Securely Interfacing Between Flex and Databases

2008-05-20 Thread Josh McDonald
If your encryption can be broken just because somebody has the source to your algorithm, then it's worthless already =) That's why we've got standard algorithms that rely on keys in the first place. -J On Wed, May 21, 2008 at 2:25 PM, kenny14390 <[EMAIL PROTECTED]> wrote: > So the bottom line

Re: [flexcoders] "unable to bind to property" warnings binding to read-only properties

2008-05-20 Thread Josh McDonald
Binding to read-only accessors does work with custom events: --- testbed.xml http://www.adobe.com/2006/mxml"; layout="absolute" xmlns:ns1="*" > --- TestBed.as package { import flash.events.Event; import flash.events.EventDispatcher;

<    4   5   6   7   8   9   10   11   12   13   >