Re: [flexcoders] ALEX HAURI please help
Deepa, I'm not sure that such a subject line conforms to mailing list etiquete; in any case if you want someone's help, may I suggest that you first take care to spell his name correctly. People tend to like their own names. Regards, John 2011/11/3 deepa_pathuri deepa_path...@yahoo.co.in ** i want to implement undo and redo operations. i am dragging image from one container to other and i want to facilitate a undo and redo for it. can some body please tell me how to acheive it?
[flexcoders] Re: ALEX HAURI please help
I agree with John. This type of question should not even be directed at Alex as it is something that is documented. Alex will jump in if he deems necessary. First read the documentation at http://livedocs.adobe.com/flex/3/html/help.html?content=dragdrop_5.html and then try to implement it yourself. If you have any problems with the implementation post again with code as well as any errors you get and a stack trace (if any). --- In flexcoders@yahoogroups.com, John Fletcher fletchgqc@... wrote: Deepa, I'm not sure that such a subject line conforms to mailing list etiquete; in any case if you want someone's help, may I suggest that you first take care to spell his name correctly. People tend to like their own names. Regards, John 2011/11/3 deepa_pathuri deepa_pathuri@... ** i want to implement undo and redo operations. i am dragging image from one container to other and i want to facilitate a undo and redo for it. can some body please tell me how to acheive it?
[flexcoders] Re: ModuleLoader.child is null
In your module code I don't see where it implements com.storefront.interfaces.controller.ITest. If there is no implementation of the interface, the child will be null. --- In flexcoders@yahoogroups.com, method_air loudjazz@... wrote: Can anyone explain why ModuleLoader.child is null in the module event 'ready' event listener: this._moduleLoader = new ModuleLoader(); this._moduleLoader.url = ImageComparisonModule.swf; // this._moduleLoader.addEventListener(ModuleEvent.READY, onReady); private function onReady(e:ModuleEvent):void { var test:ITest ITest(this._moduleLoader.child); // null } Module code: ?xml version=1.0 encoding=utf-8? s:Module xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx implements=com.storefront.interfaces.controller.ITest fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations s:VGroup width=100% / /s:Module Cheers, Philip
RE: [flexcoders] Re: ModuleLoader.child is null
var test:ITest ITest(this._moduleLoader.child); // null The module implements ITest. Regardless, before the module is cast to an interface, this._moduleLoader.child is null. I read on another thread that the module 'ready' event may be dispatched before it's ready... To: flexcoders@yahoogroups.com From: valdhorli...@embarqmail.com Date: Fri, 4 Nov 2011 16:10:22 + Subject: [flexcoders] Re: ModuleLoader.child is null In your module code I don't see where it implements com.storefront.interfaces.controller.ITest. If there is no implementation of the interface, the child will be null. --- In flexcoders@yahoogroups.com, method_air loudjazz@... wrote: Can anyone explain why ModuleLoader.child is null in the module event 'ready' event listener: this._moduleLoader = new ModuleLoader(); this._moduleLoader.url = ImageComparisonModule.swf; // this._moduleLoader.addEventListener(ModuleEvent.READY, onReady); private function onReady(e:ModuleEvent):void { var test:ITest ITest(this._moduleLoader.child); // null } Module code: ?xml version=1.0 encoding=utf-8? s:Module xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx implements=com.storefront.interfaces.controller.ITest fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations s:VGroup width=100% / /s:Module Cheers, Philip
[flexcoders] Re: ModuleLoader.child is null
I do it a different way than you which you may like to try... private function onReady(e:ModuleEvent):void { var ml:ModuleLoader = e.target as ModuleLoader; // cast the module (the child property of the ModuleLoader) to the // ITest interface. If the child implements this interface // ichild will not be null. var ichild:* = ml.child as ITest; if(ichild != null) { // Pass data to module via interface ichild.somedataiwanttopass = this.thedataiwanttopass; } } Using this I have never found the child to be null (Although I do check). --- In flexcoders@yahoogroups.com, Philip Smith loudjazz@... wrote: var test:ITest ITest(this._moduleLoader.child); // null The module implements ITest. Regardless, before the module is cast to an interface, this._moduleLoader.child is null. I read on another thread that the module 'ready' event may be dispatched before it's ready... To: flexcoders@yahoogroups.com From: valdhorlists@... Date: Fri, 4 Nov 2011 16:10:22 + Subject: [flexcoders] Re: ModuleLoader.child is null In your module code I don't see where it implements com.storefront.interfaces.controller.ITest. If there is no implementation of the interface, the child will be null. --- In flexcoders@yahoogroups.com, method_air loudjazz@ wrote: Can anyone explain why ModuleLoader.child is null in the module event 'ready' event listener: this._moduleLoader = new ModuleLoader(); this._moduleLoader.url = ImageComparisonModule.swf; // this._moduleLoader.addEventListener(ModuleEvent.READY, onReady); private function onReady(e:ModuleEvent):void { var test:ITest ITest(this._moduleLoader.child); // null } Module code: ?xml version=1.0 encoding=utf-8? s:Module xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx implements=com.storefront.interfaces.controller.ITest fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations s:VGroup width=100% / /s:Module Cheers, Philip
[flexcoders] URLFilePromise drop location
Hi Folks, Does anyone know how to access the local file system drop location from a URLFilePromise drag and drop operation? The file downloading is a zip file and I wouuld like to extract it for the EU once transfer is complete, but cant seem to find the drop location anywhere... Any help much appreciated, Greg
[flexcoders] Flex for iPhone: In-app Purchasing possible?
Hi All, I have to develop an iPhone application that should run on iOS 3.0 or above. I am planning to use Flex (AIR) to develop that application I have following questions on this 1. Application has in-app purchasing functionality. Can I achieve this functionality using Flex? 2. Application need to pull some assets (images) from net and store it on the disk (iPhone storage media). Same data can be retrieved later and displayed in the application. Is this functionality possible using Flex? Thanks in advance Regards, MulC
[flexcoders] Mapping/Image in Flex
Hi Group, I have a basic question in flex regarding the mapping of an image. Ex: I have a world map, depending on the click on the map, the corresponding information of the county has to be populated in the adjacent information box. I know this could be done quite easily in html with [map – coordinates], but I doubt how to do it in flex. Any ideas. Please help. Thanks. Cheers, Venkat.
Re: [flexcoders] Re: Binding behaviour
Ok. But Its Not compulsory that you have to write a clone method. Anyways other way you can try is public function cloneLeaf():CallMonitoringLeaf { var obj:CallMonitoringLeaf = new CallMonitoringLeaf(); obj.optionCallMonitoring = this.optionCallMonitoring; obj.nodesSelected =this.nodesSelected; obj.dataCallMonitoring = this.dataCallMonitoring; obj.nodeName = this.nodeName; return obj; } So now calling cloneLeaf() returns new duplicated object. Hope this works for you. I did't test it, however your reply will tell about that. :) Thanks On Thu, Nov 3, 2011 at 9:26 PM, turbo_vb timh...@aol.com wrote: ** If nodeName is a class, you'll need to create a clone method in that class as well, and do this: obj.nodeName = nodeName.clone(); If it's just a string, you can try: obj.nodeName = nodeName.toString(); -TH --- In flexcoders@yahoogroups.com, geckko geckko80@... wrote: Hi all, I'm trying to duplicate one object but when i modify the master object the child object is modified too. My code is something similar to this private function cloneLeaf():CallMonitoringLeaf{ var obj:CallMonitoringLeaf = new CallMonitoringLeaf(); obj.optionCallMonitoring = optionCallMonitoring; obj.nodesSelected = nodesSelected; obj.dataCallMonitoring = dataCallMonitoring; obj.nodeName = nodeName; return obj; } But when i modify nodeName (for example) in the object that i use to duplicate (master object), the child object modifies its name too. Is there any way to avoid this behaviour? Thanks in advance
[flexcoders] Using Flex Cairnghorm microachitecture with .net class library
Hello All, Has anyone used cairnghorm micro framework to write scripts that retrieves data from dot net dll. I cant connect my flex cairnghorm side with my dotnet code even after generating the required cairnghorm action script from the web orb console is there something wrong with my config file or are my not setting a compiler parameter ? [which is -services services-config.xml -locale en_US ] What can i be doing wrong? Warm Regards Tunde Majolagbe +2348028320370, 018782170. *Exchange a Dollar, we still have ONE each, exchange an idea, we have TWO each. *Calm Down!!! It’s just a mirage, like other worries it will soon fade away.
Re: [flexcoders] Re: Binding behaviour
If the property is an Object (and not a primitive like number or string), then it is handled by reference and must be “cloned” or copied. This is called a deep copy. The code snippet is a shallow copy. ObjectUtil has a clone method for doing deep copies but it requires registering class aliases for all classes and objects involved. On 11/3/11 8:20 PM, The Real Napster myad...@gmail.com wrote: Ok. But Its Not compulsory that you have to write a clone method. Anyways other way you can try is public function cloneLeaf():CallMonitoringLeaf { var obj:CallMonitoringLeaf = new CallMonitoringLeaf(); obj.optionCallMonitoring = this.optionCallMonitoring; obj.nodesSelected =this.nodesSelected; obj.dataCallMonitoring = this.dataCallMonitoring; obj.nodeName = this.nodeName; return obj; } So now calling cloneLeaf() returns new duplicated object. Hope this works for you. I did't test it, however your reply will tell about that. :) Thanks On Thu, Nov 3, 2011 at 9:26 PM, turbo_vb timh...@aol.com wrote: If nodeName is a class, you'll need to create a clone method in that class as well, and do this: obj.nodeName = nodeName.clone(); If it's just a string, you can try: obj.nodeName = nodeName.toString(); -TH --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , geckko geckko80@... wrote: Hi all, I'm trying to duplicate one object but when i modify the master object the child object is modified too. My code is something similar to this private function cloneLeaf():CallMonitoringLeaf{ var obj:CallMonitoringLeaf = new CallMonitoringLeaf(); obj.optionCallMonitoring = optionCallMonitoring; obj.nodesSelected = nodesSelected; obj.dataCallMonitoring = dataCallMonitoring; obj.nodeName = nodeName; return obj; } But when i modify nodeName (for example) in the object that i use to duplicate (master object), the child object modifies its name too. Is there any way to avoid this behaviour? Thanks in advance -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui