Re: [flexcoders] Is there a way to tell flash NOT to render a certain area?
right. its for lazy loading. when the scroll thumb goes into the hot area then it sends requests to the server for new content. when new content is received i create a new container and add it to the accordion with addChildAt(newContainer, 0); to make sure it is before existing content. to keep a natural feel the view should stay where it is, where the user has the mouse down on the scroll thumb. code example. this isn't showing lazy loading. it is only showing that when adding a container before exiting content that new container is selected ?xml version=1.0 encoding=utf-8? s:Application xmlns:code=http://code.google.com/p/flexlib/2010/; xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:mx=library://ns.adobe.com/flex/mx xmlns:s=library://ns.adobe.com/flex/spark fx:Script ![CDATA[ private var item:int; private var itemAfter:int; protected function addBefore_clickHandler(event:MouseEvent):void { var prevIndex:int = accordion.selectedIndex; var canvas:Canvas = new Canvas(); var label:Label = new Label(); label.text = item + --item; canvas.addChild(label); // when we add to the beginning of the current content it becomes selected accordion.addChildAt(canvas, 0); // to keep the selected item the same you must set the index // or the new item will be selected //accordion.selectedIndex = ++prevIndex; } protected function addAfter_clickHandler(event:MouseEvent):void { var prevIndex:int = accordion.selectedIndex; var canvas:Canvas = new Canvas(); var label:Label = new Label(); label.text = item + accordion.numChildren; canvas.addChild(label); // add to the end of the current content accordion.addChild(canvas); } ]] /fx:Script fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations s:Scroller height=100% width=100% s:Group code:HAccordion id=accordion height=200 width=100% mx:Canvas s:Label text=item 0/ /mx:Canvas mx:Canvas s:Label text=item 1/ /mx:Canvas mx:Canvas s:Label text=item 2/ /mx:Canvas mx:Canvas s:Label text=item 3/ /mx:Canvas /code:HAccordion /s:Group /s:Scroller s:Button label=add before y=200 click=addBefore_clickHandler(event)/ s:Button label=add after y=230 click=addAfter_clickHandler(event)/ /s:Application On Tue, Jul 13, 2010 at 12:49 AM, Alex Harui aha...@adobe.com wrote: I’m having trouble picturing an accordion with scrollbars. But if it did, why wouldn’t the scrollbar be tuned for the total number of children? Why are children being added as you scroll? On 7/12/10 6:59 PM, dorkiedorkfromdorkt...@gmail.com dorkiedorkfromdorkt...@gmail.com wrote: In that case, I'll elaborate on the situation... I am using a horizontal Accordion component with newest items to the right. When you scroll left you get to a location where more items are added. As you add each item the scrollbar thumb track jumps to the right and then jumps back to where the mouse is. This happens every time a new item is added to the accordion. On Mon, Jul 12, 2010 at 6:35 PM, Alex Harui aha...@adobe.com wrote: Flash renders what is visible and on the display list. UIComponent is invisible until creationComplete and theoretically, it and all of its children shouldn’t be changing after then. Or make it visible=false until you know it is ready. On 7/12/10 2:37 PM, dorkiedorkfromdorkt...@gmail.com http://dorkiedorkfromdorkt...@gmail.com dorkiedorkfromdorkt...@gmail.com http://dorkiedorkfromdorkt...@gmail.com wrote: There's a component that I'm adding child components too it. When I do this there's a flash as the component is added and resized and then put into the right position. Is there a way to prevent a square area from being rendered for a second or two? I can fix the issue but I'd have to go into UIComponent and mess with the base classes. Since I've run into this before (elastic race track) and will in the future its seems a reasonable request. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Is there a way to tell flash NOT to render a certain area?
On Tuesday 13 Jul 2010 08:48:43 you wrote: right. its for lazy loading. when the scroll thumb goes into the hot area then it sends requests to the server for new content. when new content is received i create a new container Why not create an empty 'dummy' container before firing the request, then populate it when it comes back ? -- Tom Chiverton Helping to completely utilize interactive transparent customers as part of the IT team of the year 2010, '09 and '08 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. 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 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Is there a way to tell flash NOT to render a certain area?
i tried both adding it before and after data is available. the data isn't necessary. its as soon as i add a new container to the beginning of the accordion 2010/7/13 Tom Chiverton tom.chiver...@halliwells.com On Tuesday 13 Jul 2010 08:48:43 you wrote: right. its for lazy loading. when the scroll thumb goes into the hot area then it sends requests to the server for new content. when new content is received i create a new container Why not create an empty 'dummy' container before firing the request, then populate it when it comes back ? -- Tom Chiverton Helping to completely utilize interactive transparent customers as part of the IT team of the year 2010, '09 and '08 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. 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 2500. For more information about Halliwells LLP visit www.Halliwells.com.
Re: [flexcoders] Is there a way to tell flash NOT to render a certain area?
I think what I'm looking for is a way to have it not apply any updates for a few frames. In the same way includeInLayout set to false causes it to be skipped in the layout, something similar to prevent any updates to scroll position. On Tue, Jul 13, 2010 at 3:54 AM, dorkie dork from dorktown dorkiedorkfromdorkt...@gmail.com wrote: i tried both adding it before and after data is available. the data isn't necessary. its as soon as i add a new container to the beginning of the accordion 2010/7/13 Tom Chiverton tom.chiver...@halliwells.com On Tuesday 13 Jul 2010 08:48:43 you wrote: right. its for lazy loading. when the scroll thumb goes into the hot area then it sends requests to the server for new content. when new content is received i create a new container Why not create an empty 'dummy' container before firing the request, then populate it when it comes back ? -- Tom Chiverton Helping to completely utilize interactive transparent customers as part of the IT team of the year 2010, '09 and '08 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. 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 2500. For more information about Halliwells LLP visit www.Halliwells.com.
Re: [flexcoders] Is there a way to tell flash NOT to render a certain area?
I’m still lost. Are you trying to control the wrapping Scroller’s scrollbar or is there a scrollbar in your Haccordion? I think I would build one into the Haccordion that knows how many children exist. That’s how List and others handle virtualized renderers. On 7/13/10 2:52 AM, dorkiedorkfromdorkt...@gmail.com dorkiedorkfromdorkt...@gmail.com wrote: I think what I'm looking for is a way to have it not apply any updates for a few frames. In the same way includeInLayout set to false causes it to be skipped in the layout, something similar to prevent any updates to scroll position. On Tue, Jul 13, 2010 at 3:54 AM, dorkie dork from dorktown dorkiedorkfromdorkt...@gmail.com wrote: i tried both adding it before and after data is available. the data isn't necessary. its as soon as i add a new container to the beginning of the accordion 2010/7/13 Tom Chiverton tom.chiver...@halliwells.com On Tuesday 13 Jul 2010 08:48:43 you wrote: right. its for lazy loading. when the scroll thumb goes into the hot area then it sends requests to the server for new content. when new content is received i create a new container Why not create an empty 'dummy' container before firing the request, then populate it when it comes back ? -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Is there a way to tell flash NOT to render a certain area?
that makes sense. i wanted to make sure there wasn't any other options before working on that. ps the scroller scrollerbar. the mxml example doesn't show that. On Tue, Jul 13, 2010 at 12:14 PM, Alex Harui aha...@adobe.com wrote: I’m still lost. Are you trying to control the wrapping Scroller’s scrollbar or is there a scrollbar in your Haccordion? I think I would build one into the Haccordion that knows how many children exist. That’s how List and others handle virtualized renderers. On 7/13/10 2:52 AM, dorkiedorkfromdorkt...@gmail.com dorkiedorkfromdorkt...@gmail.com wrote: I think what I'm looking for is a way to have it not apply any updates for a few frames. In the same way includeInLayout set to false causes it to be skipped in the layout, something similar to prevent any updates to scroll position. On Tue, Jul 13, 2010 at 3:54 AM, dorkie dork from dorktown dorkiedorkfromdorkt...@gmail.com wrote: i tried both adding it before and after data is available. the data isn't necessary. its as soon as i add a new container to the beginning of the accordion 2010/7/13 Tom Chiverton tom.chiver...@halliwells.com On Tuesday 13 Jul 2010 08:48:43 you wrote: right. its for lazy loading. when the scroll thumb goes into the hot area then it sends requests to the server for new content. when new content is received i create a new container Why not create an empty 'dummy' container before firing the request, then populate it when it comes back ? -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Is there a way to tell flash NOT to render a certain area?
Flash renders what is visible and on the display list. UIComponent is invisible until creationComplete and theoretically, it and all of its children shouldn’t be changing after then. Or make it visible=false until you know it is ready. On 7/12/10 2:37 PM, dorkiedorkfromdorkt...@gmail.com dorkiedorkfromdorkt...@gmail.com wrote: There's a component that I'm adding child components too it. When I do this there's a flash as the component is added and resized and then put into the right position. Is there a way to prevent a square area from being rendered for a second or two? I can fix the issue but I'd have to go into UIComponent and mess with the base classes. Since I've run into this before (elastic race track) and will in the future its seems a reasonable request. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Is there a way to tell flash NOT to render a certain area?
In that case, I'll elaborate on the situation... I am using a horizontal Accordion component with newest items to the right. When you scroll left you get to a location where more items are added. As you add each item the scrollbar thumb track jumps to the right and then jumps back to where the mouse is. This happens every time a new item is added to the accordion. On Mon, Jul 12, 2010 at 6:35 PM, Alex Harui aha...@adobe.com wrote: Flash renders what is visible and on the display list. UIComponent is invisible until creationComplete and theoretically, it and all of its children shouldn’t be changing after then. Or make it visible=false until you know it is ready. On 7/12/10 2:37 PM, dorkiedorkfromdorkt...@gmail.com dorkiedorkfromdorkt...@gmail.com wrote: There's a component that I'm adding child components too it. When I do this there's a flash as the component is added and resized and then put into the right position. Is there a way to prevent a square area from being rendered for a second or two? I can fix the issue but I'd have to go into UIComponent and mess with the base classes. Since I've run into this before (elastic race track) and will in the future its seems a reasonable request. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Is there a way to tell flash NOT to render a certain area?
I’m having trouble picturing an accordion with scrollbars. But if it did, why wouldn’t the scrollbar be tuned for the total number of children? Why are children being added as you scroll? On 7/12/10 6:59 PM, dorkiedorkfromdorkt...@gmail.com dorkiedorkfromdorkt...@gmail.com wrote: In that case, I'll elaborate on the situation... I am using a horizontal Accordion component with newest items to the right. When you scroll left you get to a location where more items are added. As you add each item the scrollbar thumb track jumps to the right and then jumps back to where the mouse is. This happens every time a new item is added to the accordion. On Mon, Jul 12, 2010 at 6:35 PM, Alex Harui aha...@adobe.com wrote: Flash renders what is visible and on the display list. UIComponent is invisible until creationComplete and theoretically, it and all of its children shouldn’t be changing after then. Or make it visible=false until you know it is ready. On 7/12/10 2:37 PM, dorkiedorkfromdorkt...@gmail.com http://dorkiedorkfromdorkt...@gmail.com dorkiedorkfromdorkt...@gmail.com http://dorkiedorkfromdorkt...@gmail.com wrote: There's a component that I'm adding child components too it. When I do this there's a flash as the component is added and resized and then put into the right position. Is there a way to prevent a square area from being rendered for a second or two? I can fix the issue but I'd have to go into UIComponent and mess with the base classes. Since I've run into this before (elastic race track) and will in the future its seems a reasonable request. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui