Re: [flexcoders] [Flex2] Children of a component don't refresh display
Hi everybody Sorry for the latency due to the lag... Ok so I'll try to put my data in a new bindable property of my component instead of the dataObject (or wait to the next release). For info, my textfield is not in a cellrender, is just in a canvas. -- 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] HTTPService to a php script with multiple function
Hi there, I use httpservice for reeaching php script and communicate with mysql. All works fine but I have make one httpservice by function I need to call on my php script... Is there a more simple way so I can have one single httpservice component that can use many php function ? I try to work with webservice and nusoap but the xsd:array return don't seems to be supported... Thanks for any help -- Flapflap -- 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: Null vs undefined vs
Setting var = undefined has no effect. They are part of a class object being sent thru the gateway so maybe that is why. Some objects in the parent object may be null while others may not be. I will try deleting the ones that need to be null and see what happens. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: What happens when you set the variable = undefined? I would have expected this to work. If you delete a variable: delete myVar; then try to access it, it returns undefined. Maybe you could use that behavior. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Libby Sent: Wednesday, January 11, 2006 5:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Null vs undefined vs Hello people! This question is about Flex 1.5. My app passes some String vars thru the Flex gateway to Java. When the var = undefined on the Flex side, it translates to null on the java side, which is great. When the var = (null String) on the flex side, it translates to a String() on the java side, which ain't null. I would like to check for on the Flex side and convert those values to something that translates thru the gateway as a null object, but so far I can't get it to happen. Values are only undefined before they are used; once used and cleared out, they become and can evidently never be set back to undefined again. So my actual question is, what can I set the object to be that will translate as null going thru the gateway? I have tried: setting them to undefined; setting myVar = null; setting myVar = x (an undefined variable); several other combinations. Thanks, Libby -- 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/
[flexcoders] Re: ViewStack creationIndex
Superabe, Here's an example of what I was referring to. It looks like it works... Is this what you intended to accomplish? The more images you add within each container, the more apparent the load/wait to load becomes. ?xml version=1.0 encoding=utf-8? mx:Application width=100% height=100% xmlns:mx=http://www.macromedia.com/2003/mxml; vScrollPolicy=off initialize=initPage(); mx:TabNavigator id=myNavigator hScrollPolicy=off vScrollPolicy=off height=100% width=100% creationPolicy=none marginTop=0 mx:VBox label=View 1 mx:Image source=http://www.visualconcepts.ca/mc_pics/DSCF0018.JPG; / /mx:VBox mx:VBox label=View 2 mx:Image source=http://www.visualconcepts.ca/mc_pics/DSCF0022.JPG; / /mx:VBox mx:VBox label=View 3 mx:Image source=http://www.visualconcepts.ca/mc_pics/DSCF0027.JPG; / /mx:VBox /mx:TabNavigator mx:Script ![CDATA[ private function initPage():Void { myNavigator.createComponent(0, true); myNavigator.createComponent(1, false); myNavigator.createComponent(2, true); } ]] /mx:Script /mx:Application The description for this is found here: http://livedocs.macromedia.com/flex/15/flex_docs_en/1145.htm Hope this helps. Brendan --- In flexcoders@yahoogroups.com, superabe superabe [EMAIL PROTECTED] wrote: Hi Bendan, Thanks for the tip, Can you elaborate some more on what you mean by manually instantiate the children using createComponent with recursion set to true. Where is the createComponent method defined ? - superabe On 1/11/06, Brendan Meutzner [EMAIL PROTECTED] wrote: Superabe, Try setting creationPolicy=none and manually instantiate the children using createComponent with recursion set to true. Haven't tried this, so let me know if this helps. Brendan --- In flexcoders@yahoogroups.com, superabe superabe [EMAIL PROTECTED] wrote: Hi list, Is there any way to combine the effects of creationPolicy=auto and creationPolicy=queued within the same ViewStack. So for e.g. ViewStack Child1/ Child2/ Child3/ /ViewStack When the app loads I would like Child1 to be created completely first, Child 3 to be created completely second and would like Child 2 to be created only when the user navigates to that. Is that at all possible ? TIA - superabe -- 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/
[flexcoders] AS3 Camera Class
Hi there, Finally starting with Flex 2. I was trying out some stuff with the camera Class but I get this error: ReferenceError: Error #1069: Property getCamera not found on class Camera and there is no default value at Camera/initApli()[C:\Documents and Settings\bogos\My Documents\Flex\Camera\Camera.mxml:12] at Camera/___Application0_creationComplete()[C:\Documents and Settings\bogos\My Documents\Flex\Camera\Camera.mxml:3] at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/mx.core:UIComponent$protected::dispatchCreationCompleteEvent()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:5860] at mx.core::UIComponent$/http://www.macromedia.com/2005/flex/mx/internal::dispatchCreationCompleteEvents()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:1085] at mx.managers::LayoutManager/LayoutManager$1689$private::doPhasedInstantiation()[C:\dev\max\sdk\frameworks\mx\managers\LayoutManager.as:556] at mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher2()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:7168] at mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:7107] But the AS3 Reference Doc here (http://livedocs.macromedia.com/labs/1/flex/langref/flash/media/Camera.html) says that I have a getCamera method. Sample : ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* creationComplete=initApli() mx:Script ![CDATA[ import flash.media.Camera; import flash.media.Video; public var video:Video; public function initApli():Void{ var mycam:Camera = getCamera(); video = new Video(); video.attachCamera(mycam); } ]] /mx:Script /mx:Application Any idea? Thanks, João Fernandes Secção de Desenvolvimento Departamento de Informática -- 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] Re: AS3 Camera Class
João, getCamera is a static method on the Camera class... Try this: var mycam:Camera = Camera.getCamera(); Brendan --- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED] wrote: Hi there, Finally starting with Flex 2. I was trying out some stuff with the camera Class but I get this error: ReferenceError: Error #1069: Property getCamera not found on class Camera and there is no default value at Camera/initApli()[C:\Documents and Settings\bogos\My Documents\Flex\Camera\Camera.mxml:12] at Camera/___Application0_creationComplete()[C:\Documents and Settings\bogos\My Documents\Flex\Camera\Camera.mxml:3] at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/mx.core:UIComponent$protected::dispatchCreationCompleteEvent()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:5860] at mx.core::UIComponent$/http://www.macromedia.com/2005/flex/mx/internal::dispatchCreationCompleteEvents()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:1085] at mx.managers::LayoutManager/LayoutManager$1689$private::doPhasedInstantiation()[C:\dev\max\sdk\frameworks\mx\managers\LayoutManager.as:556] at mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher2()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:7168] at mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:7107] But the AS3 Reference Doc here (http://livedocs.macromedia.com/labs/1/flex/langref/flash/media/Camera.html) says that I have a getCamera method. Sample : ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* creationComplete=initApli() mx:Script ![CDATA[ import flash.media.Camera; import flash.media.Video; public var video:Video; public function initApli():Void{ var mycam:Camera = getCamera(); video = new Video(); video.attachCamera(mycam); } ]] /mx:Script /mx:Application Any idea? Thanks, João Fernandes Secção de Desenvolvimento Departamento de Informática -- 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/
RE: [flexcoders] Re: AS3 Camera Class
Well, Thats what I first tried and got the same error. João Fernandes Secção de Desenvolvimento Departamento de Informática From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner Sent: quinta-feira, 12 de Janeiro de 2006 15:25 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AS3 Camera Class João, getCamera is a static method on the Camera class... Try this: var mycam:Camera = Camera.getCamera(); Brendan --- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED] wrote: Hi there, Finally starting with Flex 2. I was trying out some stuff with the camera Class but I get this error: ReferenceError: Error #1069: Property getCamera not found on class Camera and there is no default value at Camera/initApli()[C:\Documents and Settings\bogos\My Documents\Flex\Camera\Camera.mxml:12] at Camera/___Application0_creationComplete()[C:\Documents and Settings\bogos\My Documents\Flex\Camera\Camera.mxml:3] at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/mx.core:UIComponent$protected::dispatchCreationCompleteEvent()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:5860] at mx.core::UIComponent$/http://www.macromedia.com/2005/flex/mx/internal::dispatchCreationCompleteEvents()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:1085] at mx.managers::LayoutManager/LayoutManager$1689$private::doPhasedInstantiation()[C:\dev\max\sdk\frameworks\mx\managers\LayoutManager.as:556] at mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher2()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:7168] at mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:7107] But the AS3 Reference Doc here (http://livedocs.macromedia.com/labs/1/flex/langref/flash/media/Camera.html) says that I have a getCamera method. Sample : ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* creationComplete=initApli() mx:Script ![CDATA[ import flash.media.Camera; import flash.media.Video; public var video:Video; public function initApli():Void{ var mycam:Camera = getCamera(); video = new Video(); video.attachCamera(mycam); } ]] /mx:Script /mx:Application Any idea? Thanks, João Fernandes Secção de Desenvolvimento Departamento de Informática -- 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 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] Re: AS3 Camera Class
So you're still getting the same error? --- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED] wrote: Well, That's what I first tried and got the same error. João Fernandes Secção de Desenvolvimento Departamento de Informática From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner Sent: quinta-feira, 12 de Janeiro de 2006 15:25 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AS3 Camera Class João, getCamera is a static method on the Camera class... Try this: var mycam:Camera = Camera.getCamera(); Brendan --- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED] wrote: Hi there, Finally starting with Flex 2. I was trying out some stuff with the camera Class but I get this error: ReferenceError: Error #1069: Property getCamera not found on class Camera and there is no default value at Camera/initApli()[C:\Documents and Settings\bogos\My Documents\Flex\Camera\Camera.mxml:12] at Camera/___Application0_creationComplete()[C:\Documents and Settings\bogos\My Documents\Flex\Camera\Camera.mxml:3] at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/mx.core:UIComponent$protected::dispatchCreationCompleteEvent()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:5860] at mx.core::UIComponent$/http://www.macromedia.com/2005/flex/mx/internal::dispatchCreationCompleteEvents()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:1085] http://www.macromedia.com/2005/flex/mx/internal::dispatchCreationCompleteEvents()%5bC:/dev/max/sdk/frameworks/mx/core/UIComponent.as:1085%5d at mx.managers::LayoutManager/LayoutManager$1689$private::doPhasedInstantiation()[C:\dev\max\sdk\frameworks\mx\managers\LayoutManager.as:556] at mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher2()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:7168] at mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:7107] But the AS3 Reference Doc here (http://livedocs.macromedia.com/labs/1/flex/langref/flash/media/Camera.html) says that I have a getCamera method. Sample : ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* creationComplete=initApli() mx:Script ![CDATA[ import flash.media.Camera; import flash.media.Video; public var video:Video; public function initApli():Void{ var mycam:Camera = getCamera(); video = new Video(); video.attachCamera(mycam); } ]] /mx:Script /mx:Application Any idea? Thanks, João Fernandes Secção de Desenvolvimento Departamento de Informática -- 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 * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- 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/
RE: [flexcoders] Re: AS3 Camera Class
Yeap, The first try was the one you proposed then I tried the one I posted. The error is exactly the same. João Fernandes Secção de Desenvolvimento Departamento de Informática From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner Sent: quinta-feira, 12 de Janeiro de 2006 15:55 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AS3 Camera Class So you're still getting the same error? --- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED] wrote: Well, That's what I first tried and got the same error. João Fernandes Secção de Desenvolvimento Departamento de Informática From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner Sent: quinta-feira, 12 de Janeiro de 2006 15:25 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AS3 Camera Class João, getCamera is a static method on the Camera class... Try this: var mycam:Camera = Camera.getCamera(); Brendan --- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED] wrote: Hi there, Finally starting with Flex 2. I was trying out some stuff with the camera Class but I get this error: ReferenceError: Error #1069: Property getCamera not found on class Camera and there is no default value at Camera/initApli()[C:\Documents and Settings\bogos\My Documents\Flex\Camera\Camera.mxml:12] at Camera/___Application0_creationComplete()[C:\Documents and Settings\bogos\My Documents\Flex\Camera\Camera.mxml:3] at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/mx.core:UIComponent$protected::dispatchCreationCompleteEvent()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:5860] at mx.core::UIComponent$/http://www.macromedia.com/2005/flex/mx/internal::dispatchCreationCompleteEvents()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:1085] http://www.macromedia.com/2005/flex/mx/internal::dispatchCreationCompleteEvents()%5bC:/dev/max/sdk/frameworks/mx/core/UIComponent.as:1085%5d at mx.managers::LayoutManager/LayoutManager$1689$private::doPhasedInstantiation()[C:\dev\max\sdk\frameworks\mx\managers\LayoutManager.as:556] at mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher2()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:7168] at mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:7107] But the AS3 Reference Doc here (http://livedocs.macromedia.com/labs/1/flex/langref/flash/media/Camera.html) says that I have a getCamera method. Sample : ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* creationComplete=initApli() mx:Script ![CDATA[ import flash.media.Camera; import flash.media.Video; public var video:Video; public function initApli():Void{ var mycam:Camera = getCamera(); video = new Video(); video.attachCamera(mycam); } ]] /mx:Script /mx:Application Any idea? Thanks, João Fernandes Secção de Desenvolvimento Departamento de Informática -- 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 * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- 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.
RE: [flexcoders] Re: AS3 Camera Class
It appears that you named your app "Camera.mxml". This will result in a class named "Camera". Either rename your app class so that it doesn't conflict with the built-in version, or fully qualify your reference to flash.media.Camera. -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of João FernandesSent: Thursday, January 12, 2006 7:59 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: AS3 Camera Class Yeap, The first try was the one you proposed then I tried the one I posted. The error is exactly the same. João Fernandes Secção de Desenvolvimento Departamento de Informática From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brendan MeutznerSent: quinta-feira, 12 de Janeiro de 2006 15:55To: flexcoders@yahoogroups.comSubject: [flexcoders] Re: AS3 Camera Class So you're still getting the same error?--- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED]wrote: Well, That's what I first tried and got the same error. João Fernandes Secção de Desenvolvimento Departamento de Informática From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of Brendan Meutzner Sent: quinta-feira, 12 de Janeiro de 2006 15:25 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AS3 Camera Class João, "getCamera" is a static method on the Camera class... Try this: var mycam:Camera = Camera.getCamera(); Brendan --- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED] wrote: Hi there, Finally starting with Flex 2. I was trying out some stuff with the camera Class but I get this error: ReferenceError: Error #1069: Property getCamera not found on class Camera and there is no default value at Camera/initApli()[C:\Documents and Settings\bogos\My Documents\Flex\Camera\Camera.mxml:12] at Camera/___Application0_creationComplete()[C:\Documents and Settings\bogos\My Documents\Flex\Camera\Camera.mxml:3] at flash.events::EventDispatcher/dispatchEvent() atmx.core::UIComponent/mx.core:UIComponent$protected::dispatchCreationCompleteEvent()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:5860] atmx.core::UIComponent$/http://www.macromedia.com/2005/flex/mx/internal::dispatchCreationCompleteEvents()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:1085]http://www.macromedia.com/2005/flex/mx/internal::dispatchCreationCompleteEvents()%5bC:/dev/max/sdk/frameworks/mx/core/UIComponent.as:1085%5d atmx.managers::LayoutManager/LayoutManager$1689$private::doPhasedInstantiation()[C:\dev\max\sdk\frameworks\mx\managers\LayoutManager.as:556] atmx.core::UIComponent/UIComponent$480$private::callLaterDispatcher2()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:7168] atmx.core::UIComponent/UIComponent$480$private::callLaterDispatcher()[C:\dev\max\sdk\frameworks\mx\core\UIComponent.as:7107] But the AS3 Reference Doc here(http://livedocs.macromedia.com/labs/1/flex/langref/flash/media/Camera.html) says that I have a getCamera method. Sample : ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" creationComplete="initApli()" mx:Script ![CDATA[ import flash.media.Camera; import flash.media.Video; public var video:Video; public function initApli():Void{ var mycam:Camera = getCamera(); video = new Video(); video.attachCamera(mycam); } ]] /mx:Script /mx:Application Any idea? Thanks, João Fernandes Secção de Desenvolvimento Departamento de Informática -- 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 * Visit your group "flexcodershttp://groups.yahoo.com/group/flexcoders " on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms ofService http://docs.yahoo.com/info/terms/ . -- 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
RE: [flexcoders] Re: ViewStack creationIndex
Where is the createComponent method defined ? It's a method of Container. In Flex 2 it is has been renamed to createComponentFromDescriptor(). - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of superabe superabe Sent: Wednesday, January 11, 2006 6:32 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: ViewStack creationIndex Hi Bendan, Thanks for the tip, Can you elaborate some more on what you mean by manually instantiate the children using createComponent with recursion set to true. Where is the createComponent method defined ? - superabe On 1/11/06, Brendan Meutzner [EMAIL PROTECTED] wrote: Superabe, Try setting creationPolicy=none and manually instantiate the children using createComponent with recursion set to true. Haven't tried this, so let me know if this helps. Brendan --- In flexcoders@yahoogroups.com, superabe superabe [EMAIL PROTECTED] wrote: Hi list, Is there any way to combine the effects of creationPolicy=auto and creationPolicy=queued within the same ViewStack. So for e.g. ViewStack Child1/ Child2/ Child3/ /ViewStack When the app loads I would like Child1 to be created completely first, Child 3 to be created completely second and would like Child 2 to be created only when the user navigates to that. Is that at all possible ? TIA - superabe -- 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 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 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] Re: Populating a text input from a pop up.
When I use the code below, I get this error. ReferenceError: Error #1069: Property fld_agentId not found on hs2f and there is no default value at custom.components.sv::Agent1Window/Agent1Window$564$private::a1Bind() at custom.components.sv::Agent1Window/__a1DG_click() Flex code: parentApplication.fld_agentId.text = a1DG.selectedItem.FLD_USERLOGIN; --- In flexcoders@yahoogroups.com, Joan Tan [EMAIL PROTECTED] wrote: Jeremy, From your popup, you can reference anything in your main application by using the parentApplication property, so you would do something like: parentApplication.fld_agentId.text = newValue; I hope this helps. Joan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Wednesday, January 11, 2006 8:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Populating a text input from a pop up. I am using a pop up for a user look up. When someone searches for a user and then clicks on the selected user, it is suposed to populate a text box on my main stage of my app. However, everything I have tried has failed. Can someone give me a hand with this. I have posted my code. Any help with this would be greatly appreciated. Pop Up: ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.macromedia.com/2005/mxml; resizeEffect=Resize xmlns=* width=25% height=25% title=Agent Lookup mx:WebService id=srv useProxy=false wsdl=http://flex.homesmartagent.com/cfc/adminHS2F.cfc?wsdl; showBusyCursor=true / mx:Script source=as/adminAddList.as / mx:Script private function a1Bind():Void { mx.managers.PopUpManager.removePopUp(this); } /mx:Script mx:Metadata [Event(a1Bind)] /mx:Metadata mx:states mx:State name=results mx:PropertyOverride property=width value=45%/ mx:PropertyOverride property=height value=45%/ mx:AddChild target={canvas1} position=lastChild mx:DataGrid id=a1DG click=a1Bind() dataProvider={srv.qpAgentDisplay.result} mx:layoutConstraints mx:EdgeAnchor top=55 left=6 bottom=6 right=49/ /mx:layoutConstraints mx:columns mx:DataGridColumn headerText=Agent ID columnName=FLD_USERLOGIN/ mx:DataGridColumn headerText=First Name columnName=FLD_FIRSTNAME/ mx:DataGridColumn headerText=Last Name columnName=FLD_LASTNAME/ /mx:columns /mx:DataGrid /mx:AddChild /mx:State /mx:states mx:Canvas width=100% height=100% id=canvas1 mx:Label text=Agent Name: x=7 y=1/ mx:TextInput x=7 y=22 id=search/ mx:Button x=174 y=22 click=currentState='results';qpAgentDisplay(search.text) label=Search/ /mx:Canvas /mx:Panel AS That calls pop up. // Agent Lookup 1 import mx.managers.PopUpManager; private function showWindow1(modal:Boolean):Void { var agent1Window:Agent1Window = new Agent1Window(); var popup:Object = PopUpManager.popUpWindow(agent1Window, this, modal); PopUpManager.centerPopUp(popup); } Text Input I want to populate: mx:TextInput x=18 y=74 id=fld_agentId/ -- 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 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Software +design+and+developmentw4=Macromedia+flexw5=Software+development+best+ practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+deve lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1 66.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practice;
Re: [flexcoders] Re: ViewStack creationIndex
Thanks a bunch Brendan, Will try this out - superabe On 1/12/06, Brendan Meutzner [EMAIL PROTECTED] wrote: Superabe,Here's an example of what I was referring to.It looks like itworks... Is this what you intended to accomplish?The more images you add within each container, the more apparent the load/wait to loadbecomes.?xml version=1.0 encoding=utf-8?mx:Application width=100% height=100% xmlns:mx=http://www.macromedia.com/2003/mxml vScrollPolicy=offinitialize=initPage(); mx:TabNavigator id=myNavigator hScrollPolicy=off vScrollPolicy=off height=100% width=100% creationPolicy=nonemarginTop=0 mx:VBox label=View 1 mx:Image source= http://www.visualconcepts.ca/mc_pics/DSCF0018.JPG / /mx:VBox mx:VBox label=View 2 mx:Image source=http://www.visualconcepts.ca/mc_pics/DSCF0022.JPG / /mx:VBox mx:VBox label=View 3 mx:Image source=http://www.visualconcepts.ca/mc_pics/DSCF0027.JPG / /mx:VBox /mx:TabNavigator mx:Script ![CDATA[ private function initPage():Void { myNavigator.createComponent(0, true); myNavigator.createComponent(1, false); myNavigator.createComponent (2, true); } ]] /mx:Script/mx:ApplicationThe description for this is found here: http://livedocs.macromedia.com/flex/15/flex_docs_en/1145.htmHope this helps.Brendan--- In flexcoders@yahoogroups.com, superabe superabe [EMAIL PROTECTED]wrote: Hi Bendan, Thanks for the tip, Can you elaborate some more on what you mean by manuallyinstantiate the children using createComponent with recursion set to true. Where is the createComponent method defined ? - superabe On 1/11/06, Brendan Meutzner [EMAIL PROTECTED] wrote: Superabe, Try setting creationPolicy=none and manually instantiate the children using createComponent with recursion set to true. Haven't tried this, so let me know if this helps. Brendan --- In flexcoders@yahoogroups.com, superabe superabe [EMAIL PROTECTED] wrote: Hi list, Is there any way to combine the effects of creationPolicy=auto and creationPolicy=queued within the same ViewStack. So for e.g. ViewStack Child1/ Child2/ Child3/ /ViewStack When the app loads I would like Child1 to be created completely first, Child 3 to be created completely second and would like Child 2 to be created only when the user navigates to that. Is that at all possible ? TIA - superabe -- 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 ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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 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.
Re: [flexcoders] Re: ViewStack creationIndex
Awesome. Thanks a bunch. WIll try this out. - superabe On 1/12/06, Gordon Smith [EMAIL PROTECTED] wrote: Where is the createComponent method defined ? It's a method of Container. In Flex 2 it is has been renamed to createComponentFromDescriptor(). - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of superabe superabeSent: Wednesday, January 11, 2006 6:32 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: ViewStack creationIndex Hi Bendan, Thanks for the tip, Can you elaborate some more on what you mean by manually instantiate thechildren using createComponent with recursion set to true. Where is the createComponent method defined ? - superabe On 1/11/06, Brendan Meutzner [EMAIL PROTECTED] wrote: Superabe,Try setting creationPolicy=none and manually instantiate thechildren using createComponent with recursion set to true. Haven't tried this, so let me know if this helps.Brendan--- In flexcoders@yahoogroups.com , superabe superabe [EMAIL PROTECTED]wrote: Hi list, Is there any way to combine the effects of creationPolicy=auto and creationPolicy=queued within the same ViewStack. So for e.g. ViewStack Child1/ Child2/ Child3/ /ViewStack When the app loads I would like Child1 to be created completely first, Child 3 to be created completely second and would like Child 2 to be created only when the user navigates to that. Is that at all possible ? TIA - superabe --Flexcoders Mailing ListFAQ: 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 Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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 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.
Re: [flexcoders] [Flex2] Children of a component don't refresh display
On 1/12/06, Flapflap [EMAIL PROTECTED] wrote: Ok so I'll try to put my data in a new bindable property of my component instead of the dataObject (or wait to the next release). Override the 'dataObject' setter method and update the textfield there. -- 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/
RE: [flexcoders] Re: Populating a text input from a pop up.
Is your f1d_agenID TextInput in an mxml component that is not actually an Application? This only works if you called your popup from the main application. If, however, you are calling the PopUp from an mxml component that is in another application, then I believe you should use parentDocument.f1d_agentId.text. However, I dont see parentDocument working correctly, so I actually filed a bug on this yesterday. Joan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Thursday, January 12, 2006 9:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Populating a text input from a pop up. When I use the code below, I get this error. ReferenceError: Error #1069: Property fld_agentId not found on hs2f and there is no default value at custom.components.sv::Agent1Window/Agent1Window$564$private::a1Bind() at custom.components.sv::Agent1Window/__a1DG_click() Flex code: parentApplication.fld_agentId.text = a1DG.selectedItem.FLD_USERLOGIN; --- In flexcoders@yahoogroups.com, Joan Tan [EMAIL PROTECTED] wrote: Jeremy, From your popup, you can reference anything in your main application by using the parentApplication property, so you would do something like: parentApplication.fld_agentId.text = newValue; I hope this helps. Joan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Wednesday, January 11, 2006 8:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Populating a text input from a pop up. I am using a pop up for a user look up. When someone searches for a user and then clicks on the selected user, it is suposed to populate a text box on my main stage of my app. However, everything I have tried has failed. Can someone give me a hand with this. I have posted my code. Any help with this would be greatly appreciated. Pop Up: ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.macromedia.com/2005/mxml resizeEffect=Resize xmlns=* width=25% height=25% title=Agent Lookup mx:WebService id=srv useProxy=false wsdl=http://flex.homesmartagent.com/cfc/adminHS2F.cfc?wsdl showBusyCursor=true / mx:Script source=as/adminAddList.as / mx:Script private function a1Bind():Void { mx.managers.PopUpManager.removePopUp(this); } /mx:Script mx:Metadata [Event(a1Bind)] /mx:Metadata mx:states mx:State name=results mx:PropertyOverride property=width value=45%/ mx:PropertyOverride property=height value=45%/ mx:AddChild target={canvas1} position=lastChild mx:DataGrid id=a1DG click=a1Bind() dataProvider={srv.qpAgentDisplay.result} mx:layoutConstraints mx:EdgeAnchor top=55 left=6 bottom=6 right=49/ /mx:layoutConstraints mx:columns mx:DataGridColumn headerText=Agent ID columnName=FLD_USERLOGIN/ mx:DataGridColumn headerText=First Name columnName=FLD_FIRSTNAME/ mx:DataGridColumn headerText=Last Name columnName=FLD_LASTNAME/ /mx:columns /mx:DataGrid /mx:AddChild /mx:State /mx:states mx:Canvas width=100% height=100% id=canvas1 mx:Label text=Agent Name: x=7 y=1/ mx:TextInput x=7 y=22 id=search/ mx:Button x=174 y=22 click=currentState='results';qpAgentDisplay(search.text) label=Search/ /mx:Canvas /mx:Panel AS That calls pop up. // Agent Lookup 1 import mx.managers.PopUpManager; private function showWindow1(modal:Boolean):Void { var agent1Window:Agent1Window = new Agent1Window(); var popup:Object = PopUpManager.popUpWindow(agent1Window, this, modal); PopUpManager.centerPopUp(popup); } Text Input I want to populate: mx:TextInput x=18 y=74 id=fld_agentId/ -- 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 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Software +design+and+developmentw4=Macromedia+flexw5=Software+development+best+ practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+deve
RE: [flexcoders] Named parameters in AS3?
Sorry... AS3 is not going to support named parameters. But you can put in a wish for AS4. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Wednesday, January 11, 2006 4:21 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Named parameters in AS3? Oops, yeah, dentist novacaine. Sorry, defining yes, invoking, no. - Original Message - From: Geoffrey Williams [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, January 11, 2006 6:20 PM Subject: RE: [flexcoders] Named parameters in AS3? Did you maybe misread his question? I don't think you can do what he asked... -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Wednesday, January 11, 2006 5:46 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Named parameters in AS3? Yes, it's possible. - Original Message - From: Derek Vadneau [EMAIL PROTECTED] To: flexcoders flexcoders@yahoogroups.com Sent: Wednesday, January 11, 2006 5:01 PM Subject: [flexcoders] Named parameters in AS3? Does anyone know if it's possible to use named parameters in AS3? If not, is it a feature that could be put into AS3? The idea would be to be able to submit parameters like: myFunction(target=myClip, url=/test.swf, preload=true); -- 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 -- 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/
Re: [flexcoders] Named parameters in AS3?
Thanks for the confirmation. It's obviously not what I wanted to hear, but at least I know. AS4 you say? I'm assuming that'll be about another 2-3 years away considering AS2's lifespan. Although AS3 might last longer considering it's built from scratch. Where do I submit the wish? Through the bug/feature request form on the Macromedia site? Derek Vadneau On 1/12/06, Gordon Smith [EMAIL PROTECTED] wrote: Sorry... AS3 is not going to support named parameters. But you can put in a wish for AS4. - Gordon -- 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] VBox scrollbar bug ?
Hello list, This sounds like a really basic thing so I can't believe this is a bug, so probably am doing something wrong. I have a custom AS container(extends off VBox)in which I create a large number of child controls by overriding the createChildren method. The component is used in Main.mxml file inside a VBox which is set to 100% height and width like so (pseudo): application width=980 height=695 margin=10 vbox width=100% height=100% myContainer/ /vbox /application The issue is when the scrollbars show up on the Application, rather than on the VBox where I would expect it to ! If I replace the parent vbox with a canvas scrollbars show up around the canvas as it should My component code is: MyContainer.as class _test.MyContainer extends VBox{ function MyContainer(){ }public function createChildren():Void{ for(var i:Number=0;i100;i++){ this.createChild(Button,undefined,{label:a_+ i}); }}} Anybody faced this before or know what I am doing wrong? TIA - superabe -- 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] i18n support - Data Format
Does anybody know how I can format various data such as date, currency, and number for a specific locale in Flex? If there is no support, does anybody have a suggestion? 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/ * 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/
RE: [flexcoders] i18n support - Data Format
There is no locale support, but the various formatters offer enough flexibility that you should be able to add it. Formatters are also easy to write yourself -- just extend Formatter and override format(). For example, in a CurrencyFormatter you can control the formatting with the following properties: alignSymbol currencySymbol decimalSeparatorFrom decimalSeparatorTo thousandsSeparatorFrom thousandsSeparatorTo useNegativeSign useThousandsSeparator - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of neda_eslami Sent: Thursday, January 12, 2006 11:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] i18n support - Data Format Does anybody know how I can format various data such as date, currency, and number for a specific locale in Flex? If there is no support, does anybody have a suggestion? 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 -- 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/
RE: [flexcoders] Named parameters in AS3?
http://www.macromedia.com/support/email/wishform/ - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Derek Vadneau Sent: Thursday, January 12, 2006 11:14 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Named parameters in AS3? Thanks for the confirmation. It's obviously not what I wanted to hear, but at least I know. AS4 you say? I'm assuming that'll be about another 2-3 years away considering AS2's lifespan. Although AS3 might last longer considering it's built from scratch. Where do I submit the wish? Through the bug/feature request form on the Macromedia site? Derek Vadneau On 1/12/06, Gordon Smith [EMAIL PROTECTED] wrote: Sorry... AS3 is not going to support named parameters. But you can put in a wish for AS4. - Gordon -- 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/
[flexcoders] Re: flex String java String
If ZJ is a RemoteObject, you need to handle the returned data asynchronously. There's a similar example on livedocs at http://livedocs.macromedia.com/flex/15/asdocs_en/mx/servicetags/Remot eObject.html --- In flexcoders@yahoogroups.com, frizzly_hair [EMAIL PROTECTED] wrote: hi all this is my java code: public String xmlTree() throws ClassNotFoundException, SQLException, IOException{ TreeInfo tixt = new TreeInfo(); String s = tixt.createTree(); System.out.println(s); return s; } it return s = node label=\INBOX\/node label=\Personal Folder\node label=\Business\ /node label=\Demo\ /node label=\Personal\ isBranch=\true\ /node label=\Saved Mail\ //node in AS function tree():Void{ var xml_tree:String; var mytree:XML; xml_tree = ZJ.xmlTree(); mytree = new XML(xml_tree); Ntree.dataProvider = mytree; mx.controls.Alert.show (xml_tree,'Message'); } the Alert window give me the message like this: [object Object] it not a String that i want, i do not know why ? everyone know about this give a help please! 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/ * 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/
Re: [flexcoders] i18n support - Data Format
Gordon Smith wrote: There is no locale support, but the various formatters offer enough flexibility that you should be able to add it. Formatters are also easy but you have no locale resources backing any of this. in cf/java all you have to do is set the locale away you go. in flex you have to know what the currency/date format is in timbuktu then build that. geez louise it's back to the old cf4.5 days. -- 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] Missing posts
Unless I'm blind, a couple of posts I made on the 11th haven't yet appeared on the archive, although there are some there posted a day later and they do appear on the yahoo groups site? -- 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/
Re: [flexcoders] VBox scrollbar bug ?
what happens if you call super.createChildren() at the beginning of the createChildren method? On 1/12/06, superabe superabe [EMAIL PROTECTED] wrote: Hello list, This sounds like a really basic thing so I can't believe this is a bug, so probably am doing something wrong. I have a custom AS container(extends off VBox)in which I create a large number of child controls by overriding the createChildren method. The component is used in Main.mxml file inside a VBox which is set to 100% height and width like so (pseudo): application width=980 height=695 margin=10 vbox width=100% height=100% myContainer/ /vbox /application The issue is when the scrollbars show up on the Application, rather than on the VBox where I would expect it to ! If I replace the parent vbox with a canvas scrollbars show up around the canvas as it should My component code is: MyContainer.as class _test.MyContainer extends VBox{ function MyContainer(){ }public function createChildren():Void{ for(var i:Number=0;i100;i++){ this.createChild(Button,undefined,{label:a_+ i}); }}} Anybody faced this before or know what I am doing wrong? TIA - superabe--Flexcoders Mailing ListFAQ: 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 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] dragging from a grid within PopUp to parentApp?
Not sure if many people have dealt w/ non-Title Window pop ups. I'm working on a search pop-up for our app and a plain TitleWindow won't cut it since we need to have links on the header and be able to stretch out a screen from the right side of the window. So, I have a Canvas that contains a TitleWindow. Anyway, I would like to be able to drag a selection from a grid within the Canvas popUp to a grid within the parent component, but I can't seem to get it to work. I've included sample code in the body of this e-mail - to make it work just copy the Custom Pop Up code into a file named CustomPopUp.mxml and place the test app and the CustomPopUp in the same directory. If anyone can also figure out how to get the search window to appear correctly (the background is invisible), figure out how to get the window to be draggable and allow for the popUp to be closed I'd greatly appreciate it. Thanks, Jaime !-- Test App -- ?xml version=1.0 encoding=UTF-8?mx:Application pageTitle=Canvas Test width=100% height=100% xmlns:mx= http://www.macromedia.com/2003/mxml creationComplete=populatePersonGrid();mx:Script![CDATA[import mx.managers.DragManager;import CustomPopUp;var popUpWindow; var peopleList:Array;function addPersonClick(event) { this.popUpWindow = mx.managers.PopUpManager.createPopUp(this, CustomPopUp, true);}function populatePersonGrid() {peopleList = new Array({LASTNAME:Doe, FIRSTNAME:John, SSN:1433}, {LASTNAME:Doe, FIRSTNAME:Jane, SSN:1323});}public function doDragEnter(event):Void{// allow dropevent.handled=true;// set action to copyevent.action="" ;}public function doDragDrop(event):Void{dgPeople.dataProvider.addItem(event.target.selectedItem);}]]/mx:Script mx:Link id=lblObjectAddLnk label=Add Person color=blue click=addPersonClick(event);/mx:DataGrid id=dgPeople dataProvider={peopleList} width=300 height=500 mx:columnsmx:Array mx:DataGridColumn headerText=Last Name columnName=LASTNAME/mx:DataGridColumn headerText=First Name columnName=FIRSTNAME/ mx:DataGridColumn headerText=SSN (Last 4) columnName=SSN//mx:Array/mx:columns/mx:DataGrid/mx:Application !-- Custom Pop Up -- ?xml version=1.0 encoding=utf-8 ?mx:Canvas xmlns:mx=http://www.macromedia.com/2003/mxml width=400 height=400 creationComplete=populateSearchResults(); mx:Script![CDATA[var searchResult:Array;function populateSearchResults() {searchResult = new Array({LASTNAME:McDonald, FIRSTNAME:Ronald, SSN:7833}, {LASTNAME:Duck, FIRSTNAME:Donald, SSN:9877});}function searchClick() {// make search window invisibletoggleSearchView();} function toggleSearchView() {filterPrsnPopSearch.visible = !filterPrsnPopSearch.visible;}function clear() {txtSrchLastName.text = ;txtSrchFirstName.text = ; txtSrchSalesCode.text = ;}function restoreMyHeight(event) {event.target.height=100%;}]]/mx:Script!-- Styles --mx:Style .linkStyle {color: Blue}.filter {background-color: #f0f0f0;margin-left: 8;margin-right: 8;margin-top: 4;margin-bottom: 4;border-style: solid;border-thickness: 1; border-color: #b8bfbe;border-sides: bottom;}/mx:Style!-- Resize effect for the preview panel --mx:Effectmx:Resize name=srchPrsnPopOpenSize widthFrom=0 widthTo=275 suspendBackgroundProcessing=true/ mx:Resize name=srchPrsnPopCloseSize widthFrom=275 widthTo=0 suspendBackgroundProcessing=true//mx:Effect mx:TitleWindow id=wndwPayeeSrch width=100% height=100% title=Person Search closeButton=true mx:DataGrid id=dgPeople dataProvider={searchResult} rowCount={searchResult.length} dragEnabled=true width=100% height=100% mx:columns mx:Array mx:DataGridColumn columnName=LASTNAME headerText=Last Name/ mx:DataGridColumn columnName=FIRSTNAME headerText=First Name/ mx:DataGridColumn columnName=SSN headerText=SSN width=75//mx:Array /mx:columns/mx:DataGrid/mx:TitleWindow !-- These links will go over the header of the title window -- mx:HBox width=100% verticalAlign=bottom horizontalAlign=right marginRight=35 marginTop=6 mx:Link id=lnkShowAll label=Show All styleName=linkStyle toolTip=In production, this will show all people./ mx:Link id=lnkSearchOptions label=Search Options click=toggleSearchView(); styleName=linkStyle toolTip=Click to toggle search window visibility./ /mx:HBox!-- This search window should be aligned to the right of the title window --mx:Box id=filterPrsnPopSearch styleName=filter x={wndwPayeeSrch.x + wndwPayeeSrch.width } width=0 height=100% visible=false showEffect=srchPrsnPopOpenSize hideEffect=srchPrsnPopCloseSize effectEnd=restoreMyHeight(event);mx:FormItem label=Last Name labelWidth=75 mx:TextInput id=txtSrchLastName toolTip=Enter all or the first few characters of the person's last name//mx:FormItemmx:FormItem label=First Name labelWidth=75 mx:TextInput id=txtSrchFirstName toolTip=Enter all or the first few characters of the person's first name//mx:FormItemmx:FormItem label=SSN labelWidth=75 mx:TextInput id=txtSrchSalesCode toolTip=Enter all or the first few characters of the person's sales code//mx:FormItemmx:HBox width=100% horizontalAlign=right mx:Button id=btnClear
[flexcoders] Re: dragging from a grid within PopUp to parentApp?
I should mention, this is in FLEX 1.5. I can't just upgrade to 2.0 b/c we're in production. On 1/12/06, Jaime Bermudez [EMAIL PROTECTED] wrote: Not sure if many people have dealt w/ non-Title Window pop ups. I'm working on a search pop-up for our app and a plain TitleWindow won't cut it since we need to have links on the header and be able to stretch out a screen from the right side of the window. So, I have a Canvas that contains a TitleWindow. Anyway, I would like to be able to drag a selection from a grid within the Canvas popUp to a grid within the parent component, but I can't seem to get it to work. I've included sample code in the body of this e-mail - to make it work just copy the Custom Pop Up code into a file named CustomPopUp.mxml and place the test app and the CustomPopUp in the same directory. If anyone can also figure out how to get the search window to appear correctly (the background is invisible), figure out how to get the window to be draggable and allow for the popUp to be closed I'd greatly appreciate it. Thanks, Jaime !-- Test App -- ?xml version=1.0 encoding=UTF-8?mx:Application pageTitle=Canvas Test width=100% height=100% xmlns:mx= http://www.macromedia.com/2003/mxml creationComplete=populatePersonGrid();mx:Script![CDATA[import mx.managers.DragManager;import CustomPopUp;var popUpWindow; var peopleList:Array;function addPersonClick(event) { this.popUpWindow = mx.managers.PopUpManager.createPopUp(this, CustomPopUp, true);}function populatePersonGrid() {peopleList = new Array({LASTNAME:Doe, FIRSTNAME:John, SSN:1433}, {LASTNAME:Doe, FIRSTNAME:Jane, SSN:1323});}public function doDragEnter(event):Void{// allow dropevent.handled=true;// set action to copyevent.action="" ;}public function doDragDrop(event):Void{dgPeople.dataProvider.addItem(event.target.selectedItem);}]]/mx:Script mx:Link id=lblObjectAddLnk label=Add Person color=blue click=addPersonClick(event);/mx:DataGrid id=dgPeople dataProvider={peopleList} width=300 height=500 mx:columnsmx:Array mx:DataGridColumn headerText=Last Name columnName=LASTNAME/mx:DataGridColumn headerText=First Name columnName=FIRSTNAME/ mx:DataGridColumn headerText=SSN (Last 4) columnName=SSN//mx:Array/mx:columns/mx:DataGrid/mx:Application !-- Custom Pop Up -- ?xml version=1.0 encoding=utf-8 ?mx:Canvas xmlns:mx=http://www.macromedia.com/2003/mxml width=400 height=400 creationComplete=populateSearchResults(); mx:Script![CDATA[var searchResult:Array;function populateSearchResults() {searchResult = new Array({LASTNAME:McDonald, FIRSTNAME:Ronald, SSN:7833}, {LASTNAME:Duck, FIRSTNAME:Donald, SSN:9877});}function searchClick() {// make search window invisibletoggleSearchView();} function toggleSearchView() {filterPrsnPopSearch.visible = !filterPrsnPopSearch.visible;}function clear() {txtSrchLastName.text = ;txtSrchFirstName.text = ; txtSrchSalesCode.text = ;}function restoreMyHeight(event) {event.target.height=100%;}]]/mx:Script!-- Styles --mx:Style .linkStyle {color: Blue}.filter {background-color: #f0f0f0;margin-left: 8;margin-right: 8;margin-top: 4;margin-bottom: 4;border-style: solid;border-thickness: 1; border-color: #b8bfbe;border-sides: bottom;}/mx:Style!-- Resize effect for the preview panel --mx:Effectmx:Resize name=srchPrsnPopOpenSize widthFrom=0 widthTo=275 suspendBackgroundProcessing=true/ mx:Resize name=srchPrsnPopCloseSize widthFrom=275 widthTo=0 suspendBackgroundProcessing=true//mx:Effect mx:TitleWindow id=wndwPayeeSrch width=100% height=100% title=Person Search closeButton=true mx:DataGrid id=dgPeople dataProvider={searchResult} rowCount={searchResult.length} dragEnabled=true width=100% height=100% mx:columns mx:Array mx:DataGridColumn columnName=LASTNAME headerText=Last Name/ mx:DataGridColumn columnName=FIRSTNAME headerText=First Name/ mx:DataGridColumn columnName=SSN headerText=SSN width=75//mx:Array /mx:columns/mx:DataGrid/mx:TitleWindow !-- These links will go over the header of the title window -- mx:HBox width=100% verticalAlign=bottom horizontalAlign=right marginRight=35 marginTop=6 mx:Link id=lnkShowAll label=Show All styleName=linkStyle toolTip=In production, this will show all people./ mx:Link id=lnkSearchOptions label=Search Options click=toggleSearchView(); styleName=linkStyle toolTip=Click to toggle search window visibility./ /mx:HBox!-- This search window should be aligned to the right of the title window --mx:Box id=filterPrsnPopSearch styleName=filter x={wndwPayeeSrch.x + wndwPayeeSrch.width } width=0 height=100% visible=false showEffect=srchPrsnPopOpenSize hideEffect=srchPrsnPopCloseSize effectEnd=restoreMyHeight(event);mx:FormItem label=Last Name labelWidth=75 mx:TextInput id=txtSrchLastName toolTip=Enter all or the first few characters of the person's last name//mx:FormItemmx:FormItem label=First Name labelWidth=75 mx:TextInput id=txtSrchFirstName toolTip=Enter all or the first few characters of the person's first name//mx:FormItemmx:FormItem label=SSN labelWidth=75 mx:TextInput
Re: [flexcoders] VBox scrollbar bug ?
No luck, same behaviour. :( Works for Canvas, does not work for VBox - superabe On 1/12/06, Paul BH [EMAIL PROTECTED] wrote: what happens if you call super.createChildren() at the beginning of the createChildren method? On 1/12/06, superabe superabe [EMAIL PROTECTED] wrote: Hello list, This sounds like a really basic thing so I can't believe this is a bug, so probably am doing something wrong. I have a custom AS container(extends off VBox)in which I create a large number of child controls by overriding the createChildren method. The component is used in Main.mxml file inside a VBox which is set to 100% height and width like so (pseudo): application width=980 height=695 margin=10 vbox width=100% height=100% myContainer/ /vbox /application The issue is when the scrollbars show up on the Application, rather than on the VBox where I would expect it to ! If I replace the parent vbox with a canvas scrollbars show up around the canvas as it should My component code is: MyContainer.as class _test.MyContainer extends VBox{ function MyContainer(){ }public function createChildren():Void{ for(var i:Number=0;i100;i++){ this.createChild(Button,undefined,{label:a_+ i}); }}} Anybody faced this before or know what I am doing wrong? TIA - superabe--Flexcoders Mailing ListFAQ: 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 Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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 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 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.
Re: [flexcoders] VBox scrollbar bug ?
Update on this, setting fixed widths and heights on the parent VBox resolved the issue. That will do fine for now :) - superabe On 1/12/06, superabe superabe [EMAIL PROTECTED] wrote: No luck, same behaviour. :( Works for Canvas, does not work for VBox - superabe On 1/12/06, Paul BH [EMAIL PROTECTED] wrote: what happens if you call super.createChildren() at the beginning of the createChildren method? On 1/12/06, superabe superabe [EMAIL PROTECTED] wrote: Hello list, This sounds like a really basic thing so I can't believe this is a bug, so probably am doing something wrong. I have a custom AS container(extends off VBox)in which I create a large number of child controls by overriding the createChildren method. The component is used in Main.mxml file inside a VBox which is set to 100% height and width like so (pseudo): application width=980 height=695 margin=10 vbox width=100% height=100% myContainer/ /vbox /application The issue is when the scrollbars show up on the Application, rather than on the VBox where I would expect it to ! If I replace the parent vbox with a canvas scrollbars show up around the canvas as it should My component code is: MyContainer.as class _test.MyContainer extends VBox{ function MyContainer(){ }public function createChildren():Void{ for(var i:Number=0;i100;i++){ this.createChild(Button,undefined,{label:a_+ i}); }}} Anybody faced this before or know what I am doing wrong? TIA - superabe--Flexcoders Mailing ListFAQ: 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 Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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 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 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.
Re: [flexcoders] VBox scrollbar bug ?
Try setting minWidth="0" and minHeight="0" to the VBox Sree superabe superabe wrote: Update on this, setting fixed widths and heights on the parent VBox resolved the issue. That will do fine for now :) - superabe On 1/12/06, superabe superabe [EMAIL PROTECTED] wrote: No luck, same behaviour. :( Works for Canvas, does not work for VBox - superabe On 1/12/06, Paul BH [EMAIL PROTECTED] wrote: what happens if you call super.createChildren() at the beginning of the createChildren method? On 1/12/06, superabe superabe [EMAIL PROTECTED] wrote: Hello list, This sounds like a really basic thing so I can't believe this is a bug, so probably am doing something wrong. I have a custom AS container(extends off VBox)in which I create a large number of child controls by overriding the createChildren method. The component is used in Main.mxml file inside a VBox which is set to 100% height and width like so (pseudo): application width=980 height=695 margin=10 vbox width=100% height=100% myContainer/ /vbox /application The issue is when the scrollbars show up on the Application, rather than on the VBox where I would expect it to ! If I replace the parent vbox with a canvas scrollbars show up around the canvas as it should My component code is: MyContainer.as class _test.MyContainer extends VBox{ function MyContainer(){ } public function createChildren():Void{ for(var i:Number=0;i100;i++){ this.createChild(Button,undefined,{label:"a_"+ i}); } } } Anybody faced this before or know what I am doing wrong? TIA - superabe -- 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 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 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 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.
RE: [flexcoders] Component DataBinding issue
I think the problem here is that rating is NaN when createchildren executes (because binding doesnt execute yet) and you run into an infinite loop. Rather than doing your work in createChildren maybe you should have a separate method that holds onto the child objects and call it from createchildren or the setter for your rating property. In that function it should see how many rating Images have been created, if the number is different from what you want you would destroy or create the appropriate number of children. You may then need to call invalidate() after that (though createchild probably is good enough to do that). HTH, Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of superabe superabe Sent: Monday, January 09, 2006 9:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Component DataBinding issue Hi there, I have a customAS component that seems to generate a script time-out error when I use databinding to set one of its params. It works fine if I hard code the param value. Any ideas as to why this may be happening ? TIA - superabe Component code(RatingCell.as) === class RatingCell extends HBox{ private var _rating:Number; private var maxRating:Number = 5; [Embed( assets/images/rating_on.png )] private var ratingOn:String; [Embed( assets/images/rating_off.png )] private var ratingOff:String; public function RatingCell(){ } public function get rating():Number{ return this._rating; } public function set rating(value:Number){ if(value maxRating){ value = maxRating; } this._rating = value; } private function createChildren():Void{ super.createChildren(); Echo.debug(Rating Cell : createChildren); Echo.debug(rating = + rating); //create active icon for(var i:Number=0;irating;i++){ this.createChild(Image,undefined,{source:ratingOn}) ; } //create inactive icon var startCounter:Number = rating; while(startCounter = maxRating){ this.createChild(Image,undefined,{source:ratingOff}) ; startCounter++; } } } Usage (Main.mxml) mx:Script ![CDATA[ var tempRating:Number = 5; ]] /mx:Script renderer:RatingCell rating=5 horizontalGap=1/ // this works fine renderer:RatingCell rating={tempRating} horizontalGap=1/ // this prompts script timeout error -- 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 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.
RE: [flexcoders] dynamic number of datagrid columns
DataGrid has a function addColumnAt which take DataGridColumn objects. They are normal components that you can instantiate in AS, just look through the ASDoc and you should be fine. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of t_msreddy Sent: Monday, January 09, 2006 2:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] dynamic number of datagrid columns HiI need to implement a datagrid based on user input. User input determines the number of datagrid columns.Can you please tell me how to do this? In all the examples I have seen the grid columns are static though data is rendered through data provider like this:mxataGrid id=datagrid1 width=100% height=80% dataProvider={dp} rowHeight=100 mx:columns mx:Array mxataGridColumn headerText=Name columnName=name editable=false/ mxataGridColumn headerText=City columnName=city editable=false / mxataGridColumn headerText=Birthday cellRenderer=GridCellRenderer / mxataGridColumn headerText=Favorites columnName=combodata editable=true / mxataGridColumn headerText=Delete columnName=candelete editable=true / /mx:Array /mx:columns /mxataGridhere you have mxataGridColumn tags which render the columns. I need to implement a datagrid which has dynamic number of columns.Please help me. -- 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 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.
RE: [flexcoders] Flex 2.0 Remote database sorting
Yes, ListCollectionView is written to retrieve all data before it executes the sort because the Sort object expects to sort everything at once. You could write your own ICollectionView and just not actually call Sort.sort()and do your own thing (look at the SortFields within the sort when refresh() is called and then adjust your custom IList as appropriate). Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dion Mendel Sent: Monday, January 09, 2006 9:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 2.0 Remote database sorting Hi All, I have a database with a large list of records that I want to access from Flex. I wrote a custom class based on mx.collections.IList that retrieves the data in pages, handles caching and recycling of old items. Everything works fine so far. I've used a technique similar to Matt Chotin on his blog, but this works with Flex 2.0. Now I want to implement sorting on the Database. Flex 1.5 had a convenient mx.controls.listclasses.DataProvider class, which unfortunately isn't in Flex 2.0. What is the recommended way to implement remote sorting? Loading all data into memory and using ActionScript for sorting is not an option. I've tried wrapping a ListCollectionView around my custom IList with the aim of later providing a custom Sort class. This introduces it's own problems - the ListCollectionView wants to iterate over the entire list, which is a pain with large lists. Do I have to implement my own custom ICollectionView, IViewCursor, and extend Sort to achieve this? I can't see an easier way at the moment. Thanks for any advice, Dion. -- 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/
RE: [flexcoders] Question about creating a rotating horizontal list on flex
Make sure that the object that you call dispatchEvent on is the same as the object where you did the addEventListener. So if 'this' in the addEventListener line is the panel, make sure you're calling dispatchEvent on the Panel. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Barrau Antoine Sent: Tuesday, January 10, 2006 9:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Question about creating a rotating horizontal list on flex Hi, i'm trying to create in flex some kind of nice catalog presenting its elements in a sliding (or rotating) way, each element having a different alpha reporting to its position (the element on the center of the screen is 100% alpha, the side elements are 0, etc..). As i'm new in flex, i'm trying to use event broadcast and listener to manage all that. I'm creating a simple canvas and call several time the same custom mxml component (offerPanel, basically a panel displaying my element information), each element having his alpha depending on a formula (and this is working fine). What i want to do is to have a button enabling the slide and thus changing the x coordinate of all element panels in one click (to trigger an effect for example). What i do so far is : my button call a click function doing : dispatchEvent({type:moveOffersRight}); in my offerPanel.mxml, i do the following thing : function initializePanel():Void { this.addEventListener(moveOffersRight,mx.utils.Delegate.create(this, function(event):Void { mx.core.Application.alert(received moveOffersRight);})); } and call this function at initialization of the main mx:Panel of my offerPanel component. The fact is that nothing happen when i click on the button. I think i'm doing a big mistake somewhere (may be i don't really understand how broadcast and listener works together?). Anybody to help me so far? thanks a lot, Antoine ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.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/
RE: [flexcoders] How to create Validator via ActionScript
Sorry, in 1.5 validators really aren't meant to be created in ActionScript. However in Flex 2 they're completely faceless and just begging for you to create them in AS. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stanislav Zayarsky Sent: Wednesday, January 11, 2006 5:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to create Validator via ActionScript Hello FlexCoders, Currently I'm receiveing data from DB and then create interface dynamically according to the received data. So the question is, how I can create Validators for dynamically created TextFields? Best regards Stanislav -- 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/
RE: [flexcoders] How to reference fields in
Did you put the id of the child MXML component in the binding expression? So if you did childComponent id=foo/ And childComponent.mxml is the one with the textinput mx:TextInput id=headline/ Then in your main MXML you would bind to {foo.headLine.text} Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: Wednesday, January 11, 2006 9:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to reference fields in I have a parent mxml which includes a child MXML included in it 'inputForm' In the main mxml is it possible to refer to fields in the child I want to refer to the textfield of a textInput with an id of headLine in a model such as mx:Model id=myInputForm headlineModel{headLine.text}/headlineModel /mx:Model This produces a compilation error of Access of undefined property headLine If I try headlineModel{inputForm.headLine.text}/headlineModel I get a runtime error Property headLine not found on class inputForm and there is no default value -- 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/