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 > > > Last weekend was released Flexmojos 3.3.0. > Flexmojos provides first-class support > for Flex and AIR development within Apache Maven. It allow maven t

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, wha

Re: [flexcoders] Implementig IRepeater

2009-05-21 Thread Josh McDonald
I think you'll find 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 > > > I have created a component that extends UIComponent a

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 > > > Would this help > > "Performance tip: Use multiple duplicated remote objects to reduce the > average response time" > > http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=10663&productId=2&lo

Re: [flexcoders] Sending SOAP with attachment

2009-05-20 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 > > > Seems receiving of SOAP attachments is out, but does Flex support sending > of SOAP attachments (either directly or indirectly)? > > --- In flexcoders@yahoogroups

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 > > > 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 you can use this to

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 > > > 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 > > > wrote: >

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 > > > 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 look extremely

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 > > > Generate your columns as you are, you said that was working. But you > still have to give the datagrid the data. How/are you doin

Re: [flexcoders] Re: Flash/FLex gravity

2009-04-23 Thread Josh McDonald
27;re interested in this kind of stuff, I highly recommend > > picking up a copy of Keith Peters book: > > > > > http://www.amazon.com/Foundation-Actionscript-3-0-Animation-Making/dp/1590597915/ref=sr_1_1?ie=UTF8&s=books&qid=1240464956&sr=8-1 > > > > Cheers,

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 > > > > Hello Devs, > > I am working to integrate BlazeDs with an existing J2EE application. > What I am try

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) * initi

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 elements, but right now there's not? -Josj 2009/4/22 Tracy Spratt > > > Set resultFormat=”e4x”, and do not depend on the built in decoder. Loop > over the XML list and build you own

Re: [flexcoders] Re: Extending Flex Webservice class

2009-04-19 Thread Josh McDonald
gt; > {this.TempInput.text} > > > > > . > > TempConvert.send() // header is created and added in this call > > This is actually sounding pretty crazy right now because I would need to > make a call to a class method that does the header creation. Any ideas if

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 > > > I've finally had a chance to investigate my slow compiler performance and > I've made a shocking discovery! > > As a reminder, I asked the comm

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 es

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] 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] 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 > > > I have an view defined on an arraycollection. The view initially returns > the correct result subset, but subsequently is refreshed to reflect the > entire arraycollection. > > Has anyon

Re: [flexcoders] Serialize Java ResultSet To Flex

2009-04-14 Thread Josh McDonald
felt inelegant to do manual, untyped serialization. > > 2009/4/13 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 >

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 > > > Yeah, something more raw. If the ResultSet was natively serializable (w/ > multiple rows of data), I'd be happy.

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

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 >seriesFilters=" > []" > > - Original Message - > *From:* Josh McDonald

[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: According to all the docs I canfind, using lineSegmentRenderer="mx.charts.renderers.LineRenderer" should get rid of the drop shadow under my line se

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 > 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. But I can't > fin

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 > www.gskinner.com/blog/archives/2008/05/designer_scroll.html > > > --- In flexcoders@yahoogroups.com , "Rick > Schmitty" wrote: > > > > Has anyone had any luck with a complete

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

2009-03-18 Thread Josh McDonald
7;t create an Object in Java on the fly with > variables > > > called "point1", "point2", "point3", etc, I'm at a loss as how to get > flex > > > to recognize where my data is when I assign the dataProvider. > > > > > > I hope

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

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

2009-03-17 Thread Josh McDonald
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 not very useful :) -Josh 2009/3/18 netdeep > > I'll be sending Dates, Strings, and floats. > > > --- In flexcoder

Re: [flexcoders] Question about binding and circular reference

2009-03-17 Thread Josh McDonald
> initialisaed. > > Regards, > > Wesley Acheson > > > > On Tue, Mar 17, 2009 at 3:35 AM, Josh McDonald wrote: > >> I'm good with bindings, what's your specific problem? I didn't see >> earlier any posts from you in this thread. >> >

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 > 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}, > {Month:"February",Profit:1000,Expen

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 >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 to another as if th

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 S

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 > Sorry for resurecting an old thread. I've reciently given up on this. > I've gone back to using event listeners. It seems more reliable. The > probl

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 If you do this: Then your attribute will have the value of "{7}" instead of "7". -Josh 2009/3/17 Josh McDonald > The (xml source code) ->

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: Note that despite the similar syntax I don't think these expressions a

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 >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 raise their

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

[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: [BlazeDS] false false false false

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

2009-02-22 Thread Josh McDonald
; using the command and delegate patterns like in Cairngorm 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 Ace

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 wrote: >I don't know of any leaks. Got a bug report? Test case? > > > > Most common problem is not understanding

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 wrote: > Is it possible to get the value of "type" from this XML? > > > Ed > M > > − > > Christiaan > M > > > So in this

[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, some

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} foo(

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: 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 UICompone

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 wrote: > I am working with library that is all AS3 and is Sprite based

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 > --- In flexcoders@yahoogroups.com, "sunild

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

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 > All of a sudden a few days ago, launching a debug s

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

2009-01-19 Thread Josh McDonald
str.split("").reverse().join(""); >} > >public function base_convert(num:Number, frombase:Number, > tobase:Number):String { >return parseInt(num+'', > frombase+0).toString(tobase+0); &

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 > Scott wrote: > > I'm working on a project that requires multiple languages. I'm thinking > > I have two choices... > > resource bundles (sort of) just lik

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 > > 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 bitwise AND

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 > Josh is probably on the ball. Also check out outerDocument: > > The tag defines a

Re: [flexcoders] flex not seeing method - update

2009-01-18 Thread Josh McDonald
The 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 have in order to

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] 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] 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 > --- In flexcoders@yahoogroups.com, "mmormando" wrote: > > > > --- In flexcoders@yahoogroups.com, Alex Harui wrote: > > > > > > Sounds like an application

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 > On Tuesday 13 Jan 2009, Nate Beck wrote: > > is an "include Header.as" statement that has 30 incl

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

2009-01-14 Thread Josh McDonald
/1/15 Manish Jethani > On Tue, Jan 13, 2009 at 12:46 PM, Josh McDonald 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 custo

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

2009-01-13 Thread Josh McDonald
*From:* flexcoders@yahoogroups.com [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

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

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 wrote: > I thought I had understood the event model, but apparently not. > > I have a custom cla

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

2009-01-08 Thread Josh McDonald
glad I'm not the only > one who finds the standard ASDoc files difficult to use on a regular > basis. > > 2009/1/8 Josh McDonald : > > Hey guys, > > > > AsDoc produces some pretty awful HTML. I'd like to get the same > information > > but as XML in or

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 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, however, that i

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

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 wrote: > Hi, > > Just wanted to mention something I (in the comments) of one of Ted > Patrick

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

2009-01-07 Thread Josh McDonald
ree() is the routine which will call buildtree(). > > > updating the ArrayCollection > for (var i:int=0; i < event.result.length; i++) { >var ME:ManagedElementVo = ManagedElementVo(event.result[i]); >__model.managedElements.addItem(ME); > } > > will not fire

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 wrote: > On Wed, Jan 7, 2009 at 4:48 AM, markgoldin_2000 > wrote: > > Ok, here what I am getting. > > I have a container that I am adding different forms to at the

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 wrote: > I'm working on an application where I build a tree (in actionscript > buildtree()) where I add new leafs from data that is retieve fr

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 wher

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 contain

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 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 > just have t

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 wrote: > On Tue, Jan 6, 2009 at 7:42 AM, Josh McDonald wrote: > > A quick take on it: > > Trying to improve

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 wrote: > Been loo

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] 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 wrote: > Stupid ECMAScript... It'd be much more readable in Ruby/Lisp/Ioke/etc :) > > > > -- "Therefore, send not to know For whom

Re: [flexcoders] Generating Random key

2009-01-05 Thread Josh McDonald
ay { >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("") > }

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 r

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

2009-01-05 Thread Josh McDonald
; In the application from which this simple sample is derived, I'm not > actually in Application, so I definitely want to make them 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

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
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 wrote: > OK, here's a little app to demonstrate the problem. I'm

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 wrote: > I have a method that accept

Re: [flexcoders] Any Developers on a Mac?

2008-12-29 Thread Josh McDonald
macbook pro as my next laptop (been on > windows, 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 [ma

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 opini

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 prop

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 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 issue of scale i

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é wrot

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 wrote: > Yeah, all public interfaces as well. > > > On Wed, Dec 17, 2008 at 2:44 PM, Alex Harui wrote: &g

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 wrote: > Did that include flash.*.* classes? > > > > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On > Behalf Of *Josh McDonald > *Sent:* Tuesday, December 16,

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 wrote: > Does anyone know where I can find some good examples of flex apps > written completely in ActionScript 3?

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

2008-12-16 Thread Josh McDonald
creen. > > Here's a url for the demo: > > http://pine.experienceproject.com/platform_test/widgets/live_cs_widget > .html<http://pine.experienceproject.com/platform_test/widgets/live_cs_widget.html> > > BR, > deven > > > --- In flexcoders@yahoogroups.com, &

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: 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 wrote: > And .mxmlc files like RichTextEditor.mxml ARE classes. But does anybody > really care about an accurate count? > > > > - Gor

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 wrote: > Yes, it answers my question. I was hoping this OS level a

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

2008-12-16 Thread Josh McDonald
excoders@yahoogroups.com, "Josh McDonald" 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

  1   2   3   4   5   6   7   8   9   10   >