[flexcoders] Re: ToolTipManager stops processing of styles and updates of the displaylist?
I don't like unanswered questions, so i'll answer it myself. It was actually a style-inheritence problem. My implementention had a lil' bug. But because of style inheritence, it seemed to work fine in the first context i used the component in. But using it in a second environment, the bug occoured. So: beware of style ineritence :) --- In flexcoders@yahoogroups.com, florian.salihovic florian.saliho...@... wrote: I have noticed a strange behaviour regarding the ToolTipMananger. Actually i'm not quite sure, since the ToolTipManger seems to be the cause. I implemented a component which works just fine. Styles are applied, measuring works etc. The component should also be used as tooltip in certain parts of the application. But now the magic comes into play. A subclass of the component is implementing mx.core.IToolTip to ensure the component can be used as ToolTip. But it seems styles are not applied and at least one call of updateDisplayList is lost when the subclass is used as a tooltip. What can be the reason for this behaviour? Is the mechanism for creating tooltips responsible for stopping updates of the UIComponent used as a tooltip? Best regards and thanks in advanced.
RE: [flexcoders] Re: Crash while using MenuBar from a module.
I would use the -keep-generated-actionscript option and -link-report option to see why MenuBar's default styles are not being added to the StyleManager. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Rajkumar Sent: Sunday, August 16, 2009 10:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Crash while using MenuBar from a module. Hello Alex, I had mentioned the top of stack trace in the first post , here is the complete stack trace. TypeError: Error #1007: Instantiation attempted on a non-constructor. at mx.controls::MenuBar/updateBackground()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\MenuBar.as:1029] at mx.controls::MenuBar/styleChanged()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\MenuBar.as:1263] at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::addingChild()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5244] at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChild()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:3262] at mx.core::Container/addChildAt()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:2207] at mx.core::Container/addChild()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:2140] at com.atex.OV.Core.UI::OVUIMgr/addUIToApp()[G:\Projects_RJK\AtexUIF\Codebase\App\src\com\atex\OV\Core\UI\OVUIMgr.as:111] at com.atex.OV.Core.Application::OVAppBase/listenPlnLoadNotification()[G:\Projects_RJK\AtexUIF\Codebase\App\src\com\atex\OV\Core\Application\OVAppBase.as:251] at com.atex.OVF.Core.Notification::OVNotificationCenter/postNotification()[G:\Projects_RJK\AtexUIF\Codebase\Framework\com\atex\OVF\Core\Notification\OVNotificationCenter.as:179] at com.atex.OVF.Core.Notification::OVNotificationCenter/postNotificationName()[G:\Projects_RJK\AtexUIF\Codebase\Framework\com\atex\OVF\Core\Notification\OVNotificationCenter.as:197] at com.atex.OV.Core.Module::OVModuleMgr/sendPlnsLoadNotification()[G:\Projects_RJK\AtexUIF\Codebase\App\src\com\atex\OV\Core\Module\OVModuleMgr.as:349] at com.atex.OV.Core.Module::OVModuleMgr/modulesLoadHandler()[G:\Projects_RJK\AtexUIF\Codebase\App\src\com\atex\OV\Core\Module\OVModuleMgr.as:255] at com.atex.OV.Core.Module::OVModuleMgr/onModuleLoad()[G:\Projects_RJK\AtexUIF\Codebase\App\src\com\atex\OV\Core\Module\OVModuleMgr.as:182] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at ModuleInfoProxy/moduleEventHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\modules\ModuleManager.as:1097] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at ModuleInfo/readyHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\modules\ModuleManager.as:752] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::FlexModuleFactory/update()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:327] at mx.core::FlexModuleFactory/timerHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:556] at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick() Thanks, Rajkumar --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aha...@... wrote: Post the stack trace. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Rajkumar Sent: Thursday, August 13, 2009 11:13 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Crash while using MenuBar from a module. I am creating three projects as following:- 1. MainApp: Main project that give output executable swf, i.e main application. 2. MyFramework: A flex library project, which will contain all the interface declarations. 3. CustomModule: A flex project, which will generate one/more module/s, which will be loaded in the mainApp. The Settings for the projects is as following:- MainApp: Flex Build Path: Library Path: Framework linkage is RSL, Flex SDK is added with following settings:- Playerglobal: LinkType=external flex: LinkType=rsl, Verification = None, DeploymentPath=flex/flex.swf, Automatically extract swf is enabled. framework: LinkType=rsl, Verification = None, DeploymentPath=flex/framework.swf, Automatically extract swf is enabled. rpc: LinkType=rsl, Verification = None, DeploymentPath=flex/rpc.swf, Automatically extract swf is enabled. utilities: LinkType=rsl, Verification = None,
RE: [flexcoders] BUG: mx.controls.LinkBar - can somebody confirm?
Probably a bug. File a bug and a patch. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Fotis Chatzinikos Sent: Monday, August 17, 2009 2:21 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] BUG: mx.controls.LinkBar - can somebody confirm? bump On Thu, Jul 30, 2009 at 12:49 PM, fotis.chatzinikos fotis.chatzini...@gmail.commailto:fotis.chatzini...@gmail.com wrote: override protected function hiliteSelectedNavItem(index:int):void { var child:Button; // Un-hilite the current selection. if (selectedIndex != -1 selectedIndex numChildren) { child = Button(getChildAt(selectedIndex)); child.enabled = true; } // Set new index. super.selectedIndex = index; // Hilite the new selection. child = Button(getChildAt(selectedIndex)); child.enabled = false; } Should not the last two lines be inside a conditional != -1? There is not button @ -1 : if (selectedIndex != -1) { child = Button(getChildAt(selectedIndex)); child.enabled = false; } -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.commailto:fotis.chatzini...@gmail.com,
[flexcoders] Re: Scale a Class file (png, gif, etc...)
Hi, Downscaling of a bitmap image can be done in a number of ways (downsampling is a better term and procedure). The real problem is: what do you expect the outcome to be, if you scale down a line graphic of 1 pixel width, or a detail in the bitmap of 1 pixel in the original 50x50 bitmap that has to be scaled to 15x15 pixels, i.e. 330% down! (this is the original question). One third of a pixel? Do it any way you like it, but the result has to be 1/3 of a pixel whatever that means and however this appears ... :) thanks George --- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote: Yes, code would be great! I can't believe how difficult this is to get implemented. Hope these things become easier in Flex 5. J --- In flexcoders@yahoogroups.com, ag_rcuren robert.vancuren.jr@ wrote: I ran into this same problem and could not find and easy fix. I ended up extending the LinkButton class. I created a button class that can load it's icons on the fly from any where local, net, or embedded. Instead of needing to set them strictly to Class I created a iconSource property. This allowed me to load the image scale it down and then use that scaled image as the icon. This required some trickery as you have to get the icon for each state by name and manually add your custom icons, but it does work just fine. I don't have time to include code right now but I can post some example code later if you would like. I hope what I said made sense. --- In flexcoders@yahoogroups.com, flexaustin flexaustin@ wrote: I am trying to use a LinkButton in my app and assign an image to the icon variable, but I need to scale down or make sure the image isn't any larger than 15 x 15 pixels. Is there a way to scale a class file? I tried to load a png file then convert the png to Bitmap, tried BitmapData, and tried BitmapAsset and then scale the embedded image, but non of this worked. So to recap embed and image (which is 50x50 pixels) and shrink it down to (15x15 pixels) and assign it to a linkButtons icon. Anyone know of a solution?
[flexcoders] Instant messaging example
Hi all, I am hoping for some help on this one as it has me beat. I have been looking around this group trying to find an answer but everything I try fails. This site is running on localhost in IIS7 on Windows 7 using a Website from a Visual Studio template. The site is running with the classic pipeline. I have changed the services to point at 'weborb-services-config.xml' and not 'services-config.xml' and I have change the compiler to look at webord30 dir instead of the one in the create website. I have posted the flex error below. Any help would be appreciated. Thanks [MessagingError message='Channel 'weborb-rtmp' does not exist in the configuration.'] at mx.messaging.config::ServerConfig$/createChannel()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\config\ServerConfig.as:486] at mx.messaging.config::ServerConfig$/getChannel()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\config\ServerConfig.as:222] at Chat/establishConnection()[C:\Users\Andrew\Documents\Flex Builder 3\Chat\src\Chat.mxml:15] at Chat/___Chat_Application1_creationComplete()[C:\Users\Andrew\Documents\Flex Builder 3\Chat\src\Chat.mxml:2] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298] at mx.core::UIComponent/set initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1169] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628] at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]
[flexcoders] Flex 3.3 SDK and DataVisualization
Hi, Is it possible to use the Flex 3.3 SDK on its own, without Flex Builder 3, and use the Data Visualization components such as AdvancedDataGrid? I have followed the installation instructions at http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_sdk. html#Datavisualization and placed the datavisualization files in the required places. I have added the following to my CLASSPATH: $FLEX_HOME\frameworks\libs\datavisualization.swc. However, when I try to compile some code using jrun4 I get the following error message: Could not resolve mx:AdvancedDataGrid to a component implementation. What else do I need to do? How do I tell it to use Flex 3 and not Flex 2.0.1 if I am not using Flex Builder? Thanks, Annette
[flexcoders] Re: Advanced Data Grid + ILOG
I've posted the changes I did to the expandAll() method in the comments section in the bug. Can you try it? Please re-open the bug and attach your sample file if you are still encountering this issue. Thanks, Sameer
[flexcoders] Error: -Bookmark no longer valid- when removing or adding items to node's children on AdvancedDataGrid with hierarchical data
Hi, I'm having a serious problem with AdvancedDataGrid and HierarchicalCollectionView. I have following structure on ADG (whose datasource is hierarchical data): ContainerObj1 -ChildContainerObj1 --ChildObj1 --ChildObj2 -ChildContainerObj2 --ChildObj3 --ChildObj4 -ChildContainerObj3 --etc ContainerObj1's children property is a sorted ArrayCollection. If I scroll the ADG so that ChildContainerObj1 and it's children are not visible and programmatically add new ChildContainerObj4 (it has it's own children too!) by calling ContainerObj.children.addItem(ContainerObj1); then I get the following Error below. If I choose to Continue it works ok. I've tried dozens of ways to get aroung this but nothing seems to work. If ADG is not scrolled and ContainerObj1 is visible, then it works without errors. This starts to seem like a bug to me, any ideas how to fix this or how to workaround it or should I file a bug? Error: Bookmark no longer valid. at ListCollectionViewCursor/seek()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:2055] at mx.collections::HierarchicalCollectionViewCursor/collectionChangeHandler()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\collections\HierarchicalCollectionViewCursor.as:1116] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::HierarchicalCollectionView/nestedCollectionChangeHandler()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\collections\HierarchicalCollectionView.as:1202] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::ListCollectionView/dispatchEvent()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:833] at mx.collections::ListCollectionView/addItemsToView()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:931] at mx.collections::ListCollectionView/listChangeHandler()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:1051] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::ArrayList/internalDispatchEvent()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\collections\ArrayList.as:510] at mx.collections::ArrayList/addItemAt()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\collections\ArrayList.as:311] at mx.collections::ListCollectionView/addItemAt()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:501] ...
[flexcoders] Html Form and Flex
Hello, I have a html form that I have to launch to generate a paiement with my bank from my Flex application : FORM ACTION='/cgi-bin/modulev2.cgi' METHOD=post INPUT TYPE = hidden NAME=TOTAL VALUE='1500' INPUT TYPE = submit NAME=Paiement VALUE='paiement' /FORM How to launch this form from my Flex application, and how to set the VALUE field from the flex application ? Thank you, Christopher,
Re: [flexcoders] Re: PDF-ActionScript communication in AIR app
I've found this article today : http://gonzalo.huerta.cl/?p=13 inudor a écrit : No ideas I guess... and maybe something like manipulating the PDF file when the users loads it, like injecting those handler functions that should be added by Adobe Acrobat? Do you know if this would be possible with any ActionScript PDF library? thanks in advances, Marc Baiges Camprubí --- In flexcoders@yahoogroups.com, inudor mar...@... wrote: Hi all, I'm trying to create an AIR application where an important feature must be loading PDF documents, rendering them in an HTML component, and navigating the PDF document pages as the user interacts with the AIR application. For example, imagine 2 PDF documents rendered in the AIR app, and browsing pages in first PDF would result into the second PDF changing pages too. Is there any way to listen/trigger those kind of events to a PDF in a HTML component in AIR? I saw this article http://www.adobe.com/devnet/air/ajax/quickstart/scripting_pdf.html , but I understand you have to create the PDF documents with special handling functions for javascript communication, and I can't assume this for my application, as I want the user to be able to use any PDF file he/she wants. thanks, Marc Baiges Camprubí
[flexcoders] Re: Instant messaging example
I don't use IIS but I may be able to help. Can you post your services-config.xml file and your remoting-config.xml file both on the flex side as well as the WebORB side. --- In flexcoders@yahoogroups.com, Andrew roly...@... wrote: Hi all, I am hoping for some help on this one as it has me beat. I have been looking around this group trying to find an answer but everything I try fails. This site is running on localhost in IIS7 on Windows 7 using a Website from a Visual Studio template. The site is running with the classic pipeline. I have changed the services to point at 'weborb-services-config.xml' and not 'services-config.xml' and I have change the compiler to look at webord30 dir instead of the one in the create website. I have posted the flex error below. Any help would be appreciated. Thanks [MessagingError message='Channel 'weborb-rtmp' does not exist in the configuration.'] at mx.messaging.config::ServerConfig$/createChannel()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\config\ServerConfig.as:486] at mx.messaging.config::ServerConfig$/getChannel()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\config\ServerConfig.as:222] at Chat/establishConnection()[C:\Users\Andrew\Documents\Flex Builder 3\Chat\src\Chat.mxml:15] at Chat/___Chat_Application1_creationComplete()[C:\Users\Andrew\Documents\Flex Builder 3\Chat\src\Chat.mxml:2] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298] at mx.core::UIComponent/set initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1169] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628] at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]
[flexcoders] Re: Scale a Class file (png, gif, etc...)
here is a little sample code of loading an image from the web then scaling it and using it as a buttons icon. You should be able to easily modify this to work with embedded assets. If not let me know and I could spend a little time later doing that also. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:local=* x=100 y=121 mx:Script ![CDATA[ import mx.controls.Button; import mx.controls.Image; import mx.core.MovieClipAsset; import mx.events.FlexEvent; private var loader:Loader; private var request:URLRequest; private function setIcon(target:Button, url:String):void { var iconLoader:Loader = new Loader(); //Set the complete handler to use a decorated function based on the iconName iconLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, iconLoaderCompleteDecorator(target)); iconLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, iconIOErrorHandler); iconLoader.load(new URLRequest(url)); } private function iconLoaderCompleteDecorator(target:Button):Function { //Build the real function that will handle the events var realHandler:Function = function bla(event:Event):void { var loadedIcon:DisplayObject = LoaderInfo(event.target).content replaceIcon(target, upIcon, new Bitmap(Bitmap(loadedIcon).bitmapData, auto, true)); replaceIcon(target, downIcon, new Bitmap(Bitmap(loadedIcon).bitmapData, auto, true)); replaceIcon(target, overIcon, new Bitmap(Bitmap(loadedIcon).bitmapData, auto, true)); }; return realHandler; } private function replaceIcon(target:Button, iconName:String, newIcon:DisplayObject):void { trace(loaded); var iconToReplace:DisplayObject = target.getChildByName(iconName); trace(iconToReplace); if (iconToReplace) { target.removeChild(iconToReplace); } iconToReplace = null; //use a movie clip asset to support both images and swfs //this also allows us to add children to the icon if we want //because MovieClipAsset is a DisplayObjectContainer iconToReplace = new MovieClipAsset(); iconToReplace.name = iconName; iconToReplace.visible = false; target.addChild(iconToReplace); var maxIconWidth:Number = 25; var maxIconHeight:Number = 25; if (newIcon.width maxIconWidth || newIcon.height maxIconHeight) { var scaleX:Number = maxIconWidth / newIcon.width; var scaleY:Number = maxIconHeight / newIcon.height; if (isNaN(scaleX)) scaleX = 1; if (isNaN(scaleY)) scaleY = 1; var maxScale:Number = Math.min(scaleX, scaleY); if (maxScale != 1) { var trans:Matrix = new Matrix(); trans.scale(maxScale, maxScale); newIcon.transform.matrix = trans; }
[flexcoders] Re: Html Form and Flex
I would use HTTPService. mx:HTTPService method=POST url=/cgi-bin/modulev2.cgi result=myResultHandler(event) mx:request xmlns= PaiementPaiement/Paiement TOTAL1500/TOTAL /mx:request /mx:HTTPService --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, I have a html form that I have to launch to generate a paiement with my bank from my Flex application : FORM ACTION='/cgi-bin/modulev2.cgi' METHOD=post INPUT TYPE = hidden NAME=TOTAL VALUE='1500' INPUT TYPE = submit NAME=Paiement VALUE='paiement' /FORM How to launch this form from my Flex application, and how to set the VALUE field from the flex application ? Thank you, Christopher,
[flexcoders] httpservice what does this error mean?
Hi I am reading a RSS feed and handling the result with the following function: public function toolResultHandler(event:ResultEvent):void { var f_Array:ArrayCollection = new ArrayCollection; f_Array = event.result.RDF.item as ArrayCollection; if (f_Array!=null) toolDataGrid.dataProvider = f_Array; } But the problem is sometime I get the following error. I do not get it all the time but once in a while. Here is the error message - TypeError: Error #1010: A term is undefined and has no properties. at sole1/toolResultHandler()[C:\Users\admin\Documents\Flex Builder 3\siliconsole1\src\com\sisi\Sole\helperFunctions\userPanelHelper\toolHelper.as:10] at sole1/__userToolHTTP_result()[C:\Users\admin\Documents\Flex Builder 3\sole1\src\sole1.mxml:75] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\http\mxml\HTTPService.as:290] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:193] at mx.rpc::Responder/result()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:43] at mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74] at DirectHTTPMessageResponder/completeHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:403] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete() Why am I getting this error?
[flexcoders] Swf in a html
Hello, How to put a swf carrousel made with Flex, in the middle of a html page ? Thank you, Christophe,
[flexcoders] Re: httpservice what does this error mean?
Something has not been created when you try to access it. This is probably due to a timing problem. When you get the error in the debugger, check that all the variables you are trying to access are not null. From the stack trace it looks like it is failing at line 10 of toolHelper.as. Check all variables on that line. --- In flexcoders@yahoogroups.com, hworke kanps...@... wrote: Hi I am reading a RSS feed and handling the result with the following function: public function toolResultHandler(event:ResultEvent):void { var f_Array:ArrayCollection = new ArrayCollection; f_Array = event.result.RDF.item as ArrayCollection; if (f_Array!=null) toolDataGrid.dataProvider = f_Array; } But the problem is sometime I get the following error. I do not get it all the time but once in a while. Here is the error message - TypeError: Error #1010: A term is undefined and has no properties. at sole1/toolResultHandler()[C:\Users\admin\Documents\Flex Builder 3\siliconsole1\src\com\sisi\Sole\helperFunctions\userPanelHelper\toolHelper.as:10] at sole1/__userToolHTTP_result()[C:\Users\admin\Documents\Flex Builder 3\sole1\src\sole1.mxml:75] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\http\mxml\HTTPService.as:290] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:193] at mx.rpc::Responder/result()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:43] at mx.rpc::AsyncRequest/acknowledge()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74] at DirectHTTPMessageResponder/completeHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:403] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete() Why am I getting this error?
[flexcoders] Re: Advanced Data Grid + ILOG
--- In flexcoders@yahoogroups.com, sameerbhatt13 sameerbhat...@... wrote: I've posted the changes I did to the expandAll() method in the comments section in the bug. Can you try it? Please re-open the bug and attach your sample file if you are still encountering this issue. Thanks, Sameer Thanks Sameer I responded on the bug. We would have to refactor all of the iLog code because they have a direct dependency on the advanced data grid. I can look more into it today though to see if there is a way around it.
[flexcoders] Re: Advanced Data Grid + ILOG
Hi again sameer this won't compile... dispatchAdvancedDataGridEvent(AdvancedDataGridEvent.ITEM_OPEN, item, itemRenderer, null); did you mean something along the lines of this? var evt:AdvancedDataGridEvent = new AdvancedDataGridEvent( AdvancedDataGridEvent.ITEM_OPEN, false, false, -1, null, -1, null, itemRenderer, null, false, false, item, null, null); dispatchEvent( evt ); --- In flexcoders@yahoogroups.com, cuttenv cutt...@... wrote: --- In flexcoders@yahoogroups.com, sameerbhatt13 sameerbhatt13@ wrote: I've posted the changes I did to the expandAll() method in the comments section in the bug. Can you try it? Please re-open the bug and attach your sample file if you are still encountering this issue. Thanks, Sameer Thanks Sameer I responded on the bug. We would have to refactor all of the iLog code because they have a direct dependency on the advanced data grid. I can look more into it today though to see if there is a way around it.
[flexcoders] Datagrids, radiobutton and scrolling
I remember reading an article that talked about this problem, but I can't seem to find it again. I have some radio buttons in a item renderer for a datagrid. Flex, for a reason beyond me, doesn't keep track of radio button values on a per-row basis in a datagrid - it keeps track of them based on the position in the window. So, if you select a single radio button, scroll down a few pages, you'll find another row with a radio button selected, even though you never selected it. I know this has been addressed, but for the life of me I can't find any articles about it again. Can anyone point me in the right direction to fix this problem? Tref
[flexcoders] Re: Generated code not working when app is loaded as module
anyone with idea? --- In flexcoders@yahoogroups.com, poweribo power...@... wrote: I used Flexbuilder to generated the proxy code for my webservices and my app works perfectly as standalone swf file but when I load it as a module (loaded from another main swf file), it throws these kind of errors (see below). I tried declaring and instantiating the objects in question, also made sure are using public. I dont have custom utility function for calling getDefinitionByName() as well. but im getting the same errors. Does any one have a fix or workaround for this? - ReferenceError: Error #1065: Variable MyObject is not defined. at global/flash.utils::getDefinitionByName() at mx.rpc.xml::SchemaTypeRegistry/getClass()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\SchemaTypeRegistry.as:82] at mx.rpc.xml::XMLDecoder/createContent()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\XMLDecoder.as:1832] at mx.rpc.xml::XMLDecoder/decode()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\XMLDecoder.as:161] at mx.rpc.soap::SOAPDecoder/decodeBody()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPDecoder.as:452] at mx.rpc.soap::SOAPDecoder/decodeEnvelope()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPDecoder.as:304] at mx.rpc.soap::SOAPDecoder/decodeResponse()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPDecoder.as:236] at webservices.trademanager::BaseTradeManagerService/processResult() at mx.rpc::AsyncResponder/result() at mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74] at DirectHTTPMessageResponder/completeHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:381] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete()
[flexcoders] Re: Datagrids, radiobutton and scrolling
Note that Flex re-uses item renderers. Check out http://blogs.adobe.com/aharui/item_renderers/ --- In flexcoders@yahoogroups.com, Trefalgar Bain trefal...@... wrote: I remember reading an article that talked about this problem, but I can't seem to find it again. I have some radio buttons in a item renderer for a datagrid. Flex, for a reason beyond me, doesn't keep track of radio button values on a per-row basis in a datagrid - it keeps track of them based on the position in the window. So, if you select a single radio button, scroll down a few pages, you'll find another row with a radio button selected, even though you never selected it. I know this has been addressed, but for the life of me I can't find any articles about it again. Can anyone point me in the right direction to fix this problem? Tref
[flexcoders] WebService Payload Truncated (#2006 Out of Bounds Error) on Send in Gumbo
Hi, I have a problem sending a large base64Binary parameter as part of a SOAP body using Gumbo build 9127. The payload generated by Flex to be sent looks like this (truncated for brevity): SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; SOAP-ENV:Body SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; tns:mLoadCalibration xmlns:tns=x.com pFileName xsi:type=xsd:stringSCANNER_374_090511_1201_full.cal/pFileName pFileContent xsi:type=xsd:base64BinaryAABAQAAAu0MAAAzCMxEPwtSDDsKjRonCAAAWQ3JQtDwK1yM8eFMfvArX...IXD3uCWusQSh70AkBpBAPAbRpZjHEbNzKxAXE+tQA==/pFileContent /tns:mLoadCalibration /SOAP-ENV:Body /SOAP-ENV:Envelope Before the entire payload is sent, my responder fault handler is receiving an Error #2006: The supplied index is out of bounds.. The responder result handler is shortly after triggered, with the result form the web service. Looking at the raw data sent over the wire using Wireshark, I was able to see that Flex is truncating on send the contents of the parameter (pFileContent), but then completing the send of the remainder of the payload. Here is an example of what the received data looked like (note the truncation of the pFileContent element) SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; SOAP-ENV:Body SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; tns:mLoadCalibration xmlns:tns=x.com pFileName xsi:type=xsd:stringSCANNER_374_090511_1201_full.cal/pFileName pFileContent xsi:type=xsd:base64BinaryAABAQAAAu0MAAAzCMxEPwtSDDsKjRonCAAAWQ3JQtDwK1yM8eFMfvArX...IXD /tns:mLoadCalibration /SOAP-ENV:Body /SOAP-ENV:Envelope Any ideas what could be causing this. Any tips for debugging further? Thanks, Mike
Re: [flexcoders] Module and Application Communication.
Have you tested to see if this is a security / app domain issue? Cheers, Rick Winscot On 8/17/09 1:24 PM, cuttenv cutt...@yahoo.com wrote: I have a rather straight forward question. I am creating a module like this: private var modInfo:IModuleInfo private var myModule:MyCustomMdoule; //In creation complete of application modInfo = ModuleManager.getModule('myMod.swf'); modInfo.addEventListener(ModuleEvent.READY, onModuleReady); modInfo.load(); //In tho onModuleReady command myModule = modInfo.factory.create() as MyCustomModule; moduleContent.addChild( myModule ); myModule.addEventListener( 'customEventDispatchedByModule', onEvent ); //Inside my module there is dispatchEvent( new Event('customEventDispatchedByModule',true) ); Even though the code for the dispatch event is running the handler never runs... am I doing something wrong?? or do module not dispatch events??
[flexcoders] RIA Unleashed : Boston - new Flex/AIR focused event with top-notch speakers!
Hi all, My name is Brian Rinaldi and I have run the Flex Camps in Boston the past two years (as well as the Miami one). I wanted to let everyone know that this year I am expanding Flex Camp Boston into a 1 day, 3 track event called RIA Unleashed : Boston (http://www.riaunleashed.com http://www.riaunleashed.com ). We will still have the great Flex and AIR focused content we have always had but will also have a track focused on things like Catalyst, LCDS/Blaze and UX as well as a track focused on ColdFusion. I already have some awesome speakers lined up. For example, I have the following folks focused on Flex, AIR, LCDS or Catalyst (in alpha order by last name): Tim Buntel, Elad Elrom, Adam Flater, Kevin Hoyt, Andrew Powell, Jeff Tapper, David Tucker, Jesse Warden and Todd Yard. See the full list of confirmed speakers here http://www.riaunleashed.com/page.cfm/agenda (some more exiting names to come). Currently there are still a few early bird tickets remaining at the $30 price (after that it is $50-$60). This includes lunch, free parking and coffee service as well as any swag or other events I can manage to get together (more on that coming soon I hope). I think this is an amazing deal - especially given that some of those prices are below my actual per person cost. http://www.riaunleashed.com Register today! http://www.riaunleashed.com Please feel free to contact me if you have any questions about the event at brian.rina...@gmail.com. I hope to see you there! Brian Rinaldi blog - http://www.remotesynthesis.com/blog Twitter - http://twitter.com/remotesynth Boston CFUG - http://www.bostoncfug.org Adobe Community Expert - http://groups.adobe.com/people/06408603a0
[flexcoders] Fields grouping?
hi guys, Is there a component that allows us to group fields/ objects together? I can't find a built in object, I'm after something visual that i can use to group fields, such as all the address fields together and another group to collate the numerous emails and phone numbers... Can I draw it? Is there a line tool? Thanks! :) Nick
[flexcoders] ReferenceError #1069 property not found on native class
Hi folks, Any chance anyone here has run into the following? ReferenceError: Error #1069: Property reencrypt not found on flash.data.SQLConnection and there is no default value. It's something with my environment as it's fine for other devs I'm working with. Just the following code compiles fine but breaks on me at runtime. var conn:SQLConnection = new SQLConnection(); trace(conn.reencrypt); I realize the method was added to AIR 1.5 and have tested in Flex Builder 3.3, with ADL from the command line out of a fresh 3.3 SDK download, installed app and ran with AIR 1.5.2 but have gotten the runtime error in every scenario. Also, trace(SQLErrorOperation.REENCRYPT); shows up fine so I'm implying I do have the latest airglobals.swc compiled in there. Any help would be much appreciated, thanks! David
Re: [flexcoders] Singletons and Modules - Application domain problem
Take a look at a good write-up by Steve Brownlee... http://www.fusioncube.net/index.php/cairngorm-sharing-a-common-modellocator- with-modules With the added security restrictions... Your singleton implementation may need to be hardened to prevent multiple instance... Etc. This example may help as well. http://www.quilix.com/node/5 Cheers, Rick Winscot On 8/15/09 12:11 PM, Everson Alves jho...@eversonalves.com.br wrote: Hello guys, I'm facing a weird problem. I'm working with flex Modules that are tide mxml components . Using ModuleManager to load the modules. If I load using moduleInfo.load(ApplicationDomain.currentDomain) it loads fine but as I want to use the module as independent sub applications and they use the same class definitions that doens't play nice with singletons (ModelLocator) . When loading using moduleInfo.load() expecting that it uses it's own ApplicationDomain it loads, dispatches ModuleEvent.READY event but moduleEvent.module.factory.create() gives me null. I also tried moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) but this case dispatches a ModuleEvent.ERROR saying that file isn't a loadable module or something like that. An detail that might be important is that the module is marked to be optimized to my application in compilation. thanks in advance.
Re: [flexcoders] Singletons and Modules - Application domain problem
I'll have a look at it say the outcome here. Thanks. On Tue, Aug 18, 2009 at 6:03 PM, Rick Winscot rick.wins...@zyche.comwrote: Take a look at a good write-up by Steve Brownlee... http://www.fusioncube.net/index.php/cairngorm-sharing-a-common-modellocator-with-modules With the added security restrictions... Your singleton implementation may need to be hardened to prevent multiple instance... Etc. This example may help as well. http://www.quilix.com/node/5 Cheers, Rick Winscot On 8/15/09 12:11 PM, Everson Alves jho...@eversonalves.com.br wrote: Hello guys, I'm facing a weird problem. I'm working with flex Modules that are tide mxml components . Using ModuleManager to load the modules. If I load using moduleInfo.load(ApplicationDomain.currentDomain) it loads fine but as I want to use the module as independent sub applications and they use the same class definitions that doens't play nice with singletons (ModelLocator) . When loading using moduleInfo.load() expecting that it uses it's own ApplicationDomain it loads, dispatches ModuleEvent.READY event but moduleEvent.module.factory.create() gives me null. I also tried moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) but this case dispatches a ModuleEvent.ERROR saying that file isn't a loadable module or something like that. An detail that might be important is that the module is marked to be optimized to my application in compilation. thanks in advance. -- Jhonny Everson
Re: [flexcoders] Swf in a html
http://www.w3schools.com/flash/flash_inhtml.asp On Tue, Aug 18, 2009 at 6:25 PM, christophe_jacquelin christophe_jacque...@yahoo.fr wrote: Hello, How to put a swf carrousel made with Flex, in the middle of a html page ? Thank you, Christophe, -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Fields grouping?
How about mx.containers.Form ? --Tim From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Nick Middleweek Sent: Wednesday, 19 August 2009 3:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Fields grouping? hi guys, Is there a component that allows us to group fields/ objects together? I can't find a built in object, I'm after something visual that i can use to group fields, such as all the address fields together and another group to collate the numerous emails and phone numbers... Can I draw it? Is there a line tool? Thanks! :) Nick __ Notice: This email and attachments (if any) is for the exclusive use of the addressee and may contain information that is privileged and confidential. Any unauthorised use of the contents of the email and/or attachments is expressly prohibited. If you are not the addressee of this email, please notify me immediately by email and then immediately destroy any electronic or paper copy of this email and/or attachments. Carsales.com Ltd and its related companies do not accept responsibility for the views expressed in the email or for the consequences of any computer viruses that may be transmitted with this email. This email is subject to copyright. No part of it should be reproduced, adapted or transmitted without the written consent of the copyright owner.
Re: [flexcoders] Fields grouping?
On Tue, Aug 18, 2009 at 7:07 PM, Nick Middleweek n...@middleweek.co.ukwrote: hi guys, Is there a component that allows us to group fields/ objects together? I can't find a built in object, I'm after something visual that i can use to group fields, such as all the address fields together and another group to collate the numerous emails and phone numbers... You can use a container with a border I. I'd personally use Panel. however there are several ways to do this. Please note this was to be quick not pretty. See below ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute backgroundGradientAlphas=[1.0, 1.0] backgroundGradientColors=[#FF, #FF] mx:Form x=10 y=10 borderStyle=inset width=293 mx:FormHeading label=Address/ mx:FormItem label=House mx:TextInput/ /mx:FormItem mx:FormItem label=Street mx:TextInput/ /mx:FormItem mx:FormItem label=Town mx:TextInput/ /mx:FormItem /mx:Form mx:Form x=10 y=158 width=293 borderStyle=inset height=170 mx:FormHeading label=Contact Details/ mx:FormItem label=Mobile mx:TextInput/ /mx:FormItem mx:FormItem label=Phone mx:TextInput/ /mx:FormItem mx:HRule width=100%/ mx:FormItem label=e-mail mx:TextInput/ /mx:FormItem /mx:Form /mx:Application Or if you want it dynamic you can use something like an accordian. Can I draw it? Is there a line tool? I think theres lines in the shape area Thanks! :) Nick
Re: [flexcoders] ReferenceError #1069 property not found on native class
All I can think of is check the verson of flash player but I don't know if it could cause that problem. On Tue, Aug 18, 2009 at 7:17 PM, dhchang77 dhchan...@yahoo.com wrote: Hi folks, Any chance anyone here has run into the following? ReferenceError: Error #1069: Property reencrypt not found on flash.data.SQLConnection and there is no default value. It's something with my environment as it's fine for other devs I'm working with. Just the following code compiles fine but breaks on me at runtime. var conn:SQLConnection = new SQLConnection(); trace(conn.reencrypt); I realize the method was added to AIR 1.5 and have tested in Flex Builder 3.3, with ADL from the command line out of a fresh 3.3 SDK download, installed app and ran with AIR 1.5.2 but have gotten the runtime error in every scenario. Also, trace(SQLErrorOperation.REENCRYPT); shows up fine so I'm implying I do have the latest airglobals.swc compiled in there. Any help would be much appreciated, thanks! David -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Module and Application Communication.
not sure. How could I test that? They are both on the same domain (locahost) and even in the same directory. Wouldn't it throw a sandbox violation error if it was that? --- In flexcoders@yahoogroups.com, Rick Winscot rick.wins...@... wrote: Have you tested to see if this is a security / app domain issue? Cheers, Rick Winscot On 8/17/09 1:24 PM, cuttenv cutt...@... wrote: I have a rather straight forward question. I am creating a module like this: private var modInfo:IModuleInfo private var myModule:MyCustomMdoule; //In creation complete of application modInfo = ModuleManager.getModule('myMod.swf'); modInfo.addEventListener(ModuleEvent.READY, onModuleReady); modInfo.load(); //In tho onModuleReady command myModule = modInfo.factory.create() as MyCustomModule; moduleContent.addChild( myModule ); myModule.addEventListener( 'customEventDispatchedByModule', onEvent ); //Inside my module there is dispatchEvent( new Event('customEventDispatchedByModule',true) ); Even though the code for the dispatch event is running the handler never runs... am I doing something wrong?? or do module not dispatch events??
[flexcoders] Re: Instant messaging example
Hi valdhor, thanks for any help you can give me. From the custom site: 'services-config.xml' ?xml version=1.0 encoding=UTF-8? services-config services service-include file-path=remoting-config.xml / service-include file-path=data-management-config.xml / /services channels channel-definition id=my-amf class=mx.messaging.channels.AMFChannel endpoint uri=weborb.aspx class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled /properties /channel-definition channel-definition id=amf-sessionactivation class=mx.messaging.channels.AMFChannel endpoint uri=weborb.aspx?activate=session class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled /properties /channel-definition channel-definition id=amf-singletonactivation class=mx.messaging.channels.AMFChannel endpoint uri=weborb.aspx?activate=application class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled /properties /channel-definition channel-definition id=my-secure-amf class=mx.messaging.channels.SecureAMFChannel endpoint uri=weborb.aspx class=flex.messaging.endpoints.SecureAMFEndpoint/ /channel-definition channel-definition id=air-http class=mx.messaging.channels.AMFChannel endpoint uri=http://localhost:80/weborb30/weborb.aspx; class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled /properties /channel-definition /channels /services-config 'remoting-config.xml' ?xml version=1.0 encoding=UTF-8? service id=remoting-service class=Weborb.V3Types.Core.RemotingHandler messageTypes=flex.messaging.messages.RemotingMessage adapters / default-channels channel ref=my-amf/ channel ref=my-secure-amf/ /default-channels destination id=computerinfo properties sourceGettingStarted.Examples.ComputerInfoService/source /properties /destination destination id=autoupdater properties sourceWeborb.Service.AutoUpdater/source /properties /destination destination id=ApplicationManager properties sourceFlexStore.ApplicationManager.ProductFetcher/source /properties /destination destination id=WeborbSecurity properties sourceWeborb.Management.SecurityService/source /properties /destination destination id=WeborbManagement properties sourceWeborb.Management.ManagementService/source /properties /destination destination id=WeborbConfiguration properties sourceWeborb.Management.ConfigurationService/source /properties /destination destination id=SecureTest properties sourceWeborb.Examples.InvocationTests.SecureTest/source /properties security security-constraint auth-methodCustom/auth-method roles roleadministrator/role /roles /security-constraint /security /destination destination id=AccountBalanceDestination properties sourceWeborb.Examples.AccountBalance/source /properties security security-constraint auth-methodCustom/auth-method roles roleexamplesuser/role /roles /security-constraint /security /destination destination id=WDMFCodeGen properties sourceWeborb.Management.DataManagement.Codegen.AppHandler/source /properties /destination destination id=GenericDestination properties source*/source /properties /destination destination id=BusinessIntelligenceDestination properties sourceWeborb.Management.RBIManagementService/source /properties /destination destination channels=amf-sessionactivation id=SessionGenericDestination channels channel ref=amf-sessionactivation / /channels properties source*/source /properties /destination destination channels=amf-singletonactivation id=SingletonGenericDestination channels channel ref=amf-singletonactivation / /channels properties source*/source /properties /destination /service And from weborb 'services-config.xml' ?xml version=1.0 encoding=UTF-8? services-config services
RE: [flexcoders] Re: Module and Application Communication.
I think you would have had some other problem if it was security/domain related. You didn't say when the event gets dispatched, so maybe it gets dispatched before you add your listener. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of cuttenv Sent: Tuesday, August 18, 2009 3:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Module and Application Communication. not sure. How could I test that? They are both on the same domain (locahost) and even in the same directory. Wouldn't it throw a sandbox violation error if it was that? --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Rick Winscot rick.wins...@... wrote: Have you tested to see if this is a security / app domain issue? Cheers, Rick Winscot On 8/17/09 1:24 PM, cuttenv cutt...@... wrote: I have a rather straight forward question. I am creating a module like this: private var modInfo:IModuleInfo private var myModule:MyCustomMdoule; //In creation complete of application modInfo = ModuleManager.getModule('myMod.swf'); modInfo.addEventListener(ModuleEvent.READY, onModuleReady); modInfo.load(); //In tho onModuleReady command myModule = modInfo.factory.create() as MyCustomModule; moduleContent.addChild( myModule ); myModule.addEventListener( 'customEventDispatchedByModule', onEvent ); //Inside my module there is dispatchEvent( new Event('customEventDispatchedByModule',true) ); Even though the code for the dispatch event is running the handler never runs... am I doing something wrong?? or do module not dispatch events??
[flexcoders] mx:request equivalent in actionscript??
Hi, how do I code the 'mx:request' in actionscript? example: mx:HTTPService id=form1 url={phpFile} method=GET resultFormat=text result={textarea1.text = String(event.result)} mx:request username{username.text}/username /mx:request /mx:HTTPService I don't see any methods on the Httpservice class to add any 'request' parameters.
RE: [flexcoders] Re: Generated code not working when app is loaded as module
Usually all webservice data classes need to be in the main applicationdomain. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of poweribo Sent: Tuesday, August 18, 2009 12:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Generated code not working when app is loaded as module anyone with idea? --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, poweribo power...@... wrote: I used Flexbuilder to generated the proxy code for my webservices and my app works perfectly as standalone swf file but when I load it as a module (loaded from another main swf file), it throws these kind of errors (see below). I tried declaring and instantiating the objects in question, also made sure are using public. I dont have custom utility function for calling getDefinitionByName() as well. but im getting the same errors. Does any one have a fix or workaround for this? - ReferenceError: Error #1065: Variable MyObject is not defined. at global/flash.utils::getDefinitionByName() at mx.rpc.xml::SchemaTypeRegistry/getClass()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\SchemaTypeRegistry.as:82] at mx.rpc.xml::XMLDecoder/createContent()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\XMLDecoder.as:1832] at mx.rpc.xml::XMLDecoder/decode()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\XMLDecoder.as:161] at mx.rpc.soap::SOAPDecoder/decodeBody()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPDecoder.as:452] at mx.rpc.soap::SOAPDecoder/decodeEnvelope()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPDecoder.as:304] at mx.rpc.soap::SOAPDecoder/decodeResponse()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\soap\SOAPDecoder.as:236] at webservices.trademanager::BaseTradeManagerService/processResult() at mx.rpc::AsyncResponder/result() at mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74] at DirectHTTPMessageResponder/completeHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:381] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete()
Re: [flexcoders] Singletons and Modules - Application domain problem
It's a good post but doesn't solve my problem without a lot of changes in the whole application. What i was really wanting from here is to know why I can't load the modules into different application domains. I'll use a ModelLocator factory per conversation instead of Singleton, but that requires changing in a lot of places, mainly propageting the conversationId all components and classes that need to access the modelLocator. On Tue, Aug 18, 2009 at 6:35 PM, Everson Alves jho...@eversonalves.com.brwrote: I'll have a look at it say the outcome here. Thanks. On Tue, Aug 18, 2009 at 6:03 PM, Rick Winscot rick.wins...@zyche.comwrote: Take a look at a good write-up by Steve Brownlee... http://www.fusioncube.net/index.php/cairngorm-sharing-a-common-modellocator-with-modules With the added security restrictions... Your singleton implementation may need to be hardened to prevent multiple instance... Etc. This example may help as well. http://www.quilix.com/node/5 Cheers, Rick Winscot On 8/15/09 12:11 PM, Everson Alves jho...@eversonalves.com.br wrote: Hello guys, I'm facing a weird problem. I'm working with flex Modules that are tide mxml components . Using ModuleManager to load the modules. If I load using moduleInfo.load(ApplicationDomain.currentDomain) it loads fine but as I want to use the module as independent sub applications and they use the same class definitions that doens't play nice with singletons (ModelLocator) . When loading using moduleInfo.load() expecting that it uses it's own ApplicationDomain it loads, dispatches ModuleEvent.READY event but moduleEvent.module.factory.create() gives me null. I also tried moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) but this case dispatches a ModuleEvent.ERROR saying that file isn't a loadable module or something like that. An detail that might be important is that the module is marked to be optimized to my application in compilation. thanks in advance. -- Jhonny Everson -- Jhonny Everson
RE: [flexcoders] Singletons and Modules - Application domain problem
A module is a factory of potentially many instances, so multiple requests to load the same url are ignored and the same factory is returned to create the instance. You might try adding dummy url variables to see if you can fool ModuleManager into loading the module SWF again. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Everson Alves Sent: Tuesday, August 18, 2009 4:38 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Singletons and Modules - Application domain problem It's a good post but doesn't solve my problem without a lot of changes in the whole application. What i was really wanting from here is to know why I can't load the modules into different application domains. I'll use a ModelLocator factory per conversation instead of Singleton, but that requires changing in a lot of places, mainly propageting the conversationId all components and classes that need to access the modelLocator. On Tue, Aug 18, 2009 at 6:35 PM, Everson Alves jho...@eversonalves.com.brmailto:jho...@eversonalves.com.br wrote: I'll have a look at it say the outcome here. Thanks. On Tue, Aug 18, 2009 at 6:03 PM, Rick Winscot rick.wins...@zyche.commailto:rick.wins...@zyche.com wrote: Take a look at a good write-up by Steve Brownlee... http://www.fusioncube.net/index.php/cairngorm-sharing-a-common-modellocator-with-modules With the added security restrictions... Your singleton implementation may need to be hardened to prevent multiple instance... Etc. This example may help as well. http://www.quilix.com/node/5 Cheers, Rick Winscot On 8/15/09 12:11 PM, Everson Alves jho...@eversonalves.com.brhttp://jho...@eversonalves.com.br wrote: Hello guys, I'm facing a weird problem. I'm working with flex Modules that are tide mxml components . Using ModuleManager to load the modules. If I load using moduleInfo.load(ApplicationDomain.currentDomain) it loads fine but as I want to use the module as independent sub applications and they use the same class definitions that doens't play nice with singletons (ModelLocator) . When loading using moduleInfo.load() expecting that it uses it's own ApplicationDomain it loads, dispatches ModuleEvent.READY event but moduleEvent.module.factory.create() gives me null. I also tried moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) but this case dispatches a ModuleEvent.ERROR saying that file isn't a loadable module or something like that. An detail that might be important is that the module is marked to be optimized to my application in compilation. thanks in advance. -- Jhonny Everson -- Jhonny Everson
[flexcoders] Re: mx:request equivalent in actionscript??
Create an object and put it in the send methods parameter... var request:Object = new Object(); request.username = username.text; form1.send(request); --- In flexcoders@yahoogroups.com, luvfotography ygro...@... wrote: Hi, how do I code the 'mx:request' in actionscript? example: mx:HTTPService id=form1 url={phpFile} method=GET resultFormat=text result={textarea1.text = String(event.result)} mx:request username{username.text}/username /mx:request /mx:HTTPService I don't see any methods on the Httpservice class to add any 'request' parameters.
[flexcoders] ComboBox not updating
The full story is too long to relate and involves the component which has given me more grief than any other - ComboBox. I'm pretty sure I established a while ago that there's a bug in using a ComboBox with a bound value for selectedIndex. I have one whose dataprovider (and current selected index) are both highly dynamic (changing in response to changes in another combobox). There is a circumstance in which the displayed label does not update until you roll over the combobox, or sometimes click on it. Is there a brute force way I can make it update? I've tried various invalidateXXX methods.
[flexcoders] Re: Instant messaging example
Well, from that file, there is no channel defined as weborb-rtmp. --- In flexcoders@yahoogroups.com, Andrew roly...@... wrote: Hi valdhor, thanks for any help you can give me. From the custom site: 'services-config.xml' ?xml version=1.0 encoding=UTF-8? services-config services service-include file-path=remoting-config.xml / service-include file-path=data-management-config.xml / /services channels channel-definition id=my-amf class=mx.messaging.channels.AMFChannel endpoint uri=weborb.aspx class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled /properties /channel-definition channel-definition id=amf-sessionactivation class=mx.messaging.channels.AMFChannel endpoint uri=weborb.aspx?activate=session class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled /properties /channel-definition channel-definition id=amf-singletonactivation class=mx.messaging.channels.AMFChannel endpoint uri=weborb.aspx?activate=application class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled /properties /channel-definition channel-definition id=my-secure-amf class=mx.messaging.channels.SecureAMFChannel endpoint uri=weborb.aspx class=flex.messaging.endpoints.SecureAMFEndpoint/ /channel-definition channel-definition id=air-http class=mx.messaging.channels.AMFChannel endpoint uri=http://localhost:80/weborb30/weborb.aspx; class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled /properties /channel-definition /channels /services-config 'remoting-config.xml' ?xml version=1.0 encoding=UTF-8? service id=remoting-service class=Weborb.V3Types.Core.RemotingHandler messageTypes=flex.messaging.messages.RemotingMessage adapters / default-channels channel ref=my-amf/ channel ref=my-secure-amf/ /default-channels destination id=computerinfo properties sourceGettingStarted.Examples.ComputerInfoService/source /properties /destination destination id=autoupdater properties sourceWeborb.Service.AutoUpdater/source /properties /destination destination id=ApplicationManager properties sourceFlexStore.ApplicationManager.ProductFetcher/source /properties /destination destination id=WeborbSecurity properties sourceWeborb.Management.SecurityService/source /properties /destination destination id=WeborbManagement properties sourceWeborb.Management.ManagementService/source /properties /destination destination id=WeborbConfiguration properties sourceWeborb.Management.ConfigurationService/source /properties /destination destination id=SecureTest properties sourceWeborb.Examples.InvocationTests.SecureTest/source /properties security security-constraint auth-methodCustom/auth-method roles roleadministrator/role /roles /security-constraint /security /destination destination id=AccountBalanceDestination properties sourceWeborb.Examples.AccountBalance/source /properties security security-constraint auth-methodCustom/auth-method roles roleexamplesuser/role /roles /security-constraint /security /destination destination id=WDMFCodeGen properties sourceWeborb.Management.DataManagement.Codegen.AppHandler/source /properties /destination destination id=GenericDestination properties source*/source /properties /destination destination id=BusinessIntelligenceDestination properties sourceWeborb.Management.RBIManagementService/source /properties /destination destination channels=amf-sessionactivation id=SessionGenericDestination channels channel ref=amf-sessionactivation / /channels properties source*/source /properties /destination destination channels=amf-singletonactivation id=SingletonGenericDestination
Re: [flexcoders] Singletons and Modules - Application domain problem
The problem is that when I try to load it into a different applicationDomain other than ApplicationDomain.currentDomain , even the first instance won't load. ModuleEvent.READY is dispatched but moduleEvent.module.factory.create() gives me null. On Tue, Aug 18, 2009 at 8:45 PM, Alex Harui aha...@adobe.com wrote: A module is a factory of potentially many instances, so multiple requests to load the same url are ignored and the same factory is returned to create the instance. You might try adding dummy url variables to see if you can fool ModuleManager into loading the module SWF again. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Everson Alves *Sent:* Tuesday, August 18, 2009 4:38 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Singletons and Modules - Application domain problem It's a good post but doesn't solve my problem without a lot of changes in the whole application. What i was really wanting from here is to know why I can't load the modules into different application domains. I'll use a ModelLocator factory per conversation instead of Singleton, but that requires changing in a lot of places, mainly propageting the conversationId all components and classes that need to access the modelLocator. On Tue, Aug 18, 2009 at 6:35 PM, Everson Alves jho...@eversonalves.com.br wrote: I'll have a look at it say the outcome here. Thanks. On Tue, Aug 18, 2009 at 6:03 PM, Rick Winscot rick.wins...@zyche.com wrote: Take a look at a good write-up by Steve Brownlee... http://www.fusioncube.net/index.php/cairngorm-sharing-a-common-modellocator-with-modules With the added security restrictions... Your singleton implementation may need to be hardened to prevent multiple instance... Etc. This example may help as well. http://www.quilix.com/node/5 Cheers, Rick Winscot On 8/15/09 12:11 PM, Everson Alves jho...@eversonalves.com.br wrote: Hello guys, I'm facing a weird problem. I'm working with flex Modules that are tide mxml components . Using ModuleManager to load the modules. If I load using moduleInfo.load(ApplicationDomain.currentDomain) it loads fine but as I want to use the module as independent sub applications and they use the same class definitions that doens't play nice with singletons (ModelLocator) . When loading using moduleInfo.load() expecting that it uses it's own ApplicationDomain it loads, dispatches ModuleEvent.READY event but moduleEvent.module.factory.create() gives me null. I also tried moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) but this case dispatches a ModuleEvent.ERROR saying that file isn't a loadable module or something like that. An detail that might be important is that the module is marked to be optimized to my application in compilation. thanks in advance. -- Jhonny Everson -- Jhonny Everson -- Jhonny Everson
Re: [flexcoders] ComboBox not updating
The dataprovider is an arraycollection or any IList? try dataprovider.refresh(); On Tue, Aug 18, 2009 at 8:59 PM, Richard Rodseth rrods...@gmail.com wrote: The full story is too long to relate and involves the component which has given me more grief than any other - ComboBox. I'm pretty sure I established a while ago that there's a bug in using a ComboBox with a bound value for selectedIndex. I have one whose dataprovider (and current selected index) are both highly dynamic (changing in response to changes in another combobox). There is a circumstance in which the displayed label does not update until you roll over the combobox, or sometimes click on it. Is there a brute force way I can make it update? I've tried various invalidateXXX methods. -- Jhonny Everson
Re: [flexcoders] ComboBox not updating
You can change the label directly. Look into the protected textInput field of ComboBase. You can easily extend the ComboBox class to expose this textInput as public; and then update it directly. Richard Rodseth wrote: The full story is too long to relate and involves the component which has given me more grief than any other - ComboBox. I'm pretty sure I established a while ago that there's a bug in using a ComboBox with a bound value for selectedIndex. I have one whose dataprovider (and current selected index) are both highly dynamic (changing in response to changes in another combobox). There is a circumstance in which the displayed label does not update until you roll over the combobox, or sometimes click on it. Is there a brute force way I can make it update? I've tried various invalidateXXX methods. -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
[flexcoders] Re: Module and Application Communication.
Hey Alex, I set it up so the event is dispatching when I clickity click a button. So I know for sure the event is being dispatched. --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: I think you would have had some other problem if it was security/domain related. You didn't say when the event gets dispatched, so maybe it gets dispatched before you add your listener. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of cuttenv Sent: Tuesday, August 18, 2009 3:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Module and Application Communication. not sure. How could I test that? They are both on the same domain (locahost) and even in the same directory. Wouldn't it throw a sandbox violation error if it was that? --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Rick Winscot rick.winscot@ wrote: Have you tested to see if this is a security / app domain issue? Cheers, Rick Winscot On 8/17/09 1:24 PM, cuttenv cuttenv@ wrote: I have a rather straight forward question. I am creating a module like this: private var modInfo:IModuleInfo private var myModule:MyCustomMdoule; //In creation complete of application modInfo = ModuleManager.getModule('myMod.swf'); modInfo.addEventListener(ModuleEvent.READY, onModuleReady); modInfo.load(); //In tho onModuleReady command myModule = modInfo.factory.create() as MyCustomModule; moduleContent.addChild( myModule ); myModule.addEventListener( 'customEventDispatchedByModule', onEvent ); //Inside my module there is dispatchEvent( new Event('customEventDispatchedByModule',true) ); Even though the code for the dispatch event is running the handler never runs... am I doing something wrong?? or do module not dispatch events??
[flexcoders] Re: degrafa capacity indicator resizing
Below is the link to the application: http://degrafa.org/source/CapacityIndicator/CapacityIndicator.html --- In flexcoders@yahoogroups.com, kaushal.shah05 kshah0...@... wrote: does anyone know how to dynamically change the size of the indicator bar? binding variables to the width and height did not work. I also tried changing the surface component but no luck below is the isolated capacity indicator bar code. !-- Graphics and Paint for the inner bars and background -- GeometryComposition graphicsTarget={[capacitySurface]} propertyChange=initChange(event); fills SolidFill id=colorOne color={cpOne.selectedColor}/ SolidFill id=colorTwo color={cpTwo.selectedColor}/ SolidFill id=colorThree color={cpThree.selectedColor}/ SolidFill id=colorFour color={cpFour.selectedColor}/ ComplexFill id=complex SolidFill color={cpFour.selectedColor}/ BlendFill blendMode=multiply BitmapFill id=crosshatch source=@Embed(apos;assets/65003.pngapos;)/ /BlendFill /ComplexFill LinearGradientFill id=highlight angle=90 GradientStop color=#FFF alpha=.3/ GradientStop color=#FFF alpha=.05/ /LinearGradientFill LinearGradientFill id=shadow angle=90 blendMode=multiply GradientStop color=#000 alpha=.01/ GradientStop color=#000 alpha=.5/ /LinearGradientFill LinearGradientFill id=inset angle=90 GradientStop color=#CCC alpha=.2 ratio=0 ratioUnit=pixels/ GradientStop color=#FFF alpha=.3 ratio=16 ratioUnit=pixels/ /LinearGradientFill /fills strokes SolidStroke id=whiteStroke color=#FFF weight=1 alpha=.15/ SolidStroke id=darkStroke color=#000 weight=1 alpha=.2/ /strokes RegularRectangle id=insetRect width={capacityWidth.value} height={capacitySurface.height} fill={inset}/ RegularRectangle id=fourthRect width={capacitySlider.values[3]} height={capacitySurface.height} fill={complex}/ RegularRectangle id=thirdRect width={capacitySlider.values[2]} height={capacitySurface.height} fill={colorThree}/ RegularRectangle id=secondRect width={capacitySlider.values[1]} height={capacitySurface.height} fill={colorTwo}/ RegularRectangle id=firstRect width={capacitySlider.values[0]} height={capacitySurface.height} fill={colorOne}/ RegularRectangle id=shadowRect width={capacityWidth.value} height={capacitySurface.height} fill={shadow}/ VerticalLineRepeater x=20 y=0 y1={capacitySurface.height} moveOffsetX=20 count={capacityWidth.value/20} stroke={darkStroke}/ VerticalLineRepeater x=21 y=0 y1={capacitySurface.height} moveOffsetX=20 count={capacityWidth.value/20} stroke={whiteStroke}/ RoundedRectangleComplex id=highlightRect bottomLeftRadius=10 bottomRightRadius=10 width={capacityWidth.value} height={capacitySurface.height/2} fill={highlight}/ /GeometryComposition !-- Masked Surface and Filter for the Capacity Indicator --
[flexcoders] flexlib enhancedButtonSkin causes blank Design mode
Using this skin stops design mode from showing layout, which I need as this layout is extremely complicated. Interested to know why this happens and if there is a solution. TIA, Mic.
[flexcoders] Re: ComboBox not updating
This is an old story with ComboBox selectedIndex. It does not count the fact that binding on SelectedIndex could come well before dataProvider property assignment, so it simply resets itself every time it has dataProvider property being updated. I have rewritten the ComboBox class to make it working properly with dataProviders. http://mitek.id.au/blog/2008/10/28/combobox-madness-continues/ http://mitek.id.au/blog/2008/08/18/combobox-selecteditem-problem/ http://mitek.id.au/blog/2008/06/09/unselect-in-combobox/ Cheers, Dmitri. --- In flexcoders@yahoogroups.com, Richard Rodseth rrods...@... wrote: The full story is too long to relate and involves the component which has given me more grief than any other - ComboBox. I'm pretty sure I established a while ago that there's a bug in using a ComboBox with a bound value for selectedIndex. I have one whose dataprovider (and current selected index) are both highly dynamic (changing in response to changes in another combobox). There is a circumstance in which the displayed label does not update until you roll over the combobox, or sometimes click on it. Is there a brute force way I can make it update? I've tried various invalidateXXX methods.
RE: [flexcoders] Singletons and Modules - Application domain problem
If you use new ApplicationDomain() then module.factory.create() will return an object of an unknown type because you've created a whole new applicationDomain with different classes so the type of what you create is not going to match. Your code probably does this: var somObj:SomeInterface = module.factory.create as SomeInterface So the as returns null. With modules you must use a child applicationdomain i.e. new ApplicationDomain(applicationDomain.currentDomain) so that the interface is shared. The next trick is to get the ModuleManager to attempt a second load in a separate child applicationdomain so fake url params might work. As long as the singletons are not in the main app, each child appdomain should have its own singleton. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Everson Alves Sent: Tuesday, August 18, 2009 5:28 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Singletons and Modules - Application domain problem The problem is that when I try to load it into a different applicationDomain other than ApplicationDomain.currentDomain , even the first instance won't load. ModuleEvent.READY is dispatched but moduleEvent.module.factory.create() gives me null. On Tue, Aug 18, 2009 at 8:45 PM, Alex Harui aha...@adobe.commailto:aha...@adobe.com wrote: A module is a factory of potentially many instances, so multiple requests to load the same url are ignored and the same factory is returned to create the instance. You might try adding dummy url variables to see if you can fool ModuleManager into loading the module SWF again. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of Everson Alves Sent: Tuesday, August 18, 2009 4:38 PM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Singletons and Modules - Application domain problem It's a good post but doesn't solve my problem without a lot of changes in the whole application. What i was really wanting from here is to know why I can't load the modules into different application domains. I'll use a ModelLocator factory per conversation instead of Singleton, but that requires changing in a lot of places, mainly propageting the conversationId all components and classes that need to access the modelLocator. On Tue, Aug 18, 2009 at 6:35 PM, Everson Alves jho...@eversonalves.com.brmailto:jho...@eversonalves.com.br wrote: I'll have a look at it say the outcome here. Thanks. On Tue, Aug 18, 2009 at 6:03 PM, Rick Winscot rick.wins...@zyche.commailto:rick.wins...@zyche.com wrote: Take a look at a good write-up by Steve Brownlee... http://www.fusioncube.net/index.php/cairngorm-sharing-a-common-modellocator-with-modules With the added security restrictions... Your singleton implementation may need to be hardened to prevent multiple instance... Etc. This example may help as well. http://www.quilix.com/node/5 Cheers, Rick Winscot On 8/15/09 12:11 PM, Everson Alves jho...@eversonalves.com.brhttp://jho...@eversonalves.com.br wrote: Hello guys, I'm facing a weird problem. I'm working with flex Modules that are tide mxml components . Using ModuleManager to load the modules. If I load using moduleInfo.load(ApplicationDomain.currentDomain) it loads fine but as I want to use the module as independent sub applications and they use the same class definitions that doens't play nice with singletons (ModelLocator) . When loading using moduleInfo.load() expecting that it uses it's own ApplicationDomain it loads, dispatches ModuleEvent.READY event but moduleEvent.module.factory.create() gives me null. I also tried moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) but this case dispatches a ModuleEvent.ERROR saying that file isn't a loadable module or something like that. An detail that might be important is that the module is marked to be optimized to my application in compilation. thanks in advance. -- Jhonny Everson -- Jhonny Everson -- Jhonny Everson
RE: [flexcoders] Re: Module and Application Communication.
How is moduleContent set up. Is it on the display list? Who is dispatching the event? Code in the module class or some other object? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of cuttenv Sent: Tuesday, August 18, 2009 6:16 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Module and Application Communication. Hey Alex, I set it up so the event is dispatching when I clickity click a button. So I know for sure the event is being dispatched. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aha...@... wrote: I think you would have had some other problem if it was security/domain related. You didn't say when the event gets dispatched, so maybe it gets dispatched before you add your listener. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of cuttenv Sent: Tuesday, August 18, 2009 3:21 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Module and Application Communication. not sure. How could I test that? They are both on the same domain (locahost) and even in the same directory. Wouldn't it throw a sandbox violation error if it was that? --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, Rick Winscot rick.winscot@ wrote: Have you tested to see if this is a security / app domain issue? Cheers, Rick Winscot On 8/17/09 1:24 PM, cuttenv cuttenv@ wrote: I have a rather straight forward question. I am creating a module like this: private var modInfo:IModuleInfo private var myModule:MyCustomMdoule; //In creation complete of application modInfo = ModuleManager.getModule('myMod.swf'); modInfo.addEventListener(ModuleEvent.READY, onModuleReady); modInfo.load(); //In tho onModuleReady command myModule = modInfo.factory.create() as MyCustomModule; moduleContent.addChild( myModule ); myModule.addEventListener( 'customEventDispatchedByModule', onEvent ); //Inside my module there is dispatchEvent( new Event('customEventDispatchedByModule',true) ); Even though the code for the dispatch event is running the handler never runs... am I doing something wrong?? or do module not dispatch events??
[flexcoders] Re: Crash while using MenuBar from a module.
Finally after a lot of trials I found the solution. In my MainApp project config file the following setting was required keep-all-type-selectorstrue/keep-all-type-selectors --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: I would use the -keep-generated-actionscript option and -link-report option to see why MenuBar's default styles are not being added to the StyleManager. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Rajkumar Sent: Sunday, August 16, 2009 10:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Crash while using MenuBar from a module. Hello Alex, I had mentioned the top of stack trace in the first post , here is the complete stack trace. TypeError: Error #1007: Instantiation attempted on a non-constructor. at mx.controls::MenuBar/updateBackground()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\MenuBar.as:1029] at mx.controls::MenuBar/styleChanged()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\MenuBar.as:1263] at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::addingChild()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5244] at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChild()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:3262] at mx.core::Container/addChildAt()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:2207] at mx.core::Container/addChild()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:2140] at com.atex.OV.Core.UI::OVUIMgr/addUIToApp()[G:\Projects_RJK\AtexUIF\Codebase\App\src\com\atex\OV\Core\UI\OVUIMgr.as:111] at com.atex.OV.Core.Application::OVAppBase/listenPlnLoadNotification()[G:\Projects_RJK\AtexUIF\Codebase\App\src\com\atex\OV\Core\Application\OVAppBase.as:251] at com.atex.OVF.Core.Notification::OVNotificationCenter/postNotification()[G:\Projects_RJK\AtexUIF\Codebase\Framework\com\atex\OVF\Core\Notification\OVNotificationCenter.as:179] at com.atex.OVF.Core.Notification::OVNotificationCenter/postNotificationName()[G:\Projects_RJK\AtexUIF\Codebase\Framework\com\atex\OVF\Core\Notification\OVNotificationCenter.as:197] at com.atex.OV.Core.Module::OVModuleMgr/sendPlnsLoadNotification()[G:\Projects_RJK\AtexUIF\Codebase\App\src\com\atex\OV\Core\Module\OVModuleMgr.as:349] at com.atex.OV.Core.Module::OVModuleMgr/modulesLoadHandler()[G:\Projects_RJK\AtexUIF\Codebase\App\src\com\atex\OV\Core\Module\OVModuleMgr.as:255] at com.atex.OV.Core.Module::OVModuleMgr/onModuleLoad()[G:\Projects_RJK\AtexUIF\Codebase\App\src\com\atex\OV\Core\Module\OVModuleMgr.as:182] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at ModuleInfoProxy/moduleEventHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\modules\ModuleManager.as:1097] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at ModuleInfo/readyHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\modules\ModuleManager.as:752] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::FlexModuleFactory/update()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:327] at mx.core::FlexModuleFactory/timerHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:556] at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick() Thanks, Rajkumar --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: Post the stack trace. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Rajkumar Sent: Thursday, August 13, 2009 11:13 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Crash while using MenuBar from a module. I am creating three projects as following:- 1. MainApp: Main project that give output executable swf, i.e main application. 2. MyFramework: A flex library project, which will contain all the interface declarations. 3. CustomModule: A flex project, which will generate one/more module/s, which will be loaded in the mainApp. The Settings for the projects is as following:- MainApp: Flex Build Path: Library Path: Framework linkage is RSL, Flex SDK is added with following settings:- Playerglobal: LinkType=external flex: LinkType=rsl, Verification = None, DeploymentPath=flex/flex.swf,
Re: [flexcoders] Singletons and Modules - Application domain problem
I did that too, in fact I explained it in the first mail, when I tried: moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) it dispatches a ModuleEvent.ERROR saying that file isn't a loadable module or something like that. Also i tried var somObj:SomeInterface = module.factory.create as SomeInterface var somObj:Object = module.factory.create; var somObj:*= module.factory.create; when loading using moduleInfo.load(); On Wed, Aug 19, 2009 at 1:19 AM, Alex Harui aha...@adobe.com wrote: If you use “new ApplicationDomain()” then module.factory.create() will return an object of an unknown type because you’ve created a whole new applicationDomain with different classes so the type of what you create is not going to match. Your code probably does this: var somObj:SomeInterface = module.factory.create as SomeInterface So the “as” returns null. With modules you must use a child applicationdomain i.e. “new ApplicationDomain(applicationDomain.currentDomain)” so that the interface is shared. The next trick is to get the ModuleManager to attempt a second load in a separate child applicationdomain so fake url params might work. As long as the singletons are not in the main app, each child appdomain should have its own singleton. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Everson Alves *Sent:* Tuesday, August 18, 2009 5:28 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Singletons and Modules - Application domain problem The problem is that when I try to load it into a different applicationDomain other than ApplicationDomain.currentDomain , even the first instance won't load. ModuleEvent.READY is dispatched but moduleEvent.module.factory.create() gives me null. On Tue, Aug 18, 2009 at 8:45 PM, Alex Harui aha...@adobe.com wrote: A module is a factory of potentially many instances, so multiple requests to load the same url are ignored and the same factory is returned to create the instance. You might try adding dummy url variables to see if you can fool ModuleManager into loading the module SWF again. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Everson Alves *Sent:* Tuesday, August 18, 2009 4:38 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Singletons and Modules - Application domain problem It's a good post but doesn't solve my problem without a lot of changes in the whole application. What i was really wanting from here is to know why I can't load the modules into different application domains. I'll use a ModelLocator factory per conversation instead of Singleton, but that requires changing in a lot of places, mainly propageting the conversationId all components and classes that need to access the modelLocator. On Tue, Aug 18, 2009 at 6:35 PM, Everson Alves jho...@eversonalves.com.br wrote: I'll have a look at it say the outcome here. Thanks. On Tue, Aug 18, 2009 at 6:03 PM, Rick Winscot rick.wins...@zyche.com wrote: Take a look at a good write-up by Steve Brownlee... http://www.fusioncube.net/index.php/cairngorm-sharing-a-common-modellocator-with-modules With the added security restrictions... Your singleton implementation may need to be hardened to prevent multiple instance... Etc. This example may help as well. http://www.quilix.com/node/5 Cheers, Rick Winscot On 8/15/09 12:11 PM, Everson Alves jho...@eversonalves.com.br wrote: Hello guys, I'm facing a weird problem. I'm working with flex Modules that are tide mxml components . Using ModuleManager to load the modules. If I load using moduleInfo.load(ApplicationDomain.currentDomain) it loads fine but as I want to use the module as independent sub applications and they use the same class definitions that doens't play nice with singletons (ModelLocator) . When loading using moduleInfo.load() expecting that it uses it's own ApplicationDomain it loads, dispatches ModuleEvent.READY event but moduleEvent.module.factory.create() gives me null. I also tried moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) but this case dispatches a ModuleEvent.ERROR saying that file isn't a loadable module or something like that. An detail that might be important is that the module is marked to be optimized to my application in compilation. thanks in advance. -- Jhonny Everson -- Jhonny Everson -- Jhonny Everson -- Jhonny Everson