[flexcoders] Agent Platform for Actionscript
We are interested in developing an experimental project, an Agent Platform for Actionscript, something similar to JADE. What you guys think? -- Jhonny Everson
Re: [flexcoders] Tutorials or pointing me in the right direction
I think this one can be a good start. http://www.jamesward.com/2009/04/16/flex-paint-2/ 2010/2/18 Wally Kolcz wko...@isavepets.com I need to create a coloring tool, for a sick children's portal, where I can lay a vector outline on the screen and the kids can color it. It doesnt have to always be 'in the lines' so a background image would be fine. That part is no problem... However I don't even know where to start on how to make a took that when the mouse button is depressed it starts to draw (or color) a line. Any ideas where I can get a tutorial or a source code block for that? Thanks! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Jhonny Everson
Re: [SPAM] [flexcoders] popup dialog with grow ability?
This could be done with separate questions: 1) how to make a popup for a custom component ( e.g. a custom panel, canvas etc). 2) How to make a custom component expandable. There's lots of material about that too. 2010/2/1 MicC chigwel...@yahoo.com If you have a link that would be great googled for about an hour before posting request - found some interesting popup stuff but nothing that had expand. --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: I don't have one handy but google will. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of MicC Sent: Saturday, January 30, 2010 7:10 PM To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] popup dialog with grow ability? Looking for a popup example where the popup can be grabbed and expanded. TIA, Mic. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Jhonny Everson
[flexcoders] mouseOut on drag
Hello guys, I have a draggable custom panel (VBOX) with the following: box.addEventListener(MouseEvent.MOUSE_DOWN,handleDown); box.addEventListener(MouseEvent.MOUSE_OUT,handleUp); box.addEventListener(MouseEvent.MOUSE_UP,handleUp); private function handleDown(e:MouseEvent):void{ this.startDrag() } private function handleUp(e:MouseEvent):void{ this.stopDrag(); } The MOUSE_OUT was added because when I drag a little faster, the mouse pointer leaves the box. How can I prevent that? -- Jhonny Everson
[flexcoders] Re: Flash builder 4 Slower Compilation
I tried putting flash builder to use 1Gb of ram, but that wasn't the cause... Anybody? On Mon, Sep 21, 2009 at 2:05 AM, Everson Alves jho...@eversonalves.com.brwrote: Hello, I'm trying to use FB4 as main ide. Ok, I know it's beta! But everything that I want works. The problem is that the compilation time on the same workspace with a lot of big java and flex projects is much longer than the time when I'm using FB3. It's really weird but it's true. I have both well configured for my projects for months now. Every time I try again to use Fb4 I quit after some hours because of that. Anybody had this problem too and found a workaround? Btw, I read on Jira that there's been some fixes for FB4 after the Beta 1 release. Can we get the updated version? -- Jhonny Everson -- Jhonny Everson
[flexcoders] Flash builder 4 Slower Compilation
Hello, I'm trying to use FB4 as main ide. Ok, I know it's beta! But everything that I want works. The problem is that the compilation time on the same workspace with a lot of big java and flex projects is much longer than the time when I'm using FB3. It's really weird but it's true. I have both well configured for my projects for months now. Every time I try again to use Fb4 I quit after some hours because of that. Anybody had this problem too and found a workaround? Btw, I read on Jira that there's been some fixes for FB4 after the Beta 1 release. Can we get the updated version? -- Jhonny Everson
Re: [flexcoders] Singletons and Modules - Application domain problem
I'll have a look at it say the outcome here. Thanks. On Tue, Aug 18, 2009 at 6:03 PM, Rick Winscot rick.wins...@zyche.comwrote: Take a look at a good write-up by Steve Brownlee... http://www.fusioncube.net/index.php/cairngorm-sharing-a-common-modellocator-with-modules With the added security restrictions... Your singleton implementation may need to be hardened to prevent multiple instance... Etc. This example may help as well. http://www.quilix.com/node/5 Cheers, Rick Winscot On 8/15/09 12:11 PM, Everson Alves jho...@eversonalves.com.br wrote: Hello guys, I'm facing a weird problem. I'm working with flex Modules that are tide mxml components . Using ModuleManager to load the modules. If I load using moduleInfo.load(ApplicationDomain.currentDomain) it loads fine but as I want to use the module as independent sub applications and they use the same class definitions that doens't play nice with singletons (ModelLocator) . When loading using moduleInfo.load() expecting that it uses it's own ApplicationDomain it loads, dispatches ModuleEvent.READY event but moduleEvent.module.factory.create() gives me null. I also tried moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) but this case dispatches a ModuleEvent.ERROR saying that file isn't a loadable module or something like that. An detail that might be important is that the module is marked to be optimized to my application in compilation. thanks in advance. -- Jhonny Everson
Re: [flexcoders] Singletons and Modules - Application domain problem
It's a good post but doesn't solve my problem without a lot of changes in the whole application. What i was really wanting from here is to know why I can't load the modules into different application domains. I'll use a ModelLocator factory per conversation instead of Singleton, but that requires changing in a lot of places, mainly propageting the conversationId all components and classes that need to access the modelLocator. On Tue, Aug 18, 2009 at 6:35 PM, Everson Alves jho...@eversonalves.com.brwrote: I'll have a look at it say the outcome here. Thanks. On Tue, Aug 18, 2009 at 6:03 PM, Rick Winscot rick.wins...@zyche.comwrote: Take a look at a good write-up by Steve Brownlee... http://www.fusioncube.net/index.php/cairngorm-sharing-a-common-modellocator-with-modules With the added security restrictions... Your singleton implementation may need to be hardened to prevent multiple instance... Etc. This example may help as well. http://www.quilix.com/node/5 Cheers, Rick Winscot On 8/15/09 12:11 PM, Everson Alves jho...@eversonalves.com.br wrote: Hello guys, I'm facing a weird problem. I'm working with flex Modules that are tide mxml components . Using ModuleManager to load the modules. If I load using moduleInfo.load(ApplicationDomain.currentDomain) it loads fine but as I want to use the module as independent sub applications and they use the same class definitions that doens't play nice with singletons (ModelLocator) . When loading using moduleInfo.load() expecting that it uses it's own ApplicationDomain it loads, dispatches ModuleEvent.READY event but moduleEvent.module.factory.create() gives me null. I also tried moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) but this case dispatches a ModuleEvent.ERROR saying that file isn't a loadable module or something like that. An detail that might be important is that the module is marked to be optimized to my application in compilation. thanks in advance. -- Jhonny Everson -- Jhonny Everson
Re: [flexcoders] Singletons and Modules - Application domain problem
The problem is that when I try to load it into a different applicationDomain other than ApplicationDomain.currentDomain , even the first instance won't load. ModuleEvent.READY is dispatched but moduleEvent.module.factory.create() gives me null. On Tue, Aug 18, 2009 at 8:45 PM, Alex Harui aha...@adobe.com wrote: A module is a factory of potentially many instances, so multiple requests to load the same url are ignored and the same factory is returned to create the instance. You might try adding dummy url variables to see if you can fool ModuleManager into loading the module SWF again. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Everson Alves *Sent:* Tuesday, August 18, 2009 4:38 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Singletons and Modules - Application domain problem It's a good post but doesn't solve my problem without a lot of changes in the whole application. What i was really wanting from here is to know why I can't load the modules into different application domains. I'll use a ModelLocator factory per conversation instead of Singleton, but that requires changing in a lot of places, mainly propageting the conversationId all components and classes that need to access the modelLocator. On Tue, Aug 18, 2009 at 6:35 PM, Everson Alves jho...@eversonalves.com.br wrote: I'll have a look at it say the outcome here. Thanks. On Tue, Aug 18, 2009 at 6:03 PM, Rick Winscot rick.wins...@zyche.com wrote: Take a look at a good write-up by Steve Brownlee... http://www.fusioncube.net/index.php/cairngorm-sharing-a-common-modellocator-with-modules With the added security restrictions... Your singleton implementation may need to be hardened to prevent multiple instance... Etc. This example may help as well. http://www.quilix.com/node/5 Cheers, Rick Winscot On 8/15/09 12:11 PM, Everson Alves jho...@eversonalves.com.br wrote: Hello guys, I'm facing a weird problem. I'm working with flex Modules that are tide mxml components . Using ModuleManager to load the modules. If I load using moduleInfo.load(ApplicationDomain.currentDomain) it loads fine but as I want to use the module as independent sub applications and they use the same class definitions that doens't play nice with singletons (ModelLocator) . When loading using moduleInfo.load() expecting that it uses it's own ApplicationDomain it loads, dispatches ModuleEvent.READY event but moduleEvent.module.factory.create() gives me null. I also tried moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) but this case dispatches a ModuleEvent.ERROR saying that file isn't a loadable module or something like that. An detail that might be important is that the module is marked to be optimized to my application in compilation. thanks in advance. -- Jhonny Everson -- Jhonny Everson -- Jhonny Everson
Re: [flexcoders] ComboBox not updating
The dataprovider is an arraycollection or any IList? try dataprovider.refresh(); On Tue, Aug 18, 2009 at 8:59 PM, Richard Rodseth rrods...@gmail.com wrote: The full story is too long to relate and involves the component which has given me more grief than any other - ComboBox. I'm pretty sure I established a while ago that there's a bug in using a ComboBox with a bound value for selectedIndex. I have one whose dataprovider (and current selected index) are both highly dynamic (changing in response to changes in another combobox). There is a circumstance in which the displayed label does not update until you roll over the combobox, or sometimes click on it. Is there a brute force way I can make it update? I've tried various invalidateXXX methods. -- Jhonny Everson
Re: [flexcoders] Singletons and Modules - Application domain problem
I did that too, in fact I explained it in the first mail, when I tried: moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) it dispatches a ModuleEvent.ERROR saying that file isn't a loadable module or something like that. Also i tried var somObj:SomeInterface = module.factory.create as SomeInterface var somObj:Object = module.factory.create; var somObj:*= module.factory.create; when loading using moduleInfo.load(); On Wed, Aug 19, 2009 at 1:19 AM, Alex Harui aha...@adobe.com wrote: If you use “new ApplicationDomain()” then module.factory.create() will return an object of an unknown type because you’ve created a whole new applicationDomain with different classes so the type of what you create is not going to match. Your code probably does this: var somObj:SomeInterface = module.factory.create as SomeInterface So the “as” returns null. With modules you must use a child applicationdomain i.e. “new ApplicationDomain(applicationDomain.currentDomain)” so that the interface is shared. The next trick is to get the ModuleManager to attempt a second load in a separate child applicationdomain so fake url params might work. As long as the singletons are not in the main app, each child appdomain should have its own singleton. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Everson Alves *Sent:* Tuesday, August 18, 2009 5:28 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Singletons and Modules - Application domain problem The problem is that when I try to load it into a different applicationDomain other than ApplicationDomain.currentDomain , even the first instance won't load. ModuleEvent.READY is dispatched but moduleEvent.module.factory.create() gives me null. On Tue, Aug 18, 2009 at 8:45 PM, Alex Harui aha...@adobe.com wrote: A module is a factory of potentially many instances, so multiple requests to load the same url are ignored and the same factory is returned to create the instance. You might try adding dummy url variables to see if you can fool ModuleManager into loading the module SWF again. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Everson Alves *Sent:* Tuesday, August 18, 2009 4:38 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Singletons and Modules - Application domain problem It's a good post but doesn't solve my problem without a lot of changes in the whole application. What i was really wanting from here is to know why I can't load the modules into different application domains. I'll use a ModelLocator factory per conversation instead of Singleton, but that requires changing in a lot of places, mainly propageting the conversationId all components and classes that need to access the modelLocator. On Tue, Aug 18, 2009 at 6:35 PM, Everson Alves jho...@eversonalves.com.br wrote: I'll have a look at it say the outcome here. Thanks. On Tue, Aug 18, 2009 at 6:03 PM, Rick Winscot rick.wins...@zyche.com wrote: Take a look at a good write-up by Steve Brownlee... http://www.fusioncube.net/index.php/cairngorm-sharing-a-common-modellocator-with-modules With the added security restrictions... Your singleton implementation may need to be hardened to prevent multiple instance... Etc. This example may help as well. http://www.quilix.com/node/5 Cheers, Rick Winscot On 8/15/09 12:11 PM, Everson Alves jho...@eversonalves.com.br wrote: Hello guys, I'm facing a weird problem. I'm working with flex Modules that are tide mxml components . Using ModuleManager to load the modules. If I load using moduleInfo.load(ApplicationDomain.currentDomain) it loads fine but as I want to use the module as independent sub applications and they use the same class definitions that doens't play nice with singletons (ModelLocator) . When loading using moduleInfo.load() expecting that it uses it's own ApplicationDomain it loads, dispatches ModuleEvent.READY event but moduleEvent.module.factory.create() gives me null. I also tried moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) but this case dispatches a ModuleEvent.ERROR saying that file isn't a loadable module or something like that. An detail that might be important is that the module is marked to be optimized to my application in compilation. thanks in advance. -- Jhonny Everson -- Jhonny Everson -- Jhonny Everson -- Jhonny Everson
Re: [flexcoders] Re: Singletons and Modules - Application domain problem
I already had read it, about 2 years ago, right? It's very good. I read again now to check if forgot something in these 2 years. I guess not; Maybe I didn't explain correctly. In fact I want to have multiple Singleton, that might sound weird but each module needs to run as an independent application. I want to load more than once each module. For example: ModuleAModelLocator.getInstance.shoppingCart should differ from ModuleAModelLocator.getInstance.shoppingCart loaded a second time in a different ApplicationDomain. Is that possible? On Sun, Aug 16, 2009 at 3:04 AM, Alex Harui aha...@adobe.com wrote: See the modules presentation on my blog. You’ll need to define the singleton or at least its interface and related types in the main app or a shared-code module. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Everson Alves *Sent:* Saturday, August 15, 2009 9:47 PM *To:* granit...@yahoogroups.com; flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Singletons and Modules - Application domain problem I tried removing the option to optimize the module but the problem persists. Any idea? On Sat, Aug 15, 2009 at 1:11 PM, Everson Alves jho...@eversonalves.com.br wrote: Hello guys, I'm facing a weird problem. I'm working with flex Modules that are tide mxml components . Using ModuleManager to load the modules. If I load using moduleInfo.load(ApplicationDomain.currentDomain) it loads fine but as I want to use the module as independent sub applications and they use the same class definitions that doens't play nice with singletons (ModelLocator) . When loading using moduleInfo.load() expecting that it uses it's own ApplicationDomain it loads, dispatches ModuleEvent.READY event but moduleEvent.module.factory.create() gives me null. I also tried moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) but this case dispatches a ModuleEvent.ERROR saying that file isn't a loadable module or something like that. An detail that might be important is that the module is marked to be optimized to my application in compilation. thanks in advance. -- Jhonny Everson -- Jhonny Everson -- Jhonny Everson
[flexcoders] Singletons and Modules - Application domain problem
Hello guys, I'm facing a weird problem. I'm working with flex Modules that are tide mxml components . Using ModuleManager to load the modules. If I load using moduleInfo.load(ApplicationDomain.currentDomain) it loads fine but as I want to use the module as independent sub applications and they use the same class definitions that doens't play nice with singletons (ModelLocator) . When loading using moduleInfo.load() expecting that it uses it's own ApplicationDomain it loads, dispatches ModuleEvent.READY event but moduleEvent.module.factory.create() gives me null. I also tried moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) but this case dispatches a ModuleEvent.ERROR saying that file isn't a loadable module or something like that. An detail that might be important is that the module is marked to be optimized to my application in compilation. thanks in advance. -- Jhonny Everson
[flexcoders] Re: Singletons and Modules - Application domain problem
I tried removing the option to optimize the module but the problem persists. Any idea? On Sat, Aug 15, 2009 at 1:11 PM, Everson Alves jho...@eversonalves.com.brwrote: Hello guys, I'm facing a weird problem. I'm working with flex Modules that are tide mxml components . Using ModuleManager to load the modules. If I load using moduleInfo.load(ApplicationDomain.currentDomain) it loads fine but as I want to use the module as independent sub applications and they use the same class definitions that doens't play nice with singletons (ModelLocator) . When loading using moduleInfo.load() expecting that it uses it's own ApplicationDomain it loads, dispatches ModuleEvent.READY event but moduleEvent.module.factory.create() gives me null. I also tried moduleInfo.load(new ApplicationDomain(ApplicationDomain.currentDomain)) but this case dispatches a ModuleEvent.ERROR saying that file isn't a loadable module or something like that. An detail that might be important is that the module is marked to be optimized to my application in compilation. thanks in advance. -- Jhonny Everson -- Jhonny Everson
Re: [flexcoders] Re: Month-calendar control (with MATE test-app and Degrafa skins)
Hello, It's a nice work. Here goes some suggestions: - you could move the events by dragging them - add start and end time - have separated fields for subject and description On Thu, Aug 6, 2009 at 11:49 PM, max.nachlinger max.nachlin...@gmail.comwrote: Here's the new version: http://flexamusements.blogspot.com/2009/08/month-calendar-control-with-mate-test.html -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Jhonny Everson
[flexcoders] Adobe Air: open file with associated application
Hello, Is there a way to make an Air application to open a file, let's say a *.doc or *.ppt with their associated applications? -- Jhonny Everson
[flexcoders] Re: Generate sample request from WSDL
There's a tool written in Java called soapUI that does exactly what I'm trying to do. I don't want to generate lots of classes that abstracts the web service from wsdl, I want the generation of raw xml request. I tried google, reading the documentation, testing as3 webservices api with no luck. Anybody knows if there is any lib that I can use to generate this sample XML request in actionscript? On Thu, Jun 11, 2009 at 6:21 PM, Everson Alves jho...@eversonalves.com.brwrote: Hello, Does anyone knows if it's possible to generate a sample XML request for a given WSDL. Or more generally, generate sample xml from a schema. I'm trying to build a webservice testing tool. I've done that using PHP, but I'm interested in doing it all in actionscript if it's possible. -- Jhonny Everson -- Jhonny Everson
Re: [flexcoders] Re: Generate sample request from WSDL
Thanks Steve, But it's not that easy, in php I used built-in soap extension, loaded the wsdl file, used reflection to build the request parameters since I had the source classes of the parameters, changed the endpoint to something that doesn't exist so I could make a call, catch the exception and get the xml request using lastRequest property. It's worked but it's a work around. Not an elegant solution. Using your solution It would work but it's really hard when using wsdl with complex parameters. I need to generate XML from XML Schema. On Mon, Jun 15, 2009 at 4:01 PM, valdhor valdhorli...@embarqmail.comwrote: I don't know of anything. I would be inclined to read in the WSDL as a text string and then parse that rather than use the built in web service functions. If you have already done it in PHP, then it should be relatively easy. Steve --- In flexcoders@yahoogroups.com, Everson Alves jho...@... wrote: There's a tool written in Java called soapUI that does exactly what I'm trying to do. I don't want to generate lots of classes that abstracts the web service from wsdl, I want the generation of raw xml request. I tried google, reading the documentation, testing as3 webservices api with no luck. Anybody knows if there is any lib that I can use to generate this sample XML request in actionscript? On Thu, Jun 11, 2009 at 6:21 PM, Everson Alves jho...@...wrote: Hello, Does anyone knows if it's possible to generate a sample XML request for a given WSDL. Or more generally, generate sample xml from a schema. I'm trying to build a webservice testing tool. I've done that using PHP, but I'm interested in doing it all in actionscript if it's possible. -- Jhonny Everson -- Jhonny Everson -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Jhonny Everson
[flexcoders] Generate sample request from WSDL
Hello, Does anyone knows if it's possible to generate a sample XML request for a given WSDL. Or more generally, generate sample xml from a schema. I'm trying to build a webservice testing tool. I've done that using PHP, but I'm interested in doing it all in actionscript if it's possible. -- Jhonny Everson
Re: [flexcoders] Read Items / Loop Through Datagrid Rows
Hi, I did something quite similar but using List + renderer manually added instead. The custom line renderer dispatches events when edited so I can save the values, remove or add new lines, block the others rows etc. My previous implementation was using datagrid like you is trying but this new approach is better for me, I've far more control over what I can do. On Thu, Jun 11, 2009 at 10:12 AM, Angelo Anolin angelo_ano...@yahoo.comwrote: Hi FlexCoders, I am dynamically creating a datagrid with 5 columns and 10 rows. Columns 2, 3, 4 and 5 are all rendered as textinput control where user can enter some information. How do I loop through all the datagrid rows and store the values entered in the datagrid into an array collection? Been trying to find some nice examples to achieve this but came up empty handed. Would appreciate your inputs. By the way, I'd also like to ensure that no rows would be skipped by the user when filling up the datagrid (i.e. He could only populate row 1 before he can populate row 2 and so forth). That way, when the array collection stores the values of the datagrid, there is no blank or null value. The remaining blank rows would simply be ignored in the loop. Thanks. Regards, Angelo -- Jhonny Everson
[flexcoders] bug in Flex regarding to import
Hello, I have this scenario: class zzz.Webservice; class xxx.Webservice; class xxx.WebserviceAccess; I'm trying to use zzz.Webservice and can't; I imported it but flex compiler says it's ambiguos, when it shouldn't because I explicitly which one I want to use; -- Jhonny Everson
[flexcoders] Re: bug in Flex regarding to import
I'm trying to use zzz.Webservice from xxx.WebserviceAccess On Sun, Apr 26, 2009 at 12:07 PM, Everson Alves jho...@eversonalves.com.brwrote: Hello, I have this scenario: class zzz.Webservice; class xxx.Webservice; class xxx.WebserviceAccess; I'm trying to use zzz.Webservice and can't; I imported it but flex compiler says it's ambiguos, when it shouldn't because I explicitly which one I want to use; -- Jhonny Everson -- Jhonny Everson
Re: [flexcoders] bug in Flex regarding to import
No, i'm using only one class. I guess it's importing automatically the Webservice on the same package but an explicit import should override that. On Sun, Apr 26, 2009 at 10:05 PM, Sam Lai samuel@gmail.com wrote: Assuming you're using both xxx.Webservice and zzz.Webservice in the same class, you need to use the full name to refer to those classes in your code, otherwise Flex won't be able to work out what you're referring to. So instead of: var w1:Webservice; var w2:Webservice; use: var w1:xxx.Webservice; var w2:zzz.Webservice; (this should work; haven't actually had this occur in my code yet.) On 4/27/09, Everson Alves jho...@eversonalves.com.br wrote: Hello, I have this scenario: class zzz.Webservice; class xxx.Webservice; class xxx.WebserviceAccess; I'm trying to use zzz.Webservice and can't; I imported it but flex compiler says it's ambiguos, when it shouldn't because I explicitly which one I want to use; -- Jhonny Everson -- Sent from my mobile device -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Jhonny Everson
[flexcoders] detect the build type (debug or release)
Hello, is it possible to detect the build type (debug or release) of an Flex Application from code? -- Jhonny Everson
Re: [flexcoders] detect the build type (debug or release)
Thank you Alex, the trick worked. On Mon, Apr 20, 2009 at 2:43 PM, Alex Harui aha...@adobe.com wrote: http://blogs.adobe.com/aharui/2007/10/debugging_tricks.html Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Everson Alves *Sent:* Monday, April 20, 2009 10:15 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] detect the build type (debug or release) Hello, is it possible to detect the build type (debug or release) of an Flex Application from code? -- Jhonny Everson -- Jhonny Everson
[flexcoders] control captivate swf (fp9 / as2) in flex 3
hello, How can I control ( play, pause, stop) an swf made with captivate 3. It's for FP9 ( actionscript 2). LocalConnection doesn't fit me well because the swf I need to control are generated. I don -- Jhonny Everson
Re: [flexcoders] Re: Alternating colors for AdvancedDataGrid
Hello, I found a solution extending ADG. I'll post here if anyone need it too. Just override drawRowBackgrounds and use alternatingItemColors properties. CODE: override protected function drawRowBackgrounds():void { var rowBGs:Sprite = Sprite(listContent.getChildByName(rowBGs)); if (!rowBGs) { rowBGs = new FlexSprite(); rowBGs.mouseEnabled = false; rowBGs.name = rowBGs; listContent.addChildAt(rowBGs, 0); } var color:Object; var depthColors:Boolean = false; var colors:Array = getStyle(alternatingItemColors); color = getStyle(backgroundColor); if (!colors || colors.length == 0) return; StyleManager.getColorNames(colors); var curRow:int = 0; var i:int = 0; var actualRow:int = verticalScrollPosition; var n:int = listItems.length; var alternateRoot:int = verticalScrollPosition; while (curRow n) { if (listItems[curRow][0]) { var d:int = getDepth(listItems[curRow][0].data); if(d == 1){ alternateRoot++; } drawRowBackground(rowBGs, i++, rowInfo[curRow].y, rowInfo[curRow].height, colors[alternateRoot % colors.length], actualRow); } else { drawRowBackground(rowBGs, i++, rowInfo[curRow].y, rowInfo[curRow].height, uint(color), curRow); } curRow++; actualRow++; } while (rowBGs.numChildren i) { rowBGs.removeChildAt(rowBGs.numChildren - 1); } } -- Jhonny Everson
[flexcoders] Re: Alternating colors for AdvancedDataGrid
--- In flexcoders@yahoogroups.com, Everson Alves [EMAIL PROTECTED] wrote: Hi, I need to use alternate colors for items within a ADG. alternatingItemColors is not what i'm looking for because I need that child objects have the same color as their parent. So the only alternating colors is depth 1. Thanks. -- Jhonny Everson any ideas?
[flexcoders] Alternating colors for AdvancedDataGrid
Hi, I need to use alternate colors for items within a ADG. alternatingItemColors is not what i'm looking for because I need that child objects have the same color as their parent. So the only alternating colors is depth 1. Thanks. -- Jhonny Everson
Re: [flexcoders] JAXB for actionscript
Hello, I haven´t seen any but i´ve written a air application that gets Java code generated with JAXB and creates the corresponding actionscript classes. The code is messy but it works. I can give it to you if you are interested. On 5/26/08, gianlucavatinno [EMAIL PROTECTED] wrote: hello to all, I'm searching for program like JAXB (for java) that compiles xsd into actionscript 3 class. is there anything like that?
[flexcoders] Re: Sysdeo Tomcat Plugin
Has anyone had success using the Tomcat Plugin from Sysdeo with Flex Builder? Yes. Just install Eclipse Java Development Tools, from eclipse update site that it will work.