[flexcoders] Performance Question: Which is faster e4x or object?

2007-04-24 Thread wayneposner
Has anyone really benchmarked this? It seems that when I return an http request as an Object my parse results are faster than trying to do a similar parse in e4x. This seems to be particularly true when the XML has structure than can be returned as an ArrayCollection vs assigning the same xml

[flexcoders] Re: Merge two XML documents

2006-12-16 Thread wayneposner
How about using an XSLT to take care of the merge for you? If this is a web app, that would probably be the best way. If you're writing a desktop app to be compiled under Zinc or Janus, you could easily do it with a custom DLL and then call your code in AS. Wayne --- In

[flexcoders] Re: ListBase.as getting called after Drop to Datagrid--Preventing the Drop???

2006-12-05 Thread wayneposner
did you forget to register your event handler with the DataGrid? Just a thought. Cheers, Lach On 30/11/2006, at 1:07 AM, wayneposner wrote: I'm trying to drag-and-drop from a tree to a datagrid. I've followed the examples to try to achieve this, but whenever I drag over

[flexcoders] Re: ListBase.as getting called after Drop to Datagrid--Preventing the Drop???

2006-12-05 Thread wayneposner
. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wayneposner Sent: Tuesday, December 05, 2006 9:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ListBase.as getting called after Drop to Datagrid--Preventing the Drop??? Hi Lach

[flexcoders] ListBase.as getting called after Drop to Datagrid--Preventing the Drop???

2006-11-29 Thread wayneposner
I'm trying to drag-and-drop from a tree to a datagrid. I've followed the examples to try to achieve this, but whenever I drag over the datagrid, it refuses to accept the drop. The datagrid acts like the dropEnabled flag is set to false. I've traced the code and despite the fact that I have a

[flexcoders] Help with Deleting Tree Node---I've tried everything!

2006-11-28 Thread wayneposner
Howdy all I've been searching and reading and trying just about every example I can find to delete a tree node, but nothing seems to work. I've looked at Peter Ent's code, but couldn't get that to work. There was also a posting on the Adobe forums where someone was doing something very

[flexcoders] Pass data in Event or store it in ModelLocator?

2006-10-24 Thread wayneposner
Howdy all! I've got a question regarding best practices for data sets--lets say an arraycollection object to keep it simple: Store in in the ModelLocator class or pass it around via Events? Is there a best practice recommendation? When is doing one more appropriate than the other? Are

[flexcoders] Datagrid Checkbox binding to selectedItems?

2006-10-11 Thread wayneposner
Howdy all... Is it possible to have a checkbox in a datagrid act as the method for making multiple selections (updating the selectedItems array)? I want to add a column of checkboxes to my datagrid that is not bound to any data provider and use the checkboxes to simply select multiple items.

[flexcoders] Re: Validating XML with XSD Schema in Flex?

2006-10-09 Thread wayneposner
Bokelberg [EMAIL PROTECTED] wrote: You could write a dll to be used in zinc. Cheers, Ralf. On 10/7/06, wayneposner [EMAIL PROTECTED] wrote: So is there no way to do this in flex when dealing strictly with a client side app? Wayne --- In flexcoders@yahoogroups.com, wayneposner

[flexcoders] Re: Validating XML with XSD Schema in Flex?

2006-10-07 Thread wayneposner
So is there no way to do this in flex when dealing strictly with a client side app? Wayne --- In flexcoders@yahoogroups.com, wayneposner [EMAIL PROTECTED] wrote: The XML is generated on the client and resides on the client. There is no server for this app. It is a desktop application

[flexcoders] Validating XML with XSD Schema in Flex?

2006-10-06 Thread wayneposner
I've been scouring the web tyring to find information on XML validation using an XSD file, but the only results I keep finding relate to the MXML schema which is not what I'm looking for. Has anyone written any code that validates an XML file against it's schema? Or is this of of the coding

[flexcoders] Re: Validating XML with XSD Schema in Flex?

2006-10-06 Thread wayneposner
Unfortunately, for the app I'm writing, there is no server side logic. It's all client based and being wrapped by Zinc. Wayne --- In flexcoders@yahoogroups.com, Bela Hajzer [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, wayneposner wayne.posner@ wrote: I've been

[flexcoders] Re: Tree Custom Image Renderer

2006-10-06 Thread wayneposner
Take a look at the zip file at the following URL: http://macmartine.com/blog/flexsource/2.0/beta2/2006_04_04/ It's got a custom tree item renderer to display images instead of folders. You will have to port some if it to AS3 though. Wayne --- In flexcoders@yahoogroups.com, aerospc04 [EMAIL

[flexcoders] Re: Validating XML with XSD Schema in Flex?

2006-10-06 Thread wayneposner
to validate the XML before sending it to Flex? That's probably the simpler solution. Sam -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wayneposner Sent: Friday, October 06, 2006 9:29 AM To: flexcoders@yahoogroups.com Subject

[flexcoders] Flash Debugger Crashing IE! Please Help!

2006-10-02 Thread wayneposner
This problem just came up all of a sudden. I trying to run my app in debug mode to trace some variable values and everytime the code execution gets to my break point I get the following error appear in an IE popup window: The following add-on was running when this problem occured: File:

[flexcoders] Re: issue with progress bar loader becoming stuck

2006-10-01 Thread wayneposner
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wayneposner Sent: Thursday, September 28, 2006 9:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: issue with progress bar loader becoming stuck Is there a method

[flexcoders] Re: issue with progress bar loader becoming stuck

2006-09-28 Thread wayneposner
Is there a method or some call to use that forces the UI to refresh. I actaully tried staging the call to my recursive function so that it wouldn't get called until three events later-- creationComplete dispatched to a render event which then dispatched to my event which called the recursion.

[flexcoders] Re: issue with progress bar loader becoming stuck

2006-09-27 Thread wayneposner
Hi Dan- Just to let you know you're not alone, I've been having issues with my progress bar not displaying at all. I've got code that is supposed to pop up my progress bar when the user clicks on a tree node. After that I dispatch an event that my tree node has been clicked and pass the

[flexcoders] Re: Auto-expand Treenodes

2006-09-27 Thread wayneposner
Depending on how you are calling that code, you may need to add a try catch block around it. I originally had my app loading XML data during the initialize process. It then fed that data directly into a tree. Since the tree had data right away, that line of code worked fine. I've recently

[flexcoders] Re: Save XML to file

2006-09-26 Thread wayneposner
If you're looking to create a desktop application, you can write to the file system using Zinc. Just google MDM Zinc and you'll get the information you're looking for. wayne --- In flexcoders@yahoogroups.com, Luis Arias [EMAIL PROTECTED] wrote: If I create a Flex App that is locally

[flexcoders] Cookie Trail for Tree Navigation??

2006-09-26 Thread wayneposner
Has anyone implemented a cookie trail for a Tree? What I mean is lets say we have a tree of: top --node1 --node2 node2a --node2aa So if you selected node1 the cookie trail would show: top:node1 and if you selected node2aa the trail would show: top:node2:node2a:node2aa Idealy the

[flexcoders] Re: What happened to getTreeNodeAt??

2006-09-19 Thread wayneposner
You really don't need to do all that. Try this: private function autoExpand():void { assemblyTree.expandChildrenOf(tree.dataProvider[0],true); } Wayne --- In flexcoders@yahoogroups.com, Darin Kohles [EMAIL PROTECTED] wrote: I encountered the same problem and wrote my own version. public

[flexcoders] Can't view source code on Mac Martine's website

2006-09-13 Thread wayneposner
keep getting Timer could not be found error when tyring to view your source. Your custom tree item renderer is kind of like what I need only I need the icon to appear at the end of the label. HELP! Wayne -- Flexcoders Mailing List FAQ:

[flexcoders] Custom TreeItemRenderer to display a label followed by an icon/image?

2006-09-11 Thread wayneposner
Hi all... I've been playing around with the code that's been floating around to put render a checkbox next to each item in a tree control, but I'm not having any luck accomplishing the task of getting an image to display after a label in a tree control. I'm using a shared object to store

[flexcoders] BUMP: Re: Help with adding datagrid to non-visible Sprite

2006-08-29 Thread wayneposner
? Thanks! Wayne --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 29 August 2006 00:56, wayneposner wrote: my datagrid to appear as part of my printed output when using the PrintJob class with a non-visible sprite? As I said, you can't. You must make

[flexcoders] BUMP: Re: Help with adding datagrid to non-visible Sprite

2006-08-28 Thread wayneposner
what I need to do to get the contents of my datagrid to appear as part of my printed output when using the PrintJob class with a non-visible sprite? Thanks! Wayne --- In flexcoders@yahoogroups.com, wayneposner [EMAIL PROTECTED] wrote: i've tried setting the height/width on the datagrid

[flexcoders] Re: Help with adding datagrid to non-visible Sprite

2006-08-23 Thread wayneposner
; this.height=600; to the constructor of my class. Still no luck. What am I doing wrong??? Thanks! Wayne --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 21 August 2006 22:41, wayneposner wrote: I'm tyring to add a datagrid to a sprite class that doesn't

[flexcoders] Re: Trouble Printing lots of images--PLEASE HELP!!!!!!

2006-08-16 Thread wayneposner
oute of duplicating what the PDF looks like in a flex canvas. As for AS code, i'm not really sure what to send. Nothing I have works and I've got code commented all over the place with the different routes I've tried. So let me do this...I'll highlight the overall workflow here in this post.

[flexcoders] Re: Trouble Printing lots of images--PLEASE HELP!!!!!!

2006-08-15 Thread wayneposner
a lot of CPU resources. But, I'm sure that you can find a balance here. Hope this helps, Tim --- In flexcoders@yahoogroups.com, wayneposner wayne.posner@ wrote: I've been trying to figure this one out for about a week now with no success. I'm trying to load a bunch

[flexcoders] Re: Trouble Printing lots of images--PLEASE HELP!!!!!!

2006-08-15 Thread wayneposner
: Yeah, I'm not saying load all of the images at one time, just the ones that you want to print. Possible use of cacheAsBitmap here too. -TH --- In flexcoders@yahoogroups.com, wayneposner wayne.posner@ wrote: I thought about doing that, but am concerned about the possiblity

[flexcoders] Trouble Printing lots of images--PLEASE HELP!!!!!!

2006-08-14 Thread wayneposner
I've been trying to figure this one out for about a week now with no success. I'm trying to load a bunch of images dynamically from an XML file, pass each image, one at a time, to a Canvas and then print that Canvas, but only being prompted with the print dialog for the first image. If I

Bug in printing with test case (was Re: [flexcoders] Flex print jobs)

2006-08-10 Thread wayneposner
? If they are small images, I think Embeding the images in the swf should do the trick. thanks, -sam On 8/10/06, wayneposner [EMAIL PROTECTED] wrote: After going back and adding an event listener for the complete action on the image I was able to get the image to print. Having to use

[flexcoders] Re: adding and removing event listeners madness (flex1_5

2006-08-10 Thread wayneposner
I think you're trying to do something I just did. Add the following mxml lines to your component (just change the values as necessary): mx:NumericStepper id=resultStepper focusOut=updateSlider() value=100 change=updateSlider() maximum=1000 minimum=0 stepSize=10 textAlign=left x=168 y=18

Bug in printing with test case (was Re: [flexcoders] Flex print jobs)

2006-08-09 Thread wayneposner
I was having the same problem until I added: pp.width=printjob.pageWidth; pp.height=printjob.pageHeight where pp is the object that I want printed. Not to hijack this thread, but is there a limitation in Flex that prevents the printing of jpegs that have been loaded dynamically onto a canvas?

Bug in printing with test case (was Re: [flexcoders] Flex print jobs)

2006-08-09 Thread wayneposner
Tom, I set the width/height for the whole component. I also tried setting it for the image. Setting it for the image actually gives me nothing but a blue background when I view the print via Microsoft Document Imaging. Adding a callLater to the mix still does not yield a jpeg in the print

Bug in printing with test case (was Re: [flexcoders] Flex print jobs)

2006-08-09 Thread wayneposner
@yahoogroups.com, wayneposner [EMAIL PROTECTED] wrote: Tom, I set the width/height for the whole component. I also tried setting it for the image. Setting it for the image actually gives me nothing but a blue background when I view the print via Microsoft Document Imaging. Adding a callLater

[flexcoders] ListBase.as -- didn't find all selected items

2006-08-07 Thread wayneposner
Line 5010 of the ListBase.as file contains a trace line that says didn't find all selected items. There is no try/catch block around it or anything...it just simply always outputs this trace statement. Is this an oversight from the adobe developers? Thanks! Wayne -- Flexcoders

[flexcoders] Re: Help with SharedObject please!

2006-08-07 Thread wayneposner
around the issue. Not sure what was causing it, but at least I got it fixed. Thanks! Wayne --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Saturday 05 August 2006 14:21, wayneposner wrote: running. Selecting localhost never seems to work for me as it just keeps

[flexcoders] Re: Help with SharedObject please!

2006-08-06 Thread wayneposner
running via a URL. This is pretty darn frustrating :-) Wayne --- In flexcoders@yahoogroups.com, Jeremy Lu [EMAIL PROTECTED] wrote: How about just adding a TextArea control to the stage then trace to it ? On 8/5/06, wayneposner [EMAIL PROTECTED] wrote: If I trace it locally

[flexcoders] Re: Help with SharedObject please!

2006-08-05 Thread wayneposner
stored in the sharedobject and see if all data are kept there ? Jeremy. On 8/5/06, wayneposner [EMAIL PROTECTED] wrote: Howdy all... I trying to use a SharedObject to keep user entered search strings in a drop-down box like the Google IE Toolbar. This works fine when I'm

[flexcoders] Re: Help with SharedObject please!

2006-08-05 Thread wayneposner
mySO:SharedObject = SharedObject.getLocal(soName, /); Also, you might want to check out this link: http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/htm l/wwhelp.htm?context=LiveDocs_Partsfile=2665.html good luck --jason --- In flexcoders@yahoogroups.com, wayneposner

[flexcoders] Help with SharedObject please!

2006-08-04 Thread wayneposner
Howdy all... I trying to use a SharedObject to keep user entered search strings in a drop-down box like the Google IE Toolbar. This works fine when I'm running the app locally, but as soon as I move it to a server and access it via a URL, it stops working. Does anyone know what might be

[flexcoders] Photoviewer example--why no access to class variables?

2006-07-24 Thread wayneposner
Howdy all... I'm hoping someone can clear up a little confusion of mine: In the photoviewer example that comes with Flex 2, why can you only get to the data of the instatiated PhotoService class via mx tags, but when you try to access any of the object via actionscript they always show up as

[flexcoders] Flex Developer Needed

2006-07-14 Thread wayneposner
User Interface Engineer Due to continued growth, Right Hemisphere, Inc. (www.righthemisphere.com) has an immediate opening for a User Interface Engineer for either the Fremont, CA or Dallas, TX region. Right Hemisphere, Inc. provides Product Graphics Management (PGM) solutions to industrial

[flexcoders] Flex Consultant Needed

2006-07-14 Thread wayneposner
Right Hemisphere, Inc. is looking for someone who is proficient in developing ActiveX controls to communicate with a Flex Application. This is contract work. Anyone interested please contact me via the Send Email link found by clicking on my profile. Yahoo!

[flexcoders] Batch PDF Printing possible yet?

2006-07-06 Thread wayneposner
Howdy all... Is the following possible: I've got a tree where each node represents a single page pdf file. I'd like to loop through the tree, get each PDF file and send it to the printer without having to click OK or Print more than once for the entire job. I know there are some solutions

[flexcoders] Building flat data object based on XML file with complicated structure

2006-06-21 Thread wayneposner
Howdy all!! Take the following blurb of XML: item id=0006 qty=2.000 uom=EA matnr=347565 bismt=DBT347565 name=ASSY, SPLIT CLUTCH COVER hasBom=X path=pdf/347565.pdf image=pdf/thumbnails/347565.jpg item id=0001 qty=1.000 uom=EA matnr=347564 bismt=DBT347564 name=SPLIT CLUTCH COVER hasBom=X

[flexcoders] Re: Building flat data object based on XML file with complicated structure

2006-06-21 Thread wayneposner
PROTECTED] wrote: Is there anyway to post that xml so it stays formatted? I really do not like that part of the new yahoo groups. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wayneposner Sent: Wednesday, June 21

[flexcoders] Re: Building flat data object based on XML file with complicated structure

2006-06-21 Thread wayneposner
]; trace ([EMAIL PROTECTED]); aNodes.push(xmlNode); } trace(aNodes.length); } ]]/mx:Script /mx:Application From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wayneposner Sent

[flexcoders] Fully Expand Tree in Flex Beta 3

2006-06-15 Thread wayneposner
Howdy all! I've been searching and searching and trying to figure out how to convert the code floating around out there that fully expands/collapses a tree. Can someone give me a hand with this. I've got the following: function expandTree(t:mx.controls.Tree) : Void { var

[flexcoders] Re: Fully Expand Tree in Flex Beta 3

2006-06-15 Thread wayneposner
--- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Oh yeah, Implementation; tree.expandChildrenOf(tree.selectedItem, true); The first param is whatever node you want all the children opened or closed of. Peace, Mike Wow! Thanks for such a fast

[flexcoders] Popup window Change event is broken!!!

2006-05-10 Thread wayneposner
@yahoogroups.com, wayneposner [EMAIL PROTECTED] wrote: My code was working fine in B2. Now, since upgrading to B3, when I open a popup window that contains a list, clicking on the list no longer does anything. Orignially I had change=someMethod (event). I tried changing it to itemClicked

[flexcoders] Flex2B3 List -- selecting item not doing anything

2006-05-09 Thread wayneposner
My code was working fine in B2. Now, since upgrading to B3, when I open a popup window that contains a list, clicking on the list no longer does anything. Orignially I had change=someMethod(event). I tried changing it to itemClicked but that didn't do anything. I've tried catching the

[flexcoders] Clearing Thumbnails from a panel??

2006-04-06 Thread wayneposner
I want to thank everyone who threw a comment at me for my previous question about handling large XML datasets. I think I'm going to follow the suggestion of splitting up the XML into smaller files and then reading the data in based on the user search criteria. One of the things that I'll need

[flexcoders] Re: Clearing Thumbnails from a panel??

2006-04-06 Thread wayneposner
NevermindI figured out that if I wrote a special clearPanel function which looped through the selected items and set selected=false followed by a call to layouttiles, it worked exactly as i needed to. Now I just need to figure out how to prevent any of the thumbnails from displaying if

[flexcoders] Re: Large XML Dataset?

2006-04-05 Thread wayneposner
--- In flexcoders@yahoogroups.com, Evert | Collab [EMAIL PROTECTED] wrote: Is there any chance you can split up the xml in multiple categories. Or maybe with a 'global xml index' of some kind? Evert Could you please explain what you mean by global xml index? Wayne -- Flexcoders

[flexcoders] Re: Large XML Dataset?

2006-04-05 Thread wayneposner
--- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: I had some of the same issues reading XML over HTTP. If your XML is dynamically generated by a server (via JSP, CF, ASP, etc.), you can do what I did, which is to essentially pass your search values as parameters

[flexcoders] Large XML Dataset?

2006-04-04 Thread wayneposner
I've been searching and searching, but haven't been able to find the answer, so I'm posting here as a last resort. I am working on a Flex application that must read in a fairly large XML file (1.5 to 3 megs depending).If I were to base my application off of the flexstore example, I'd just