Re: [flexcoders] text style in TextArea?

2008-08-04 Thread Josh McDonald
Dude, no need for the double post, they take a little while to go up, and Yahoo won't email them back to the original poster (you won't see it in your mail software until there's a reply). As for your question, depending on what you're actually trying to achieve you might need a list of fields, o

Re: [flexcoders] error: DisplayObject must be a child of the caller

2008-08-04 Thread Josh McDonald
That could be it. Try lineChart.parent.removeChild(lineChart) and see if you get a NPE on parent :) On Tue, Aug 5, 2008 at 9:31 AM, Alex Harui <[EMAIL PROTECTED]> wrote: > Maybe you ran that code twice? > > -- > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROT

Re: [flexcoders] Flex class inherritance problem

2008-08-04 Thread Josh McDonald
If you're doing something that seems really simple, and you think it really should be working, like in this case, post your code. The question "Shouldn't a grandchild of Object have the same properties as a child of Object?" is unlikely to get you anything resembling useful help. -Josh On Tue, Au

Re: [flexcoders] document[value]

2008-08-03 Thread Josh McDonald
AFAIK In an MXML component, document will usually point to the "defining" instance, which may be the application, or it could be another component. And in actionscript, foo["bar"] is the same as: foo.bar So it's just dereferencing a public property of the document object with the name of whate

Re: [flexcoders] Flex Trademarks: How do we play nice?

2008-08-03 Thread Josh McDonald
Thanks for that Doug. It seems like I'm not going to have any troubles, which is good to know :) On Mon, Aug 4, 2008 at 11:56 AM, Doug McCune <[EMAIL PROTECTED]> wrote: > I think it came across clearly in Matt's interview, but I'll just > reiterate. The Flex dudes are nice and don't like being t

Re: [flexcoders] Flex Trademarks: How do we play nice?

2008-08-03 Thread Josh McDonald
s: > > http://www.adobe.com/misc/pdfs/TM_GuideforThirdPartiesFinalPrint.pdf > > - Daniel Freiman > > > On Sun, Aug 3, 2008 at 7:13 PM, Josh McDonald <[EMAIL PROTECTED]> wrote: > >> Hey guys, >> >> Just finished listening to the latest Flexshow with

[flexcoders] Flex Trademarks: How do we play nice?

2008-08-03 Thread Josh McDonald
Hey guys, Just finished listening to the latest Flexshow with Matt, and realised that when I get around to uploading my new design, putting up more content and launching my blog publicly I'm likely to run afoul of Adobe's crack team of ninja lawyers. Dating a proto-lawyer is frankly all the lawyer

Re: [flexcoders] Re: Overriding function not marked for override? Why ...

2008-07-31 Thread Josh McDonald
h, you might eliminate your ability to > > take advantage of the shared framework RSLs. > > > > > > > > Amazingly, I've helped answer 1000's of customer issues with only maybe > > one or two answers requiring monkey-patching. I've been able to find > &

Re: [flexcoders] Re: Eli Greenfield's Randomwalk

2008-07-31 Thread Josh McDonald
ECTED]> wrote: > --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote: > > > > Should be easy enough just using a tileList as the renderer for the > last > > column? > > Can you set the renderers per-column? I don't se

Re: [flexcoders] Re: Eli Greenfield's Randomwalk

2008-07-31 Thread Josh McDonald
Should be easy enough just using a tileList as the renderer for the last column? -Josh On Fri, Aug 1, 2008 at 1:48 PM, Amy <[EMAIL PROTECTED]> wrote: > --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > > > The source code either has a license in it or not. If not, I

Re: [flexcoders] Re: Overriding function not marked for override?

2008-07-31 Thread Josh McDonald
otected read-only why would the flex developers > > intentionally cripple the functionality like this? Rhetorical question > > I guess :-( > > > > --- In flexcoders@yahoogroups.com, "Josh McDonald" wrote: > > > > > > If it's a protected re

Re: [flexcoders] Re: A simple component in AS - Setting height Issues

2008-07-31 Thread Josh McDonald
s@yahoogroups.com > *Subject:* [flexcoders] Re: A simple component in AS - Setting height > Issues > > > > Thanks for your replay...that could be make the component more big > and slow? > > I'd love to see how to set the textArea height dynamically after > setting th

Re: [flexcoders] Re: A simple component in AS - Setting height Issues

2008-07-31 Thread Josh McDonald
; > I'd love to see how to set the textArea height dynamically after > setting the text. > > Thanks > > > > --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote: > > > > If you set width only on your Text, and put it in

Re: [flexcoders] Determine client performance (not with any accuracy)?

2008-07-31 Thread Josh McDonald
ong each frame is taking to > render/process. Then setting state on an application performance model that > views could bind to and tone themselves down appropriately... > > > On Thu, Jul 31, 2008 at 8:58 PM, Josh McDonald <[EMAIL PROTECTED]> wrote: > >> Hey guys, &

Re: [flexcoders] A simple component in AS - Setting height Issues

2008-07-31 Thread Josh McDonald
If you set width only on your Text, and put it in a Canvas with no height set, it should grow as the Text component grows. On Fri, Aug 1, 2008 at 11:57 AM, flexawesome <[EMAIL PROTECTED]> wrote: > Hey I was trying to figure out how to dynamically make the grow in > height with the textArea in my

[flexcoders] Determine client performance (not with any accuracy)?

2008-07-31 Thread Josh McDonald
Hey guys, I'm probably going to be embarking on a project soon that can be very graphically (and hence processor) intensive, and I'd like to know if there's anything out there to help me determine performance in order to tweak things to have less detail if it's going slowly, and more if it's not.

Re: [flexcoders] How to block user interaction?

2008-07-31 Thread Josh McDonald
How do you sleep at night, Doug? :) BTW I'm currently messing about with your Coverflow for a 2-hour proof-of-concept thing. It's hella nice! -Josh On Fri, Aug 1, 2008 at 10:51 AM, Doug McCune <[EMAIL PROTECTED]> wrote: > I'm currently working on a preloader that actually does quite a bit of >

Re: [flexcoders] Re: Overriding function not marked for override?

2008-07-31 Thread Josh McDonald
n > I guess :-( > > --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote: > > > > If it's a protected read-only, you won't be able to expose it without > > monkey-patching the original file, as _renderData is almost > ce

Re: [flexcoders] Types in Web Services

2008-07-31 Thread Josh McDonald
I don't think changing the type in Java will fix your problem, it's probably a problem in the data you're sending back, or your WSDL / XSD. Double check everything using a debugging proxy like Charles. -Josh On Fri, Aug 1, 2008 at 2:55 AM, Carlos Obregón <[EMAIL PROTECTED]> wrote: > I have a met

Re: [flexcoders] Re: Overriding function not marked for override?

2008-07-31 Thread Josh McDonald
If it's a protected read-only, you won't be able to expose it without monkey-patching the original file, as _renderData is almost certainly going to be private, so you can never set it. -Josh On Fri, Aug 1, 2008 at 8:37 AM, Amy <[EMAIL PROTECTED]> wrote: > --- In flexcoders@yahoogroups.com, "chi

Re: [flexcoders] Re: Any future plans to support ODBC Connections for AIR applications?

2008-07-31 Thread Josh McDonald
e market place. There are just so many desktop database apps out there > that are begging to be web enabled. > > Just my $0.02c- > Patrick > > > > --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote: > > > > That being said,

Re: [flexcoders] Re: Sandbox violation running from Builder. How did I get this and how do I fix it?

2008-07-31 Thread Josh McDonald
ng to access a local XML file in > the project directory (source code in src/, swf in bin-debug/ and xml > file in assets/ --- all three are sister directories) . > > If anyone has figured out the solution to this puzzle, please post! > > Best wishes, > -- j > > --- In [EMAIL PROT

Re: [flexcoders] Re: Flex woes, wo-iz-o, i hate it (sometimes)

2008-07-31 Thread Josh McDonald
Yeah, I was definitely complaining more about builder than I was about your idea :) On Thu, Jul 31, 2008 at 11:50 PM, Amy <[EMAIL PROTECTED]> wrote: > > > That's why I suggested a switch. But I routinely go in and clean out > the import statements of stuff I decided not to use ;-), so maybe it's

Re: [flexcoders] Any future plans to support ODBC Connections for AIR applications?

2008-07-31 Thread Josh McDonald
world seem to be used to that sort of thing. Sounds like pain though :D -Josh On Thu, Jul 31, 2008 at 5:45 PM, Josh McDonald <[EMAIL PROTECTED]> wrote: > It's pretty evil. I'd just ship a 30-lines-of-c# utility to pull the data > out and put it in something standard that

Re: [flexcoders] Any future plans to support ODBC Connections for AIR applications?

2008-07-31 Thread Josh McDonald
It's pretty evil. I'd just ship a 30-lines-of-c# utility to pull the data out and put it in something standard that your air app can understand. -Josh On Thu, Jul 31, 2008 at 5:19 PM, pbrendanc <[EMAIL PROTECTED]> wrote: > I know this has come up before but there is a significant need to > acces

Re: [flexcoders] Can we subclass Application yet?

2008-07-31 Thread Josh McDonald
children won't really work if you are > trying to insert the children between a menubar and status bar. > > > > > -- > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Josh McDonald > *Sent:* Wednesda

Re: [flexcoders] Re: Flex woes, wo-iz-o, i hate it (sometimes)

2008-07-30 Thread Josh McDonald
get the > class out of it. Works great if you don't know what classes you need until > runtime, but don't want to bloat your main swf. > > > *Steve Mathews* > > *Senior Team Lead* > > *Flypaper Studio, Inc.* > *www.flypaper.com* > > On Wed, Jul 30, 20

Re: [flexcoders] Detecting a click on an empty part of AdvancedDataGrid

2008-07-30 Thread Josh McDonald
Off the top of my head, you could schedule a function that sets selectedItem to null either with callLater or a timer, and cancel that somehow on itemClick? Kinda hackish though, there's probably a nicer way :) -Josh On Thu, Jul 31, 2008 at 9:27 AM, whatabrain <[EMAIL PROTECTED]> wrote: > I hav

Re: [flexcoders] Re: Flex woes, wo-iz-o, i hate it (sometimes)

2008-07-30 Thread Josh McDonald
You can tell the compiler to include any class you want, as well as whatever it thinks you want, right? Or is that only valid for SWCs? -Josh -- "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: Flex woes, wo-iz-o, i hate it (sometimes)

2008-07-30 Thread Josh McDonald
*shudder* That's a bad idea unless the "clean up imports" builder functionalituy is rewritten to a) function, and b) be something you can control when and if it runs ;-) On Thu, Jul 31, 2008 at 9:37 AM, Amy <[EMAIL PROTECTED]> wrote: > --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROT

Re: [flexcoders] Re: Flex woes, wo-iz-o, i hate it (sometimes)

2008-07-30 Thread Josh McDonald
So it's not just me then! Solidarity brother! :D On Thu, Jul 31, 2008 at 8:14 AM, Gordon Smith <[EMAIL PROTECTED]> wrote: > When he swears, Alex uses language that would have caused my grandmother > to wash my mouth out with soap. > > > > - Gordon > > > -- > > *From

Re: [flexcoders] Can we subclass Application yet?

2008-07-30 Thread Josh McDonald
Alex, I definitely understand the need for this, but I'd use components is all. I can see how it'd be useful though. I'd have to poke around inside the generated actionscript, but I'm sure this could be hacked up without *too* much shenanigans to work with the current compiler. I might take a look

Re: [flexcoders] Can we subclass Application yet?

2008-07-30 Thread Josh McDonald
ult components and use that as > the top tag in another app. There are some workarounds, but it isn't very > smooth. > > > -- > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Josh McDonald > *Sent:* Wed

Re: [flexcoders] Can we subclass Application yet?

2008-07-30 Thread Josh McDonald
Frankly I'm moving towards the root Application having nothing but enough code to initiate framework bootstrapping and instantiate the "home" component when bootstrapping is completed anyway. -Josh -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' Mc

Re: [flexcoders] Can we subclass Application yet?

2008-07-30 Thread Josh McDonald
Makes sense, since you're overriding Container._childDescriptors anyway. But why on earth would you *want* to do this? -Josh On Thu, Jul 31, 2008 at 9:08 AM, Alex Harui <[EMAIL PROTECTED]> wrote: > Any attempt to subclass an MXML Component based on a container to add > other children to it usua

Re: [flexcoders] Can we subclass Application yet?

2008-07-30 Thread Josh McDonald
I'm confused. You subclass Application every time you create a new Flex app, and in MXML. What problems are there to speak of? -Josh On Thu, Jul 31, 2008 at 6:08 AM, Alex Harui <[EMAIL PROTECTED]> wrote: > You can certainly subclass Application via AS. Are you trying to do it > in MXML? > > >

Re: [flexcoders] Canvas event

2008-07-30 Thread Josh McDonald
You can try setting mouseChildren="false" on the outer Canvas. -Josh On Wed, Jul 30, 2008 at 8:08 PM, David Gironella <[EMAIL PROTECTED]>wrote: > I have this piece of code. > > > > mouseOut="{*trace*(*'out'*)}" backgroundColor="0x342453"> > > > > > > > > > > > > > > > > When I m

Re: [flexcoders] Re: Checking if an object exists

2008-07-30 Thread Josh McDonald
x27;)) || > (!parentApplication.appData.hasOwnProperty('moduleParams').moduleFrom)) { > } > > or > >if ((!('moduleParams' in parentApplication.appData)) || > (!('moduleFrom' in parentApplication.appData['moduleParams']))) { > }

Re: [flexcoders] Height Question

2008-07-29 Thread Josh McDonald
What you're asking is doable, but you're definitinely going the wrong way about it. Put the two vboxes in a canvas that doesn't have its height set, and set the height on each vbox to 100%. Example: http://www.adobe.com/2006/mxml"; layout="absolute">

Re: [flexcoders] Re: HttpService Fault Response Body Decoding

2008-07-29 Thread Josh McDonald
Your blazeds http transport is going fine, otherwise you wouldn't see anything in message, faultcode, etc. The problem is either in the proxy server itself, or the server you're trying to talk to. -Josh On Tue, Jul 29, 2008 at 3:33 PM, ron_mori <[EMAIL PROTECTED]> wrote: > I must be missing some

Re: [flexcoders] Re: Error #1034 - HashMap convert to ActionScript?

2008-07-29 Thread Josh McDonald
for (var key:* in myObject) { var value:* = myObject[key]; } for..in does keys, for each..in does values. -Josh On Tue, Jul 29, 2008 at 5:07 PM, cyrill.zadra <[EMAIL PROTECTED]>wrote: > Hi everybody, > > The debug log of BlazeDS shows that the java.util.HashMap get's > converted to an Object.

Re: [flexcoders] modelLocator.testVO.test[i] indirection for modelLocator.testVO.test1?

2008-07-28 Thread Josh McDonald
Close :) You want: modelLocator.testVO.["test" + i] -Josh On Tue, Jul 29, 2008 at 4:06 PM, chigwell23 <[EMAIL PROTECTED]> wrote: > modelLocator.testVO.test1 = "some string"; > > var i:int = 1; > > modelLocator.testVO.test[i]= "some string"; // gives error undefined > > property - how does one

Re: [flexcoders] Checking if an object exists

2008-07-28 Thread Josh McDonald
Also, you can check: if (1 in archive[record_id]) { //do stuff } -Josh On Tue, Jul 29, 2008 at 2:32 PM, Josh McDonald <[EMAIL PROTECTED]> wrote: > If it's an array, then you want: > > if(archive[record_id].length > 1) > { > //do stuff > } > > -Josh

Re: [flexcoders] Checking if an object exists

2008-07-28 Thread Josh McDonald
If it's an array, then you want: if(archive[record_id].length > 1) { //do stuff } -Josh On Tue, Jul 29, 2008 at 2:05 PM, Rafael Faria <[EMAIL PROTECTED]>wrote: > Hello all, > > I'm here for one of my questions again :P > > I need to make a comparison like this > > if (archive[record_id][1

Re: [flexcoders] Re: HttpService Fault Response Body Decoding

2008-07-28 Thread Josh McDonald
; response.. or maybe not. > > Any insight on the mechanics? > Thanks. > > --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote: > > > > That should be taken care of automatically when using BlazeDS as a > proxy. > > >

Re: [flexcoders] Re: HttpService Fault Response Body Decoding

2008-07-27 Thread Josh McDonald
That should be taken care of automatically when using BlazeDS as a proxy. -Josh On Mon, Jul 28, 2008 at 3:43 PM, ron_mori <[EMAIL PROTECTED]> wrote: > The fault handler is being call. (server 500 status) The good news > is that my research points me towards the BlazeDS proxy server which I > h

Re: [flexcoders] Re: Web-based Sync data - Flex/Air & VS.NE

2008-07-24 Thread Josh McDonald
nc is to > install a program in desktop. Then, > any benefit of AIR is better than > Microsoft'stuf ? Sorry, it is a management > question so that we can sell our management > while our other development is on MS platform. > Inshort, any good point in AIR which is better ? > > Th

Re: [flexcoders] Re: Web-based Sync data - Flex/Air & VS.NET

2008-07-24 Thread Josh McDonald
y. > > This one sounds good:- > "Standard (client-side) libraries are allegedly > a lot broader in Flex than Silverlight." > > Anyone has examples which related to database application ? > > > > --- In flexcoders@yahoogroups.com, "Josh McDonald" &l

Re: [flexcoders] Re: Web-based Sync data - Flex/Air & VS.NET

2008-07-24 Thread Josh McDonald
ur other development is on MS platform. > Inshort, any good point in AIR which is better ? > > Thanks > > --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote: > > > > Anything that lives in a browser is not going to be able to have

Re: [flexcoders] Re: alert button order

2008-07-24 Thread Josh McDonald
I often mimic Alert with a mxml component based on tileWindow, and just add a static show method that calls out to PopupManager.createPopup() and centrePopup(), it's easy as pie. -Josh On Fri, Jul 25, 2008 at 11:36 AM, lampei <[EMAIL PROTECTED]> wrote: > I guess you could use the PopUpManager cl

Re: [flexcoders] Re: new Component() ?

2008-07-24 Thread Josh McDonald
You can't really do what you want, without creating custom item renderer components or custom IFactories. You could possibly create one base component, and pass in a callback function as one of the parameters in initObject for an InitFactory, but that's a terrible idea for any number of reasons, ch

Re: [flexcoders] Web-based Sync data - Flex/Air & VS.NET

2008-07-24 Thread Josh McDonald
Anything that lives in a browser is not going to be able to have a local database, going to microsoft won't change that. On Fri, Jul 25, 2008 at 11:03 AM, itdanny2002 <[EMAIL PROTECTED]> wrote: > I need to build a web-based Application which > has data in Client & Server, sync is required. > > AI

Re: [flexcoders] HttpService Request Parmeters

2008-07-24 Thread Josh McDonald
You can POST arbitrary xml data to HttpService. What you can't do is anything other than GET or POST which makes interacting with most (true) REST services difficult or impossible. -Josh On Fri, Jul 25, 2008 at 10:23 AM, ron_mori <[EMAIL PROTECTED]> wrote: > Coders, > > Think: HttpService used f

Re: [flexcoders] Re: new Component() ?

2008-07-24 Thread Josh McDonald
--- > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Josh McDonald > *Sent:* Wednesday, July 23, 2008 11:52 PM > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] Re: new Component() ? > > > > If you have: >

Re: [flexcoders] Re: new Component() ?

2008-07-23 Thread Josh McDonald
from actionscript as well. > > guess i was wrong. Flex didn't think about everything, do they? :P > > raf > > --- In flexcoders@yahoogroups.com , "Josh > McDonald" <[EMAIL PROTECTED]> wrote: > > > > Well no, you can't do what you're askin

[flexcoders] NullPointerException from ant task.

2008-07-23 Thread Josh McDonald
Hey Guys, Can't seem to google up an answer for this besides an old closed bug. When my build file gets to: I get a NullPointerException. All I get from ant is this: wrapper: BUILD FAILED /Users/josh/Desktop/Work/Builder Workspace/DisposalsRCC/build.xml:51: java.lang.NullP

Re: [flexcoders] Re: Encapsulating a custom flex component?

2008-07-23 Thread Josh McDonald
we can access the subcomponent button using > ActionScript, such as this: > > this.myComponent.btn.label = "modified"; > > And that will also work. Thus it turns out that [Exclude] is limited to > altering what attributes are available within the tag that declares a > componen

Re: [flexcoders] Re: new Component() ?

2008-07-23 Thread Josh McDonald
Well no, you can't do what you're asking :) When you use: ... It's creating a new subclass of Canvas with a generated name, and you can't create new classes at run-time without bytecode manipulation (which isn't really an option in Flex yet unfortunately). But what exactly are you tryin

Re: [flexcoders] Re: new Component() ?

2008-07-23 Thread Josh McDonald
I don't see why you don't just use like in your first example? You don't need to make any extra files. Or are you building your entire datagrid programatically? -Josh On Thu, Jul 24, 2008 at 9:16 AM, Rafael Faria <[EMAIL PROTECTED]> wrote: > Hi Johannes, > > Thanks for your reply but my questio

Re: [flexcoders] Re: Encapsulating a custom flex component?

2008-07-23 Thread Josh McDonald
e package. You might also combine it with the "ExcludeClass" metadata > > tag to 'hide' the class name from people using your SWC. > > > > I'm not sure if I'd equate either of these approach to private, though. > > > > I blogged about this i

Re: [flexcoders] Measurement and scrolling

2008-07-23 Thread Josh McDonald
llPolicy="on" then the scrollbars will be factored > in > > > > > > > > ____ > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of Josh McDonald > > Sent: Tuesday, July 22, 2008 10:13 PM > > To: f

Re: [flexcoders] Measurement and scrolling

2008-07-22 Thread Josh McDonald
The only way to not have scrollbars over the content (or to only have vertical, but not all the time) is to do scrollbar management yourself rather than relying on Flex's inbuilt methods of handling it. This is a decision made by the Flex team to avoid having to double measure() stuff when adding s

Re: [flexcoders] Encapsulating a custom flex component?

2008-07-22 Thread Josh McDonald
Not in MXML components. -Josh On Wed, Jul 23, 2008 at 9:53 AM, Nate Beck <[EMAIL PROTECTED]> wrote: > Newbish question... but after searching on google, I can't get a concise > answer. > > Is it possible to encapsulate (mark private) components within a Flex > component? > > So I have custom MXM

Re: [flexcoders] Dynamic change edit status of TextImput

2008-07-17 Thread Josh McDonald
You can loop through looking for the child with ID "x", or keep a reference to it like you would any other variable. var createdChildren : Object = {}; private function Test():void { for(var i:int = 0; i wrote: > Hello all, > Yes it is me back asking more questions about dynamic ActionScript. >

Re: [flexcoders] Container is not resizing when parent resizes

2008-07-17 Thread Josh McDonald
As a guess, you're probably setting width and height somewhere instead of calling setActualSize(width, height); -Josh On Fri, Jul 18, 2008 at 9:12 AM, wwwpl <[EMAIL PROTECTED]> wrote: > I created a custom component that extends Container. I have set the > width and height to 100%. When my comp

Re: [flexcoders] dynamic variables query

2008-07-17 Thread Josh McDonald
You can still do that, but only on dynamic objects :) anything that is defined as: public dynamic class MyDynamicClass var dynamicObject = new MyDynamicClass(); var dynamicObject2 = new Object(); var dynamicObject3 = {}; -Josh On Fri, Jul 18, 2008 at 10:05 AM, andrewedwards39 <[EMAIL PROTECTED

Re: [flexcoders] Re: Comparing two array collections

2008-07-17 Thread Josh McDonald
I'd create a util class listens to CollectionChangeEvents from your collection and keeps a list of what's added, a list of what's dirty, and a list of what's removed. It'd probably take 2 hours to write and be a pretty useful util class. -Josh On Fri, Jul 18, 2008 at 10:26 AM, Gordon Smith <[EMAI

Re: [flexcoders] Re: creating a World Clock and need a little help with the time and date

2008-07-17 Thread Josh McDonald
the DateTime in .Net. And my understanding of that is that's > built in so there's no convesions (although I could be wrong). > > -M > > > --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> > wrote: > > > > Switch to a

Re: [flexcoders] Re: Dates Display Wrong on Random Clients?

2008-07-17 Thread Josh McDonald
> I'm using a date object, but not using the time part. So I had times > set to 0. I simple moved all times to 12 and that's it. It's not an > unwanted feature, just one I'm not using because of the local nature > of this application. Let me know if you have suggesti

Re: [flexcoders] Re: HTTP Service Send Requests with Parameter Object - 405 Errors?

2008-07-17 Thread Josh McDonald
The problem with getting no data through is because you're using a non-dynamic object. Use: var params : Object = { paramName: paramValue, param2Name: param2Value }; The reason is that the service code uses something like: for(var key:* in params) { request.addParam(key, params[key]); }

Re: [flexcoders] Re: Custom DateChooser component.

2008-07-17 Thread Josh McDonald
Then I'd use a custom component instead of itself, rather than trying to shoehorn stuff into the existing DateField impl. It just seems like you're setting yourself up for way more work than you need to is all. The order I'd try is: 1. Custom component instead of DateField, that contains in a hb

Re: [flexcoders] Re: Is it possible to listen to *all* events without hacking the SDK?

2008-07-16 Thread Josh McDonald
Which is what makes it so great for what I want to know :D Also, *exactly* what I need to implement some framework voodoo I need next week. -Josh On Thu, Jul 17, 2008 at 3:51 PM, Alex Harui <[EMAIL PROTECTED]> wrote: > And it won't catch everything. MouseEvents and other events dispatched > f

Re: [flexcoders] Re: Is it possible to listen to *all* events without hacking the SDK?

2008-07-16 Thread Josh McDonald
Cool, I didn't know about that, cheers :) On Thu, Jul 17, 2008 at 2:10 PM, reflexactions <[EMAIL PROTECTED]> wrote: > Well you can at least catch all events dispatched on a particular > component, and without subclassing or patching. > > You assign a callback function to the dispatchEventHook pro

Re: [flexcoders] Is it possible to listen to *all* events without hacking the SDK?

2008-07-16 Thread Josh McDonald
hes any event at all. Again, that probably goes > against the not hacking condition of the question :) > > Doug > > On Wed, Jul 16, 2008 at 8:11 PM, Josh McDonald <[EMAIL PROTECTED]> wrote: > > Hey guys, > > > > Is it possible to listen to all events that bubbl

[flexcoders] Is it possible to listen to *all* events without hacking the SDK?

2008-07-16 Thread Josh McDonald
Hey guys, Is it possible to listen to all events that bubble to / are dispatched from a certain component? Don't worry, I don't actually plan on using this in any actual code! I'm just interested in doing some extremely verbose logging to gather information for a blog post I have in mind ;-) -Jo

Re: [flexcoders] Array reference vs values

2008-07-16 Thread Josh McDonald
BWAHAHAHAHAHA! *wipes tear* That's awesome :) On Thu, Jul 17, 2008 at 12:53 PM, Sid Maskit <[EMAIL PROTECTED]> wrote: > Oops. Where my speech recognition software wrote "teen reference", it > should read "dereference". > -- "Therefore, send not to know For whom the bell tolls. It tolls for

Re: [flexcoders] Array reference vs values

2008-07-16 Thread Josh McDonald
On Thu, Jul 17, 2008 at 11:55 AM, Darren Houle <[EMAIL PROTECTED]> wrote: > Josh > > Yes, what you're describing is exactly what I described and is, in fact, > what it happening... but to say I don't ever need to do this? Well... > yes... I need to do this... and it has nothing to do with the ga

Re: [flexcoders] Array reference vs values

2008-07-16 Thread Josh McDonald
When you do this: var date:Date = new Date(); You're creating an instance of Date and a reference to it named "date". When you do this: var ref:Date = arr[0] as Date; You're creating another reference to the same instance, this time your reference is named "ref". So when you set ref = null

Re: [flexcoders] Help with ActionScript class in Flex 3

2008-07-16 Thread Josh McDonald
How are you instantiating the ProgrammingBasics class? Are you adding it to the stage somehow with an addChild() after you create it? It seems like you're using a book targeted for Flash. The Actionscript syntax will of course be the same, but most of the patterns and practices in it will probably

Re: [flexcoders] Re: Anyone have a good resource on singletons?

2008-07-16 Thread Josh McDonald
Well that makes it less dangerous and it's good to know, cheers. No less ugly though, I just don't like it. I'd prefer a public interface, and instantiation hidden behind a locator or injection of some sort. IMO anything (in your API) that's static and not a "proper" Function (ie no side-effects) s

Re: [flexcoders] Re: Anyone have a good resource on singletons?

2008-07-16 Thread Josh McDonald
Make that *public* static function init (root : DisplayObject) http://nondocs.blogspot.com/2007/04/metadatamixin.html -Josh On Thu, Jul 17, 2008 at 8:44 AM, Josh McDonald <[EMAIL PROTECTED]> wrote: > **Rant (and code) follows** > > Ew, I hate that pattern. Well I'm not

Re: [flexcoders] Re: Anyone have a good resource on singletons?

2008-07-16 Thread Josh McDonald
**Rant (and code) follows** Ew, I hate that pattern. Well I'm not fond of client-aware singleton-dom either, but ew. What the hell does that "outside the package" definition do? Add a package-protected class to the default package? Add stuff to Global? Disappear it into fat air? What about name co

Re: [flexcoders] HTTP Service Send Requests with Parameter Object - 405 Errors?

2008-07-16 Thread Josh McDonald
405 Method not allowed means your server is refusing to accept the POST HTTP Method. -Josh On Thu, Jul 17, 2008 at 7:43 AM, pbrendanc <[EMAIL PROTECTED]> wrote: > The Flex docs specify that the send object can contain either Name/Value > pairs of an XML object but I keep getting errors. > Is it

Re: [flexcoders] Using subclassed flex controls in mxml

2008-07-16 Thread Josh McDonald
Also, technically it doesn't have to be the root node, but it's usually a damned good idea :) -Josh On Thu, Jul 17, 2008 at 8:11 AM, Josh McDonald <[EMAIL PROTECTED]> wrote: > It'll be whatever namespace you define in your root node. For example (from > a fi

Re: [flexcoders] Using subclassed flex controls in mxml

2008-07-16 Thread Josh McDonald
It'll be whatever namespace you define in your root node. For example (from a file I'm looking at right now): http://www.adobe.com/2006/mxml"; xmlns:flash="flash.filters.*" xmlns:disposals="disposals.ui.components.*" xmlns:ns1="pathways.controls.*" xmlns:core="pathways.core.*" xmlns:cont

Re: [flexcoders] Re: creating a World Clock and need a little help with the time and date

2008-07-16 Thread Josh McDonald
Switch to a different web service, or call whoever provides it and get some documentation :) What the hell is 1AD? We haven't been keeping nice records since like 200AD or something. And do they count all the various leap seconds? What about that time when some pope rejigged the calendar and we d

Re: [flexcoders] Re: Trouble with hand cursor over mx:Text

2008-07-16 Thread Josh McDonald
ue; >buttonMode: true; >mouseChildren: false; > } > > > > Or do I have to subclass mx:Text? > > > --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote: > > > > http://flex.joshmcdonald.info/2008/07/how-to-for

Re: [flexcoders] Re: Flex blog topics - what should I write about?

2008-07-16 Thread Josh McDonald
Thanks Doug, there's a bunch of good ideas in there! Now all I need to do is get this flaming move over and done with, and one day I might even get my DSL reconnected :) -Josh On Thu, Jul 17, 2008 at 1:43 AM, Doug McCune <[EMAIL PROTECTED]> wrote: > Oh my god. Please please please do not write

Re: [flexcoders] Re: Custom Components - updateDisplay results in ghost children drawn

2008-07-16 Thread Josh McDonald
I don't think updateDisplayList is the right place to be doing drawing into graphics, although I may be wrong. I usually do it on the render or updatecomplete event, but that might not be optimal either. Alex would know :) If you want to link to a zip of a test project I might get a chance to poke

Re: [flexcoders] dynamically referring to UIComponents...

2008-07-15 Thread Josh McDonald
The snippet "UIComponent('b0')" is attempting to cast the string 'b0' to a UIComponent. I'm not really sure what you're trying to do, but you may be looking for: UIComponent(b0); or: UIComponent(this['b0']); Could you post some more information on what you're trying to achieve? -Josh On Wed,

Re: [flexcoders] Trouble with hand cursor over mx:Text

2008-07-15 Thread Josh McDonald
http://flex.joshmcdonald.info/2008/07/how-to-force-hand-cursor-in-custom.html -Josh On Wed, Jul 16, 2008 at 9:12 AM, whatabrain <[EMAIL PROTECTED]> wrote: > The only way I'm able to show the hand cursor over an mx:Text element is > if I both define the cursor in the style, and include an anchor

Re: [flexcoders] Re: Dates Display Wrong on Random Clients?

2008-07-15 Thread Josh McDonald
What version of Flex are you using, what format is the date when it goes into text, and how are you getting the results back? Have you checked the text results coming from the server using something like Charles? I don't have any experience with Blaze, but plenty with Flex's (occasionally dodgey)

Re: [flexcoders] Custom Components - updateDisplay results in ghost children drawn

2008-07-15 Thread Josh McDonald
Components don't set explicitWidth and explicitHeight on themselves, they're (optionally) set by the container, and actual sizing is set by the container through setActualSize(). Override measure(), and set measuredWidth and measuredHeight to match your label, and your problems may go away. Also i

Re: [flexcoders] Custom DateChooser component.

2008-07-15 Thread Josh McDonald
Why bother extending it? Why not just build an MXML component consisting of a DateChooser and a "Today" button in a vbox? Then either create methods in your component that set values that the DateChooser binds to, or use "customComponentInstance.dateChooser.selectedDate" or something similar to acc

Re: [flexcoders] Ant tasks and spaces in paths?

2008-07-14 Thread Josh McDonald
he Labs wiki to updated it to that effect. And the new ant tasks handle spaces in directories and constants just fine now :) On Tue, Jul 15, 2008 at 1:12 PM, Josh McDonald <[EMAIL PROTECTED]> wrote: > OK The zip linked from that page is *definitely* old and busted, I'll do > mor

Re: [flexcoders] When not to use weak references?

2008-07-14 Thread Josh McDonald
Now that I've been corrected on what the weak listeners *actually* do, I definitely agree on using weak references against long-life objects when possible =) -Josh On Tue, Jul 15, 2008 at 3:17 PM, Tim Rowe <[EMAIL PROTECTED]> wrote: > Strong references don't cause memory leaks, bad coding and l

Re: [flexcoders] When not to use weak references?

2008-07-14 Thread Josh McDonald
Dammit, I think I had the wrong end of the stick WRT weak listeners. I thought it was so keeping the listener alive didn't keep the listened object alive, rather than the other way around. My bad - I hate when that happens. Hope I didn't give anybody bad advice! :) -Josh On Tue, Jul 15, 2008 at

Re: [flexcoders] When not to use weak references?

2008-07-14 Thread Josh McDonald
Why use weak references on singletons or things that are going to live the life of the application? Not saying it's wrong, just interested in the logic. The timer code above is a great example of when you need a strong reference, but a nasty example of how to use a timer! I *really* don't like the

Re: [flexcoders] Access of undefined property flash.media.sound

2008-07-14 Thread Josh McDonald
Not tested for compilability :) http://www.adobe.com/2006/mxml"; creationComplete="kickstart()" layout="vertical"> -Josh On Tue, Jul 15, 2008 at 2:17 PM, Sherif Abdou <[EMAIL PROTECTED]> wrote: > You cant have any calling of member functions outside functions so > s.addEven

Re: [flexcoders] When not to use weak references?

2008-07-14 Thread Josh McDonald
That's a really good question, and one I'd very much like to know the answer to as well :) On Tue, Jul 15, 2008 at 2:08 PM, Boon Chew <[EMAIL PROTECTED]> wrote: > Hi all, > > I have read posts that preached the goodness of weak references for event > listening, but have not read anything that su

<    1   2   3   4   5   6   7   8   9   10   >