[flexcoders] asdocs for as3 and ant files

2007-09-16 Thread learner
Hi All, I am trying to access asdocs , but its not there in my flexbuilder's help. I tried and search in the flex installation directory.I found a folder asdocs here : C:\Program Files\Adobe\Flex Builder 3\sdks\moxie\asdoc\ I found the index.hml in template folder inside asdoc directory..but ".p

RE: [flexcoders] Re: Dynamic Array Object Keys

2007-09-16 Thread Alex Harui
I didn't look at your code, but FWIW, I would create a virtual ICollectionView. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Sunday, September 16, 2007 8:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders]

RE: [flexcoders] Searching array for item

2007-09-16 Thread Alex Harui
Ah yes, keep forgetting about that sort requirement. So yes, your code is fine, or Graham can just write his own search loop. FWIW, truly hard-core folks would not use [i] to access a dataprovider as it may not implement IList and only ICollectionView, but nobody has yet shown me such an im

Re: [flexcoders] Searching array for item

2007-09-16 Thread Tony Alves
Alex, I have tried the method you suggest, but it did not act the way I wanted, because it forces me to create a sort on my ArrayCollection, which sorts my grid. I extended the datagrid to find the value I am looking for based on the value and the name of the value. Let us know if you see a d

RE: [flexcoders] Math.cos...?

2007-09-16 Thread Samuel R. Neff
It's not sloppy, it's just how floating point numbers work. Try the same thing in other programming languages and you still will not get zero (unless they round the output). For example, .NET reports the result as 6.12303176911189E-17. Sam --- We're

[flexcoders] Re: Dynamic Array Object Keys

2007-09-16 Thread Jeremy Rottman
What I mean by array objects, is basically making dynamic identifiers in an associative array. However, I got this worked out. The issue at hand is. I am creating dynamic datagrid columns. The data for these columns are in two arrays. The first array holds the data for hte column headers. And the

RE: [flexcoders] Re: Problem with repeater and image ???

2007-09-16 Thread Tracy Spratt
One primary benefit is that you can forget about getRepeaterItem(). Pass in a reference to the entire item,and implement a getter and setter, and your event handlers have direct access to the whole item through the event.target property. Type the item specifically and avoid the "Class XML is not a

RE: [flexcoders] Searching array for item

2007-09-16 Thread Alex Harui
Yeah, sorry, createCursor(), and findAny, findFirst, or findLast, which if they return true, leaves the cursor.current on the item found. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tony Alves Sent: Sunday, September 16, 2007 6:56 PM

[flexcoders] ToggleButtonBar

2007-09-16 Thread superabe superabe
Is there any way to deselect all the buttons in a ToggleButtonBar? Specifically, what I would like to do when I set the dataprovider for a ToggleButtonBar, is to just display the buttons and not have the first one selected? TIA, superabe

Re: [flexcoders] Searching array for item

2007-09-16 Thread Tony Alves
Is it createCursor(), Alex? Alex Harui wrote: > > getItemIndex takes an item, which you can find() in a getCursor() on > the collection. > > > > > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] > *On Behal

[flexcoders] FABridge and Safari

2007-09-16 Thread Richard Rodseth
I'm taking baby steps with FABridge, and I'm not a JavaScript developer, so bear with me please. The following works in Firefox, but not in Safari (I don't see the second alert) alert("hello"); var flexApp = FABridge.flash.root(); var appWidth = flexApp.get

RE: [flexcoders] Re: Best Method for Dynamic Custom Components

2007-09-16 Thread Alex Harui
I'm jumping late here, but are you not using a List class and custom item renderers? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of donvoltz Sent: Sunday, September 16, 2007 1:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] R

RE: [flexcoders] Re: SWFLoader Issue

2007-09-16 Thread Alex Harui
Not any more than we can count on it to define local variables. Compilers want you to be explicit about what you're talking about. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Hueners Sent: Sunday, September 16, 2007 6:34 AM To:

RE: [flexcoders] Re: Identify Function Name

2007-09-16 Thread Alex Harui
The function name will be in the stack trace. You'll probably want to write some code that parses it out. Probably something like: Var s:String = error.getStackTrace(); Var arr:Array = s.split('\n"); s = arr[0]; // or maybe it is 1 ... From

RE: [flexcoders] Re: Dynamic Array Object Keys

2007-09-16 Thread Alex Harui
Not sure what you mean by dynamic object keys, but look at flash.utils.Dictionary. I would dump out thisArr. The DG looks fine, but the data is probably messed up in its conversion from the results. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED

RE: [flexcoders] Searching array for item

2007-09-16 Thread Alex Harui
getItemIndex takes an item, which you can find() in a getCursor() on the collection. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of candysmate Sent: Sunday, September 16, 2007 1:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders]

RE: [flexcoders] Reduce size of my module! Really boring....

2007-09-16 Thread Alex Harui
I haven't use FB to do this. I use ANT or batch scripts. Take a peek at the .xml to see if it has everything it should. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of danielvlopes Sent: Sunday, September 16, 2007 12:28 PM To: flexco

RE: [flexcoders] xml data and drag related questions

2007-09-16 Thread Alex Harui
Is it really a tag called "comments" or did you use a comments tag mailto:[EMAIL PROTECTED] On Behalf Of g07m5064 Sent: Sunday, September 16, 2007 1:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] xml data and drag related questions I have two questions. First, I have the following x

[flexcoders] Question about PieSeries style for insideWithCallout

2007-09-16 Thread generalxxaxx
I have a simple two wedge pie chart, typically the ratio of the wedges is about 90 to 10. This means that almost always one of the labels is inside and the other label is callout. Is there a way to use the style of the pieseries to have the font color of the inside label be light and the font col

RE: [flexcoders] Math.cos...?

2007-09-16 Thread Mike Krotscheck
The documentation's actually fairly clear on this: "The cosine of a 90 degree angle is zero, but because of the inherent inaccuracy of decimal calculations using binary numbers, Flash Player will report a number extremely close to, but not exactly equal to, zero." Nevertheless, it seems... slop

Re: [flexcoders] Math.cos...?

2007-09-16 Thread Jon Bradley
That's pretty much it. To a computer Math.cos(Math.PI/2) is not 0. It's really close to 0, because PI is an infinite sequence and a computer can "only" store it as a double precision floating point number (ie, a fixed value). What you get back from this calculation is the error bound of the

Re: [flexcoders] Flex Chat

2007-09-16 Thread Rogerio Gonzalez
I like IRC a lot, for those kind of things :) Regards, Rogério On 9/16/07, grimmwerks <[EMAIL PROTECTED]> wrote: > > Why wouldn't it be? Could work with Flash Media Server (it does > already) or using any backendeven a socket server you create. > > On Sep 16, 2007, at 11:45 AM, Ed Capis

Re: [flexcoders] Math.cos...?

2007-09-16 Thread Troy Gilbert
> Why does Math.cos(Math.PI/2) not return zero? Round-off error in the Math libs? It does return a value very close to 0 (1.7xe-17). Troy.

[flexcoders] Re: Best Method for Dynamic Custom Components

2007-09-16 Thread donvoltz
Hi Ben, Thank you for your response on this question. I am starting to think I am going about this all wrong. What I am trying to do is dynamically add and remove a group of custom components to my application. I am sending 2 HttpRequests, one returns a list of locations that need to be filled b

[flexcoders] xml data and drag related questions

2007-09-16 Thread g07m5064
I have two questions. First, I have the following xml file: http://www.w3.org/2001/XMLSchema-instance";> Lewis Hamilton 22 English Motorsport Everything seems to come easy for the F1 ace. Hamilton Academical,

[flexcoders] Re: Identify Function Name

2007-09-16 Thread ilikeflex
Hi Alex Thanks for the reply. If you could just tell me how to get the function name that will solve my problem. function A() { trace("function execute" + functionName); } If i execute the function it should print "function execute A" Thanks Rajan --- In flexcoders@yahoogroups.com, "Ale

[flexcoders] Math.cos...?

2007-09-16 Thread Mike Krotscheck
Why does Math.cos(Math.PI/2) not return zero? Michael Krotscheck Senior Developer RESOURCE INTERACTIVE www.resource.com 614 621 2888 main 614 410 3195 direct 412 726 8087 mobile [EMAIL PROTECTED]

[flexcoders] MVP

2007-09-16 Thread samueljonasson
Hi, Has anyone implemented the MVP design pattern - or maybe the Passive view pattern, in a Flex application? I find it very interesting and would like to hear from users that have used to before I dive into it. Best, Sammi

Re: [flexcoders] problem using a single clickevent for multiple datagrids (SOLVED)

2007-09-16 Thread Ben
Instead of using argument binding with a more verbose set of code in the RemoteObject tag, I used Explicit argument passing in my pickRow() method and used the currentTarget keyword to grab the item I clicked from. Thanks ben public function pickRow(event:ListEvent):void { if (eve

[flexcoders] Re: Problem with repeater and image ???

2007-09-16 Thread danielvlopes
What will be diferent when i repeat custom comps? --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Use a custom component for the repeated view, it simplifies things like > this. > > Tracy > > > > > > From: flexcoders@yahoogrou

Re: [flexcoders] Re: Rounded corners

2007-09-16 Thread dorkie dork from dorktown
Peter just posted an example that shows how to create a complex rectangle using the graphics util class, http://blog.flexexamples.com/2007/09/16/drawing-complex-rectangles-in-flex-using-the-graphicsutil-class/ On 9/14/07, scalenine <[EMAIL PROTECTED]> wrote: > > There's always the EnhancedButton

[flexcoders] Searching array for item

2007-09-16 Thread candysmate
I wish to search an ArrayCollection for a match to the text in a textInput component and then set the selectedIndex of a dataGrid to the result. I tried: invoiceApprovalGrid.selectedIndex = adviceApprovalCollection.getItemIndex(approveAdviceNumber.text); without success. Any pointers most welcom

Re: [flexcoders] Re: Embedding Flash font

2007-09-16 Thread Jon Bradley
No prob! Happy I was able to help. I banged my head against the wall on that one for a while. Took me a bit of research to find out that Flash exports symbols for embedded fonts with it's own formatting. Now, it would be nice if there were just an automated way to deal with this. good luc

[flexcoders] Re: Embedding Flash font

2007-09-16 Thread candysmate
--- In flexcoders@yahoogroups.com, Jon Bradley <[EMAIL PROTECTED]> wrote: > > I'm guessing because it's not recognizing the embedded font - you're > seeing the character from the default font, not the embedded font. > > A few things I try to make sure of: > It sure did Jon! Please accept my

[flexcoders] Reduce size of my module! Really boring....

2007-09-16 Thread danielvlopes
Hello, Now in Brasil is sunday, and i waste all my day trying reduce swf size of my modules... I had project with 11 modules... each module had approximately 90kb, because in my project i'm using framework caching teached in this video (http://labs.adobe.com/technologies/flex/videos/flex3rsls/),

Re: [flexcoders] Embedding Flash font

2007-09-16 Thread Jon Bradley
I'm guessing because it's not recognizing the embedded font - you're seeing the character from the default font, not the embedded font. A few things I try to make sure of: 1. Don't name the embedded font in the Flash 8 swf file the same as the system font. 2. Open the Flash 8 SWF back up i

Re: [flexcoders] Flex Chat

2007-09-16 Thread grimmwerks
Why wouldn't it be? Could work with Flash Media Server (it does already) or using any backendeven a socket server you create. On Sep 16, 2007, at 11:45 AM, Ed Capistrano wrote: > Realy? A flex chat app! Is it possible? using as2/3 > > > > ___

[flexcoders] Flex Chat

2007-09-16 Thread Ed Capistrano
Realy? A flex chat app! Is it possible? using as2/3 Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz

[flexcoders] Re: Best Method for Dynamic Custom Components

2007-09-16 Thread ben.clinkinbeard
The code you're trying for issue #1 doesn't work because your collection is holding formField instances, not just IDs. To retrieve an item with a specific id you could do this: function getFieldByID(idToFind:Number):FormField { for each(var ff:FormField in callLabelCollection) { if(ff

RE: [flexcoders] XMLList

2007-09-16 Thread Tracy Spratt
Yes, this has worked for me, though I always apply e4x expressions to an XML node, never to an XMLList. The XMLList is always what I get back. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ben Marchbanks Sent: Sunday, September 16, 2007

RE: [flexcoders] Problem with repeater and image ???

2007-09-16 Thread Tracy Spratt
Use a custom component for the repeated view, it simplifies things like this. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Sunday, September 16, 2007 12:14 AM To: flexcoders@yahoogroups.com Subject: RE: [flexco

Re: [flexcoders] Re: SWFLoader Issue

2007-09-16 Thread Steve Hueners
Can't we count on the compiler to toss an error when something that should be imported isn't? On 9/15/07, grimmwerks <[EMAIL PROTECTED]> wrote: > > Alex had pointed out something similar I was doing - that I needed to > import mx.Application in the area. > >

[flexcoders] Embedding Flash font

2007-09-16 Thread candysmate
I have created a Flash 8 swf as per: http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=fonts_070_12.html containing the Windings font. In my external css files I have : .myWingdingsStyle { font-Family: Wingdings; font-Si

[flexcoders] Re: Best Method for Dynamic Custom Components

2007-09-16 Thread donvoltz
Hi Ben or anyone else who would like to help, I tried to incorporate your suggestions, but I think I still am missing the whole idea about an array collection. in one part of my code, I have done the following for each (var item:XML in locationData){ var ff:formField = new formField(); ff.label

Re: [flexcoders] XMLList

2007-09-16 Thread Ben Marchbanks
Interest to know if anyone has been able to make this work. I struggled with trying to use variables in filtering XMLList without success. Alex Harui wrote: > > > ([variable] == “Y”) > > > > > > *From:* flexcoders@yah

[flexcoders] Re: CB dataProvider - can it be filenames in a folder (maybe with CF7.0.2)?

2007-09-16 Thread shawn.gibson
No, you understand it, that's what I'm aiming for - a text rep. of a part of the filesystem, in this case all the titles of all files in one particular folder somewhere under the webroot passed into Flex as data of some sort. Thanks Tracy. I'm guessing my other response (thinking I need to use th

[flexcoders] Re: Dynamic Array Object Keys

2007-09-16 Thread Jeremy Rottman
I got this part figured out, however I have run into another issue with getting this fixed. Why I finally populate the datagrid with data, the data comes out with all the data for column 1 in the first 4 rows, all the data for column 2, in the next two rows, and all teh data for column 3 in the las

[flexcoders] Re: Problem with repeater and image ???

2007-09-16 Thread danielvlopes
Thanks again Alex, you always help... This fix my problem, event.currentTarget.getRepeaterItem(); --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Target is the dispatcher, which is the loader of the image. Try > currentTarget, or use rptFoto.getRepeaterItem > > >