Re: [flexcoders] Re: Full flex site or not

2009-08-23 Thread Josh McDonald
If I were building a site, rather than an app in Flash, this is what I'd do: 1) All data exposed as 3 forks: #1: mydomain/xml/my/content/url #2: mydomain/xhtml/my/content/url #3: mydomain/flash#/my/content/url 2) Flash pulls all data from #1 3) #2 is an XSLT transform (or templating engine,

Re: [flexcoders] [ANN] Flexmojos 3.3.0 is out!

2009-08-23 Thread Josh McDonald
Cool, I'll be sure and try it out again next time I start a new project. -Josh 2009/8/24 Marvin Froeder velo...@gmail.com Last weekend was released Flexmojos 3.3.0. Flexmojos http://flexmojos.sonatype.org/ provides first-class support for Flex and AIR development within Apache Maven. It

Re: [flexcoders] Sending SOAP with attachment

2009-05-21 Thread Josh McDonald
Unfortunately not. It's *possible* with Player 10, but not supported in the mx.rpc.soap implementation. -Josh 2009/5/21 daxdr9 wub...@gmail.com Seems receiving of SOAP attachments is out, but does Flex support sending of SOAP attachments (either directly or indirectly)? --- In

Re: [flexcoders] Re: BlazeDS RemoteObject Performance

2009-05-21 Thread Josh McDonald
Intriguing, I'll look into that. Thanks for the link. 2009/5/22 erdal eta...@tideworks.com Would this help Performance tip: Use multiple duplicated remote objects to reduce the average response time

Re: [flexcoders] Implementig IRepeater

2009-05-21 Thread Josh McDonald
I think you'll find mx:Repeater/ is one of those MXMLC voodoo hardcoded exceptions, meaning you can't actually build custom repeaters. I could be wrong of course. Anybody with more compiler knowledge know for sure? -Josh 2009/5/21 reflexactions reflexacti...@yahoo.com I have created a

Re: [flexcoders] Re: BlazeDS RemoteObject Performance

2009-05-19 Thread Josh McDonald
You should be able to exhaust your tomcat thread pool using BlazeDS, something else is going wrong. -Josh 2009/5/20 Aldo Bucchi aldo.buc...@gmail.com foobone9, Are you saying that this is a known built-in limitation of BlazeDS? Thanks, A On Tue, May 19, 2009 at 6:58 PM, foobone9

Re: [flexcoders] New Flex 3 Component/Application Lifecycle White-paper

2009-05-19 Thread Josh McDonald
Will check it out, cheers. -Josh 2009/5/20 jamesdevelopmentarc ja...@developmentarc.com Hi All, We just published a 36 page in-depth analysis of the Flex 3 Lifecycle for both component and application development. We discuss in detail how and what code is executed in the Flex SDK and how

Re: [flexcoders] Good Flex skins

2009-04-26 Thread Josh McDonald
ScaleNine is as good as you're likely to find free of charge. -Josh 2009/4/24 Alexander Livitz aliv...@sbcglobal.net Hello, I am searching for a great looking Flex skins/themes. Something similar in quality to FlashMint (http://www.flashmint.com). Most of the Flex skins I've seen so far

Re: [flexcoders] Re: Flash/FLex gravity

2009-04-23 Thread Josh McDonald
=1240464956sr=8-1 Cheers, On Wed, Apr 22, 2009 at 9:19 PM, Josh McDonald j...@...wrote: That sort of thing (a vector) is easy, once you've determined the direction in radians, and a speed. Let's call it pixels-per-frame, to make things simple. Note that this is typed in gmail

Re: [flexcoders] Working With Dynamic Datagrid

2009-04-23 Thread Josh McDonald
Also change this: col.dataField=gradebookBySection[i].children()@grade.toxmlstring(); to this: col.dataField = @grade; -Josh 2009/4/24 Tracy Spratt tr...@nts3rd.com Generate your columns as you are, you said that was working. But you still have to give the datagrid the data.

Re: [flexcoders] Flash/FLex gravity

2009-04-22 Thread Josh McDonald
That sort of thing (a vector) is easy, once you've determined the direction in radians, and a speed. Let's call it pixels-per-frame, to make things simple. Note that this is typed in gmail, and will need tweaks! accuratePositionX = x; accuratePositionY = y; velocityX = Math.cos(direction) *

Re: [flexcoders] blazeds and J2EE application

2009-04-22 Thread Josh McDonald
The best answer at the moment is probably Spring-Flex (not Prana, but server-side components to link BlazeDS with Spring): http://www.springsource.org/spring-flex -Josh 2009/4/23 hworke kanps...@gmail.com Hello Devs, I am working to integrate BlazeDs with an existing J2EE application.

Re: [flexcoders] Perennial problem with Flex -- single element vs multi-element

2009-04-21 Thread Josh McDonald
Or build an XSD. Without it, how on earth is Flex's built-in decoder going to know that sometimes there's many node/ elements, but right now there's not? -Josj 2009/4/22 Tracy Spratt tr...@nts3rd.com Set resultFormat=”e4x”, and do not depend on the built in decoder. Loop over the XML list

Re: [flexcoders] Re: Extending Flex Webservice class

2009-04-19 Thread Josh McDonald
if this is possible? --Variable --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh McDonald j...@... wrote: There's currently compile-time voodoo that exists to support the MXML declaration of web services, so you can't really do this sort of thing declaratively

Re: [flexcoders] Re: How Could I not map a property to lcds object ?

2009-04-15 Thread Josh McDonald
That still requires adding the fields to the Flex object. Marking the field @Transient in Java will affect Hibernate, unless Blaze / LCDS have their own @Transient I'm not aware of. There's also this blazeds annotations add-on: http://is.gd/sETx SmartyPants-J will do this, but it's nowhere near

Re: [flexcoders] Re: Flex Builder Compiler Performance Benchmarking

2009-04-15 Thread Josh McDonald
MXMLC's XML embedding is terrible. For anything non-trivial, embed your XML as a ByteArray and just parse it as a String. -Josh 2009/4/16 edlueze edlu...@onegen.com I've finally had a chance to investigate my slow compiler performance and I've made a shocking discovery! As a reminder, I

Re: [flexcoders] Serialize Java ResultSet To Flex

2009-04-14 Thread Josh McDonald
, it just felt inelegant to do manual, untyped serialization. 2009/4/13 Josh McDonald j...@joshmcdonald.info You could put them in a list of HashMaps, which should get serialised into an Array of simple name-value objects on the way to the Flex client? -Josh 2009/4/14 Daniel Freiman freima

Re: [flexcoders] ICollectionView

2009-04-14 Thread Josh McDonald
Could you post some code that shows how you're creating the view? -Josh 2009/4/15 niel.ru...@ymail.com niel.ru...@ymail.com I have an view defined on an arraycollection. The view initially returns the correct result subset, but subsequently is refreshed to reflect the entire

Re: [flexcoders] Extending Flex Webservice class

2009-04-14 Thread Josh McDonald
There's currently compile-time voodoo that exists to support the MXML declaration of web services, so you can't really do this sort of thing declaratively. Programmatically it's pretty easy to add headers to web service calls though, what exactly are you trying to do? -Josh 2009/4/15 variableop

Re: [flexcoders] BlazeDS data push over SSL

2009-04-14 Thread Josh McDonald
Do you have the corrent channels set up for http and https on the server? Have you tried going through Charles to make sure it's returning the correct response type? If there's a Java problem you might be getting a 500 as it's still going through a servlet, in which case you'll just get the stream

Re: [flexcoders] Serialize Java ResultSet To Flex

2009-04-13 Thread Josh McDonald
You could put them in a list of HashMaps, which should get serialised into an Array of simple name-value objects on the way to the Flex client? -Josh 2009/4/14 Daniel Freiman freima...@gmail.com Yeah, something more raw. If the ResultSet was natively serializable (w/ multiple rows of

Re: [flexcoders] Pros and Cons of Writing Air UI's in Pure Flash

2009-04-06 Thread Josh McDonald
Personally, I'd think long and hard before doing something like this. It really depends on how much of the actual work is in the very top layer of frosting, how much work is done in the meat of the AIR app, and what kind of feedback you need to have going between these layers. Perhaps you can get

[flexcoders] How on earth do I lose the LineChart LineSeries drop shadow?

2009-04-02 Thread Josh McDonald
I'm pulling my hair out trying to ditch the lineSeries dropshadow: mx:LineChart id=chart dataProvider={graph.itemList} maxHeight={width / 2} maxWidth={width - 80} showDataTips=true filters={null} mx:horizontalAxis mx:DateTimeAxis displayName={graph.xLabel} title={graph.xLabel}/

Re: [flexcoders] How on earth do I lose the LineChart LineSeries drop shadow?

2009-04-02 Thread Josh McDonald
Sweet I'll try it out first thing in the morning, cheers :) I don't suppose it explains why we have LineRenderer and ShadowLineRenderer. -Josh 2009/4/2 Paul Andrews p...@ipauland.com seriesFilters= [] - Original Message - *From:* Josh McDonald j...@joshmcdonald.info

Re: [flexcoders] Cancelling drag

2009-03-22 Thread Josh McDonald
I'm trying to figure out a nice way to do this, too. Anybody beat us to it? I'll owe you a beer :) -Josh 2009/3/21 Julien Phalip lets...@hotmail.com Hi, I'm using DragManager to drag some objects on the interface. And I'd like the dragging to be cancelled when the ESCAPE key is pressed.

Re: [flexcoders] Re: Rounded scroll bar flex skin ala mac style ?

2009-03-19 Thread Josh McDonald
Also: http://flex.joshmcdonald.info/2009/01/more-degrafa-madness-scrollbars-and.html -Josh 2009/3/20 nathanpdaniel ndan...@bsi-scs.com www.gskinner.com/blog/archives/2008/05/designer_scroll.html --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Rick Schmitty flexc...@...

Re: [flexcoders] Re: Question about binding and circular reference

2009-03-18 Thread Josh McDonald
Also, try using commiting event only bindings for the trip back to the model. I don't use it so I'm not sure, but it might be exactly what you're looking for. My View Model system doesn't have these problems (and keeps track of dirty fields, etc), but it's wordy. I do some code-generation with a

Re: [flexcoders] Re: converting a Java object into a chart dataprovider

2009-03-18 Thread Josh McDonald
. I hope that makes more sense. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh McDonald josh@ wrote: But what will the objects be that you're sending back? You can't make a chart out of a list of numbers, it'd be one-dimensional, not to mention

Re: [flexcoders] Question about binding and circular reference

2009-03-17 Thread Josh McDonald
, Josh McDonald j...@joshmcdonald.infowrote: I'm good with bindings, what's your specific problem? I didn't see earlier any posts from you in this thread. -Josh 2009/3/17 Wesley Acheson wesley.ache...@gmail.com Sorry for resurecting an old thread. I've reciently given up on this. I've

Re: [flexcoders] Re: converting a Java object into a chart dataprovider

2009-03-17 Thread Josh McDonald
flexcoders%40yahoogroups.com, Josh McDonald j...@... wrote: What kind of objects are in your array? -Josh 2009/3/17 netdeep deep...@... In the flex documentation, it shows how to easily create a chart with mxml and a static Array: private var expenses:Array

Re: [flexcoders] XML Entity won't parse inside MXML

2009-03-16 Thread Josh McDonald
The (xml source code) - XML|XMLList stage in MXMLC isn't so good. Often I need to embed XML as Binary objects, and go via String to parse it. That's not much useful information though, so the answer to your problem is: mx:XMLList id=testXml sample badattribute={ABC} test name=1/ test name=2/

Re: [flexcoders] XML Entity won't parse inside MXML

2009-03-16 Thread Josh McDonald
Also note that the curly braces go *outside* the quotes - if you were putting the number 7 in your attribute, it would be element attr={7}/ If you do this: element attr={7}/ Then your attribute will have the value of {7} instead of 7. -Josh 2009/3/17 Josh McDonald j...@joshmcdonald.info

Re: [flexcoders] Question about binding and circular reference

2009-03-16 Thread Josh McDonald
I'm good with bindings, what's your specific problem? I didn't see earlier any posts from you in this thread. -Josh 2009/3/17 Wesley Acheson wesley.ache...@gmail.com Sorry for resurecting an old thread. I've reciently given up on this. I've gone back to using event listeners. It seems more

Re: [flexcoders] To Adobe Folks - General Question About Using Deprecated Tags

2009-03-16 Thread Josh McDonald
I can't speak for Adobe, but as a *general* rule (ignoring the JDK), deprecated means it's not going away in a point-release, but it's going away So you souldn't count on it in 4, but you're probably fine for updates of 3. But either way, there's nothing forcing you to upgrade your app to a new

Re: [flexcoders] Re: FocusManager fun... Tab Loops redux

2009-03-16 Thread Josh McDonald
Sounds like a good time to break out your SDK sandbox :) 2009/3/16 Rick Winscot rick.wins...@zyche.com Even the PopUpManager suffers to a degree. As modules are loaded there seems to be some confusion as to which FocusManager they belong... as you press TAB focus will jump from one module

Re: [flexcoders] converting a Java object into a chart dataprovider

2009-03-16 Thread Josh McDonald
What kind of objects are in your array? -Josh 2009/3/17 netdeep deep...@chartertn.net In the flex documentation, it shows how to easily create a chart with mxml and a static Array: private var expenses:Array = [ {Month:January,Profit:2000,Expenses:1500,Amount:450},

Re: [flexcoders] GENERIC compareFucntion without hardcoding of dataField ?

2009-03-15 Thread Josh McDonald
Just off the top of my head, probably have 1 and -1 mixed up :) function createCompareFunction(fieldName : String) : Function { return function(left : Object, right : Object) : Number { if (left[fieldName] right[fieldName]) return -1;

Re: [flexcoders] Ribbon in FLEX

2009-03-15 Thread Josh McDonald
Why not just post a link to the list? -Josh 2009/3/16 Allan Pichler dreamc...@gmail.com Hi all…. I’m sorry to say that for some reason I am missing the list of people who wanted the code/graphics for a ribbon/editor toolbar I made quite a while ago. If interested parties would

Re: [flexcoders] Re: binding not updating for ArrayCollection when item changes?

2009-03-12 Thread Josh McDonald
In your custom control, change this: public function set dataProvider(dp:ArrayCollection):void { _dp = dp; trace(this fires when the AC is created, but not when it's contents change); } to something like this: public function set dataProvider(value : ArrayCollection) : void { if

Re: [flexcoders] Building Custom ActionScript Components with Skins

2009-03-11 Thread Josh McDonald
Is the size of the component a big question? If not, I'd go with Flex because then you can use Degrafa. The team is working on removing inter-dependencies and also removing the dependency upon Flex (via UIComponent), but that's not ready yet, so it does add some weight to your .swf files. -Josh

[flexcoders] BlazeDS Stack traces

2009-02-23 Thread Josh McDonald
Hey guys, Is there any way to get a stack trace from BlazeDS when things go wrong? I have this in services-config: logging target class=flex.messaging.log.ConsoleTarget level=All properties prefix[BlazeDS] /prefix

Re: [flexcoders] [Req] What do you (love|hate|wish for) about (mx.*|Cairngorm|PureMVC|Mate|Prana|BlazeDS)?

2009-02-22 Thread Josh McDonald
but with Mate. I'm a very practical, tool agnostic, and problem solver developer. I use whatever helps me to solve problems quickly and in an easy and structured manner. Regards, Alberto Acevedco Josh McDonald-5 wrote: Hey guys, I have a small request: I'd like to know what grinds

Re: [flexcoders] E4X help?

2009-02-15 Thread Josh McDonald
Not sure exactly what you mean. Have you tried this: var typeNodes : XMLList = node.data.(attribute(key)==type); -Josh On Mon, Feb 16, 2009 at 9:58 AM, flexaustin flexaus...@yahoo.com wrote: Is it possible to get the value of type from this XML? node id=2 data key=nameEd/data data

Re: [flexcoders] RE: Dictionary memory leak

2009-02-15 Thread Josh McDonald
I use Dictionary as a non-leaking map all over the place and I definitely don't have any problems with it (Player 10, Mac). -Josh On Mon, Feb 16, 2009 at 4:00 PM, Alex Harui aha...@adobe.com wrote: I don't know of any leaks. Got a bug report? Test case? Most common problem is not

[flexcoders] [Req] What do you (love|hate|wish for) about (mx.*|Cairngorm|PureMVC|Mate|Prana|BlazeDS)?

2009-02-12 Thread Josh McDonald
Hey guys, I have a small request: I'd like to know what grinds your gears, and what makes you smile about the Flex library, and about whatever other libraries you use on a daily basis to get your work done. If you have time, please post here or to me off-list a quick summary of your thoughts,

Re: [flexcoders] Tables in Rich Text Editor

2009-02-06 Thread Josh McDonald
I'd definitely be interested in extending TLF when it's released. Is it going to live in Player, or in the Flex framework? If the latter, why would it not be open sourced? Is it going to be part of Builder pro? Am I dreaming hoping for answers to those questions? ;-) -Josh On Fri, Feb 6, 2009 at

Re: [flexcoders] Re: Getting at variables inside a function that accepts a function

2009-02-06 Thread Josh McDonald
It's not possible, any closure only has access to the variables in scope when it is defined. function foo(a,b,c,f) { var bar = function() {//has access to everything in foo} function baz() {//Same as above} } var bash = function() { //Does not have access to what's in foo() at any time}

Re: [flexcoders] Re: mx:Text maxWidth

2009-02-05 Thread Josh McDonald
Ack, I've just this minute come up on the same thing. This is annoying as hell, I've used maxwidth all over the place without noticing it wasn't working until now. What I want is to have my text centered if it's narrow, and left justified (+ wrapped of course) if it exceeds maxWidth. I need this,

Re: [flexcoders] Re: Adding styles to UIComponents

2009-02-05 Thread Josh McDonald
UIComponent doesn't have any code for drawing background images. If you want a background image without the overhead of using a Container such as Box, you'll have to build a subclass of UIComponent that does. Or simply add an Image as the first child of your UIComponent. Are you extending

Re: [flexcoders] Java enum in Flex3

2009-02-05 Thread Josh McDonald
I'm kicking off a blaze-ds project this weekend, and I'll be doing typesafe java-flex enums, when I figure it out I'll blog about it and post it here :) It'll probably just require a small amount of custom unmarshalling code, there's a lot of undocumented flexibility in mx.rpc.* -Josh Thu, Feb

Re: [flexcoders] Re: Can you put a UIComponent in a Sprite

2009-02-04 Thread Josh McDonald
You'll have to specify x, y, width, and height (or reimplement the container's side of the component sizing and validation lifecycle), but for the most part it should work. -Josh On Wed, Feb 4, 2009 at 4:12 PM, Jason Ervin jason_newp...@hotmail.comwrote: I am working with library that is all

Re: [flexcoders] Re: FadeIn Effect not working with custom item renderers in List

2009-01-21 Thread Josh McDonald
It may be caused by Container not implementing IDropInListItemRenderer or IListItemRenderer. You really don't want to be extending Container for item renderers if you can avoid it, I believe it's a big performance penalty. -Josh 2009/1/21 tonyjobrien ya...@indigointernet.co.uk --- In

Re: [flexcoders] FB debug constantly logs to console

2009-01-20 Thread Josh McDonald
You're probably loading images or something along those lines using a SWFLoader or one of its subclasses such as Image. This is simply Player telling you about it decoding the results and adding them to the VM. -Josh 2009/1/21 John Van Horn jmvanh...@gmail.com All of a sudden a few days ago,

Re: [flexcoders] Re: Add effect dynamically

2009-01-20 Thread Josh McDonald
You can use Strings, but they might need to be fully qualified when doing it from ActionScript instead of CSS. You can also use obj.setStyle(moveEffect, Move); and obj.setStyle(moveEffect, myMoveInstance); Note that myMoveInstance would be an instance of mx.effects.Move, *not* an instance of

Re: [flexcoders] float-safe bitwise AND comparison

2009-01-19 Thread Josh McDonald
Does result = (uint(number) uint(comparison)) work? -Josh 2009/1/20 Rafael Faria rafaelfaria.gru...@gmail.com Please, anyone with skills to convert the following php function to flex? i'm killing myself trying... please... anyone? thanks rafael - /** * Perform a float-safe

Re: [flexcoders] internationalization

2009-01-19 Thread Josh McDonald
That's a hella useful link Paul. I'm not doing any I18N *now*, but that's going into del.icio.us :) Cheers, -Josh 2009/1/20 Paul Hastings paul.hasti...@gmail.com Scott wrote: I'm working on a project that requires multiple languages. I'm thinking I have two choices... resource bundles

Re: [flexcoders] Re: float-safe bitwise AND comparison

2009-01-19 Thread Josh McDonald
):String { return parseInt(num+'', frombase+0).toString(tobase+0); } --- In flexcoders@yahoogroups.com, Josh McDonald dzn...@... wrote: Does result = (uint(number) uint(comparison)) work? -Josh 2009/1/20 Rafael Faria rafaelfaria.gru

Re: [flexcoders] flex not seeing method - update

2009-01-18 Thread Josh McDonald
The mx:Component tag is, let's call it... Voodoo :) What it's actually doing is defining a new custom component class, whereas every other MXML tag you use will define elements of the class defined in the root element of your MXML document. You can tell MXMLC what name you'd like the class to

Re: [flexcoders] flex not seeing method - update

2009-01-18 Thread Josh McDonald
Ah, I forgot about outerDocument, as I'm one of those loose-coupling nazi types and don't use it :) Of course, being a louse-coupling nazi has it's upside, in Smartypants-IOC :) -Josh 2009/1/19 Paul Andrews p...@ipauland.com Josh is probably on the ball. Also check out outerDocument: The

Re: [flexcoders] Re: Why this error with getDefinitionByName?

2009-01-17 Thread Josh McDonald
Well if you're working against MXML and don't also have a compiled .SWF for that application, you're just going to have to hard-reference everything you might need, or load it from the Flex library SWC (a SWC is just a .SWF and an XML file in a zip) Failing that, since it sounds like you're doing

Re: [flexcoders] Re: Interfaces not working the way I understand anyway

2009-01-15 Thread Josh McDonald
Just the interfaces, but your modules should be using interfaces defined (and used) in the main app anyway, no? -Josh 2009/1/16 mmormando m...@mormando.com --- In flexcoders@yahoogroups.com, mmormando m...@... wrote: --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Sounds

Re: [flexcoders] Why this error with getDefinitionByName?

2009-01-15 Thread Josh McDonald
Also, if you do that in a SWF that doesn't actually *use* the TextInput symbol, the class won't be compiled in. Try adding a reference to TextInput - not just an import, you actually have to have a reference. import mx.controls.TextInput; TextInput; should do it. -Josh 2009/1/16 Howard Fore

Re: [flexcoders] Custom mouse cursors including the system cursor?

2009-01-14 Thread Josh McDonald
Manish Jethani manish.jeth...@gmail.com On Tue, Jan 13, 2009 at 12:46 PM, Josh McDonald dzn...@gmail.com wrote: I'm wondering how I create a custom mouse cursor that will include the system cursor, the way DragManager does with the halo mouse cursors? Why not just draw the custom cursor next

Re: [flexcoders] When to use the include directive?

2009-01-14 Thread Josh McDonald
FWIW, I use include *all the time* when I need to implement IEventDispatcher but I'm extending something that's not an IEventDispatcher (Proxy, I'm looking at you). -Josh 2009/1/14 Tom Chiverton tom.chiver...@halliwells.com On Tuesday 13 Jan 2009, Nate Beck wrote: is an include Header.as

Re: [flexcoders] Custom mouse cursors including the system cursor?

2009-01-13 Thread Josh McDonald
[mailto:flexcod...@yahoogroups.com] *On Behalf Of *Josh McDonald *Sent:* Monday, January 12, 2009 11:16 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Custom mouse cursors including the system cursor? Hey guys, I'm wondering how I create a custom mouse cursor that will include

[flexcoders] Custom mouse cursors including the system cursor?

2009-01-12 Thread Josh McDonald
Hey guys, I'm wondering how I create a custom mouse cursor that will include the system cursor, the way DragManager does with the halo mouse cursors? Any pointers (groan) much appreciated! Cheers, -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut

Re: [flexcoders] Using dispatchEvent ?

2009-01-11 Thread Josh McDonald
Event bubbling only occurs within the display list. So your dispatching object must also be a child UIComponent if you want to catch bubbled events. -Josh On Mon, Jan 12, 2009 at 4:12 PM, biosmonkey biosmon...@yahoo.com wrote: I thought I had understood the event model, but apparently not. I

Re: [flexcoders] Get AsDoc-generated information as XML?

2009-01-08 Thread Josh McDonald
I'm not the only one who finds the standard ASDoc files difficult to use on a regular basis. 2009/1/8 Josh McDonald dzn...@gmail.com: Hey guys, AsDoc produces some pretty awful HTML. I'd like to get the same information but as XML in order to build my own browser for it, as the built

Re: [flexcoders] Re: Properly remove children

2009-01-07 Thread Josh McDonald
setChildIndex() is what I was thinking of. It's either on IUIComponent or IContainer. On Wed, Jan 7, 2009 at 8:27 PM, Manish Jethani manish.jeth...@gmail.comwrote: On Wed, Jan 7, 2009 at 4:48 AM, markgoldin_2000 markgoldin_2...@yahoo.com wrote: Ok, here what I am getting. I have a

Re: [flexcoders] Re: Newbie question: Completion Events or proxy binding for RemoteObject calls

2009-01-07 Thread Josh McDonald
; i event.result.length; i++) { var ME:ManagedElementVo = ManagedElementVo(event.result[i]); __model.managedElements.addItem(ME); } will not fire WatchTree. Is this a bug? --- In flexcoders@yahoogroups.com, Josh McDonald dzn...@... wrote: Bindings work with any objects, so

Re: [flexcoders] Re: Properly remove children

2009-01-07 Thread Josh McDonald
That is however a corner case, and although I've deleted my experiment, it's pretty easy to show that weak event listeners do get collected most of the time. On Thu, Jan 8, 2009 at 6:53 AM, sunild99 sunilbd...@gmail.com wrote: Hi, Just wanted to mention something I (in the comments) of

[flexcoders] Get AsDoc-generated information as XML?

2009-01-07 Thread Josh McDonald
Hey guys, AsDoc produces some pretty awful HTML. I'd like to get the same information but as XML in order to build my own browser for it, as the built-in help's not so useful on Mac (and I'm the kind of jerk who thinks he can do better anyway). Anybody know if there's a tool or process for this

Re: [flexcoders] Looping Properties on User-Defined Classes | for..in Does Not Work

2009-01-07 Thread Josh McDonald
ObjectUtil.getClassInfo(myObj).properties -Josh On Thu, Jan 8, 2009 at 4:31 PM, Nate Beck n...@tldstudio.com wrote: As far as I know... which is pretty much the quote from the documentation you posted there. You cannot unless you're dynamically adding properties to the object. I do know,

Re: [flexcoders] Which Unit Testing Framework to use?

2009-01-06 Thread Josh McDonald
I can report that I'm happy with FlexUnit as well. I *really* don't like the syntax for async stuff, but wrapping nice syntax around bad is what we do for a living, so when I need it I'll write it (and release it, of course!) -Josh On Wed, Jan 7, 2009 at 12:02 AM, Wally Kolcz

Re: [flexcoders] Generating Random key

2009-01-06 Thread Josh McDonald
That's better (also cleaner and faster). I just don't trust IEEE floats :) -Josh On Wed, Jan 7, 2009 at 4:05 AM, Manish Jethani manish.jeth...@gmail.comwrote: On Tue, Jan 6, 2009 at 7:42 AM, Josh McDonald dzn...@gmail.com wrote: A quick take on it: Trying to improve on some already neat

Re: [flexcoders] Re: Working with nested Buttons

2009-01-06 Thread Josh McDonald
I *have* to know - what kind of evil requires a button that contains other buttons? ;-) -Josh On Wed, Jan 7, 2009 at 1:37 AM, Todd tpreka...@gmail.com wrote: I solved my problem. On the nested-child button, all I had to do was set buttonMode=true and useHandCursor=true. It wasn't enough to

Re: [flexcoders] Animated border around thumbnails - similar to MTV header

2009-01-06 Thread Josh McDonald
I'd make the border a Degrafa surface (or just a mx:Box with a border). Add a moveEffect and a resizeEffect, put it in the same container as the thumbnails, but last in the list so it'll be on top. If they're in a hbox or something like that and you don't want to mess up the layout of the

Re: [flexcoders] trying to put a Degrafa BezierSpline on a Papervision3D Sphere...

2009-01-06 Thread Josh McDonald
You might need to use a degrafa surface rather than rendering into another component. If that's not going to do it, I imagine you'll have to have degrafa render into a bitmapData (or something along those lines) and add an mx:image with that data set as the source. Also there's a Degrafa list

Re: [flexcoders] Newbie question: Completion Events or proxy binding for RemoteObject calls

2009-01-06 Thread Josh McDonald
Bindings work with any objects, so long as the fields (or the whole class) are marked with [Bindable] -Josh On Wed, Jan 7, 2009 at 11:44 AM, john.casey64 john.case...@yahoo.comwrote: I'm working on an application where I build a tree (in actionscript buildtree()) where I add new leafs from

Re: [flexcoders] Re: why I can not dispatchEvent with creationComplete?

2009-01-05 Thread Josh McDonald
If you want to listen to events that are dispatched from Application, you need to listen at either Application.application or (better) make them bubble, and listen on the SystemManager. -Josh On Tue, Jan 6, 2009 at 8:58 AM, stldvd stl...@yahoo.com wrote: OK, here's a little app to demonstrate

Re: [flexcoders] Re: flash.utils.Proxy -- Unable to compile.

2009-01-05 Thread Josh McDonald
If it's not marked dynamic, you'll always get an exception when you try to dereference something that's not explicitly declared. If not, you've found a compiler bug :) However, if you're casting to something that's marked dynamic (such as Object, or *), it won't. And you can always use foo[field]

Re: [flexcoders] Re: why I can not dispatchEvent with creationComplete?

2009-01-05 Thread Josh McDonald
bubble (if that's the solution). I tried changing bubbles:Boolean=true but that didn't do anything. What does it mean to 'listen on the SystemManager'? --- In flexcoders@yahoogroups.com, Josh McDonald dzn...@... wrote: If you want to listen to events that are dispatched from Application, you

Re: [flexcoders] Generating Random key

2009-01-05 Thread Josh McDonald
A quick take on it: function randomLetter() : String { const noVowels : String = BCDFGHJKLMNPQRSTVWXYZ; return noVowels.charAt(Math.round(Math.random() * (noVowels.length - 1))); } function

Re: [flexcoders] Generating Random key

2009-01-05 Thread Josh McDonald
{ return n 1 ? repeat(n-1, f).concat(f()) : [f()]; } function createUID():String { return repeat(4, function(){ return repeat(3, function(){ return String(BCDFGHJKLMNPQRSTVWXYZ).substr(int(Math.random()*19), 1) }).join() }).join(-); } On Mon, Jan 5, 2009 at 6:12 PM, Josh McDonald dzn

Re: [flexcoders] Generating Random key

2009-01-05 Thread Josh McDonald
...Although some features from JS1.7 / 1.8 would be a big step in the right direction. On Tue, Jan 6, 2009 at 12:48 PM, Josh McDonald dzn...@gmail.com wrote: Stupid ECMAScript... It'd be much more readable in Ruby/Lisp/Ioke/etc :) -- Therefore, send not to know For whom the bell tolls

Re: [flexcoders] Generating Random key

2009-01-05 Thread Josh McDonald
Not at all :) I just like functional programming style, and in my case I have a version of times(n,f) in a util class. The version I posted above is actually no good on AVM2 due to the lack of tail-calls. A longer but clearer, more flexible (and iterative, hence stack-safe) version I actually use

Re: [flexcoders] Any Developers on a Mac?

2008-12-29 Thread Josh McDonald
Kevlar suit... *check*! It's good. I'm happy with it, many people are. I think it's much better, many people agree. And many *other* people here will call me a big girl for thinking so. Which I find hilarious. But this is a well-abused topic here. Builder is slightly better in Windows. in my

Re: [flexcoders] Any Developers on a Mac?

2008-12-29 Thread Josh McDonald
, sometimes linux, for past ten years or so), but most of my work is in flexbuilder these days so it would be nice to know. Many thanks! -Original Message- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Josh McDonald *Sent:* 29 December 2008

Re: [flexcoders] re-passing variable arguments?

2008-12-29 Thread Josh McDonald
What you're after is usually called a splat. It's not supported quite so explicitly in AS3, but to do what you're after just use Function.apply(). So in your case, it'd be: continueFunction.apply(this, args); -Josh On Tue, Dec 30, 2008 at 8:58 AM, toofah_gm ga...@byu.edu wrote: I have a

Re: [flexcoders] Proper way of giving thanks?

2008-12-27 Thread Josh McDonald
Just become awesome, and answer the questions of others :) -Josh On Sun, Dec 28, 2008 at 6:23 AM, luvfotography ygro...@all-digital-links.com wrote: Hi, I've received many solutions to my questions here on the list and want to give thanks to those who took time to answer me. Is it proper

Re: [flexcoders] What is the largest Flex app?

2008-12-18 Thread Josh McDonald
Might as well ask how scalable is explorer.exe? The answer is mu. On Fri, Dec 19, 2008 at 9:28 AM, Jamie S jsjph...@gmail.com wrote: Flex apps have the advantage of being a static binary and therefore can easily be served from a CDN if you are talking high-traffic apps. So I agree that the

Re: [flexcoders] Re: Is Flex the wrong technology for widgets? SWF file sizes are too big...

2008-12-17 Thread Josh McDonald
I definitely agree with you Gabriel, you wouldn't catch me doing a non-Flex Flash project at all- I was under the impression the OP was *very* concerned about size, although that could just've been my (often lax) comprehension skills :) -Josh On Thu, Dec 18, 2008 at 2:38 PM, gabriel montagné

Re: [flexcoders] Re: Custom event--please help me

2008-12-16 Thread Josh McDonald
wrote: --- In flexcoders@yahoogroups.com, Josh McDonald dzn...@... wrote: Don't call new EventDispatcher(), it won't be any real use. The main reason you would want to create an instance of EventDispatcher itself is when you're building a class that is an IEventDispatcher, but inherits from

Re: [flexcoders] Re: Command Proxy

2008-12-16 Thread Josh McDonald
My .02: If it has to be .net, I'd go with the above link. If it's cross-platform, I'd go with Merapi. It's officially Alpha, but it seems pretty stable, and has a good community. -Josh On Wed, Dec 17, 2008 at 7:49 AM, flexaustin flexaus...@yahoo.com wrote: Yes, it answers my question. I was

Re: [flexcoders] Re: How many classes are there in flex 3 framework?

2008-12-16 Thread Josh McDonald
A quick copy-n-paste from All Classes in the ASDoc into textmate gives us 1180 public classes in the API. -Josh On Wed, Dec 17, 2008 at 10:10 AM, Gordon Smith gosm...@adobe.com wrote: And .mxmlc files like RichTextEditor.mxml ARE classes. But does anybody really care about an accurate count?

Re: [flexcoders] Is Flex the wrong technology for widgets? SWF file sizes are too big...

2008-12-16 Thread Josh McDonald
Depending on what parts of the framework you use, you could probably cut it right down by not using an Application as the root, and instead using a custom UIComponent that implements IContainer (some methods might be stubs, etc). Container has a *lot* of stuff in it. You should be able to lookup

Re: [flexcoders] Re: Is Flex the wrong technology for widgets? SWF file sizes are too big...

2008-12-16 Thread Josh McDonald
for the demo: http://pine.experienceproject.com/platform_test/widgets/live_cs_widget .htmlhttp://pine.experienceproject.com/platform_test/widgets/live_cs_widget.html BR, deven --- In flexcoders@yahoogroups.com, Josh McDonald dzn...@... wrote: Depending on what parts of the framework you

Re: [flexcoders] Re: Is Flex the wrong technology for widgets? SWF file sizes are too big...

2008-12-16 Thread Josh McDonald
What I meant is that you don't seem to be using any Flex functionality beside ArrayCollection, and you'd do fine using Array or Vector. On Wed, Dec 17, 2008 at 1:56 PM, devenhariyani devenhariy...@yahoo.comwrote: Does anyone know where I can find some good examples of flex apps written

Re: [flexcoders] Re: How many classes are there in flex 3 framework?

2008-12-16 Thread Josh McDonald
Yeah, all public interfaces as well. On Wed, Dec 17, 2008 at 2:44 PM, Alex Harui aha...@adobe.com wrote: Did that include flash.*.* classes? *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Josh McDonald *Sent:* Tuesday, December 16, 2008 4:23 PM

Re: [flexcoders] Re: How many classes are there in flex 3 framework?

2008-12-16 Thread Josh McDonald
A quick bit of regex gives us: 28 Globals (all Flash AFAIK) 3 classes in air.* 235 classes in flash.* 914 public classes in mx.* On Wed, Dec 17, 2008 at 3:31 PM, Josh McDonald dzn...@gmail.com wrote: Yeah, all public interfaces as well. On Wed, Dec 17, 2008 at 2:44 PM, Alex Harui aha

  1   2   3   4   5   6   7   8   9   10   >