[flexcoders] Performance Question: Which is faster e4x or object?
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 via e4x to an XMLListCollection. I'm curious as to what result format most people are using for their HttpRequest. Thanks! Wayne
[flexcoders] Re: Merge two XML documents
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@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: What do you mean by merge? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Collin Peters Sent: Friday, December 15, 2006 12:22 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Merge two XML documents Is there a simple (and efficient) way to merge to XML objects? I do not see a function call to do this in the docs http://livedocs.macromedia.com/flex/2/langref/XML.html http://livedocs.macromedia.com/flex/2/langref/XML.html Ways of doing it I suppose would be manual with a foreach, or doing a toString on both and constructing a new document. Neither of those would be too efficient I would thing though. Any ideas? -- Collin Peters Lead Software Developer
[flexcoders] Re: ListBase.as getting called after Drop to Datagrid--Preventing the Drop???
Hi Lach, Nope...My component code looked liked: mx:DataGrid id=cart dragEnabled=true dropEnabled=true dragEnter=onDragEnter(event)/ Still haven't figured out what caused the problem. Wayne --- In flexcoders@yahoogroups.com, Lachlan Cotter [EMAIL PROTECTED] wrote: Hi Wayne, By any chance 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 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 custom dragEnter handler, it still executes the handler found in ListBase.as which cancels out my handler. Does anyone know what would cause this? Thanks! My Handler is as follows: private function onDragEnter( event:DragEvent ) : void { DragManager.acceptDragDrop(UIComponent(event.currentTarget)); }
[flexcoders] Re: ListBase.as getting called after Drop to Datagrid--Preventing the Drop???
Thanks so much!!! It was the lack of event.preventDefault() that was causing the problems. Once I added that into all my handlers the drag-and-drop worked like a charm!!! Wayne --- In flexcoders@yahoogroups.com, Deepa Subramaniam [EMAIL PROTECTED] wrote: A few things: first, you'll have to call preventDefault() on your DragEvent object to cancel the default behavior so that only your custom event handler runs. Second, you'll have to add a custom dragOver event handler so that the DataGrid shows the correct feedback allowing items to be dropped from the Tree. 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, Nope...My component code looked liked: mx:DataGrid id=cart dragEnabled=true dropEnabled=true dragEnter=onDragEnter(event)/ Still haven't figured out what caused the problem. Wayne --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Lachlan Cotter lach@ wrote: Hi Wayne, By any chance 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 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 custom dragEnter handler, it still executes the handler found in ListBase.as which cancels out my handler. Does anyone know what would cause this? Thanks! My Handler is as follows: private function onDragEnter( event:DragEvent ) : void { DragManager.acceptDragDrop(UIComponent(event.currentTarget)); }
[flexcoders] ListBase.as getting called after Drop to Datagrid--Preventing the Drop???
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 custom dragEnter handler, it still executes the handler found in ListBase.as which cancels out my handler. Does anyone know what would cause this? Thanks! My Handler is as follows: private function onDragEnter( event:DragEvent ) : void { DragManager.acceptDragDrop(UIComponent(event.currentTarget)); }
[flexcoders] Help with Deleting Tree Node---I've tried everything!
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 similir to what I'm using and eventually got their to work, but never posted how. I'm using a modified version of the custom ITreeDataDescriptor example that looks for items instead of children. My tree is being populated with a highly nested arraycollection. When it execute the removeChildAt function, it's using Splice and is supposed to remove the 1st item after the index parameter, but nothing happens. The tree dataprovider remains the same. If someone can give me a hand and tell me what I'm doing wrong, I would be most appreciative! Below is the code I'm using: public class ItemAsChildTreeRender implements ITreeDataDescriptor //public class ItemAsChildTreeRender extends TreeItemRenderer { // The getChildren method requires the node to be an Object // with a children field. // If the field contains an ArrayCollection, it returns the field // Otherwise, it wraps the field in an ArrayCollection. public function getChildren(node:Object, model:Object=null):ICollectionView { try { if (node is Object) { if(node.item is ArrayCollection){ return node.item; }else{ var ac:ArrayCollection=new ArrayCollection(mx.utils.ArrayUtil.toArray(node.item)) ; //return new ArrayCollection(node.item as Array); return ac } } } catch (e:Error) { trace([Descriptor] exception checking for getChildren); trace (error: + e.message); } return null; } // The isBranch method simply returns true if the node is an // Object with a children field. // It does not support empty branches, but does support null children // fields. public function isBranch(node:Object, model:Object=null):Boolean { try { if (node is Object) { if (node.item != null) { return true; } } } catch (e:Error) { trace([Descriptor] exception checking for isBranch); } return false; } // The hasChildren method Returns true if the node actually has children. public function hasChildren(node:Object, model:Object=null):Boolean { if (node == null) return false; var children:ICollectionView = getChildren(node, model); try { if (children.length 0) return true; } catch (e:Error) { } return false; } // The getData method simply returns the node as an Object. public function getData(node:Object, model:Object=null):Object { try { return node; } catch (e:Error) { } return null; } // The addChildAt method does the following: // If the parent parameter is null or undefined, inserts // the child parameter as the first child of the model parameter. // If the parent parameter is an Object and has a children field, // adds the child parameter to it at the index parameter location. // It does not add a child to a terminal node if it does not have // a children field. public function addChildAt(parent:Object, child:Object, index:int, model:Object=null):Boolean { var event:CollectionEvent = new CollectionEvent(CollectionEvent.COLLECTION_CHANGE); event.kind = CollectionEventKind.ADD; event.items = [child]; event.location = index; if (!parent) { var iterator:IViewCursor = model.createCursor(); iterator.seek(CursorBookmark.FIRST, index); iterator.insert(child); } else if (parent is Object) { if (parent.item != null) { if(parent.item is ArrayCollection) { parent.item.addItemAt(child, index); if (model){ model.dispatchEvent(event); model.itemUpdated(parent); } return true; } else { parent.item.splice(index, 0, child); if (model) model.dispatchEvent(event); return true; } } } return false; } // The removeChildAt method does the following: // If the parent parameter is null or undefined, removes // the child at the specified index in the model. // If the parent parameter is an Object and has a children field, // removes the child at the index parameter location in the parent. public function removeChildAt(parent:Object, child:Object, index:int, model:Object=null):Boolean { //super.removeChildAt(parent,child,index,model); var event:CollectionEvent = new CollectionEvent(CollectionEvent.COLLECTION_CHANGE); event.kind = CollectionEventKind.REMOVE; event.items = [child]; event.location = index; //handle top level where there is no parent if (!parent) { var iterator:IViewCursor = model.createCursor(); iterator.seek(CursorBookmark.FIRST, index); iterator.remove(); if (model) model.dispatchEvent(event); return true; } else if (parent is Object) { if (parent.hasOwnProperty(item) parent.item != undefined) { parent.item.splice(index, 1); if (model) model.dispatchEvent(event); return true; } } return false; } } My MXML is as follows: mx:Tree id=printTree change=publicTreeChanged(event) dataDescriptor={new util.ItemAsChildTreeRender()} dropEnabled=true labelField=name width=100% height=100%/ mx:Button
[flexcoders] Pass data in Event or store it in ModelLocator?
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 there any performance increases/degredation doing one way vs the other? Thanks! Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Datagrid Checkbox binding to selectedItems?
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. Thanks! Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Validating XML with XSD Schema in Flex?
You're right, I could, but then I'd be back in the same boat when I need to wrap this app with Apollo. I need something native to Flex that will work across the board--regardless of how the app is being delivered. Anyone else have any ideas? Wayne --- In flexcoders@yahoogroups.com, Ralf 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 wayne.posner@ 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 wrapped in Zinc. Think of this as kind of like Microsoft Word--no server involved. You open a text doc, but for some reason it's corrupt. Word tells you that it can't read the file you tried to open. Same thing with this app. I'm a client side app opening a client side XML file and want to verify that it's valid. Wayne --- In flexcoders@yahoogroups.com, Samuel R. Neff srneff.lists@ wrote: Where is the XML coming from? Can you use server-side code 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] Validating XML with XSD Schema in Flex? 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 practices that Flex does not implement? The point being, if I want to explicity define what my input XML looks like to my flex application, right now, the only way this seems possible to to write code that defines the business logic of each node/attribute and whether or not there is a value restrition. Should my business logic change, then I have to go and change my code. If there is some way to simply read the XSD and validate directly against that, the only place I have to go to change my business logic is to the XSD--no code changes/recompilations necessary. Thanks, Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Validating XML with XSD Schema in Flex?
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 wrapped in Zinc. Think of this as kind of like Microsoft Word--no server involved. You open a text doc, but for some reason it's corrupt. Word tells you that it can't read the file you tried to open. Same thing with this app. I'm a client side app opening a client side XML file and want to verify that it's valid. Wayne --- In flexcoders@yahoogroups.com, Samuel R. Neff srneff.lists@ wrote: Where is the XML coming from? Can you use server-side code 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] Validating XML with XSD Schema in Flex? 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 practices that Flex does not implement? The point being, if I want to explicity define what my input XML looks like to my flex application, right now, the only way this seems possible to to write code that defines the business logic of each node/attribute and whether or not there is a value restrition. Should my business logic change, then I have to go and change my code. If there is some way to simply read the XSD and validate directly against that, the only place I have to go to change my business logic is to the XSD--no code changes/recompilations necessary. Thanks, Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Validating XML with XSD Schema in Flex?
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 practices that Flex does not implement? The point being, if I want to explicity define what my input XML looks like to my flex application, right now, the only way this seems possible to to write code that defines the business logic of each node/attribute and whether or not there is a value restrition. Should my business logic change, then I have to go and change my code. If there is some way to simply read the XSD and validate directly against that, the only place I have to go to change my business logic is to the XSD--no code changes/recompilations necessary. Thanks, Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Validating XML with XSD Schema in Flex?
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 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 practices that Flex does not implement? The point being, if I want to explicity define what my input XML looks like to my flex application, right now, the only way this seems possible to to write code that defines the business logic of each node/attribute and whether or not there is a value restrition. Should my business logic change, then I have to go and change my code. If there is some way to simply read the XSD and validate directly against that, the only place I have to go to change my business logic is to the XSD--no code changes/recompilations necessary. Thanks, Wayne -- -\ - Hi, may i suggest to do this validation on the server side. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Tree Custom Image Renderer
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 PROTECTED] wrote: Okay, I've not found a clean way to get this to work... I have a tree who's leafs and nodes represent people. I'd like to display a 100x100 jpeg headshot of each person instead of the folder/page default icon that comes with flex. Does anyone know how to do this? I've tried creating a custom component, but when I do I lose all indenting and the branch open/close triangles. Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Validating XML with XSD Schema in Flex?
The XML is generated on the client and resides on the client. There is no server for this app. It is a desktop application wrapped in Zinc. Think of this as kind of like Microsoft Word--no server involved. You open a text doc, but for some reason it's corrupt. Word tells you that it can't read the file you tried to open. Same thing with this app. I'm a client side app opening a client side XML file and want to verify that it's valid. Wayne --- In flexcoders@yahoogroups.com, Samuel R. Neff [EMAIL PROTECTED] wrote: Where is the XML coming from? Can you use server-side code 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] Validating XML with XSD Schema in Flex? 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 practices that Flex does not implement? The point being, if I want to explicity define what my input XML looks like to my flex application, right now, the only way this seems possible to to write code that defines the business logic of each node/attribute and whether or not there is a value restrition. Should my business logic change, then I have to go and change my code. If there is some way to simply read the XSD and validate directly against that, the only place I have to go to change my business logic is to the XSD--no code changes/recompilations necessary. Thanks, Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flash Debugger Crashing IE! Please Help!
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: FIDbg9.ocx Comany Name: Adobe Systems Inc Description: Adobe Flash Player 9 I tried re-installing the debug player, but it doesn't fix the problem. Has anyone come across this issue and have any ideas how to fix it??? Thanks! Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: issue with progress bar loader becoming stuck
I've also tried a using a dispatchevent to a callLater which calls my recursive function. Still no progress bar until the recursive function completes. This isn't the first issue I've had with the callLater function either--it seems there may be some sort of bug with how it actually executes because for me, it always executes immediately after I call it. Anyway, doing what you suggest--using a break in the code--if my dispatchEvent (on Click) displays my ProgressBar, theres a break in the code. I then had it set up so that the ProgressBar would fire a call for the CreationComplete event to call my rescursion. So there's two steps before the recursion gets called and still no progress bar. I'd be more than happy to send you the code, because something definitely isn't right. Wayne --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: You really need to break your function up into multiple calls so that a frame can draw in between. There is no concept of forcing the UI to draw, your AS code has to exit. Look into writing your function so that you can call it in phases using something like a timer or callLater. Matt 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 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. Still no progress bar. Thanks, Wayne --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Tom Chiverton tom.chiverton@ wrote: On Thursday 28 September 2006 14:09, Mark Hawley wrote: Flash is single-threaded. You're not going to ever get screen refreshes during a function's execution. Sometimes the internal model isn't even updated during execution. -- Tom Chiverton Helping to globally foster B2B clusters This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: issue with progress bar loader becoming stuck
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. Still no progress bar. Thanks, Wayne --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 28 September 2006 14:09, Mark Hawley wrote: Flash is single-threaded. You're not going to ever get screen refreshes during a function's execution. Sometimes the internal model isn't even updated during execution. -- Tom Chiverton Helping to globally foster B2B clusters This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: issue with progress bar loader becoming stuck
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 data from my tree to a recurisve function. If I let the recursion execute, the progress bar doesn't load until the recursion is complete. If I take out the recursion, the progress bar loads fine. It seems there are some threading issues with Flex that prevent the progress bar from displaying properly during operations that are heavy on the CPU. I'd really like to hear someone from Adobe comment on this, though. Wayne -- In flexcoders@yahoogroups.com, Dan Rossi [EMAIL PROTECTED] wrote: Hi there, each time i make a change to my flex app, the default progress bar becomes stuck and doesnt finish loading therefore the applicarton wont load, it takes up to 12 refreshes to actually load properly. It also seems that upon each page reload the progress bar will flash briefly halfway even though the movie is loaded ! that is with pragma cache enabled or even disabled ! Whats the go here ? let me know thanks. Dan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Auto-expand Treenodes
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 changed things a bit so that the app loads with no XML data loaded. I was also getting the same eror you were until I put a try catch block around it. The auto expand code was getting called, but since there was no data in my tree, the try catch prevented any errors. You can also use: assemblyTree.expandChildrenOf(assemblyTree.selectedItem, true); to expand a specific node in the tree. Wayne --- In flexcoders@yahoogroups.com, Sascha [EMAIL PROTECTED] wrote: I know this had been brought up before and I found some stuff on it in the archive but it doesn't work for me... I want to auto-expand a Tree when it is displayed ... objectTree.expandChildrenOf(objectTree.dataProvider[0], true); gives me a Cannot access a property or method of a null object reference. myTree.selectedItem = myTree.dataProvider.getItemAt(0); //Mailbox node myTree.expandChildrenOf(myTree.selectedItem, true); also doesn't work. objectTree.selectedIndex = 0; objectTree.expandChildrenOf(objectTree.selectedItem, true); Selects the first item but doesn't expand it. What can I do to expand the tree? Any info on this would be appreciated! Sascha -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Save XML to file
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 trusted, is it possible to save an xml object to a file on the disk. The local shared object saves objects but it doesnt allow the user to say save the file as an xml file and then be able to email that file to someone else. And I would rather not have to get all the data services just to write a simple XML file. Can anyone help? Thanks Luis -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Cookie Trail for Tree Navigation??
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 trail would also be working links so that clicking any given link would cause that corresponding item in the tree to become selected. Thanks! Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: What happened to getTreeNodeAt??
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 var categoryNodes:XML = new XML(); // xml data of the tree set elsewhere public var arrayFromNodes:ArrayCollection = new ArrayCollection(); public var nodeCount:Number = 0; /** * returns an xml node based on a tree index */ public function getNodeAt(index:Number):XML{ arrayFromNodes = new ArrayCollection(); nodeCount=0; arrayFromNodes.addItem(categoryNodes[nodeCount]); getNodeList(XMLList(categoryNodes)); return XML(arrayFromNodes.getItemAt(index)); } /** * returns a flattend node listing from an xml tree */ private function getNodeList(currentList:XMLList):void{ for each(var childIndex:XML in XMLList(currentList.children())){ nodeCount++ arrayFromNodes.addItem(childIndex); if(XMLList(childIndex).children().length()){ getNodeList(XMLList(childIndex)) } } } As to the expandChildrenOf() function it works for me by passing in the root node for the tree dataProvider. --- In flexcoders@yahoogroups.com, carl_steinhilber carl_steinhilber@ wrote: Well, now I'm stymied. With Flex 1.5, I was able to expand all the nodes of an mx:Tree with something like: function setOpenAll(aryNodes):Void{ var childNode = aryNodes.getTreeNodeAt(0); var aryChildren = aryNodes.getChildNodes(); for (var i = 0;i aryChildren.length;i = i + 1){ childNode = aryNodes.getTreeNodeAt(i); treeElem.setIsOpen( myNode, true, false, false); if ( childNode.hasChildNodes() ){ setOpenAll(childNode ); } } } and invoke it with a button function like click=setOpenAll(treeElem.dataProvider) But this throws an error in Flex 2. Near as I can tell... there's no getTreeNodeAt() function anymore. Anyone know how to go about expanding all the nodes of a tree, now, in Flex 2? I'm continually surprised there are no methods openAll()/closeAll() for the Tree. Seems like the new expandChildrenOf() method would make things easier... but not quite sure how to use it. Thanks in advance, -Carl -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Can't view source code on Mac Martine's website
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: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Custom TreeItemRenderer to display a label followed by an icon/image?
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 information about different items in a tree and I'd like to put a little comments icon next to an item in the tree that has a shared object associated with it. I can't change the branch/leaf icons I'm already using custom icons and they must remain as they are. Can the labelFunction be used to return an object containing my label and my icon instead of just a string? If not, can someone point me in the direction with a few lines of code from the updateDisplayList function that will help me accomplish my task? Thanks! Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] BUMP: Re: Help with adding datagrid to non-visible Sprite
Since I'm using an AS class extending Sprite, there is no option for the callLater() method. Is there any component that I can use to render printed text output that does not need to be displayed Additionally, why does it work that I can print images using this class but not text? 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 the sprite visible, and maybe do the actual printing via callLater. Did you try that ? -- Tom Chiverton Helping to greatly reinvent fourth-generation segments This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] BUMP: Re: Help with adding datagrid to non-visible Sprite
I really need some detailed help here. I tried adding my datagrid to a UIComponent and then adding the UIComponent to a Sprite. This causes a blue rectangle to appear when I try to print. While this is better than a blank page, it's still quite not what I need. Can someone please tell me 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, the sprite the datagrid is being added to and the class level sprite, but nothing seems to work. When I check the properties in the debugger the values for height/width are 0 regardless of what I tried to set them to. var pdg:PrintDataGrid=new PrintDataGrid(); var s:Sprite=new Sprite(); pdg.explicitHeight=600; pdg.explicitWidth=600; pdg.setActualSize(600,600); pdg.width=600; pdg.height=600; s.addChild(pdg); s.height=600; s.width=600; My class executing this code extends Sprite so I've simply added this.width=600; 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 tom.chiverton@ wrote: On Monday 21 August 2006 22:41, wayneposner wrote: I'm tyring to add a datagrid to a sprite class that doesn't display any data--its used strickly for printing. When I add the datagrid to the sprite, the resulting printed output is just a blank page. There is an issue with printing non-visible content - one work around is to add your datagrid and set it's data, then use callLater to fire the printJob or you can set a width/height on the top level Sprite by hand. -- Tom Chiverton Helping to preemptively expedite proactive supply-chains This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Help with adding datagrid to non-visible Sprite
i've tried setting the height/width on the datagrid, the sprite the datagrid is being added to and the class level sprite, but nothing seems to work. When I check the properties in the debugger the values for height/width are 0 regardless of what I tried to set them to. var pdg:PrintDataGrid=new PrintDataGrid(); var s:Sprite=new Sprite(); pdg.explicitHeight=600; pdg.explicitWidth=600; pdg.setActualSize(600,600); pdg.width=600; pdg.height=600; s.addChild(pdg); s.height=600; s.width=600; My class executing this code extends Sprite so I've simply added this.width=600; 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 display any data--its used strickly for printing. When I add the datagrid to the sprite, the resulting printed output is just a blank page. There is an issue with printing non-visible content - one work around is to add your datagrid and set it's data, then use callLater to fire the printJob or you can set a width/height on the top level Sprite by hand. -- Tom Chiverton Helping to preemptively expedite proactive supply-chains This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Trouble Printing lots of images--PLEASE HELP!!!!!!
Hi Sam... Sure, I can definitely do that. Here is a snippet from my XML file. I've taken just the top few lines and added the necessary end tags. ?xml version="1.0" encoding="ISO-8859-1"?Bom matnr="353559" bismt="DBT353559" name="CUTTING HEAD DRIVE ASSEMBLY" hasBom="X" item id="0001" qty="2.000" uom="EA" matnr="353560" bismt="DBT353560" name="MOTOR DRIVE SHAFT" hasBom="" path="pdf/353560.pdf" image="pdf/thumbnails/353560.jpg"/ item id="0002" qty="2.000" uom="EA" matnr="172186" bismt="J-491929" name="TORQUE CLUTCH" hasBom="" path="pdf/172186.pdf" image="pdf/thumbnails/172186.jpg"/ item id="0003" qty="2.000" uom="EA" matnr="353570" bismt="DBT353570" name="CAP, SEAL" hasBom="X" path="pdf/353570.pdf" image="pdf/thumbnails/353570.jpg" item id="0001" qty="0.100" uom="FT" matnr="269580" bismt=" 008 302 48 19" name="ROUND BAR(HR 4340HT)4.00quot;" hasBom=""/ /item item id="0004" qty="2.000" uom="EA" matnr="169220" bismt="J-486851" name="COVER" hasBom="X" path="pdf/169220.pdf" image="pdf/thumbnails/169220.jpg" item id="0010" qty="1.000" uom="EA" matnr="177413" bismt="J-547F198MK002" name="COVER WELDMENT" hasBom="X" path="pdf/177413.pdf" image="pdf/thumbnails/177413.jpg" item id="0010" qty="1.000" uom="EA" matnr="169941" bismt="J-547F198MK003" name="PLATE" hasBom="X" path="pdf/169941.pdf" image="pdf/thumbnails/169941.jpg" item id="0010" qty="0.200" uom="FT2" matnr="131877" bismt=" 008 302 72 61" name="PLATE(A572-50)1.00quot;" hasBom=""/ /item item id="0020" qty="1.000" uom="EA" matnr="169942" bismt="J-547F198MK004" name="PLATE" hasBom="X" path="pdf/169942.pdf" image="pdf/thumbnails/169942.jpg" item id="0010" qty="0.220" uom="FT2" matnr="131874" bismt=" 008 302 72 58" name="PLATE(A572-50).75quot;" hasBom=""/ /item /item /item /bom As for code, here is the mxml view I'm trying to create: ?xml version="1.0" encoding="utf-8"?mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" creationComplete="doPrint()" backgroundColor="#ff" mx:VBox height="396" width="535" id="atts" x="72" y="10" backgroundColor="#ff" mx:Label text="{product.name}" fontSize="11" fontWeight="bold"/ mx:Label text="MATNR: {product.matnr}" color="#EE8D0C"/ mx:Label text="BISMT: {product.bismt}" color="#EE8D0C"/ mx:Label text="UOM: {product.uom}" color="#EE8D0C"/mx:Label text="QTY: {product.qty}" color="#EE8D0C"/ mx:Image id="img" source="{product.image}" width="143" height="97"//mx:VBox /mx:Canvas The intent with the canvas is to use a CSS to create a template to publish the XML data to and then print it. I was originally trying to batch print PDFs, but since that can't really be done effectively in flex and I have all the data that is in the PDF, I'm trying to go the route 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. Sam, if you check your gmail account, I'll attach two files and some code snippets that I've been playing around with. Intended Workflow: Flex app initializes with XML data loaded into ArrayCollection of objects. User elects to "Print Catalog"--gets prompted with a SINGLE print dialog window. Flex app loops through ArrayCollection and sends each object to the abovemxml Canvas component for printing. Since the main problem is being created by the fact that the object is added to the print job before the image has loaded, I really think the solution lies in pre-loading the image before the canvas ever gets created. Wayne --- In flexcoders@yahoogroups.com, "Samuel Reuben" [EMAIL PROTECTED] wrote: Hi Wayne, Could you please post some code, possibally with the xml file to? It wi
[flexcoders] Re: Trouble Printing lots of images--PLEASE HELP!!!!!!
I thought about doing that, but am concerned about the possiblity of loading anywhere from 500 to 1000 2k-10k images into memory and how it will affect the system while waiting for all those images to load. Additionally, I need to add some metadata text which is also coming from the XML file. Which brings me back to one at a time or somehow preloading each image before the canvas is rendered. Wayne --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Hi Wayne, This a little out of my area, but maybe it will spark an idea. Instead of loading the images that you want to print, one-at-a- time, into a canvas. You could load all of the images, at the same time, into a Repeater (or a list-based control). On creationComplete of the Repeater, add the child (Repeater) to the PrintJob. If you are also embedding the images, this approach may consume 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 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 just pass the image to the canvas, the print command has executed before the image loads. If I use an event listener for the complete action on my canvas I get the print dialog for every canvas that tries to print, provided I instatiate a new FlexPrintJob in my event handler--as opposed to a global FlexPrintJob which simply results in an empty print job. I've tried writing a preloader using the Loader class and a sprite to hold the image and then add the sprite to my canvas, but my code fails at the addChild() statement at run time because flex cannot coerce the Loader into an IUIComponent. I've also tried a preinitialze event on my canvas which calls the image.Load command for an mx:image tag, but that doesn't work either. It seems like I'm running out of options here. I didn't think it would be so difficult to print multiple pages of images in Flex. Can someone please help Thanks Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Trouble Printing lots of images--PLEASE HELP!!!!!!
Unfortunately, when a user requests a print job it will mean print all the images. cacheAsBitmapbeen having problems with bitmaps as they don't seem to load into an IUIComponent. Any insite into possibly why? Wayne --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: 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 of loading anywhere from 500 to 1000 2k-10k images into memory and how it will affect the system while waiting for all those images to load. Additionally, I need to add some metadata text which is also coming from the XML file. Which brings me back to one at a time or somehow preloading each image before the canvas is rendered. Wayne --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Hi Wayne, This a little out of my area, but maybe it will spark an idea. Instead of loading the images that you want to print, one-at-a- time, into a canvas. You could load all of the images, at the same time, into a Repeater (or a list-based control). On creationComplete of the Repeater, add the child (Repeater) to the PrintJob. If you are also embedding the images, this approach may consume 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 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 just pass the image to the canvas, the print command has executed before the image loads. If I use an event listener for the complete action on my canvas I get the print dialog for every canvas that tries to print, provided I instatiate a new FlexPrintJob in my event handler--as opposed to a global FlexPrintJob which simply results in an empty print job. I've tried writing a preloader using the Loader class and a sprite to hold the image and then add the sprite to my canvas, but my code fails at the addChild() statement at run time because flex cannot coerce the Loader into an IUIComponent. I've also tried a preinitialze event on my canvas which calls the image.Load command for an mx:image tag, but that doesn't work either. It seems like I'm running out of options here. I didn't think it would be so difficult to print multiple pages of images in Flex. Can someone please help Thanks Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Trouble Printing lots of images--PLEASE HELP!!!!!!
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 just pass the image to the canvas, the print command has executed before the image loads. If I use an event listener for the complete action on my canvas I get the print dialog for every canvas that tries to print, provided I instatiate a new FlexPrintJob in my event handler--as opposed to a global FlexPrintJob which simply results in an empty print job. I've tried writing a preloader using the Loader class and a sprite to hold the image and then add the sprite to my canvas, but my code fails at the addChild() statement at run time because flex cannot coerce the Loader into an IUIComponent. I've also tried a preinitialze event on my canvas which calls the image.Load command for an mx:image tag, but that doesn't work either. It seems like I'm running out of options here. I didn't think it would be so difficult to print multiple pages of images in Flex. Can someone please help Thanks Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Bug in printing with test case (was Re: [flexcoders] Flex print jobs)
Hi Sam, I tried a few events and complete was the only one that would work. Unfortunately, the data (path to the images) is being fed via an XML file which is constantly being updated, so there is no way for me to embed the images. I'm trying to build a custom template batch printing solution in Flex. On one page, I need to be able to print the image, some text field metadata pertaining to the image, and a tree control that shows some descriptive hierarchy (an assembly tree for you CAD guys out there) for the image. But I need this to happen for a potentially large number of objects stored in a ArrayCollection. I'm wondering if I could send the data to a canvas view and then add that canvas to a viewstack, create a new view in the viewstack, and then repeat for all the data in my ArrayCollection. Once I have a viewstack with X views, send that viewstack to a print function to loop through the indexes and print. What would that do to performance if I had a viewstack of 500-1000 views? Wayne --- In flexcoders@yahoogroups.com, Samuel Reuben [EMAIL PROTECTED] wrote: Can you try proceeding with the printing on updateComplete event of the Image? 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 an event listener, however, causes a problem. I need to loop through a potentially large data set, push data (including a path to an image) to my print view and then send the print job. The user should only be prompted with the windows print window one time. I've tried instatiating a global FlexPrintJob variable, but that seems to cause an empty print job. How might I achieve what I'm looking to do? Thanks! Wayne --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, wayneposner wayne.posner@ 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 to the mix still does not yield a jpeg in the print output. I'll try the viewstack, but in th meantime my code is as follows: var printjob:FlexPrintJob=new FlexPrintJob(); printjob.start(); var pp:PartPrint=new PartPrint(); pp.product=bom[1]; this.addChild(pp); callLater(doPrint,[printjob,pp]); private function doPrint(printjob:FlexPrintJob, item:PartPrint):void { item.width=printjob.pageWidth; item.height=printjob.pageHeight printjob.addObject(item.atts); printjob.send(); } --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.com, Tom Chiverton tom.chiverton@ wrote: On Wednesday 09 August 2006 11:13, Samuel Reuben wrote: On 7/19/06, Tom Chiverton tom.chiverton@ wrote: On Wednesday 19 July 2006 10:39, Samuel Reuben wrote: Does this happen even when the object height/width is set? Does what happen ? The Silent failure ( Actually here nothing was sent to the printer, because no height or width was set ). Yes, setting a width/height by hand does make it print. Wayne - did you set width/height for the object you added to the print job, or just on the jpeg ? Can you try my work around (add the object to be printed to a viewstack and set the selectedIndex to display it just before printing) and see if that helps ? At the very least, if maybe your JPEG isn't being loaded, you get to see it not being loaded. Typing that, maybe try loading the JPEG, then calling the printer job via callLater(). -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about
[flexcoders] Re: adding and removing event listeners madness (flex1_5
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 height=25/ mx:HRule x=11 y=41 width=576 height=28/ mx:HSlider id=resultSlider styleName=glassSlider minimum=0 maximum=1000 tickInterval=50 snapInterval=10 width=150 thumbCount=1 value={resultStepper.value} labels=[0,1000] liveDragging=true change=updateStepper(); height=25 x=10 y=18/ Also add the following actionscript: private function updateStepper():void { resultStepper.value=resultSlider.value; } private function updateSlider():void { resultSlider.value=resultStepper.value; } Wayne --- In flexcoders@yahoogroups.com, ilya Devers [EMAIL PROTECTED] wrote: Hi, After a longtime just lurking i have ran into a mindboggling situation again. This is the setup: - regular cairngorm setup - a view with two inputs, an input and a slider - the slider has an snapInterval of 5000 - the text input has no Interval, obvious.. - when the user updates the slider he changes the input of the textfield - by pressing a button the user triggers the calculation - the text-input is bound to the value of the model - triggering the calculation broadcasts a cairngorm event that updates the model. This is a simplified situation to figure out what is happening, in the normal situation both input changes trigger the calculation. What I want to happen is: - user can use the slider to approximate the amount - user can use the textinput to input an specific amount, this sets the slider in the (snapintervalled rounded) area, but does not broadcast the cairngorm event (no change event should occur). How i tried to implement this (just my script block) import nl.robecodirect.rdinternet.model.ModelLocator; private var delegate:Function; function sliderChange(event){ valueChanged(event.target.value); } // called on init private function handleInitialize(){ delegate = mx.utils.Delegate.create(this, sliderChange); sliderBrutoJaarInkomen.addEventListener(change, delegate); } public function inputChange(event) { siderBrutoJaarInkomen.removeEventListener(change, delegate); sliderBrutoJaarInkomen.value=event.target.text; //this calls the EventBroadcaster.. valueChanged(event.target.text); sliderBrutoJaarInkomen.addEventListener(change, delegate); } What happens is, checked in long debugging,: After the complete cairngorm command and inputChange methods are finished, a new change event is fired from the slider, which sets the input box to the snapintervalled value... Why o why, it drives me crazy. Any insights, pointers, are welcome. A reborn flex newbie ;) ilya -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Bug in printing with test case (was Re: [flexcoders] Flex print jobs)
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? Like I said, adding those two lines allowed my object to start printing, but only the text is visible--no images. Wayne --- In flexcoders@yahoogroups.com, Samuel Reuben [EMAIL PROTECTED] wrote: On 7/19/06, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 19 July 2006 10:39, Samuel Reuben wrote: Does this happen even when the object height/width is set? Does what happen ? The Silent failure ( Actually here nothing was sent to the printer, because no height or width was set ). Silent failure or work around stops working ? Does the work around work :) ? I suppose a ValidateNow() could make a difference... I'm guessing that is different from the form validators ? it measures the components/containers and lays them out again, taking into consideration any newly set heights and widths. It's an expensive operaion so use it sparingly. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Bug in printing with test case (was Re: [flexcoders] Flex print jobs)
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 output. I'll try the viewstack, but in th meantime my code is as follows: var printjob:FlexPrintJob=new FlexPrintJob(); printjob.start(); var pp:PartPrint=new PartPrint(); pp.product=bom[1]; this.addChild(pp); callLater(doPrint,[printjob,pp]); private function doPrint(printjob:FlexPrintJob, item:PartPrint):void { item.width=printjob.pageWidth; item.height=printjob.pageHeight printjob.addObject(item.atts); printjob.send(); } --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 09 August 2006 11:13, Samuel Reuben wrote: On 7/19/06, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 19 July 2006 10:39, Samuel Reuben wrote: Does this happen even when the object height/width is set? Does what happen ? The Silent failure ( Actually here nothing was sent to the printer, because no height or width was set ). Yes, setting a width/height by hand does make it print. Wayne - did you set width/height for the object you added to the print job, or just on the jpeg ? Can you try my work around (add the object to be printed to a viewstack and set the selectedIndex to display it just before printing) and see if that helps ? At the very least, if maybe your JPEG isn't being loaded, you get to see it not being loaded. Typing that, maybe try loading the JPEG, then calling the printer job via callLater(). -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Bug in printing with test case (was Re: [flexcoders] Flex print jobs)
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 an event listener, however, causes a problem. I need to loop through a potentially large data set, push data (including a path to an image) to my print view and then send the print job. The user should only be prompted with the windows print window one time. I've tried instatiating a global FlexPrintJob variable, but that seems to cause an empty print job. How might I achieve what I'm looking to do? Thanks! Wayne --- In flexcoders@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 to the mix still does not yield a jpeg in the print output. I'll try the viewstack, but in th meantime my code is as follows: var printjob:FlexPrintJob=new FlexPrintJob(); printjob.start(); var pp:PartPrint=new PartPrint(); pp.product=bom[1]; this.addChild(pp); callLater(doPrint,[printjob,pp]); private function doPrint(printjob:FlexPrintJob, item:PartPrint):void { item.width=printjob.pageWidth; item.height=printjob.pageHeight printjob.addObject(item.atts); printjob.send(); } --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ wrote: On Wednesday 09 August 2006 11:13, Samuel Reuben wrote: On 7/19/06, Tom Chiverton tom.chiverton@ wrote: On Wednesday 19 July 2006 10:39, Samuel Reuben wrote: Does this happen even when the object height/width is set? Does what happen ? The Silent failure ( Actually here nothing was sent to the printer, because no height or width was set ). Yes, setting a width/height by hand does make it print. Wayne - did you set width/height for the object you added to the print job, or just on the jpeg ? Can you try my work around (add the object to be printed to a viewstack and set the selectedIndex to display it just before printing) and see if that helps ? At the very least, if maybe your JPEG isn't being loaded, you get to see it not being loaded. Typing that, maybe try loading the JPEG, then calling the printer job via callLater(). -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] ListBase.as -- didn't find all selected items
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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Help with SharedObject please!
Hi Tom... Thanks for that bit of infoThat allowed me to track down where the problem was and find what was preventing anything from being written to my shared object. It's actually pretty strange. I have an array collection that I am declaring as global and public in a mxml component. The variable initializes fine when running locally, but when running via URL, it never initializes for some reason. It was always coming back as null which was causing my catch statements to fire--hence no data in my shared object. A little tweaking of the code, and I was able to work 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 re-prompting me for the location of the debugger. Run fdb from the command line. Type run. Now access the debug SWF. Wayne Incidently it stops working isn't very helpful - exactly what happens ? -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Help with SharedObject please!
Well, my combo box displays the values from the SO when it's working so I have verification that way. Also, when running using the Flex Builder debug, I have trace statements going to the console which confirm data in my SO. No matter what, though, it won't get anything from my SO when 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 the shared object returns what it's supposed to. I'm still relatively new to flex so pardon my asking, but how do you configure flex to trace data from a deployed swf (ie. running from a url). I know if I try to just simply run the debug files generated by flex, I get prompted for where the debugger is running. Selecting localhost never seems to work for me as it just keeps re-prompting me for the location of the debugger. Wayne --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.com, Jeremy Lu wade.lu@ wrote: Looks like a security problem, can you trace the contents stored in the sharedobject and see if all data are kept there ? Jeremy. On 8/5/06, wayneposner wayne.posner@ 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 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 causing this? I haven't changed any compiler options except the default background color. Thanks! Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Help with SharedObject please!
If I trace it locally the shared object returns what it's supposed to. I'm still relatively new to flex so pardon my asking, but how do you configure flex to trace data from a deployed swf (ie. running from a url). I know if I try to just simply run the debug files generated by flex, I get prompted for where the debugger is running. Selecting localhost never seems to work for me as it just keeps re-prompting me for the location of the debugger. Wayne --- In flexcoders@yahoogroups.com, Jeremy Lu [EMAIL PROTECTED] wrote: Looks like a security problem, can you trace the contents 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 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 causing this? I haven't changed any compiler options except the default background color. Thanks! Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Help with SharedObject please!
I tried downloading the app. It seems to work fine on any shared object created with earlier versions of Flash, but I was unable to get it to read any of my Shared Objectes created with Flex 2/Flash 9. I know some of my SO's have data in them because I have the data it's retrieving being traced to my console. But like I said before, it only gets data when executing locally, not via a URL. Any other ideas?? Thanks! Wayne --- In flexcoders@yahoogroups.com, Jason [EMAIL PROTECTED] wrote: Sephiroth, the author of the awsome AS2 editor SE|PY, wrote a free SharedObject viewer that I think will help out with your debugging. http://www.sephiroth.it/python/solreader.php SharedObjects are stored in this location when running from local HD: C:\Documents and Settings\{USERNAME}\Application Data\Macromedia\Flash Player\#SharedObjects\N42WKXA7\localhost SharedObjects are stored in this location when running from a Web server with a domain: C:\Documents and Settings\{USERNAME}\Application Data\Macromedia\Flash Player\#SharedObjects\N42WKXA7\www.yourWebSite.com Also, be aware that unless you secify a domain location for the creation of the shared object then it will use the default namespace of the domain the SWF is on. There may be some new sandbox restrictions in Flex 2 that I do not know about that may be the cause of your problem. You can specify the location of where the SharedObject is created with the extra parameter: var 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 wayne.posner@ wrote: If I trace it locally the shared object returns what it's supposed to. I'm still relatively new to flex so pardon my asking, but how do you configure flex to trace data from a deployed swf (ie. running from a url). I know if I try to just simply run the debug files generated by flex, I get prompted for where the debugger is running. Selecting localhost never seems to work for me as it just keeps re-prompting me for the location of the debugger. Wayne --- In flexcoders@yahoogroups.com, Jeremy Lu wade.lu@ wrote: Looks like a security problem, can you trace the contents stored in the sharedobject and see if all data are kept there ? Jeremy. On 8/5/06, wayneposner wayne.posner@ 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 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 causing this? I haven't changed any compiler options except the default background color. Thanks! Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Help with SharedObject please!
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 causing this? I haven't changed any compiler options except the default background color. Thanks! Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Photoviewer example--why no access to class variables?
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 null? For example mx:Binding source=service.galleries.getItemAt(0) destination=gallery / works fine, but if you tried to do: var o:Object=service.galleries.getItemAt(0), o would be null (provided there were no cast exceptions). Thanks! Wayne Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex Developer Needed
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 clients worldwide, specifically targeting automotive, aerospace and defense industries. Responsibilities for this position include Development of Rich Internet Applications (RIAs) with Flex. Participate in benchmarks, POC's and pilot projects Conduct training seminars at Right Hemisphere offices and customer sites Requirements 1+ years experience Rich Internet Applications (RIAs) with Flex. 5 years software development experience in C++, C#, SQL, XML, Java-scripting, ASP .NET Framework Excellent interpersonal, communication, persuasion, presentation and writing skills. Experience with Windows 2000/XP Operating Systems Must be willing to work in a fast paced start-up environment with multiple roles Bachelor's degree is a must Must be willing to travel some (possibly a few days a month) In addition, the following qualities are highly regarded Knowledge of the engineering visualization and collaboration space Knowledge of technical publications tools and workflows Knowledge of CG rendering based on CAD reuse Knowledge of interactive training solutions If interested, please click my profile and use the Send Email link to forward me your resume. Thanks! Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex Consultant Needed
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! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Batch PDF Printing possible yet?
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 out there that will print the pdf into an swf which can then be printed from within the flash player, but those will not work as each PDF contains embded 3D objects. Only Acrobat and/or Reader currently know how to handle the 3D object. So basically, I need to somehow, programatically, invoke the Acrobat print function from within the flash UI. Doable??? Thanks! Wayne Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Building flat data object based on XML file with complicated structure
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 path=pdf/347564.pdf image=pdf/thumbnails/347564.jpg item id=0001 qty=1.000 uom=EA matnr=313551 bismt=DBT313551 name=CLUTCH COVER MACH. hasBom=X path=pdf/313551.pdf image=pdf/thumbnails/313551.jpg item id=0001 qty=1.000 uom=EA matnr=313552 bismt=DBT313552 name=CLUTCH COVER WELDMENT hasBom=X path=pdf/313552.pdf image=pdf/thumbnails/313552.jpg item id=0001 qty=1.000 uom=EA matnr=169902 bismt=J-548F613MK002 name=HR PLATE hasBom=X path=pdf/169902.pdf image=pdf/thumbnails/169902.jpg item id=0010 qty=2.000 uom=FT2 matnr=131877 bismt= 008 302 72 61 name=PLATE(A572-50)1.00quot; hasBom=/ /item item id=0002 qty=1.000 uom=EA matnr=313554 bismt=DBT313554 name=TUBING hasBom=X path=pdf/313554.pdf image=pdf/thumbnails/313554.jpg item id=0001 qty=0.660 uom=IN matnr=169626 bismt=J-294-07-026 name=15X13-1/2 TUBING C1026 hasBom=/ /item item id=0003 qty=1.000 uom=EA matnr=169903 bismt=J-548F613MK003 name=PLATE hasBom=X path=pdf/169903.pdf image=pdf/thumbnails/169903.jpg item id=0010 qty=1.200 uom=FT2 matnr=131872 bismt= 008 302 72 55 name=PLATE(A572-50).50quot; hasBom=/ /item item id=0004 qty=1.000 uom=EA matnr=313556 bismt=DBT313556 name=END TUBE hasBom=X path=pdf/313556.pdf image=pdf/thumbnails/313556.jpg item id=0001 qty=0.800 uom=FT2 matnr=131883 bismt= 008 302 72 67 name=PLATE(A572-50)1.50quot; hasBom=/ /item item id=0005 qty=1.000 uom=EA matnr=313557 bismt=DBT313557 name=END PLATE hasBom=X path=pdf/313557.pdf image=pdf/thumbnails/313557.jpg item id=0001 qty=0.600 uom=FT2 matnr=131872 bismt= 008 302 72 55 name=PLATE(A572-50).50quot; hasBom=/ /item /item /item /item I've been trying to build an array of objects of it and flatten it down so that each item node would simply be an entry in the array. If I use a recursive function, I only get the deepest node returned. If I use the for each (var prop:XML in myXML.item) loop I only get the children of the root and not the grandchildren. How do I get EVERY node??? Thanks! Wayne Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Building flat data object based on XML file with complicated structure
H Let's try again :) item id=0006 name=ASSY, SPLIT CLUTCH COVER item id=0001 name=SPLIT CLUTCH COVER item id=0001 name=CLUTCH COVER MACH. item id=0001 name=CLUTCH COVER WELDMENT item id=0001 name=HR PLATE item id=0010 name=PLATE(A572-50)/ /item item id=0002 name=TUBING item id=0001 name=15X13-1/2 TUBING C1026/ /item item id=0003 name=PLATE item id=0010 name=PLATE(A572-50)/ /item item id=0004 name=END TUBE item id=0001 name=PLATE(A572-50)/ /item item id=0005 name=END PLATE item id=0001 name=PLATE(A572-50)/ /item /item /item /item I removed some of the extra attributes to get it to format correctly. Hopefully this works. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL 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, 2006 2:44 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Building flat data object based on XML file with complicated structure 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 path=pdf/347564.pdf image=pdf/thumbnails/347564.jpg item id=0001 qty=1.000 uom=EA matnr=313551 bismt=DBT313551 name=CLUTCH COVER MACH. hasBom=X path=pdf/313551.pdf image=pdf/thumbnails/313551.jpg item id=0001 qty=1.000 uom=EA matnr=313552 bismt=DBT313552 name=CLUTCH COVER WELDMENT hasBom=X path=pdf/313552.pdf image=pdf/thumbnails/313552.jpg item id=0001 qty=1.000 uom=EA matnr=169902 bismt=J-548F613MK002 name=HR PLATE hasBom=X path=pdf/169902.pdf image=pdf/thumbnails/169902.jpg item id=0010 qty=2.000 uom=FT2 matnr=131877 bismt= 008 302 72 61 name=PLATE(A572-50)1.00quot; hasBom=/ /item item id=0002 qty=1.000 uom=EA matnr=313554 bismt=DBT313554 name=TUBING hasBom=X path=pdf/313554.pdf image=pdf/thumbnails/313554.jpg item id=0001 qty=0.660 uom=IN matnr=169626 bismt=J-294-07-026 name=15X13-1/2 TUBING C1026 hasBom=/ /item item id=0003 qty=1.000 uom=EA matnr=169903 bismt=J-548F613MK003 name=PLATE hasBom=X path=pdf/169903.pdf image=pdf/thumbnails/169903.jpg item id=0010 qty=1.200 uom=FT2 matnr=131872 bismt= 008 302 72 55 name=PLATE(A572-50).50quot; hasBom=/ /item item id=0004 qty=1.000 uom=EA matnr=313556 bismt=DBT313556 name=END TUBE hasBom=X path=pdf/313556.pdf image=pdf/thumbnails/313556.jpg item id=0001 qty=0.800 uom=FT2 matnr=131883 bismt= 008 302 72 67 name=PLATE(A572-50)1.50quot; hasBom=/ /item item id=0005 qty=1.000 uom=EA matnr=313557 bismt=DBT313557 name=END PLATE hasBom=X path=pdf/313557.pdf image=pdf/thumbnails/313557.jpg item id=0001 qty=0.600 uom=FT2 matnr=131872 bismt= 008 302 72 55 name=PLATE(A572-50).50quot; hasBom=/ /item /item /item /item I've been trying to build an array of objects of it and flatten it down so that each item node would simply be an entry in the array. If I use a recursive function, I only get the deepest node returned. If I use the for each (var prop:XML in myXML.item) loop I only get the children of the root and not the grandchildren. How do I get EVERY node??? Thanks! Wayne Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Building flat data object based on XML file with complicated structure
Hi Tracy.. Thanks so much, your code got me on the right track. Some slight modifications gave me exactly what I needed! As for the XML, I must not have copied/pasted enough info from the full xml file. Thanks again for your help! You rock!!! Wayne -- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: BTW, you xml is not valid, the closing tag is missing on the End Plate node. I fixed it in my example Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Wednesday, June 21, 2006 9:06 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Building flat data object based on XML file with complicated structure Try this sample app. If I have understood you correctly, it should do what you want. The key is the descendants property. Tracy ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=buildArray() mx:Script![CDATA[ private function buildArray() :void { var aNodes:Array = new Array(); var xmlToProcess:XML = item id=0006 name=ASSY, SPLIT CLUTCH COVER item id=0001 name=SPLIT CLUTCH COVER item id=0001 name=CLUTCH COVER MACH. item id=0001 name=CLUTCH COVER WELDMENT item id=0001 name=HR PLATE item id=0010 name=PLATE(A572-50)/ /item item id=0002 name=TUBING item id=0001 name=15X13-1/2 TUBING C1026/ /item item id=0003 name=PLATE item id=0010 name=PLATE(A572-50)/ /item item id=0004 name=END TUBE item id=0001 name=PLATE(A572-50)/ /item item id=0005 name=END PLATE item id=0001 name=PLATE(A572-50)/ /item /item /item /item /item var xlConverted:XMLList = xmlToProcess.descendants(*); trace (xlConverted.length()); var xmlNode:XML; for (var i:int = 0; i xlConverted.length(); i++) { xmlNode = xlConverted[i]; 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: Wednesday, June 21, 2006 7:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Building flat data object based on XML file with complicated structure H Let's try again :) item id=0006 name=ASSY, SPLIT CLUTCH COVER item id=0001 name=SPLIT CLUTCH COVER item id=0001 name=CLUTCH COVER MACH. item id=0001 name=CLUTCH COVER WELDMENT item id=0001 name=HR PLATE item id=0010 name=PLATE(A572-50)/ /item item id=0002 name=TUBING item id=0001 name=15X13-1/2 TUBING C1026/ /item item id=0003 name=PLATE item id=0010 name=PLATE(A572-50)/ /item item id=0004 name=END TUBE item id=0001 name=PLATE(A572-50)/ /item item id=0005 name=END PLATE item id=0001 name=PLATE(A572-50)/ /item /item /item /item I removed some of the extra attributes to get it to format correctly. Hopefully this works. --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Tracy Spratt tspratt@ 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:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of wayneposner Sent: Wednesday, June 21, 2006 2:44 PM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Building flat data object based on XML file with complicated structure 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 path=pdf/347564.pdf image=pdf/thumbnails/347564.jpg item id=0001 qty=1.000 uom=EA matnr=313551 bismt=DBT313551 name=CLUTCH COVER MACH. hasBom=X path=pdf/313551.pdf image=pdf/thumbnails/313551.jpg item id=0001 qty=1.000 uom=EA matnr=313552 bismt=DBT313552 name=CLUTCH COVER WELDMENT hasBom=X path=pdf/313552.pdf image=pdf/thumbnails/313552.jpg item id=0001 qty=1.000 uom=EA matnr=169902 bismt=J-548F613MK002 name=HR PLATE hasBom=X path=pdf/169902
[flexcoders] Fully Expand Tree in Flex Beta 3
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 i:Number=0; var node:mx.controls.treeclasses.TreeNode=t.getTreeNodeAt(i); while (node != undefined){ if (t.getIsBranch(node) ! t.getIsOpen(node)){ t.setIsOpen(node,true); } i++; node=t.getNodeDisplayedAt(i); } } but i've been unsuccessful in finding the appropriate classes for getTreeNodeAt and TreeNode. I read somewhere to use ITreeDataDescriptor but it does not work with DisplayObjects (getChildAt). Someone please help! :) Thanks! Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Fully Expand Tree in Flex Beta 3
--- 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 response! They sure did make it easier between versions Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Popup window Change event is broken!!!
I posted the following message yesterday and have done a ton of testing. It now seems apparant that any events executed the list component in a popup window simmply do not execute. I created the exact same window as a standalone application and the code functions as expected. However, move the code to a popup and it fails with no error. It just doesn't work. What email address at adobe do we send bugs to? I'm writing an application that will be deployed at a customer site and I've got to get this piece of functionality working. Can anyone help???!!! --- In flexcoders@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 but that didn't do anything. I've tried catching the event in the debugger, but it just doesn't recognize that anything has been selected. The init method works fine. Here is my code: mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute title=Select Recent Search close=PopUpManager.removePopUp(this); mouseDown=PopUpManager.removePopUp(this); creationComplete=init () height=276 mx:List id=listItems change=itemSelected(event); labelField=string width=100% height=100%/ mx:Script ![CDATA[ import mx.utils.ArrayUtil; import mx.collections.ArrayCollection; import mx.managers.PopUpManager; import ESS.*; import mx.events.*; import mx.controls.*; import ESS.XMLDataClass; public var _data:XMLDataClass = new XMLDataClass(); private function init():void { var so:SharedObject=SharedObject.getLocal(lastSearch); listItems.dataProvider=so.data.searchString; trace(so.data.searchString); private function itemSelected(event:Event):void { var _searchHistorySelection:Object=event.target.selectedItem; dispatchEvent (new ReturnDataEvent(searchHistorySelected, _searchHistorySelection)); } Any help would be greatly appreciated! Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Flex2B3 List -- selecting item not doing anything
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 event in the debugger, but it just doesn't recognize that anything has been selected. The init method works fine. Here is my code: mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute title=Select Recent Search close=PopUpManager.removePopUp(this); mouseDown=PopUpManager.removePopUp(this); creationComplete=init () height=276 mx:List id=listItems change=itemSelected(event); labelField=string width=100% height=100%/ mx:Script ![CDATA[ import mx.utils.ArrayUtil; import mx.collections.ArrayCollection; import mx.managers.PopUpManager; import ESS.*; import mx.events.*; import mx.controls.*; import ESS.XMLDataClass; public var _data:XMLDataClass = new XMLDataClass(); private function init():void { var so:SharedObject=SharedObject.getLocal(lastSearch); listItems.dataProvider=so.data.searchString; trace(so.data.searchString); private function itemSelected(event:Event):void { var _searchHistorySelection:Object=event.target.selectedItem; dispatchEvent (new ReturnDataEvent(searchHistorySelected, _searchHistorySelection)); } Any help would be greatly appreciated! Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Clearing Thumbnails from a panel??
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 to happen, though if I go that route is to purge the results currently on the screen. I've been playing around with the FlexStore example trying to do this. I implmented the search bar so that I can type in the phone name and it will display the selected phone. I've also modified the code to only load the selected phone after the search button is click (so it reads and caches the XML data, but doesn't display anything on the screen). If I type in another query, though, the new thumbnail just appears on top of the previous thumbnail. How do I re-initialize the catalogPanel so that it blanks the panel before displaying the results of the new search? I've tried using the removeAllChildren to make sure there is nothing on the catalogPanel followed by a addchild(products), but I end up with pretty much the same result. I would think that executing a removeAllChildren as part of a button click event would ensure that everytime the button is clicked, the panel is blanked. What am I doing wrong??? Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Clearing Thumbnails from a panel??
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 the search result set is greater than 100, which I have actually found--the issue is that it keeps catalogPanel.thumbs [i] from populating with the necessary records to do an active filter search. So what I'm trying to do is: General search--user clicks search button after entering text Results returned, but only displayed if record count 100 If results are greater than 100, user can type in a second search box which should filter (active search) the result set and display results once the record count is below 100. I've got the general search working along with the active search but only if I display all results returned from the initial query. Thanks! Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Large XML Dataset?
--- 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Large XML Dataset?
--- 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 within your HTTP request and have the server pass back only the data that match those criteria. Hope that helps, Doug Initially, the XML will be generated by a server, but after that, the server is completely out of the picture. Unfortunately, the XML will then be on burnt to CD which may then be copied to some stand-alone PC. There will be no server involved once the swf is running. Any other ideas? Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Large XML Dataset?
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 open up the XML file and try to read in everything. This works fine for 500- 1000 records, but, unfortunately, has some pretty nasty effects when dealing with about 12000 thumbnails. When it comes to reading XML I'm not sure of e4x, object, or XML is the most efficent result set. Regardless...is there a way to open the XML file, but not read from it until a user enters a search and then only return nodes from the XML which match the search? Basically, I want to use the XML file as sort of a virtual database. The reason I have to go this route is that the application will be delivered via CD and is meant to run as a desktop application. Thanks! Wayne -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/