Re: [flexcoders] Re: Memory leaks
Hi there, Sometime ago I developed a simple kind of memory monitor to track down the garbage collection activity and cycles. In short the application is a kind of flash player memory monitor. You can see it at http://www. code4net.com/memoryTest/http://www.code4net.com/memoryTest/ It has to graphics: - The left one takes an snapshot of the player used memory every 200ms. It takes a maximum of 200 samples in a ciclic way. - The right one is an average of the left graphic. It takes the last 50 samples of the left graph and gets the averaged value. The application takes advantage of the player shared memory so if you are running two diferent swf in two diferent tabs of firefox or IE the monitor will be showing the memory usage of the other swf. Compiling your application I do not appreciate a continuos increment on the memory usage if creating and removing several times the children. But if I provoke the GC some memory is freed. The initial increase of memory usage I suspect is due to some singletons and managers first time initialization process. Being a singleton implies the class is kept in memory and never freed because some references are kept. HTH Xavi Beumala On 8/29/07, Alex Harui [EMAIL PROTECTED] wrote: Such is the nature of player memory management. It doesn't free up pages as aggressively as you might want it to, nor does it compact memory, so the first allocation grabbed a bunch of pages that aren't fully cleaned, but reused after that. -- *From:* Gordon Smith *Sent:* Wednesday, August 29, 2007 12:37 PM *To:* flexcoders@yahoogroups.com *Cc:* Alex Harui *Subject:* RE: [flexcoders] Re: Memory leaks Here are the results I get when I start by doing Force GC and Capture Memory and then repeatedly do Add Childs, Rem Childs, Force GC, Capture Memory: 4943872 6393856 6664192 6627328 6770688 6803456 6815744 6815744 6815744 6823936 6815744 There is no memory leak because continuing to add and remove children does not continue to use more memory. However, I'm not sure what explains the initial increase from 4.9MB to 6.8MB, and why it takes more than one cycle to get to more-or-less steady-state. Any ideas, Alex? - Gordon -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *filipemlopes *Sent:* Tuesday, August 28, 2007 6:52 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Memory leaks Oh. It's to bad !!! Does anybody know to solve this problem ?? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, André Rodrigues Pena [EMAIL PROTECTED] wrote: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:VBox id=vBoxLeak width=200 height=200 backgroundColor=#ee/ mx:HBox mx:Button id=btnAddChilds label=Add Childs click=onAddChilds_Click(event)/ mx:Button id=btnRemChilds label=Rem Childs click=onRemChilds_Click(event)/ /mx:HBox mx:HBox mx:Button id=forceGC label=Force GC click=onForceGB_Click(event)/ /mx:HBox mx:HBox mx:Button id=btnCaptureMemory label=Capture Memory click=onCaptureMemory_Click(event)/ /mx:HBox mx:TextArea id=txtArea width=200 height=200 textAlign=right/ mx:Script ![CDATA[ import mx.controls.Button; private function onAddChilds_Click (event:MouseEvent):void { for (var i:int=0;i1000;i++) { vBoxLeak.addChild(new Button); } } private function onRemChilds_Click (event:MouseEvent):void { vBoxLeak.removeAllChildren(); } private function onCaptureMemory_Click (event:MouseEvent):void { txtArea.text += System.totalMemory + \n; } private function onForceGB_Click(event:MouseEvent):void { // unsupported hack that seems to force a full GC try { var lc1:LocalConnection = new LocalConnection(); var lc2:LocalConnection = new LocalConnection(); lc1.connect('name'); lc2.connect('name'); } catch (e:Error) { } } ]] /mx:Script /mx:Application On 8/27/07, André Rodrigues Pena [EMAIL PROTECTED] wrote: Alex, I appreciate your reply but I still think there's something wrong regarding memory. I'm sending you an application that reproduces the situation I started my earlier post with. Flex does not releases all the memory it takes, even inducing garbage collection as I show in the demo application. If you repeat the experience over and over you will see that the memory lost is not likely to get back. So what is this? What can I do about it? On 8/25/07, Alex Harui [EMAIL PROTECTED] wrote: There are two major memory usage scenarios in Flex. One involves creating a new instance of a component, displaying, and later destroying it. The other involves bringing in one or more classes of components in a module and trying to get rid of that module later when its classes are no longer needed
Re: [flexcoders] More Mac licensing issues: [WAS:: Max OS X Flex Builder 2.01 License Issue - still waiting
I'm having the same problems here! It's incredible but I've been trying to transfer my win license to mac for the last 3 weeks, and today my trial has finally expired! I won't get my license in less than a week so... this means I can't work! really bad X. On 2/3/07, Matt Chotin [EMAIL PROTECTED] wrote: I'll look into it. Matt Flex PM -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Chris Allen *Sent:* Friday, February 02, 2007 12:46 PM *To:* flexcoders@yahoogroups.com *Cc:* [EMAIL PROTECTED]; [EMAIL PROTECTED] *Subject:* [flexcoders] More Mac licensing issues: [WAS:: Max OS X Flex Builder 2.01 License Issue - still waiting To anyone at Adobe who's listening: I'm working on a Flex2 project for Scholastic http://scholastic.com and we are running into a wall in terms of getting our Flex Builder licenses transfered to the Macintosh platform. We purposely bought Windows versions knowing that it wouldn't be a problem to transfer the license when the Mac version became available. This licensing situation that we and others have experienced is completely unacceptable. John Dowdel, do you think that you can help us out a bit, or escalate the issue, as you did for others experiencing these problems? Or maybe Ted Patrick, you could let others there know that this is a major issue for people, and it should be addressed. Here are the issues that we are currently facing: 1. In order to transfer the license you have to be the authorized purchaser of the software and Adobe won't accept a request form the actual end user of the license. To make it worse Adobe won't tell us who that person is. At a rather large organization (10,000 + employees) like Scholastic, finding this authorized person is really difficult to do. 2. Even if we do find the person above, we are told that the process will take five days from the approved request before Adobe will issue the Mac license number. 3. Currently there's no way for us to extend the trial version until this is worked out. We either have to install the trial on another computer or just wait it out. It's a pitty that such a great piece of software has so many barriers and red tape to actually use it. Thanks very much for you attention to this issue. -Chris On 2/1/07, *Brendan Meutzner* [EMAIL PROTECTED] wrote: Hi, Transferring licenses doesn't seem to be the only issue. We've been using a trial Mac version which just expired and I put through the order for a Mac license online last night thinking we'd have a valid key within a few minutes (like we did for the PC version last summer)... Not quite... it immediately showed as pending last night, and remained that way this morning. So after 30 minutes on hold with customer support this morning, I'm told that the more expensive transactions are processed manually and that somebody would be reviewing the details within the next 2-3 days. WTF? Since when is a $499 FlexBuilder license expensive, and even so, why do they need to process manually? Really really not happy this morning... especially because it's pretty much impossible to find a temporary key for the Mac version (I didn't just say that though)... It's too bad that the fantastic relationship we have with the Adobe engineers can't spread over to the CS department a bit... Brendan On 1/25/07, *Tom Chiverton* [EMAIL PROTECTED] wrote: On Wednesday 24 January 2007 19:53, John Dowdell wrote: What you and Ethan describe doesn't seem acceptable to me either, but let me get some more information on this, and get back to the list when I do, good? Sounds great. Could you also try and find out if there are plans to just automate the whole process ? It strikes me that converting license betwen platforms shouldn't really require a human in the loop, if it's only done once. -- Tom Chiverton Helping to advantageously aggregate prospective experiences This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List
Re: [flexcoders] Where is CalendarLayout?
The CalendarLayout class is itself marked with the [ExcludeClass] metadata, so you won't be able to import it :( Don't know if it will allow compilation. Best X. On 1/31/07, Carlos Rovira [EMAIL PROTECTED] wrote: Trying to do this import mx.controls.CalendarLayout; but FlexBuilder does not show code hinting. Maybe this class is not in some config file? How could I get it? -- ::| Carlos Rovira ::| http://www.carlosrovira.com ::| http://www.madeinflex.com
Re: [flexcoders] BindingUtils.bindProperty versus mx:Binding
On 1/20/07, Alex Uhlmann [EMAIL PROTECTED] wrote: I'd question why you would want to replace all our MXML bindings when it's working like a charm for you? ;) Aren't MXML bindings (curly braces, function bindings, mx:Binding/Observe) easier to write and maintain? AFAIK Not aplicable to curly braces, but yes to mx:Binding/. mx:Binding has some memory issues not freeing the memory when the container instance is removed from stage (even from memory). The binding never gets removed. http://tech.groups.yahoo.com/group/flexcoders/message/55432 Best X.
[flexcoders] Memory leak when using Bindings
Hi there,I'm experiencing some weird behaviour when using Bindings. In short, when I remove some object from the DisplayList which has declared any Binding, the garbage doesn't destroy this object from memory causing unwanted binding triggers and an innecesary increase of memory usage. Here's an example which isolates the problem. It consists in 2 mxml's (Main.mxml and MyScreen.mxml) and 1 .as. (ModelLocator.as)Main.mxml consists of one button and an empty mx:Canvas. When the button is clicked three actions are taken: 1. A property in the ModelLocator is increased by one. 2. Remove all canvas children. 3. Create a new instance of MyScreen component 4. Add the MyScreen instance to the canvas displayList. On the other hand, MyScreen.mxml just declares a binding from the testVar property declared in the ModelLocator to a setter. In this setter a simple trace is performed.The problem is seen when clicking several times the button. 1. The first time you click it only one trace is printed. 2. The second time you click it, the trace is performed twice. One for the new created instance an one for the removed one. 3. The third time you click it, the trace is performed 3 times, one for each instance of MyScreen that has been previously been instanciated. 4. and so on...I'm not sure if this is a bug or not, but I think it's not the expected behaviour and lots of applications can suffer a serious decrease of performance due to this issue. I've been digging on the auto generated code trying to isolate where the bindings where declared. I'm not sure, but maybe the problem has to be something with weakreferences. So the question is, how could I workarround this? Is there anyway I can force binding to stop working? remove it? or whatever? maybe declare it as a weakreference and not as a strong reference?Help is much apreciated! Here's the isolated code:[CODE --- main.mxml]?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical mx:Script ![CDATA[ private var i:int = 0; private function loadChild():void { ModelLocator.getInstance().testVar = i++;container.removeAllChildren();var s:MyScreen = new MyScreen();container.addChild (s); } ]] /mx:Script mx:Button label=load click=loadChild()/ mx:Canvas id=container width=100% height=100%/ /mx:Application[/CODE][CODE -- MyScreen.mxml]?xml version=1.0 encoding=utf-8?mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml mx:Script ![CDATA[ protected function set dest (d:String):void {trace (modified); } ]] /mx:Script mx:Binding source=ModelLocator.getInstance().testVar destination=dest/ mx:Text text=hola mundo//mx:Canvas [/CODE][CODE -- ModelLocator.as]package { [Bindable] public class ModelLocator { private static var instance:ModelLocator;public function ModelLocator() { instance = this; }public static function getInstance():ModelLocator { if (instance == null) {instance = new ModelLocator(); } return instance; }public var testVar:int; }}[/CODE]Thanks so muchX.P.D: this is the third time I send this question, hope this time someone can help :-) __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: Structuring a collection of Flex apps in a tomcat webapps folder
Hi there,What I usually do is create a virtual folder on my project which points to the tomcat webapp folder. Then I change the ouput folder through the compile settings screen: right click on the project - properties - Flex Build path. Then to force eclipse to launch for example http://localhost:8080/myApp you can go to Run as... - Run.. There you choose your flex project compilation configuration and change URL or path to launch. I'm not sure if this is what you were looking for. hope that helps.X.On 11/5/06, hank williams [EMAIL PROTECTED] wrote:Dustin,Thanks for verifying this.Its odd that so few people have noticed this. I guess perhaps everyone just uses apache as a front end. But for me setting up apache on linuxis just another headache since I am not familiar with it, so I reallydont want to introduce any new complexities. So what I am doing now is just manually copying the files out of the folder before I build warfiles. But this is really annoying. I guess if I switch to ant forbuilding my war's this could be automated.RegardsHankOn 11/4/06, Dustin Mercer [EMAIL PROTECTED] wrote: Yeah, this one is annoying.I don't use the Compile locally option just because of this issue.I have it compile on the server.Definately something that should be filed with Adobe though.I keep meaning to file a wish request for this, I'll make some time to do that today. Dustin Mercer From: flexcoders@yahoogroups.com on behalf of hank williams Sent: Sat 11/4/2006 5:44 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Structuring a collection of Flex apps in a tomcat webapps folder Ok, looking at this somemore, I think this is most likely a design bug in flex builder. There is no reason for flex builder to prevent the user from specifying any folder he likes for the build output. For FDS applications, it seems the flex builder is limited to generating compiler output in a folder that is inside the web application folder. While the intentions are good, FDS should certainly not prevent the user from placing the output in root of the web application folder and not in a folder inside the web application folder. in other words flexbuilder will build this webapps mywebappfolder myflexappfolder yada.html yada.swf but flexbuilder will not build this: webapps mywebappfolder yada.html yada.swf which makes it very hard to make an app domain www.appname.com instead of www.appname.com/somefoldername without apache or some other indirection Regards Hank On 11/4/06, hank williams [EMAIL PROTECTED] mailto:hank777%40gmail.com wrote: It sounds like you are letting FDS compile for you on the server. I am compiling on the client. To restate, hopefully, more clearly my problem, it is as follows: I want my swf and html output files to be inside: webapps/serlvet-name instead of: webapps/serlvet-name/flex-app-name I am not able to get flexbuilder to do this. The place to do it would be in the properties panel for the flex-app-Flex Build Path - output folder. But the dialog requires me to enter a folder name which will be placed inside the servlet-name folder. When I try to leave this field blank, which would, conceptually, achieve the goal because the screen states that the path is relative to servlet-name, flex builder generates an error. Entering a full path i.e. C:\..., I dont get the error, but flexbuilder refuses to compile the app. The reason I want to do this is so that my url does not need to be www.somedomain.com/flex-app-name Thanks Hank How On 11/2/06, Nick Rothwell [EMAIL PROTECTED] mailto: nick%40cassiel.com wrote: On 1 Nov 2006, at 22:22, hank williams wrote: I dont see how you avoid this since servlet containers require that the WEB-INF folder be in the root directory of the application, butthis is not how flex structures things. With Flex/FDS there is theyour webapp directory which is inside webapps, and then a sub directory, for the flex application I'm not sure I follow. I have FDS in Tomcat configured with webapps/MY APPLICATION/WEB-INF/ (and then flex/, lib/ etc.) and webapps/MY APPLICATION/mxml files and the context prefix is MY APPLICATION. In any case, I tend to solve URL mapping issues by bolting Apache on the front of the app and using the reverse proxy module... -- N. nick rothwell -- composition, systems, performance -- http:// www.cassiel.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
[flexcoders] adding CDATA to an XML node
Hi there,How could I append a CDATA statement in an XML object?For example if I want to get an XML like this:simpleChoice identifier=I0001![CDATA[hello emworld/em]]/simpleChoice I've tried things like:var node:XML = simpleChoice identifier={identifier}![CDATA[{choice.text}]]/simpleChoiceBut this way I receive:simpleChoice identifier=I0001![CDATA[{ choice.text}]]/simpleChoice because {choice.text} is not being processed.How could I do it?Thanks in advance!X. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Using CDATA in XML objects in Flex 2
Hi Andrew,today I've just sent the same question... Right now I've solved it in a similar way, but I think should be a better way...Here's a copy of my previous post:For example if I want to get an XML like this: simpleChoice identifier=I0001![CDATA[hello emworld/em]]/simpleChoice I've tried things like:var node:XML = simpleChoice identifier={identifier}![CDATA[{choice.text}]]/simpleChoiceBut this way I receive:simpleChoice identifier=I0001![CDATA[{ choice.text}]]/simpleChoice because {choice.text} is not being processed.Any suggestion?BestX.On 11/1/06, landrew65 [EMAIL PROTECTED] wrote: All,I am building an app in Flex 2, and I need to send complex XML data frommy Flex client to my server-side application.I need to encapsulatesome of the data in ![CDATA[ ]] tags, but I cannot use the CDATA tag inside a Flex script block.To solve this problem, I created a simplefunction that adds CDATA tags to the appropriate XML nodes in real timeby using this function:private function addCDATA(node:String) :String { return ![CDATA[+node+]];}Is this the best solution?I'd love to hear ways that other people havesolved it.Andrew--Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * Your email settings:Individual Email | Traditional* To change settings online go to:http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required)* To change settings via email:mailto:[EMAIL PROTECTED]mailto: [EMAIL PROTECTED]* To unsubscribe from this group, send an email to:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] RichTextEditor modifications
Hi all,I've been working on an application which needed to deal with a richTextEditor. The problem with the flex one is that it only can manage one textArea and this didn't fit to much to requirements.I've built an adapted RTE from the RTE flex code, for sure arround 80% or above of the code is the same (due to the way flex RTE is built I haven't found a way to extend from it an overwrite the funcionality so I've copied and pasted the code into a new class). The question is, can I post the code publicly and redistribute the new component?A working sample can be found at: http://www.code4net.com/rteThanksX. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: weakReferences on Binded properties
some light on this?Thanks a lot X.On 10/27/06, Xavi Beumala [EMAIL PROTECTED] wrote: Hi all,I'm experiencing some weird behaviours when using Bindings. AFAIK, when we use [Bindable] a strong reference is created when the addEventListener is performed. The problem is that I have an screen ( myScreen.mxml) which is loaded through PopUpManager inside a TitleWindow. On the other hand, myScreen.xml has some bindings defined. When I close the popUp, myScreen should bet garbage collected, but this is no possible due to the strong references in the EventDispatcher created by the Bindings. This is causing some problems, becaus if I relaunch again the MyScreen.mxml all bindings are triggered twice (because there are two listeners, one for each previously created instances of MyScreen), and so on. So if I've opened 10 times the same window, all bindings are triggered 10 times (causing for example 10 requests to the server). Here's some demo code:[MAIN APPLICATION]?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx= http://www.adobe.com/2006/mxml layout=vertical mx:Script ![CDATA[ import mx.events.CloseEvent; import mx.managers.PopUpManager; import mx.containers.TitleWindow; private var i:int = 0; private var window:TitleWindow; private function launchPopUp():void { ModelLocator.getInstance().testVar = i++;window = PopUpManager.createPopUp(this,TitleWindow,true) as TitleWindow;window.title = hola;window.showCloseButton = true;var clazz:Class = MyScreen;var child:DisplayObject = new clazz();window.addEventListener (CloseEvent.CLOSE, onClose); window.addChild(child); } protected function onClose (event:CloseEvent):void {window.removeAllChildren(); PopUpManager.removePopUp (window);window = null; } ]] /mx:Script mx:Button label=Hola click=launchPopUp()/ /mx:Application[-- MySCREEN.mxml ]?xml version=1.0 encoding=utf-8?mx:Canvas xmlns:mx= http://www.adobe.com/2006/mxml width=400 height=300 mx:Script ![CDATA[ protected function set dest (d:String):void {trace (modified); } ]] /mx:Script mx:Binding source=ModelLocator.getInstance().testVar destination=dest/ mx:Text text=hola mundo/ /mx:Canvas[-- ModelLocator.as ]package { [Bindable] public class ModelLocator { private static var instance:ModelLocator;public function ModelLocator() { instance = this; }public static function getInstance():ModelLocator { if (instance == null) {instance = new ModelLocator(); } return instance; }public var testVar:int; }}What you will see when running this code is that everytime you launch a popUp the number of printed traces increments by one. The problem is that the application is fully based on Bindings and would be a hard work to stop using them. Is there any way we can do to force Bindings to use weakReferences?Help much apreciated! X. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] weakReferences on Binded properties
Hi all,I'm experiencing some weird behaviours when using Bindings. AFAIK, when we use [Bindable] a strong reference is created when the addEventListener is performed. The problem is that I have an screen ( myScreen.mxml) which is loaded through PopUpManager inside a TitleWindow. On the other hand, myScreen.xml has some bindings defined. When I close the popUp, myScreen should bet garbage collected, but this is no possible due to the strong references in the EventDispatcher created by the Bindings. This is causing some problems, becaus if I relaunch again the MyScreen.mxml all bindings are triggered twice (because there are two listeners, one for each previously created instances of MyScreen), and so on. So if I've opened 10 times the same window, all bindings are triggered 10 times (causing for example 10 requests to the server). Here's some demo code:[MAIN APPLICATION]?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical mx:Script ![CDATA[ import mx.events.CloseEvent; import mx.managers.PopUpManager; import mx.containers.TitleWindow; private var i:int = 0; private var window:TitleWindow; private function launchPopUp():void { ModelLocator.getInstance().testVar = i++;window = PopUpManager.createPopUp(this,TitleWindow,true) as TitleWindow;window.title = hola;window.showCloseButton = true;var clazz:Class = MyScreen;var child:DisplayObject = new clazz();window.addEventListener (CloseEvent.CLOSE, onClose); window.addChild(child); } protected function onClose (event:CloseEvent):void {window.removeAllChildren(); PopUpManager.removePopUp (window);window = null; } ]] /mx:Script mx:Button label=Hola click=launchPopUp()/ /mx:Application[-- MySCREEN.mxml ]?xml version=1.0 encoding=utf-8?mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml width=400 height=300 mx:Script ![CDATA[ protected function set dest (d:String):void {trace (modified); } ]] /mx:Script mx:Binding source=ModelLocator.getInstance().testVar destination=dest/ mx:Text text=hola mundo/ /mx:Canvas[-- ModelLocator.as ]package { [Bindable] public class ModelLocator { private static var instance:ModelLocator;public function ModelLocator() { instance = this; }public static function getInstance():ModelLocator { if (instance == null) {instance = new ModelLocator(); } return instance; }public var testVar:int; }}What you will see when running this code is that everytime you launch a popUp the number of printed traces increments by one. The problem is that the application is fully based on Bindings and would be a hard work to stop using them. Is there any way we can do to force Bindings to use weakReferences?Help much apreciated!X. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] weird behaviour when DD on a filtered ArrayCollection
Hi there,I've a datagrid with dragMoveEnabled=true. The idea is that the user can change the order of the items on the datagrid by dragdrop.The dataProvider of this dataGrid is an ArrayCollection, but it has a filterFunction. When the filterFunction is enabled the DragDrop starts failing, the dropped item is always placed at the end, completely ignoring the position where it's been dropped. You can view a sample application at www.code4net.com/dgAnd the code:mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=horizontal paddingLeft=5 paddingRight=5 paddingTop=5 paddingBottom=5 creationComplete=init() mx:Script ![CDATA[ import mx.collections.ArrayCollection; private static const SYNC:int = 0; private static const REMOVE:int = 1; [Bindable] private var model:ArrayCollection;private function init():void { model = new ArrayCollection(); model.addItem (new TestVO (name1)); model.addItem (new TestVO (name2)); model.addItem (new TestVO (name3)); model.addItem (new TestVO (name4)); model.addItem (new TestVO (name5));model.filterFunction = removeFilter;model.refresh(); }private function removeFilter (item:Object):Boolean { return (item as TestVO).status != REMOVE; }private function removeItem():void { (this.grid.selectedItem as TestVO).status = REMOVE; } ]] /mx:Script mx:DataGrid id=grid width=185 allowMultipleSelection=true dragEnabled=true dropEnabled=true dragMoveEnabled=true dataProvider={model} mx:columns mx:DataGridColumn dataField=name headerText=Artista/ mx:DataGridColumn dataField=status headerText=Precio/ /mx:columns /mx:DataGrid mx:Button label=Remove click=removeItem()//mx:Applicationpackage{ [Bindable] public class TestVO { public var status:int = 0; public var name:String;public function TestVO(name:String = null) { this.name = name; } }}I'm missing something? maybe a bug? any workarround?Thanks in advance.Best X. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] e4x and namespaces
Hi Diego,you should declare the namespaces:var SOAP_NS:Namespace = new Namespace (http://schemas.xmlsoap.org /soap/envelope/);var XSD_NS:Namespace = new Namespace (http://www.w3.org/2001/XMLSche ma);etc.Then you could access the nodes using e4x this way: yourXml.SOAP::channel (if channel is on the SOAP namespace).You could also declare a default namespace using:default xml namespace = SOAP_NS; HTHX.On 10/12/06, Diego Guebel [EMAIL PROTECTED] wrote: Hi all,I'm trying to read some nodes with e4x and was dealing with the syntax forthe namespaces for a while without luck. I could read the node when it has only one namespace, but dont know how is the syntax when I have moreI have an xml like this:MyXMLResponsexmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns=http://www.mydomain.com/myown/xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:xsi=http://www.w3.org/2001/XMLSchema-instancechanneltitleiTunes 10 New Releases/title linkhttp://phobos.apple.com/WebObjects/MZStore.woa/wa/viewNewReleases?pageType=newReleasesamp;id=1/link descriptioniTunes Store: Today's 10 Newest Releases/descriptionlanguageen/languagecopyrightCopyright 2006 Apple Computer, Inc./copyright /MyXMLResponseAny clue?Thanks, Diego.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* Your email settings:Individual Email | Traditional* To change settings online go to: http://groups.yahoo.com/group/flexcoders/join(Yahoo! ID required)* To change settings via email:mailto: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] ASDoc problems with embeded resources
The fact is that the path is relative to the project:For example:[Embed(source=/../assets/icons/control_play_blue.png)]public static var playIcon:Class;And the project structure is: /root /bin /src /assets /flex /javaThe class is an a package inside flex folder. This folder is configured as a source folder, so to access assets I have to use the path /../assets. Thx.X.On 10/10/06, Matt Chotin [EMAIL PROTECTED] wrote: Unfortunately there's no asset path so you'll need to make sure that the thing which you are embedding is in the same directory or a relative directory to the source. It can't handle the full filepath I think. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Xavi Beumala Sent: Friday, October 06, 2006 1:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ASDoc problems with embeded resources Hi there, I'm experiencing some annoying problems with ASDoc. The problem is in classes which use Embed metadata tag, when asdoc parses these classes it throws an error complaining about it is unable to resolve the path for transcoding. When compiling with compc.exe we have a compiler parameter (-include-file) which allow to set up the resources to take in mind but this parameter is not available on asdoc.exe. If in compc I don't use -include-file I get the same error as in asdoc. How could I solve this? Help much appreciated! Best X. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] creating an image and placing it in the middle...
The problem is that flex is asynchronous. At the time you invoke the move method, flex doesn't still know the image size. Trying using a listener for the Complete event of the Image. There you'll be able to invoke the move method. BestX.On 10/9/06, Greg Morphis [EMAIL PROTECTED] wrote: Why is this so freaking hard?This is insane.. Create the image, set the source property and thenmove it to the center of the stage..And it's not working!?mx:Script![CDATA[ import mx.controls.Image;import mx.controls.Alert;public function init():void{var icon1:Image = new Image(); var icon2:Image = new Image();icon1.source = img/icon1.jpg;icon2.source = img/icon2.jpg; can.addChild(icon1);can.addChild(icon2);//icon1.x = can.width - icon1.width;//icon1.y = can.height - icon1.height;//icon2.x = icon1.x;//icon2.y = icon1.y + icon1.height + 20;icon1.move((can.width - icon1.width)/2,(can.height - icon1.height)/2 );icon2.move((can.width - icon2.width)/2,((can.height -icon2.height)/2)+ icon2.height + 20 );//icon2.cacheAsBitmap = true; //icon1.cacheAsBitmap = true;}]]/mx:ScriptWhat am I doing wrong and why does Flex have to be an ass about it? --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * Your email settings:Individual Email | Traditional* To change settings online go to:http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required)* To change settings via email:mailto:[EMAIL PROTECTED]mailto: [EMAIL PROTECTED]* To unsubscribe from this group, send an email to:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] continuous run
You can use the enterFrame event from the MovieClip class. Application class also dispatches flash.events.Event.ENTER_FRAME event.X.On 10/9/06, Greg Morphis [EMAIL PROTECTED] wrote:Is there a way to get a app to continuously run? In flash, there's the onEnterFrame (event?), is there anything likethat in Flex 2? Thanks--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://standraise.corp.yahoo.com/group/flexcoders/* Your email settings: Individual Email | Traditional* To change settings online go to:http://standraise.corp.yahoo.com/group/flexcoders/join(Yahoo! ID required) * To change settings via email:mailto:[EMAIL PROTECTED]mailto: [EMAIL PROTECTED]* To unsubscribe from this group, send an email to:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] ASDoc problems with embeded resources
Hi there,I'm experiencing some annoying problems with ASDoc. The problem is in classes which use Embed metadata tag, when asdoc parses these classes it throws an error complaining about it is unable to resolve the path for transcoding. When compiling with compc.exe we have a compiler parameter (-include-file) which allow to set up the resources to take in mind but this parameter is not available on asdoc.exe. If in compc I don't use -include-file I get the same error as in asdoc. How could I solve this?Help much appreciated!BestX. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Error Help Type 1009
Hi,make sure that when your programs flow reachs to: Alert.show(No users found. Create a new one?, ProgramAlert, 3, this, alertClickHandler); userDG.dataProvider.removeAll ();userDG and userDG.dataProvider must exists and has to be instantiated. The error you're getting means that at some point at SearchManager_Search_User_Result you're trying to read some property or execute some method on an object wich is null. BestX.On 9/4/06, Jeremy Rottman [EMAIL PROTECTED] wrote: I have built a simple userManager system, that lets people search forusers in the system. If there are no records returned the user is givena simple alert window that gives them the choice to add a user. Ifrecords are returned they can double click on the dg and edit the user. Right now if there are no records returned it gives the error below. Itdoes not keep the program from working, but it is annoying, once youclick contiue the alert box shows up.TypeError: Error #1009: Cannot access a property or method of a null object reference. at custom::userSearch/::SearchManager_Search_User_Result() at custom::userSearch/___Operation1_result() atflash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven\ tFunction() at flash.events::EventDispatcher/dispatchEvent() atmx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::di\spatchRpcEvent() atmx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resu\ ltHandler() at mx.rpc::Responder/result() at mx.rpc::AsyncRequest/acknowledge() at ::DirectHTTPMessageResponder/completeHandler() atflash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven\ tFunction()Here is my as code.//*USER SEARCH FUNCTIONSSTART*// CALL USER SEARCH METHOD private function SearchManager_Search_User(firstName, lastName){ SearchManager.Search_User(firstName, lastName) }// HANDLE USER SEARCH RESULTS private function SearchManager_Search_User_Result(result):*{ if (result.length 0){ userDG.dataProvider = result; } else{ Alert.show(No users found. Create a new one?, ProgramAlert, 3, this, alertClickHandler); userDG.dataProvider.removeAll(); } }// HANDLE USER SEARCH FAULTS private functionSearchManager_Search_User_Fault(event:FaultEvent):void{ Alert.show(An error occured,Program Error) }// USER SEARCH HANDLER private function userSearchHandler(){ if (firstName.length 0){ SearchManager_Search_User( firstName.text,lastName.text) } else{ SearchManager_Search_User(,lastName.text) } }// EVENT HANDLER FOR ALERT SELECTED OPTION private function alertClickHandler(event:CloseEvent):void { if (event.detail==Alert.YES)showUserDetail() elsereturn; } //*USER SEARCH FUNCTIONsEND***--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] InputText + StyleSheet
Hi all,I'm developing a kind of markup editor. It has to allow the user to select text and apply some xml tags to it as well as write new text in the textfield. The problem I'm having is that when you apply a styleSheet to the inputText field to render this custom tags, this field stops being an inputText, it becomes not editable. I've been reading in livedocs (http://livedocs.macromedia.com/flex/2/langref/flash/text/TextField.html) that this is a known issue... but is there any creational workarroun/solution? I've been playing with textFormat but I haven't found a way to keep custom tags/attributes in the dirty autogenerated html code so I'm loosing my custom tags. Any light?Thx so much!X. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Avoiding Multiple Browser Windows/Tags -I s it possible?
Hi yaagcur,you can set it up in Firefox. Go to Tools - Options - Tabs and then check the radiobutton open links from other applications to the most recent tab/window.Hope that helps X.On 7/30/06, yaagcur [EMAIL PROTECTED] wrote: Each time I run a project it opens a new tab in Firefox. After a fewof these are lined up, the project takes much longer to runIs there anyways to get round this in FlexBuilder so that the previouswindow is used and I dont have to keep closing tabs? cheers--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: feature or security hole on flash sandBox?
thanks matt BTW this might be new on player 9. Best X.On 7/27/06, Matt Horn [EMAIL PROTECTED] wrote: I think it has to do with the types of content you are loading. If Iunderstand the issue here, if the target asset is a content asset, suchas an image file, you do not need any specific permissions from thetarget domain to load its assets into your Flex application. If the target asset is a data asset, such as an XML file, you must have thetarget domain's permission to access this asset.hth,matt hornflex docs -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Xavi Beumala Sent: Thursday, July 27, 2006 9:17 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: feature or security hole on flash sandBox? Sorrry, the quotation was taken from http://www.adobe.com/devnet/flashplayer/articles/flash_player_ 9_security.pdf http://www.adobe.com/devnet/flashplayer/articles/flash_player _9_security.pdfnot from flash player 8 specification. X. On 7/27/06, ben.clinkinbeard [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hmm, I've not read enough about the newer security models to be sure, I just assumed it was that way since earlier versions were. One thing I did notice though was that you said you're reading from the security whitepaper for FP8. You should be reading about FP9 since that is what Flex and AS3 target. HTH, Ben http://www.returnundefined.com/ http://www.returnundefined.com/ --- In flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com , Xavi Beumala [EMAIL PROTECTED] wrote: I think you're wrong. It's also working on web server. And from local system you've also restrictions. Just try an application running from the local file system and consuming remote data throgh HTTPService, it's going to fail. But it's not failing with mx:Image. X. On 7/27/06, ben.clinkinbeard [EMAIL PROTECTED] wrote: There are no restrictions when running the file on your local system. Access it through a web server and your calls will fail. HTH, Ben http://www.returnundefined.com/ http://www.returnundefined.com/ --- In flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com , Xavi Beumala xavi@ wrote: Hi, Today I've noticed that I can load images from diferent domains (whichdoesn't have a crossdomain file) without getting a security sandboxviolation error. For example, when running the following application from my fileSystem I'm not receiving any error eventhough the domains don't have de crossdomainfile (I also haven't trusted the file). mx:Application xmlns:mx= http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=verticalmx:Image source= http://www.code4net.com/header/foto2.jpg http://www.code4net.com/header/foto2.jpgwidth=800height=160/ mx:Image source=http://us.i1.yimg.com/us.yimg.com/i/mntl/hlth/06q2/img_diet.jp g http://us.i1.yimg.com/us.yimg.com/i/mntl/hlth/06q2/img_diet.jpgwidth=800 height=160//mx:Application So is this a new feature on the player or is it a security hole? I've been reading the document at www.adobe.com/devnet/*flash*player/ http://www.adobe.com/devnet/*flash*player/articles/*flash*_player_8_*security*.pdf and the most accurate thing I'vefound refering to images is: A SWF file from a.com may read from the serverat b.com (using the ActionScript XML.load() method, for example) if b.comhas a cross-domain policy file that permits access froma.com (or from all domains). So if the criteria for loading external imagesis the same as for .swf... Any ideas? Best X. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.t xt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.t xt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links http://groups.yahoo.com/group/flexcoders/ mailto:[EMAIL PROTECTED] http://docs.yahoo.com/info/terms/ --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files
[flexcoders] feature or security hole on flash sandBox?
Hi,Today I've noticed that I can load images from diferent domains (which doesn't have a crossdomain file) without getting a security sandbox violation error.For example, when running the following application from my fileSystem I'm not receiving any error eventhough the domains don't have de crossdomain file (I also haven't trusted the file). mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical mx:Image source= http://www.code4net.com/header/foto2.jpg width=800 height=160/ mx:Image source=http://us.i1.yimg.com/us.yimg.com/i/mntl/hlth/06q2/img_diet.jpg width=800 height=160//mx:ApplicationSo is this a new feature on the player or is it a security hole? I've been reading the document at www.adobe.com/devnet/flashplayer/ articles/flash_player_8_security.pdf and the most accurate thing I've found refering to images is: A SWF file from a.com may read from the server at b.com (using the ActionScript XML.load() method, for example) if b.com has a cross-domain policy file that permits access from a.com (or from all domains). So if the criteria for loading external images is the same as for .swf...Any ideas?BestX. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: feature or security hole on flash sandBox?
I think you're wrong. It's also working on web server. And from local system you've also restrictions. Just try an application running from the local file system and consuming remote data throgh HTTPService, it's going to fail. But it's not failing with mx:Image. X.On 7/27/06, ben.clinkinbeard [EMAIL PROTECTED] wrote: There are no restrictions when running the file on your local system.Access it through a web server and your calls will fail.HTH,Benhttp://www.returnundefined.com/ --- In flexcoders@yahoogroups.com, Xavi Beumala [EMAIL PROTECTED] wrote: Hi, Today I've noticed that I can load images from diferent domains (which doesn't have a crossdomain file) without getting a security sandbox violation error. For example, when running the following application from myfileSystem I'm not receiving any error eventhough the domains don't have de crossdomain file (I also haven't trusted the file). mx:Application xmlns:mx=http://www.adobe.com/2006/mxmllayout=vertical mx:Image source= http://www.code4net.com/header/foto2.jpgwidth=800 height=160/ mx:Image source= http://us.i1.yimg.com/us.yimg.com/i/mntl/hlth/06q2/img_diet.jpgwidth=800 height=160/ /mx:Application So is this a new feature on the player or is it a security hole? I've been reading the document at www.adobe.com/devnet/*flash*player/ articles/*flash*_player_8_*security*.pdf and the most accurate thing I've found refering to images is: A SWF file from a.com may read fromthe server at b.com (using the ActionScript XML.load() method, for example) if b.comhas a cross-domain policy file that permits access from a.com (or from all domains). So if the criteria for loadingexternal images is the same as for .swf... Any ideas? Best X.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: feature or security hole on flash sandBox?
Sorrry,the quotation was taken from http://www.adobe.com/devnet/flashplayer/articles/flash_player_9_security.pdf not from flash player 8 specification. X.On 7/27/06, ben.clinkinbeard [EMAIL PROTECTED] wrote: Hmm, I've not read enough about the newer security models to be sure,I just assumed it was that way since earlier versions were. One thingI did notice though was that you said you're reading from the securitywhitepaper for FP8. You should be reading about FP9 since that is what Flex and AS3 target.HTH,Benhttp://www.returnundefined.com/--- In flexcoders@yahoogroups.com, Xavi Beumala [EMAIL PROTECTED] wrote: I think you're wrong. It's also working on web server. And fromlocal system you've also restrictions. Just try an application running from the local file system and consuming remote data throgh HTTPService, it's going to fail. But it's not failing with mx:Image. X. On 7/27/06, ben.clinkinbeard [EMAIL PROTECTED] wrote: There are no restrictions when running the file on your local system. Access it through a web server and your calls will fail. HTH, Ben http://www.returnundefined.com/ --- In flexcoders@yahoogroups.com, Xavi Beumala xavi@ wrote: Hi, Today I've noticed that I can load images from diferent domains (which doesn't have a crossdomain file) without getting a security sandbox violation error. For example, when running the following application from my fileSystem I'm not receiving any error eventhough the domains don't have decrossdomain file (I also haven't trusted the file). mx:Application xmlns:mx= http://www.adobe.com/2006/mxml layout=vertical mx:Image source= http://www.code4net.com/header/foto2.jpg width=800 height=160/ mx:Image source= http://us.i1.yimg.com/us.yimg.com/i/mntl/hlth/06q2/img_diet.jpg width=800 height=160/ /mx:Application So is this a new feature on the player or is it a security hole? I've been reading the document atwww.adobe.com/devnet/*flash*player/ articles/*flash*_player_8_*security*.pdf and the most accurate thing I've found refering to images is: A SWF file from a.com may read from the server at b.com (using the ActionScript XML.load() method, for example) if b.comhas a cross-domain policy file that permits access from a.com (or from all domains). So if the criteria for loading external images is the same as for .swf... Any ideas? Best X. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] [Flex2 final release] FlexBuilder 2 install Flash Player 9.0.15??
I'm having probles here with AMF0. I'm not able to cast custom Objects sent from Java. The behaviour is quite strange so if I only launch one request it behaves as expected. But if I launch several parallel requests only the last response is getting a correct serialized result. I'll try to isolate it and share...Thx any wayX.On 6/28/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:Yes it does install 9.0.15, and AMF0 is working fine (at least with my test using AMFPHP) M.Original Message-From: Carlos Rovira [EMAIL PROTECTED]Date: Wed, 28 Jun 2006 19:55:26 To:flexcoders@yahoogroups.comSubject: [flexcoders] [Flex2 final release] FlexBuilder 2 install Flash Player 9.0.15??Hi,I Think this is a clear bug in the Flex Builder 2 installer.The final version is 9.0.16, but Flex Builder 2 is installing 9.0.15?Please, could someone at Adobe confirm this?(Another point is that someone told me about AMF0 not working again, I proced to test it asap and confirm to this list) --::| Carlos Rovira::| http://www.carlosrovira.com: http://www.carlosrovira.com Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups.See the new email design.http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: mxmlc - context root - any root
You can use flashVars in your html object/embed tag. By using Application.application you can access this values. If you set up a var named contextRoot in your flashVars then you can concat your url's.BestX. On 6/24/06, ssundke [EMAIL PROTECTED] wrote: Hey Is there no way to do this?- Saba--- In flexcoders@yahoogroups.com, ssundke [EMAIL PROTECTED] wrote: Hi, I have a framework product for which im using flex. I would like to distribute as a compiled swf. In my mxml I need to make an HTTP Service call to the same server on which this swf is used i.e the context root can vary on deployment but I always want to reach the same url given a context root /context-root/RouterServlet. Now my problem is how do I give the url in the mxml and or mxmlcso that my swf can be placed in any context root but it always need to reach the url /context-root/RouterServlet Im using Flex 1.5 right now and intend to go live with this sinceFlex 2.0 is not out yet. Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email.http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] F2B3 bug in serialization of XML in AMF0
Hi there,I'm trying to receive an org.w3c.dom.Document Object from OpenAMF using AMF0 in F2B3. It works great on Flash8 but on F2B3 it's not receiving anything. It seems like the XML serialization is not working correctly. Couls someone confirm it please?BestX. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Flex2b3 Drawing API
This should work:?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* creationComplete=drawIt()mx:Script ![CDATA[ import mx.core.UIComponent; public function drawIt():void { var uic:UIComponent = new UIComponent(); uic.graphics.beginFill(0xFFCC00); uic.graphics.drawCircle(30, 30, 30); var label:TextField = new TextField(); label.text = hello; label.x = 20; label.y = 20; uic.addChild(label); can.addChild(uic); } ]]/mx:Scriptmx:Panel width=50% height=50% mx:Canvas label=Work Flow Steps width=100% height=100% id=can/mx:Canvas/mx:Panel/mx:ApplicationCheersX. On 6/5/06, Tom Chiverton [EMAIL PROTECTED] wrote: As there are no examples of this in the docs, can anyone shed some light ?I have a basic MXML file:?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx= http://www.adobe.com/2006/mxml xmlns=*creationComplete=drawIt()mx:Script![CDATA[include displayWorkflow.as;]] /mx:Scriptmx:Panel width=50% height=50%mx:Canvas label=Work Flow Steps width=100% height=100% id=can/mx:Canvas /mx:Panel/mx:Applicationand as file:import flash.display.*;public function drawIt() {var mySprite:Sprite = new Sprite();mySprite.graphics.beginFill(0xFFCC00); mySprite.graphics.drawCircle(30, 30, 30);var label:TextField = new TextField();label.text = hello;label.x = 20;label.y = 20;mySprite.addChild (label);can.stage.addChild(mySprite);}but I always get an error from the last addChild line:TypeError: Error #1009: Cannot access a property or method of a null objectreference.at displayWorkflow/drawIt() no matter what I try and addChild to :-(Anyone else explored this yet ?--Tom ChivertonThis email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF.A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITYThis email is intended only for the use of the addressee named above and may be confidential or legally privileged.If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents.If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards Yahoo! Groups Sponsor ~--Get to your groups with one click. Know instantly when new email arrives http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Accessing data in a Model
The following code is working for me. Note the resultFormat attribute in HTTPService tag, as well as the @ in front of name to access an xml node attribute.?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute mx:Script ![CDATA[ public function rec():void { trace ([EMAIL PROTECTED]); } ]] /mx:Script mx:HTTPService id=srv url="" useProxy=false resultFormat=e4x/ mx:Model id=activityModel{srv.lastResult}/mx:Model mx:VBox mx:Button label=load click=srv.send()/ mx:Button label=trace click=rec()/ /mx:VBox/mx:ApplicationBestX.On 6/3/06, codeintime [EMAIL PROTECTED] wrote:HiI have an xml file eg:?xml version=1.0 encoding=utf-8? activity title=Classificationcategoriescategory name=Category 1 updated /category name=Category 2 //categories/activity I load xml via a httpservice and place in a model:mx:HTTPService id=srv url="" useProxy=false/mx:Model id=activityModel{srv.lastResult.activity }/mx:ModelNow I'd like to use Actionscript to get the 1st category egcat1.title = activityModel.categories.category[1].name;This gives an invalid index error.Any ideas?Thanks Yahoo! Groups Sponsor ~--Protect your PC from spy ware with award winning anti spy technology. It's free. http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] NEED: simple mxml component class that utilize the getInstance methods for Flex 2.0...
I think there's an error on your code:if(_self = null) _self = new Blah();should be:if(_self == null) _self = new Blah();X.On 6/1/06, Doug Arthur [EMAIL PROTECTED] wrote: I need to find a simple tutorial or example of implementing a getInstance method in a class, and then invoking it. Here's what I have so far, but it is not working. var asdf:Blah = Blah.getInstance();var a = Blah.getInstance().geta();mx.controls.Alert.show(a); package{public class Blah{public var a:String = null;public function Blah() {// constructorseta('a');}private static var _self:Blah = null;public static function getInstance():Blah { if(_self = null) _self = new Blah();return _self;}public function seta(b:String):void {a = b;}public function geta():String {return a;}}} I get the following error: Cannot access a property or method of a null object reference. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Console output on web
Try using the new Logger Api. There you'll be able to use miniDebug class or a custom LocalConnection based logger.bestX.On 5/29/06, Shahabudeen [EMAIL PROTECTED] wrote:Hi All, I am very new to Flex. I want to display all the log contents going tothe flashlog.txt to the live screen dynamically. Please help me onthis.Thanks in advance,Deen. Yahoo! Groups Sponsor ~-- Protect your PC from spy ware with award winning anti spy technology. It's free.http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: debug of as app not updating changes to swf
Here I've had the same problem. But I think it's due to browser cache. What I've done to solve it is configure my Firefox cache to 0kb. That has solved lots of hedaches :SBestX. On 5/29/06, Bjorn Schultheiss [EMAIL PROTECTED] wrote: It seems the 'launch' command now completely fails to compile anything.I have tried it on a range of examples and it is not working at all.Do I log this as a bug?-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Bjorn SchultheissSent: Tuesday, 30 May 2006 12:25 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: debug of as app not updating changes to swfI guess I forgot to mention this is in Flex Builder 2It seems now it fB2 b3 is not compiling my AS project AT ALL! Whenever I press 'run' or 'debug' it attempts to load the existing main.swfand does not compile a new version.Am I doing something wrong here? This is killing me-Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of rama satoskarSent: Tuesday, 30 May 2006 12:15 AM To: flexcoders@yahoogroups.comSubject: [flexcoders] Re: debug of as app not updating changes to swfHi,You need to download an application called'ASOCommands.mxp ' from MikeChamber's site:http://weblogs.macromedia.com/mesh/archives/2004/07/new_aso_cache_c.htmlJust run the file after downloading the file. it requires Flash version 8 or more.Hope it solves your problem.Rama.--- In flexcoders@yahoogroups.com, Bjorn Schultheiss[EMAIL PROTECTED] wrote: Is there a something I can do similar to clear aso files in flashide, as it seems when debugging my actionscript project application it is notupdating with the latest changes I have made. This is causing me a lot of frustration. Bjorn Schultheiss Senior Flash Developer qdc Personalised Communication Power W: http://www.qdc.net.au http://www.qdc.net.au/ ((This transmission is confidential and intended solelyfor the person or organization to whom it is addressed. It may contain privileged and confidential information. If you are not the intended recipient, you should not copy, distribute or take any action in reliance on it. If you believe you received this transmission in error, please notify the sender.---))--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links--Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links Yahoo! Groups Sponsor ~--You can search right from your browser? It's easy and it's free.See how. http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM~--- Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Loading one cairngorm into another cairngorm
Maybe the new LoaderContext (similar to classLoader in Java) can help you on this.BestX.On 5/27/06, Darren Houle [EMAIL PROTECTED] wrote:If that was the case then you'd have to worry about singletons and object names every time you used a SWFLoader to load any other SWF.Any SWF youload might have coincidentally used a duplicate variable, class, or packagename.I'm not 100% sure, but I believe that SWFs loaded into other SWFs by default are scoped separately and self contained and you do not have toworry about the singleton classes or var names.If that wasn't the casethen it would be incredibly simple to communicate between the mast SWF and the loaded SWF.It would be an easy enough experiment... just create a pagethat loaded the same Flex app twice on the page, right next to each other,and see if they continue to work properly.Then try it again with a simple app that, say, displayed a label and then SWFloaded a copy of itself.Seeif that collides.Darrenin the case ofCairngorm, I think that I might run into problems with the fact that in Cairngorm, some things are singletons (AppController, Service,AppModel).If Both apps have the same names for these singletons,would these not conflict? Yahoo! Groups Sponsor ~-- Get to your groups with one click. Know instantly when new email arriveshttp://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] [F2B3] About generated swf FileSize
Hi all,I've notice that an empty flex application weights arround 125Kb and it's really easy to reach 300Kb (just drop a datagrid, rich text editor and a date chooser).Is this size going to be the same on the final release? Or does generated swf still contains debug and removable info? BestX. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] -use-network compiler param not working
I'm trying to compile a F2B3 application which I want to load only file system files and running it from file:// in the navigator.Eventhough I've added -use-network=false param in the Flex Compiler properties panel, I'm receiving a sandbox security exception. Is this a bug or I'm doing something wrong?BestX. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Combobox bad behaviour in RichText component
Hi all,I've noticed what seems to be a bad behaviour in richText comboboxes. Try to open font size combo and then, without closing the font size combo, open the font type combo. Both will close.BestX. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Loading assets of one swf into another container swf[F2B3]
Hi all,I have 2 swf. SWF1 loads SWF2 by using an SWFLoader component.When loaded SWF2, I add its contents inside a canvas. Also swf1 contains a button which gets, casting to an interface, a reference to an instantiable an visible component. The instantiation is working really fine, but I'm getting an strange border arround the external loaded assets. I've posted a minimized application as well as its source:http://www.code4net.com/crossLibraryI've tried to set borderThickness property to 0 but no luck :( Any suggestions? (maybe a bug on the components?BestX.P.D: shared Librarys among different swf's is a really amazing improvement!! Finally we'll be able to develop plugin architectures! great adobe great! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Loading assets of one swf into another container swf[F2B3]
I've been able to solve it by using borderStyle=none. But I don't understand the different behaviours and why by default isn't getting none...Thanks Carlos ;-)X. On 5/24/06, Xavi Beumala [EMAIL PROTECTED] wrote: The code is at: http://www.code4net.com/crossLibrary right click and view source BestX.On 5/24/06, rama satoskar [EMAIL PROTECTED] wrote: I would want to see the source code for ur minimized application. icould not get it.--- In flexcoders@yahoogroups.com , Xavi Beumala [EMAIL PROTECTED] wrote: Hi all, I have 2 swf. SWF1 loads SWF2 by using an SWFLoader component. When loaded SWF2, I add its contents inside a canvas. Also swf1contains a button which gets, casting to an interface, a reference to an instantiable an visible component. The instantiation is working really fine, but I'm getting an strange border arround the external loaded assets. I've posted a minimized application as well as its source: http://www.code4net.com/crossLibrary I've tried to set borderThickness property to 0 but no luck :( Any suggestions? (maybe a bug on the components? Best X. P.D: shared Librarys among different swf's is a really amazingimprovement!! Finally we'll be able to develop plugin architectures! great adobegreat! Yahoo! Groups Sponsor ~--You can search right from your browser? It's easy and it's free.See how. http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] dragMoveEnabled in Tree component
I think there's an error on the Tree component documentation. I read on it that dragMoveEnabled default value is 'false' but I think it's default value it's true:code?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=verticalcreationComplete=init() mx:Script ![CDATA[ import mx.core.UIComponent; import mx.managers.DragManager; import mx.events.DragEvent; public function init():void { componentsDigest.send();destiny.addEventListener(DragEvent.DRAG_ENTER,dragEnter); } public function dragEnter(evt:Event):void {DragManager.acceptDragDrop (evt.target as UIComponent); } ]] /mx:Script mx:HTTPService resultFormat=e4x concurrency=last id=componentsDigest url="" mx:HBox mx:Tree dataProvider={componentsDigest.lastResult} labelField=@label width=300 height=400 dragEnabled=true / mx:Panel title=destino id=destiny width=400 height=400/ /mx:HBox/mx:Application/codeIf you run this code and drag some of the leaves of the Tree to the panel, the leaves will be removed from the tree. To solve it just set dragMoveEnabled=false and will work. BestX. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] swf (loadMovie) from an external swf deosn't work ?
Which flex version are you running?X.On 5/23/06, Antoine Malpel [EMAIL PROTECTED] wrote: I use a swf in a popup in my application, everything's fine aboutinteractity except that swfs that should be loaded in this swf are not loaded from flex application like they are when I play the swf in flashplayer.Flex doesn't support such a thing ? Yahoo! Groups Sponsor ~--Everything you need is oneclick away. Make Yahoo! your home pagenow. http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM~--- Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Event not bubbling when using PopUpManager
Hi all,I'm launching a popUp with a custom component inside through PopUpManager. This custom component has a button that when pressed dispatches an event. The launcher application is subscribed to this event but the event never gets to the listener. Here's the code:FILE: Launcher.mxml?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolutecreationComplete=init() mx:Script ![CDATA[ import mx.containers.TitleWindow; import mx.managers.PopUpManager ; public function init():void {addEventListener(testEvent,myListenerFunc);} public function launch():void { var win:TitleWindow = PopUpManager.createPopUp(this,TitleWindow,true) as TitleWindow;win.title = Hello World;PopUpManager.centerPopUp(win); win.addChild (new FloatingPanel());//win.addEventListener(testEvent,myListenerFunc); } public function myListenerFunc(evt:Event):void {trace (aquí); } ]] /mx:Script mx:Button label=launch click=launch()//mx:ApplicationFILE: FloatingPanel.mxml?xml version= 1.0 encoding=utf-8?mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml width=100% height=100% mx:Script ![CDATA[ import flash.events.Event; public function launch():void {dispatchEvent(new Event(testEvent,true)); } ]] /mx:Script mx:Button label=hello click=launch()//mx:CanvasAm I missing something about event bubbling? If I uncomment the line //win.addEventListener(testEvent,myListenerFunc); then all works fine. But in the code I'm working on can't use this workarround because I don't know which will be the raised events. Thanks in advancebestX. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Event not bubbling when using PopUpManager
Hi Carlos,that was it!! Thanks so muchX.On 5/22/06, Carlos Rovira [EMAIL PROTECTED] wrote: Hi Xavi,I don't know if this could be of help to you:http://www.darronschall.com/weblog/archives/000224.cfm Please tell me if is related to your problem Best,C.2006/5/22, Xavi Beumala [EMAIL PROTECTED] : Hi all,I'm launching a popUp with a custom component inside through PopUpManager. This custom component has a button that when pressed dispatches an event. The launcher application is subscribed to this event but the event never gets to the listener. Here's the code:FILE: Launcher.mxml?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx= http://www.adobe.com/2006/mxml layout=absolutecreationComplete=init() mx:Script ![CDATA[ import mx.containers.TitleWindow; import mx.managers.PopUpManager ; public function init():void {addEventListener(testEvent,myListenerFunc);} public function launch():void { var win:TitleWindow = PopUpManager.createPopUp(this,TitleWindow,true) as TitleWindow;win.title = Hello World;PopUpManager.centerPopUp(win); win.addChild (new FloatingPanel());//win.addEventListener(testEvent,myListenerFunc); } public function myListenerFunc(evt:Event):void {trace (aquí); } ]] /mx:Script mx:Button label=launch click=launch()//mx:ApplicationFILE: FloatingPanel.mxml?xml version= 1.0 encoding=utf-8?mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml width=100% height=100% mx:Script ![CDATA[ import flash.events.Event; public function launch():void {dispatchEvent(new Event(testEvent,true)); } ]] /mx:Script mx:Button label=hello click=launch()//mx:CanvasAm I missing something about event bubbling? If I uncomment the line //win.addEventListener(testEvent,myListenerFunc); then all works fine. But in the code I'm working on can't use this workarround because I don't know which will be the raised events. Thanks in advancebestX. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- ::| Carlos Rovira::| http://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Using amf0 in f2b3
Yes, it's been fixed X.On 5/19/06, Jim Laing [EMAIL PROTECTED] wrote: I haven't played around with this latest round of AMF0 implementation, but when I was working with it a few months ago, I couldn't seem to get Flex2B3 to recognize the type of my serialized objects. Has this been fixed? Can you now serialize typed objects? See http://www.mail-archive.com/flexcoders@yahoogroups.com/msg26609.html for the original post.Jim 2006/5/19, Michael Schmalle [EMAIL PROTECTED]: published a lass which allows you to work with amf0 through f2b3. Why would I want or need to use that ? Uh... AMFPHP (for now) ;-) Peace, Mike On 5/19/06, 海云飞 [EMAIL PROTECTED] wrote: Hi, Renaun, I noticed that I can't view the source of login.php2006/5/19, Renaun Erickson [EMAIL PROTECTED]: X,Thanks for sharing your code updates.I have also created a componentthat provides AMF0 functionality with Flex2.You can find it here:Custom RemoteObjectAMF0 http://www.renaun.com/flex2/I was caught up on a part of the implementation but your code help mefigure out how to pass along the ...args parameter into the methodcall.I have made the updates to the RemoteObjectAMF0 and the source has been uploaded for download.Thanks again,Renaun--- In flexcoders@yahoogroups.com , hank williams [EMAIL PROTECTED] wrote: Thanks. This is very much needed and appreciated. Regards Hank On 5/18/06, Xavi Beumala [EMAIL PROTECTED] wrote: Hi there, I've thought some of you would also be interested on this topic,so I've published a lass which allows you to work with amf0 through f2b3. You can get it at http://www.code4net.com/archives/000119.html Hope it helps X.-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design developmentComputer software developmentSoftware design and development Macromedia flexSoftware development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Sponsor ~-- Everything you need is oneclick away. Make Yahoo! your home pagenow.http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM ~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- What goes up, does come down. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED
[flexcoders] Logging API issue
Hi all,I'm playing with f2b3 new logging api and trying to use it in a similar way I'd use java.util.logHowever if the category of the logger contains the : character an exception is thrown. Reviewing the code, I've seen in the Log class a function called hasIllegalCharacters() which explicitly prevents us from using a : character in the category name. I think a really common log would be as follows:[DEBUG] 5/19 23:05 - com.code4net.log.TestLog TestLog object createdBut due to the syntax of the string returned by getQualifiedClassName() the category would be com.code4net.log:TestLog. Here's the code I'm playing with:codepackage com.code4net.rpc { import mx.logging.Log; import mx.logging.ILogger; import flash.utils.getQualifiedClassName ; import mx.logging.LogEventLevel; public class TestLog { private var log:ILogger = Log.getLogger(getQualifiedClassName(this).replace(::,.));public function TestLog() { log.log(LogEventLevel.DEBUG,TestLog object created); } }}/codeAs shown in the code : can be replaced with . but IMHO in large applications this could become an important performance issue. Are category names restricted for some especial reason? Is there any other way to go?BestXavi Beumala -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Using amf0 in f2b3
Hi there,I've thought some of you would also be interested on this topic, so I've published a lass which allows you to work with amf0 through f2b3.You can get it at http://www.code4net.com/archives/000119.htmlHope it helpsX. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: xml framework
I'm also interested on some kind of library like this. Today I've been looking at how digester (http://jakarta.apache.org/commons/digester/) could be implemented on AS3 Cheersx.On 5/15/06, Suzy Lawson [EMAIL PROTECTED] wrote: Sorry, for clarification, I'm very familar with the Cairngormframework. This would be *completely* outside of it. This XMLframework would handle solely converting xml to objects and viceversa. In my mind, the xml framework would be called from the Command class of caingorm before calling URLLoader--- In flexcoders@yahoogroups.com, Suzy Lawson [EMAIL PROTECTED] wrote: I'm building a Flex 2 app that has all incoming/outgoing data as XML (custom structured...not like an RSS for example). The XML requires namespaces and will likely have changes in structure. There will be multiple incoming XML formats (e.g, Product, Customer, Contact, Calendar Entry). With that said, it seems I need to build a framework to handle incoming XML, forward it to the correct handler to transfer the data to it's related typed class, and add the typed class to the view. The framework will also re-create the XML before sending the request. Should be easy with E4x. Seems straight-forward enough but seems odd there doesn't seem to be any documentation or existing frameworks that completely abstract the xml layer from the UI. Being a java developer, I look forward to writing it (and posting it publicly)...just want to make sure I'm not re-inventing the wheel. Seems like a common need that no one has addressed. If people are using the returned XML as your data object in the view, it could be cumbersome to fix in all the views if the structure changes. Yahoo! Groups Sponsor ~--Get to your groups with one click. Know instantly when new email arrives http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ -- Xavi Beumalahttp://www.code4net.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] dataTipField on Lists not working. Maybe a bug?
Hi all, I'm trying to fill a List component with an array wich doesn't have a 'label' field so I'm using dataTipField property to set which is the attribute to use. Here's the code: code ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute creationComplete=init() mx:Script ![CDATA[ [Bindable] public var tipos:Array; public function init() { tipos = new Array(); tipos.push ({a:a,b:b}); tipos.push ({a:aa,b:bb}); tipos.push ({a:aaa,b:bbb}); myList.dataProvider = tipos; } ]] /mx:Script mx:List id=myList dataProvider={tipos} dataTipField=a/ /mx:Application /code Instead of displaying a, aa and aaa the lists displays 3 items with Object Object. I'm doing something wrong? Thx X. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Install Flex2 Beta2 in tomcat
Are you running a flash player previous to beta 2 release? I think this happened to me and was due to I was compiling with beta2 and running with a previous player (beta 1 in my case)...X. On 4/18/06, sinacapho [EMAIL PROTECTED] wrote: Dear all, My tomcat version is 5.0.28 and i am try to install the Flex2beta2 version in my debian machine. After that i move the flex.war,samples.war to the tomcat directory and start depolyment. It ok but when i run the mxml it get error. Even i have write a sample mxmlmyselfand it returnVerifyError: Error #1053: Illegal override of SystemManager inmx.managers.SystemManagerat global$init() is that i have do something wrong?\thxcapho--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ -- Xavi Beumalahttp://www.code4net.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Flex2/EJB3 integration: problems mapping Java/AS3 classes
Hi,I'm having the same problem with plain and simple Java classes with amf0. Serialization works like a charm from as3 to java, but it's not working from java to as3. The java class I'm using is what follows: codepackage com.code4net.vos;public class PhotoVO { private String title; private String photoURL; public String getPhotoURL() { return photoURL; } public void setPhotoURL(String photoURL) { this.photoURL = photoURL; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; }}/codeIt doesn't have any inheritance and it's really simple. I also thought [RemoteClass] wouldn't work with amf0 so I tried using flash.net.registerClassAlias but didn't work for me :-( It seems like custom objects aren't being casted when they arrive to flash player. Same code is working on AS2 so I think it's not a server side problem... Would be great to have this solved so it's really annoying to implement a custom deserialization method for each VO.Any help is much apreciated!Thanks X.On 4/17/06, carlos.rovira [EMAIL PROTECTED] wrote: Hi Matt,There's no extra space in [RemoteClass] maybe a typo due to the copypaste to the mail.I should point that I'm using AMF0, with OpenAMF, I forget to mention,sorry. And I was able to send the Employee class and operate in the backend, but the problem is in the return that I must to use a plainObject in the client.In the debug panel I could see that I'm sending an Employee Object.Maybe the [RemoteClass] doesn't work with AMF0? btw, what do you mean withIt's not maybe some weird implementation class that extends Employee?The class must be compiled with JDK1.5, and all the project as well,due that I'm using annotations. Maybe this could be the problem? I saw another mail in the list from Xavi Beaumala with the sameproblem, hope someone could give us some lightThanks for any suggestion!C.--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Only thing I can see is the extra space in your [RemoteClass] which I would hope would not cause the mismatch.If you enable the debug logs when the object is sent from the server to the client does the log have the correct type of the Employee?It's not maybe some weird implementation class that extends Employee? Matt From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Carlos Rovira Sent: Saturday, April 15, 2006 3:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex2/EJB3 integration: problems mapping Java/AS3 classes ok, I though I should post the Employee classes as well: the AS3: -- package org.objectweb.easybeans.examples.entitybean { [Bindable] [RemoteClass(alias=org.objectweb.easybeans.examples.entitybean.Employee )] public class Employee { public var id:int; public var name:String; } } -- the Java one: /*** EasyBeans* Copyright (C) 2006 Bull S.A.S.* Contact: [EMAIL PROTECTED]** This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either* version 2.1 of the License, or any later version.** This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU* Lesser General Public License for more details.* * You should have received a copy of the GNU Lesser General Public* License along with this library; if not, write to the Free Software* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA02111-1307 * USA** --* $Id: Employee.java 9 2006-02-19 18:53:32Z benoitf $* --*/ package org.objectweb.easybeans.examples.entitybean; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; /*** Define an employee with an id and a name.* @author Florent Benoit*/ @Entity @Table(name = EMPLOYEES) public class Employee implements java.io.Serializable { /*** Id for serializable class.*/ private static final long serialVersionUID = -236627462547454L; /*** Id of this employee. */ private int id; /*** Name of the employee.*/ private String name; /*** Gets the Id of the employee. * @return the id of the employee.*/ @Id public int getId() { return id; } /*** Sets id of the employee. * @param id the id's employee*/ public void setId(final int id) { this.id = id; } /*** Sets the name. * @param name of employee.*/ public void setName(final String name) { this.name = name; } /*** Gets the name of the employee. * @return name of the employee.*/ public String getName() { return name; } /*** Computes a string representation of this employee. * @return string representation.*/ @Override public String toString() { StringBuilder sb = new StringBuilder();
Re: [flexcoders] Custom authentication in a destination
Hi Matt,On 4/17/06, Matt Chotin [EMAIL PROTECTED] wrote: You definitely need the roles in the constraint, otherwise there's nothing to test for. Why are you not using the login command we provided for 5.5? You would also need to copy the flex-tomcat-common.jar into the common/lib directory as specified in step 1, but then it should work. The one we provide is flex.messaging.security.TomcatLoginCommand.I forgot to mention I also copied flex-tomcat-common.jar into common/lib. The reason why I use a custom login, I'm still playing with fes2 so maybe I'm wrong, is because I have a huge java application in the backend. This application manages its own classloaders and its own JAAS modules to manage authentication and authorization. I think I've been able to solve the classloader issue with a custom filter applyied to MessageBrokerServlet. This filter simply changes the classloader through Thread.currentThread().setContextClassLoader() Is this the good way? For the authentication and authorization I thought the best way would be to implement a custom loginCommand. Otherwise I won't be able to run any existing service on the server side. When using as2 and openAMF I've a custom openAMF invoker which in resume invokes a Subject.doAs statement. But I have no idea where to do this in FES.BTW when I add roles in the security-constraint (using default roles, username and passwords provided by tomcat) and using setCredentials I receive a flex.messaging.security.SecurityException: Login required before authorization can proceed.The client side code I'm using:code?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute mx:Script ![CDATA[ import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; private function send():void {db.setCredentials(tomcat,tomcat); db.test(); } private function onFault (event:FaultEvent):void {trace (onFault); } private function getTest (event:ResultEvent):void { trace (onResult); } ]] /mx:Script mx:RemoteObject id=db destination=sampleDest fault=onFault(event) mx:method name=test showBusyCursor=true result=getTest(event)/ /mx:RemoteObject mx:VBox x=65 y=11 mx:Button click=send()/ /mx:VBox /mx:Application/codeWhat can be wrong?Thanks so much!X. Matt From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Xavi Beumala Sent: Sunday, April 16, 2006 3:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Custom authentication in a destination Hi all, I'm trying to secure a remoting destination with a custom class as stated at http://livedocs.macromedia.com/labs/1/flex20beta2/1546.html The steps I've followed are: · Create a custom class which implements flex.messaging.security.LoginCommand with the methods start, stop, doAuthentication, doAuthorization and logout. · Add a destination definition in flex-remoting-service.xml: destination id=sampleDest properties sourcecom.code4net.business.PhotoService/source statefultrue/stateful /properties security security-constraint ref=sample-users / /security /destination · Add a security definition tag in flex-enterprise-service.xml: security security-constraint id=sample-users auth-methodCustom/auth-method /security-constraint login-command class=com.code4net.loginModules.CustomLogin server=Tomcat/ /security · Place flex-tomcat-server.jar in server/lib (NOT shared/lib) (as stated in fes_install_dir/resources/security/tomcat/readme.txt (I'm running tomcat 5.5) · Copy context.xml in web application under the META-INF directory The problem is that with this configuration the destination isn't being secured and I can execute services on it normally. If I add a roles tag inside the security-constraint then I receive a security-exception eventhough I'm invoking setCredentials and setRemoteCredentials from the clientSide (using default users and roles defined in tomcat-users.xml). On the other hand if I run tomcat in debug mode from eclipse, any of the methods of CustomLogin class are invoked. I think I'm missing the way to bind CustomLogin class to my sampleDest destination. I'm missing something? Help is much apreciated X. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Xavi Beumalahttp://www.code4net.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group
Re: [flexcoders] Re: Flex2/EJB3 integration: problems mapping Java/AS3 classes
Is there any planned date for beta 3 release? Is it near?Thanks a lotX.On 4/17/06, Xavi Beumala [EMAIL PROTECTED] wrote:Is there any planned date for beta 3 release? Is it near? Thanks a lotX.On 4/17/06, Peter Farland [EMAIL PROTECTED] wrote: It might simply be a problem in the beta 2 player, as I have registerClassAlias working for AMF 0 using a beta 3 player (not yet released, obviously). From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Xavi BeumalaSent: Monday, April 17, 2006 5:05 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Flex2/EJB3 integration: problems mapping Java/AS3 classes Hi,I'm having the same problem with plain and simple Java classes with amf0. Serialization works like a charm from as3 to java, but it's not working from java to as3. The java class I'm using is what follows: codepackage com.code4net.vos;public class PhotoVO { private String title; private String photoURL; public String getPhotoURL() { return photoURL; } public void setPhotoURL(String photoURL) { this.photoURL = photoURL; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; }}/codeIt doesn't have any inheritance and it's really simple. I also thought [RemoteClass] wouldn't work with amf0 so I tried using flash.net.registerClassAlias but didn't work for me :-( It seems like custom objects aren't being casted when they arrive to flash player. Same code is working on AS2 so I think it's not a server side problem... Would be great to have this solved so it's really annoying to implement a custom deserialization method for each VO.Any help is much apreciated!Thanks X. On 4/17/06, carlos.rovira [EMAIL PROTECTED] wrote: Hi Matt,There's no extra space in [RemoteClass] maybe a typo due to the copypaste to the mail.I should point that I'm using AMF0, with OpenAMF, I forget to mention,sorry. And I was able to send the Employee class and operate in the backend, but the problem is in the return that I must to use a plainObject in the client.In the debug panel I could see that I'm sending an Employee Object.Maybe the [RemoteClass] doesn't work with AMF0? btw, what do you mean withIt's not maybe some weird implementation class that extends Employee?The class must be compiled with JDK1.5, and all the project as well,due that I'm using annotations. Maybe this could be the problem? I saw another mail in the list from Xavi Beaumala with the sameproblem, hope someone could give us some lightThanks for any suggestion!C.--- In flexcoders@yahoogroups.com , Matt Chotin [EMAIL PROTECTED] wrote: Only thing I can see is the extra space in your [RemoteClass] which I would hope would not cause the mismatch.If you enable the debug logs when the object is sent from the server to the client does the log have the correct type of the Employee?It's not maybe some weird implementation class that extends Employee? Matt From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Carlos Rovira Sent: Saturday, April 15, 2006 3:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex2/EJB3 integration: problems mapping Java/AS3 classes ok, I though I should post the Employee classes as well: the AS3: -- package org.objectweb.easybeans.examples.entitybean { [Bindable] [RemoteClass(alias=org.objectweb.easybeans.examples.entitybean.Employee )] public class Employee { public var id:int; public var name:String; } } -- the Java one: /*** EasyBeans* Copyright (C) 2006 Bull S.A.S.* Contact: [EMAIL PROTECTED]** This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either* version 2.1 of the License, or any later version.** This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU* Lesser General Public License for more details.* * You should have received a copy of the GNU Lesser General Public* License along with this library; if not, write to the Free Software* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA02111-1307 * USA** --* $Id: Employee.java 9 2006-02-19 18:53:32Z benoitf $* --*/ package org.objectweb.easybeans.examples.entitybean; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; /*** Define an employee with an id and a name.* @author Florent Benoit*/ @Entity @Table(name = EMPLOYEES) public class Employee
[flexcoders] Getting custom objects from OpenAMF
Hi all,I'm playing with FES beta 2 and openAMF trying to send and receive custom objects both from java to flex and from flex to java. I've managed to correctly send objects from flex to Java, but I'm having problems when receiving a custom objects from Java. I'm receiving a plain Object instead a casted Object. Here's the code I'm using:code file= RemotingService.aspackage com.code4net.rpc { import flash.events.Event; import flash.net.NetConnection; import flash.net.ObjectEncoding; import flash.net.Responder; import flash.util.Proxy; import flash.util.flash_proxy; import flash.util.trace; import mx.events.EventDispatcher; import mx.rpc.AbstractService; import mx.rpc.Fault; import mx.rpc.events.FaultEvent ; import mx.rpc.events.ResultEvent; use namespace flash_proxy; dynamic public class RemotingService extends AbstractService { private var _connection:AMF0Connection; [Inspectable(type=String)] public var gatewayUrl:String; public function get connection ():AMF0Connection { if (!_connection) {_connection = new AMF0Connection(); _connection.objectEncoding = ObjectEncoding.AMF0;_connection.connect(this.gatewayUrl); } return _connection; } flash_proxy override function callProperty(methodName:*, ...args):* { var callMethod:String = this.destination + . + methodName;var responder:Responder = new Responder( this.onResult,this.onFault); if(args){ connection.call(callMethod,responder,args); } else { connection.call(callMethod,responder); } } public function onResult(result:Object):void { var resultEvent:ResultEvent = new ResultEvent(result,null,null); dispatchEvent(resultEvent); } public function onFault(fault:Object):void { var faultEvent:FaultEvent = new FaultEvent(Fault(fault),null,null); dispatchEvent(faultEvent); } }}import flash.net.NetConnection;class AMF0Connection extends NetConnection { public function AppendToGatewayUrl(append:String):void {} public function AddHeader():void {} public function ReplaceGatewayUrl():void {}}/codecode file=app.mxml?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx= http://www.adobe.com/2006/mxml xmlns=* layout=absolute initialize=onInit() xmlns:remoting=com.code4net.rpc.* remoting:RemotingService id=sampleService destination=com.code4net.business.PhotoService gatewayUrl=http://localhost:8080/CTVGateway result=onResult(event) fault=onFault(event)/ mx:Script ![CDATA[ import com.code4net.vos.PhotoVO; import flash.util.trace ; import mx.rpc.events.*; public function onInit ():void {sampleService.test(); } public function onResult (event:ResultEvent):void { var p:PhotoVO = event.result as PhotoVO;trace (p.photoURL); } public function onFault (event:Event):void {trace (fault); } ]] /mx:Script/mx:Application/codecode file=PhotoVO.aspackage com.code4net.vos { [Bindable] [RemoteClass(alias= com.code4net.vos.PhotoVO)] public class PhotoVO { public var title:String; public var photoURL:String; }}/codeThe VO is mapped correctly (is working in AS2). I've also tried using flash.net.registerClassAlias but haven't had good luck :(Thanks in advance!X. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Custom authentication in a destination
Hi all,I'm trying to secure a remoting destination with a custom class as stated at http://livedocs.macromedia.com/labs/1/flex20beta2/1546.html The steps I've followed are: · Create a custom class which implements flex.messaging.security.LoginCommand with the methods start, stop, doAuthentication, doAuthorization and logout. · Add a destination definition in flex-remoting-service.xml: destination id=sampleDest properties sourcecom.code4net.business.PhotoService/source statefultrue/stateful /properties security security-constraint ref=sample-users / /security /destination · Add a security definition tag in flex-enterprise-service.xml: security security-constraint id=sample-users auth-methodCustom/auth-method /security-constraint login-command class=com.code4net.loginModules.CustomLogin server=Tomcat/ /security · Place flex-tomcat-server.jar in server/lib (NOT shared/lib) (as stated in fes_install_dir/resources/security/tomcat/readme.txt (I'm running tomcat 5.5) · Copy context.xml in web application under the META-INF directoryThe problem is that with this configuration the destination isn't being secured and I can execute services on it normally. If I add a roles tag inside the security-constraint then I receive a security-exception eventhough I'm invoking setCredentials and setRemoteCredentials from the clientSide (using default users and roles defined in tomcat-users.xml).On the other hand if I run tomcat in debug mode from eclipse, any of the methods of CustomLogin class are invoked.I think I'm missing the way to bind CustomLogin class to my sampleDest destination. I'm missing something? Help is much apreciated X. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] AS3 class constructors can't be private? Abstract classes?
. Cheers X. It is interesting to note that private constructors are discouraged in C# 2.0 and replaced by statics. (much like in AS3)cheers -michaelOn 2/12/06, Xavi Beumala [EMAIL PROTECTED] wrote: Hi there, I also completely agree with you. If it's a fact of architecture why not let us (programmers) decide what to use (internal vs private) ?? All new features on AS3 and FES are really amazing, but I think two main things are being forgotten as has been said: abstract classes and private methods. It's really tricky and weird to use runtime exceptions to control what can be controlled at compile time. And despite patterns are language agnostic and can have different implementations on different languages they must be easy to identify on the code. Using hacks like the ones explained isn't easy to identify them. Implementing a template method using exceptions IMHO also looks really bad... Just my opinion X. On 2/12/06, Carlos Rovira [EMAIL PROTECTED] wrote: Thanks to god! I thought was completly alone in this topic! : )2006/2/12, Jens Halm [EMAIL PROTECTED]: again from other people's coming to the Flash platform they look at all this stuff as the typical flash hacks from old days. I don't know why are you so reactive to introduce private constructors that are very clear and precise to resolve this kind of things and don't need any trick. Another question is what's about Abstract classes that are again very needed. Please rethink this two things so we could get a very flexible languaje and bring more people form other backgrounds to our beloved platform without think that we have a platform full of hacks. I have to second all those points. Ok, now we know Adobe had long discussions internally about this issue, but I still can't see any disadvantages in permitting non-public constructors which might have led to this decision. As it seems evident from this and other similar threads the proposed workarounds for singletons are ugly and confusing for most developers. As for abstract classes: Maybe they are not part of ECMA 4 yet? I tried to google it up, but somehow I am not able to find an up-to-date specification draft. (The newest one I was able to find is from 2003). In AS 3 abstract is a reserved keyword but it's not used yet. But again: If we don't get abstract classes we need non-public constructors to fake them. In AS 2 I combine private constructors with empty (pseudo-abstract) template methods to accomplish this. AS 3 is a huge step forward, but I still miss some pieces in the core language: - Private constructors - Abstract classes and methods - Enumerations! - Class.instantiate(args:Array) method Jens www.oregano-server.org -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- ::| Carlos Rovira::| http://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Xavi Beumalahttp://www.code4net.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development
[flexcoders] Just a test
It seems I'm not receiving mails nor mine are being delivered This is just a test mail... X. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] AS3 class constructors can't be private? Abstract classes?
Hi there, I also completely agree with you. If it's a fact of architecture why not let us (programmers) decide what to use (internal vs private) ?? All new features on AS3 and FES are really amazing, but I think two main things are being forgotten as has been said: abstract classes and private methods. It's really tricky and weird to use runtime exceptions to control what can be controlled at compile time. And despite patterns are language agnostic and can have different implementations on different languages they must be easy to identify on the code. Using hacks like the ones explained isn't easy to identify them. Implementing a template method using exceptions IMHO also looks really bad... Just my opinion X. On 2/12/06, Carlos Rovira [EMAIL PROTECTED] wrote: Thanks to god! I thought was completly alone in this topic! : )2006/2/12, Jens Halm [EMAIL PROTECTED]: again from other people's coming to the Flash platform they look at all this stuff as the typical flash hacks from old days. I don't know why are you so reactive to introduce private constructors that are very clear and precise to resolve this kind of things and don't need any trick. Another question is what's about Abstract classes that are again very needed. Please rethink this two things so we could get a very flexible languaje and bring more people form other backgrounds to our beloved platform without think that we have a platform full of hacks. I have to second all those points. Ok, now we know Adobe had long discussions internally about this issue, but I still can't see any disadvantages in permitting non-public constructors which might have led to this decision. As it seems evident from this and other similar threads the proposed workarounds for singletons are ugly and confusing for most developers. As for abstract classes: Maybe they are not part of ECMA 4 yet? I tried to google it up, but somehow I am not able to find an up-to-date specification draft. (The newest one I was able to find is from 2003). In AS 3 abstract is a reserved keyword but it's not used yet. But again: If we don't get abstract classes we need non-public constructors to fake them. In AS 2 I combine private constructors with empty (pseudo-abstract) template methods to accomplish this. AS 3 is a huge step forward, but I still miss some pieces in the core language: - Private constructors - Abstract classes and methods - Enumerations! - Class.instantiate(args:Array) method Jens www.oregano-server.org -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- ::| Carlos Rovira::| http://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Xavi Beumalahttp://www.code4net.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice
Re: [flexcoders] Annpuncing Log4x
Hi Dave, I've tried to subscribe and download log4X and I've noticed the form isn't working in player 8.5. When I focus textInputs I can't write in them. However player 8.0 works fine. Maybe it's an incompatibility between players or maybe a bug... Thanks for your great work! X. Dave Wolf wrote: I am incredibly excited to announce the availability of Log4x to the Flex community. Log4x is a toolkit to assist in the development and runtime monitoring and debugging of applications built with Macromedia Flex. Based on and designed to integrate with Log4j, effectively the most popular logging framework ever developed, Log4x provides the Flex developer with a best-of-breed solution for instrumenting and logging their Flex based RIAs.Log4x takes advantage the Flex web services model, and can be intricately controlled by the developer on a per-application basis during development as well as by administrators in production. Integrating seamlessly with Log4j, Log4x provides a similar programming model making it intuitive for enterprise developers with Log4j experience. Log4x is being released under a community source license free of charge to all licensed Flex users. Features include: - Integrated logging between user experience and server layers. No other logging framework to date lets you bring together every tier of your enterprise flex application. - Ability to assign not only pre-set categories (INFO, DEBUG, WARN, ERROR) but also arbitrary logical application name spaces such as shopping cart, system, navigation, etc. - Logging levels are completely dynamic and can be enabled and disabled in real-time without having to ever recompile your Flex application. - Configurable batching with thresholds reduces network traffic and allows you to configure rules such as don't log unless an error occurs, then log the all steps that lead up to that error. - Based on industry standard frameworks and API's such as Log4j, XML, HTTP, etc. - Secure and compartmentalized. N applications can have N separate logs, each of which may be sending their log messages back to the server via (if configured) secured channels, preventing man-in-the-middle attacks that pry on sensitive data. Log4x is being released under a community source license free of charge to all licensed Flex users. Log4x can be downloaded by subscribing to Cynergy's new Flex Resources community. To get more information, view a video introduction, or download Log4x please click on the link below. http://www.cynergysystems.com/pages/how/technologies/flex/index.html Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] [Flex 2.0 - AS3] E4X problem when parsing tags with hyphen
Hi there, I'm trying to parse xslt files from within as3. When parsing composed xslt tags like xsl:call-template or xsl:with-param I'm getting an error like: Access of undefined property template or Access of undefined property param. It seems like the compiler is interpreting with-param like with variable minus param variable. Here's a code snippet: package { import flash.display.MovieClip; import flash.net.URLLoader; import flash.net.URLRequest; import flash.events.Event; import flash.events.EventType; import flash.util.trace; public class xslParsingBug extends MovieClip { private var xml:XML; private var xmlLoader:URLLoader; public function xslParsingBug() { xmlLoader = new URLLoader(); xmlLoader.addEventListener(EventType.COMPLETE,onXMLLoad); xmlLoader.load (new URLRequest(file5.html)); } private function onXMLLoad (event:Event):Void { xml = XML (xmlLoader.data); var xslNS:Namespace = xml.namespace(xsl); trace (xml.xslNS::[EMAIL PROTECTED]); // this is failing at compile time trace (xml.xslNS::template.xslNS::[EMAIL PROTECTED]); } } } And the file I'm trying to parse: xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:fn=http://www.w3.org/2004/07/xpath-functions; xmlns:xdt=http://www.w3.org/2004/07/xpath-datatypes; xsl:output method=html version=1.0 encoding=ISO-8859-1 indent=yes/ xsl:template name=PageCenter xsl:call-template name=Banner xsl:with-param name=DocXMLmyDoc.xml/xsl:with-param xsl:with-param name=NumBanner2/xsl:with-param /xsl:call-template /xsl:template /xsl:stylesheet Is this a bug? is there any workarround? Thanks in advance! Xavi Beumala Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/u8TY5A/tzNLAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] [Flex 2.0 - AS3] E4X problem when parsing tags with hyphen
If someone is interested on the response: http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=587threadid=1083145enterthread=y Cheers X. Xavi Beumala wrote: Hi there, I'm trying to parse xslt files from within as3. When parsing composed xslt tags like xsl:call-template or xsl:with-param I'm getting an error like: Access of undefined property template or Access of undefined property param. It seems like the compiler is interpreting with-param like with variable minus param variable. Here's a code snippet: package { import flash.display.MovieClip; import flash.net.URLLoader; import flash.net.URLRequest; import flash.events.Event; import flash.events.EventType; import flash.util.trace; public class xslParsingBug extends MovieClip { private var xml:XML; private var xmlLoader:URLLoader; public function xslParsingBug() { xmlLoader = new URLLoader(); xmlLoader.addEventListener(EventType.COMPLETE,onXMLLoad); xmlLoader.load (new URLRequest(file5.html)); } private function onXMLLoad (event:Event):Void { xml = XML (xmlLoader.data); var xslNS:Namespace = xml.namespace(xsl); trace (xml.xslNS::[EMAIL PROTECTED]); // this is failing at compile time trace (xml.xslNS::template.xslNS::[EMAIL PROTECTED]); } } } And the file I'm trying to parse: xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:fn=http://www.w3.org/2004/07/xpath-functions; xmlns:xdt=http://www.w3.org/2004/07/xpath-datatypes; xsl:output method=html version=1.0 encoding=ISO-8859-1 indent=yes/ xsl:template name=PageCenter xsl:call-template name=Banner xsl:with-param name=DocXMLmyDoc.xml/xsl:with-param xsl:with-param name=NumBanner2/xsl:with-param /xsl:call-template /xsl:template /xsl:stylesheet Is this a bug? is there any workarround? Thanks in advance! Xavi Beumala -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] [FLEX1.5] flex + fcs + cfc + oracle realtime question
FCS isn't an application server so it can't directly access to a DB. Instead you can use remoting to communicate with an application server and this will be the responsible to access DB. For example: FCS --|remoting|-- Tomcat -- DB | FCS --|remoting|-- Tomcat | Hope that helps X. aoi_zip wrote: I want to send oracle data using FCS and apply it to FLEX directly(real time). In this case, I think that FCS and DB have to synchronize directly or run queries repeatedly in order to generate Real-time. So, I want to know that how FCS apply DB data to FLEX directly(real time) and its source code. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flash Player - Desktop integration... SDK?
By the way it seem that Macromedia is working on a official extended projector to develop desktop applications code name: Apollo. Have a look at this post on the alpha forums: http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=585threadid=1077420 Cheers Xavi Beumala http://www.code4net.com John C. Bland II wrote: Checkout Zinc: http://www.multidmedia.com/software/zinc/. I think it has the biggest feature-set available, could be very wrong. On 11/7/05, *JesterXL* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: mProjector allows drag and drop... and I think Screenweaver did too. Not sure about clipboard... :: looks :: Yeah, mProjector does; in Flex, you'd do: var str:String = _global.mSystem.getClipboard(); - Original Message - From: Aldo Bucchi [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Sent: Monday, November 07, 2005 9:04 PM Subject: Re: [flexcoders] Flash Player - Desktop integration... SDK? Hi Jesse, Great to know you've done it... ;) Do you have any idea on how to make a Desktop Flash UI accept drag and drop from an external app... or access the clipboard? best, aldo On 11/7/05, JesterXL [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Don't know about design view, but Flash for desktop UI has been something I've always enjoyed doing. Worked great for C++ apps, and worked great with VB; both of which used XMLSocket. I've used fscommand in the past, simply respecting what C++ told me to do, same with Centura. Now, however, ExternalInterface makes this a lot easier to get syncronous communication with real data objects. Check it out. - Original Message - From: Aldo Bucchi [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Sent: Monday, November 07, 2005 5:40 PM Subject: [flexcoders] Flash Player - Desktop integration... SDK? Hi all, Sorry for the strange question.. I couldn't find any info on this anywhere else. When I look at the Design view in Flex Builder... is it being rendered by some variation of the flash player? if so, how does it integrate with Java? I guess it is internal stuff. But, is there any java/c++/py etc SDK planned for the future? The new player + framework are starting to become an attractive UI alternative for some desktop applications... Does central appear somewhere on this road in the future? Thanks, Aldo -- : Aldo Bucchi : mobile (56) 8 429 8300 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- : Aldo Bucchi : mobile (56) 8 429 8300 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw Software
[flexcoders] Creating custom v3 components
For what I've seen v3 components are based on a template method pattern like did v2. If I'm not wrong this is the method invocation workflow : Constructor Initialize createChildren childrenCreated measure updateDisplayList Instead of calling invalidate() like in v2, now, if I'm not wrong, we can call redraw(Boolean) or invalidateDisplayList(). On the other hand when you call addChild, internally invalidateDisplayList is called. My problem is that if in updateDisplayList() overriden method I add an addChild statement then an infinite loop starts. Is there a way to prevent this? Or the way is to keep out addChild statements from updateDisplayList method? Thanks in advance Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Creating custom v3 components
Sorry if this mail arribes twice, I've sent it before but I haven't received a copy... For what I've seen v3 components are based on a template method pattern like did v2. If I'm not wrong this is the method invocation workflow : Constructor Initialize createChildren childrenCreated measure updateDisplayList Instead of calling invalidate() like in v2, now, if I'm not wrong, we can call redraw(Boolean) or invalidateDisplayList(). On the other hand when you call addChild, internally invalidateDisplayList is called. My problem is that if in updateDisplayList() overriden method I add an addChild statement then an infinite loop starts. Is there a way to prevent this? Or the way is to keep out addChild statements from updateDisplayList method? Thanks in advance Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/