[flexcoders] What version of AIR is req'd to run Flex 4 Gumbo?
I am going to be doing a significant project in AIR, and would like to use the Flex 4 features. Will AIR 1.5 support all of the gumbo stuff? My reading suggests yes, but I would like confirmation. And a related question, Does the AIR runtime use the Flash Player, or is there any relation between a Flash Player version and an AIR version? I'm afraid I have not been paying as much attention to AIR as I perhaps should. Tracy Spratt, Lariat Services, development services available
Re: [flexcoders] What version of AIR is req'd to run Flex 4 Gumbo?
Flex 4 will ship with and support AIR 1.5. AIR runtime includes the Flash Player, AIR 1.5 is including Player 10. If you check the Gumbo Language Reference (I think the public version, but if not, the version that will come out with the beta) you'll see that we've started including information on what version of the runtime various APIs support, etc. Matt On 5/17/09 1:14 PM, Tracy Spratt tr...@nts3rd.com wrote: I am going to be doing a significant project in AIR, and would like to use the Flex 4 features. Will AIR 1.5 support all of the gumbo stuff? My reading suggests yes, but I would like confirmation. And a related question, Does the AIR runtime use the Flash Player, or is there any relation between a Flash Player version and an AIR version? I'm afraid I have not been paying as much attention to AIR as I perhaps should. Tracy Spratt, Lariat Services, development services available
RE: [flexcoders] Duplicate Module Loads - applicationDomain / Shared Code Issues
In theory, you simply put all shared VO’s in the main app and don’t mess with applicationDomains. Also in theory, if it is the same module class there is no need to load it twice, you should instantiate it twice (via factory.create()) and pass it parameters it needs to make different backend calls. Should take less memory this way, and might avoid this shared code issue. Modules don’t work if you use “new ApplicationDomain()” as there must be shared interfaces between the loader and loadee, and using applicationDomain.currentDomain will lock the module into memory. 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 Brendan Meutzner Sent: Saturday, May 16, 2009 3:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Duplicate Module Loads - applicationDomain / Shared Code Issues Hi All, I'm having trouble wrapping my head around an issue I'm facing while loading the same module twice into my main application. I've got a module which takes a few arguments to load up property data. If I ask for a different set of data, the same Module class gets loaded, it just makes different back end calls to populate its data. My module is located in a different project from my main application, so optimizing to application isn't an option. However, I am generating a link-report from the main application, and then using load-externs on the module's compile. 1) I load up an instance of the module, and it retrieves data just fine. 2) I load up a second instance of the same module, but when the data is returned, I get errors relating to the fact it's trying to set my data response to a local VO Class which has already been instantiated from the first module call. I know I've got a shared code issue going on here, but can't figure this out. I've tried the following: 1) Placed all re-used VO files inside main application, generated link-report, and referenced that link-report via load-externs on the modules compilation then I set applicationDomain on module load to be Application.currentDomain. 2) Placed all VO files inside module where they are actually used, and then set applicationDomain to a new ApplicationDomain() instance to try and sandbox their use. Neither of these worked which is suffice to say, why this post is being written. Thanks in advance for help. Brendan
[flexcoders] Re: Storing an array in a Database?
--- In flexcoders@yahoogroups.com, Laurence MacNeill lmacne...@... wrote: At 06:26 PM 5/15/2009, you wrote: How that is different from a database table with 25 rows? Because it just is. LOL With 25 rows, you have 25 separate records. This is 25 columns within a single record. There are other columns too, not just these 25. It seems to me that unless this is a system that has been in long production (don't laugh, y'all, I've seen some tables structured exactly this way in enterprise scale databases), that you would be well advised to change your database structure so that it _is_ rows instead of columns. It may seem quicker and easier for now to have it all within a single record, but when you have to keep changing the table (and query) over and over to add another element to your array, you will come to regret it. Not to mention it's a huge violation of good normalization practice. Probably the best way to handle this is with two tables. One creates a bag that all the records are in, and the other will be the records that go into the bag, like so: bag = bagID bagDesc bagElements === elementID bagID elementValue ... All bagElements with the same bagID can be retrieved at once in a query, just like your one record has been in the past. But you've gained the advantage that you can add or remove elements from the bag at will, and you only use the amount of storage space that you need for the contents of the bag, rather than having a cardboard box that takes up the same amount of space no matter how much or little is in it. Now it becomes amazingly easy to populate your tables from the array. That's one reason normalization was invented. It's a great design pattern. HTH; Amy
[flexcoders] Re: Form with 3 Custom Components...
There are several techniques that you can use for this; it really depends on what the need is and the sophistication of the application. Personally, I would employ a presentationModel to solve this, but using an MVC framework and VO's can be challenging for some. In this case, using public properties in the components would work fine. Respectfully though, the assertion that using events creates a tightly-coupled strategy is not correct. Tight coupling is where components have a direct dependency on one another. Loose coupling avoids this by linking the components with properties and/or events. I do agree though, that you wouldn't necessarily want/need to pass data around amongst components, using custom events. This is where the beauty of a Model comes into play. Here's a good article to read, that might help for this solution: http://www.adobe.com/devnet/flex/articles/loose_coupling.html http://www.adobe.com/devnet/flex/articles/loose_coupling.html -TH --- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: --- In flexcoders@yahoogroups.com, Laurence MacNeill LMacNeill@ wrote: At 05:32 PM 5/14/2009, you wrote: You can just handle the click event from your button and in the handler function pull the necessary information out of your 3 custom components and then do what you want with it. Right -- but don't I have to have those components dispatch their own events in order to pull data from them? At least, as I understand it, that's the best practice. What you're telling me to do (if I'm understanding) would tightly couple my form with the components, because I'd be accessing stuff that's supposed to be internal to the components, right? I have a really hard time figuring out why people recommend passing information in custom events. It results in overly tight coupling, IMO, because both the component dispatching the event and the one receiving the event need to have that custom event compiled into them (so in addition to tight coupling it also bloats your file size). I think it's much better practice to simply make public properties on your components available, and then just go read those properties when the event fires. I know that there are a few cases where it makes more sense to use a custom event, but in most cases it's just extra work, extra file size, and extra tight coupling for little gain. HTH; Amy
Re: [flexcoders] Re: Storing an array in a Database?
At 02:08 PM 5/17/2009, you wrote: --- In mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com, Laurence MacNeill lmacne...@... wrote: At 06:26 PM 5/15/2009, you wrote: How that is different from a database table with 25 rows? Because it just is. LOL With 25 rows, you have 25 separate records. This is 25 columns within a single record. There are other columns too, not just these 25. It seems to me that unless this is a system that has been in long production (don't laugh, y'all, I've seen some tables structured exactly this way in enterprise scale databases), that you would be well advised to change your database structure so that it _is_ rows instead of columns. This system's been this way for many years, but I'm completely re-writing it, so moving that info into a separate table with rows instead of columns is totally do-able. (In fact, I came up with that idea after Mark's comment about the rows vs. columns.) Now it becomes amazingly easy to populate your tables from the array. That's one reason normalization was invented. It's a great design pattern. The only thing I don't know how to do is have a CFC loop thru the array to store each element in the DB. Can you help? HTH; And what does HTH mean? :-) Thanks, Laurence MacNeill Mableton, Georgia, USA
[flexcoders] Question on Mx:HTTP Service
I am using an app Server{Jboss] to host Flex files . I want to call mx:HTTPService id=reportProfile resultFormat=e4x useProxy=false result=showReports(event) url=http://machineName:8080/ContextPath/flex/showReports.do/ how do i replace this part url= http://machineName:8080/ContextPath/flex/showReports.do; with /ContextPath/flex/showreports.do . Otherwise its link depending on the environment i have to keep changing the machineName and port
[flexcoders] AIR app loading SWF, that loads other SWFs (per loadBytes and loaderContext)
In order to load executable swfs into my AIR application sandbox, I've been able to use the loader's loadBytes method, setting the loaderContext to one that allows byte code execution ( loaderContext.allowLoadBytesCodeExecution = true ) This is great, and the loaded swf can execute code, but that loaded swf in turn needs to load other secondary swfs (that can execute code as well). However, the allowLoadBytesCodeExecution property is only available to AIR, so when I try loadBytes() for the secondary swfs, I get the exception Loader.loadBytes() is not permitted to load content with executable code. , and loading the secondary swf the regular way (not using loadBytes) does not allow for code execution in the secondary swf. Any ideas? -ekz
Re: [flexcoders] Re: Storing an array in a Database?
At 04:38 PM 5/17/2009, you wrote: The only thing I don't know how to do is have a CFC loop thru the array to store each element in the DB. Can you help? Never mind -- I figured out how to loop thru an array in a CFC. Thank God for Google. GRIN Laurence MacNeill Mableton, Georgia, USA
[flexcoders] HyperThreading...
Does anyone know if the Flash Player supports HyperThreading? In other words, will my program run faster on a CPU that has HyperThreading? Or will it not make any difference? Thanks, Laurence MacNeill Mableton, Georgia, USA
RE: [flexcoders] Question on Mx:HTTP Service
You can use relative paths. But that does dictate where you put data service. I often pass urls into my Flex application through flashvars in the html wrapper. Among other things, it lets me switch my data services between development, QO and production servers very easily Once you have the url in Flex, you can simply assign the url to the url property: reportProfile.url = _sMyUrl; reportProfile.send(); Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of myworld100us Sent: Sunday, May 17, 2009 5:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Question on Mx:HTTP Service I am using an app Server{Jboss] to host Flex files . I want to call mx:HTTPService id=reportProfile resultFormat=e4x useProxy=false result=showReports(event) url=http://machineName: http://machineName:8080/ContextPath/flex/showReports.do 8080/ContextPath/flex/showReports.do/ how do i replace this part url= http://machineName: http://machineName:8080/ContextPath/flex/showReports.do 8080/ContextPath/flex/showReports.do with /ContextPath/flex/showreports.do . Otherwise its link depending on the environment i have to keep changing the machineName and port
[flexcoders] Re: Duplicate Module Loads - applicationDomain / Shared Code Issues
Alex, That definitely did the trick. However... I'm using DataService calls inside the modules, and now when event listeners get set for result/fault/conflict events on them, they carry over to the other modules. So if I open module 1, load it up and make a data call, then load module 2, the result event on module 1 2 get fired. I can't exactly remove the event listeners on these (which would be the simplest answer) because of the fact that data synchronization is happening through LiveCycle DS. I have yet to look into trying to identify the calling module which causes the result event to see if I can single them out and ignore other multiple instances (which I will do tomorrow), but thought I'd post to see if there was an easier solution. Thanks very much for your original answer on this... it really helped out :-) Brendan --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: In theory, you simply put all shared VOâs in the main app and donât mess with applicationDomains. Also in theory, if it is the same module class there is no need to load it twice, you should instantiate it twice (via factory.create()) and pass it parameters it needs to make different backend calls. Should take less memory this way, and might avoid this shared code issue. Modules donât work if you use ânew ApplicationDomain()â as there must be shared interfaces between the loader and loadee, and using applicationDomain.currentDomain will lock the module into memory. 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 Brendan Meutzner Sent: Saturday, May 16, 2009 3:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Duplicate Module Loads - applicationDomain / Shared Code Issues Hi All, I'm having trouble wrapping my head around an issue I'm facing while loading the same module twice into my main application. I've got a module which takes a few arguments to load up property data. If I ask for a different set of data, the same Module class gets loaded, it just makes different back end calls to populate its data. My module is located in a different project from my main application, so optimizing to application isn't an option. However, I am generating a link-report from the main application, and then using load-externs on the module's compile. 1) I load up an instance of the module, and it retrieves data just fine. 2) I load up a second instance of the same module, but when the data is returned, I get errors relating to the fact it's trying to set my data response to a local VO Class which has already been instantiated from the first module call. I know I've got a shared code issue going on here, but can't figure this out. I've tried the following: 1) Placed all re-used VO files inside main application, generated link-report, and referenced that link-report via load-externs on the modules compilation then I set applicationDomain on module load to be Application.currentDomain. 2) Placed all VO files inside module where they are actually used, and then set applicationDomain to a new ApplicationDomain() instance to try and sandbox their use. Neither of these worked which is suffice to say, why this post is being written. Thanks in advance for help. Brendan
[flexcoders] Re: encrypted local store
From: http://funkatron.com/spaziki/Encrypted-Local-Store/ Mac OSX ~/Library/Application Support/Adobe/AIR/ELS/ Windows XP C:\Documents and Settings\[username]\Application |Data\Adobe\AIR\ELS
[flexcoders] Re: encrypted local store
From: http://www.sitepen.com/blog/2009/02/17/queued/ Vista C:\Users\[myuser]\AppData\Roaming\Adobe\AIR\ELS\
[flexcoders] Re: encrypted local store
Am I missing any OSes? If your OS is not listed above, please check for your ELS directory. If your OS IS listed above, please verify the directory is correct. I am developing a swf protection scheme that i would be happy to share with the community, but I need to get this part right first.
[flexcoders] encrypted local store
anyone know a reliable method of determining the physical location of the encrypted local store files on a user's machine, any OS?
[flexcoders] Abnormality while creating Context Menu
Hi All, When i was working with context menus it is found that the context menus having label like Copy Delete are not been created.. Any Idea.. Thanks And Regards Abdul Jaleel C
RE: [flexcoders] Focus on itemRenderer sub-components in a non editable list
focusManager.showFocusIndicator = true works! I add it in the overriden setFocus function and now the focus is always shown. I understand for wraparound and you're right, it's better for accessibility to change focused control... Finally, calling preventDefault wisely is the key: other items are selected! Thanks again Alex for all your answers! Alex Harui wrote: There is a flag in FocusManager called showFocusIndicator. Our UI policy is that there is no focus indicator except around TextInput/TextArea unless you hit tab and then we show it on every control. Don’t ask me why. Several folks have been successful in finding ways to set showFocusIndicator and keep it on in order to see the indicator always. There might be more to it than just setting the flag. Search around for solutions. There is no wraparound when editing. Tabbing should let you exit out the bottom of the control. Probably better for accessibility. Tabbing should move you from control to control. See if it works on my blog example. The key is knowing when to not call preventDefault in your keyFocusChangeHandler. 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 JérémyR Sent: Saturday, May 16, 2009 6:55 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Focus on itemRenderer sub-components in a non editable list Hi Alex! Thanks a lot for your answer. You point me in the right direction; I persisted trying to accomplish it with editable set to false because I didn’t want anything to be editable… But this can be done even with editable set to true. I do exactly what you explain on you article http://blogs.adobe.com/aharui/item_renderers/ DataGrid ItemEditor with Two Input Fields , i.e: adding a listener on KEY_FOCUS_CHANGE and overriding setFocus() to manually handle focus logic. And it works fine! Except for some little things… Maybe you can help me on these points: 1) if I focus the List with the keyboard with TAB key, it works fine, the item is selected, the first button has focus and focus is displayed. But if I click on the List, the first button has focus (I can “see” it by pressing SPACE) but the focus is not displayed (no border around the button). The weird thing is if I continue to tab, the next button gains focus, still without display, then when the third one gains focus, the focus starts to be displayed! So the question is why? And is there any way to force the focus display? 2) I control the focus manually to switch focus from button to the next/previous one but the focus stays on the same list item. I wonder if I can switch to the next/previous item in the list (as it is naturally? done in your DataGrid example)? The only way I found to change selected item with keyboard is ENTER / SHIFT+ENTER but when a bound is reached it doesn’t roll (when last item is selected, next ENTER doesn’t select the first item). So there 3 questions in one: a. How to change selected item with TAB? b. Is ENTER / SHIFT+ENTER a standard keyboard (in Accessibility domain) access to change selected item in a list? c. Is there a way to roll over item when a bound is reached? Thanks for your help! Alex Harui wrote: A List must be editable in order for renderers to get focus. Is there a reason you don't want to set editable=true? There's probably a way around it, but I think it will be lots of work. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of JérémyR Sent: Thursday, May 14, 2009 12:04 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Focus on itemRenderer sub-components in a non editable list Hi, This problem seems very simple but despite of my searches, I didn't find any solution... I have a non editable List with custom Canvas item renderer. This Canvas contains 4 buttons. And I want the user to be able to focus each button with TAB key. A lot of posts talks about similar problems but it seems there is no solution (for non editable list - Alex Harui wrote an excellent article on his blog but for a DataGrid component but with editable set to true)... Is there really no solution? (if it is the case, I think it deserves a bug in Adobe Bug system cause it completely breaks application accessibility...) Thanks for your reply. -- View this message in context: http://www.nabble.com/Focus-on-itemRenderer-sub-components-in-a-non-editable-list-tp23546945p23546945.html Sent from the FlexCoders mailing list archive at Nabble.com. -- View this message in context:
RE: [flexcoders] Re: Duplicate Module Loads - applicationDomain / Shared Code Issues
By “load module 2” did you actually load a second module or is it a second instance of an already loaded module and thus the WebService instance is the same. Hopefully it is the latter as I wouldn’t have an explanation for the former. For the latter, I believe (and I am not the expert on web-services) that every send() method returns an AsyncToken and you can save that away and decide whether to respond to the result event based on the AsyncToken referenced in the result event. 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 Brendan Meutzner Sent: Sunday, May 17, 2009 8:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Duplicate Module Loads - applicationDomain / Shared Code Issues Alex, That definitely did the trick. However... I'm using DataService calls inside the modules, and now when event listeners get set for result/fault/conflict events on them, they carry over to the other modules. So if I open module 1, load it up and make a data call, then load module 2, the result event on module 1 2 get fired. I can't exactly remove the event listeners on these (which would be the simplest answer) because of the fact that data synchronization is happening through LiveCycle DS. I have yet to look into trying to identify the calling module which causes the result event to see if I can single them out and ignore other multiple instances (which I will do tomorrow), but thought I'd post to see if there was an easier solution. Thanks very much for your original answer on this... it really helped out :-) Brendan --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aha...@... wrote: In theory, you simply put all shared VO’s in the main app and don’t mess with applicationDomains. Also in theory, if it is the same module class there is no need to load it twice, you should instantiate it twice (via factory.create()) and pass it parameters it needs to make different backend calls. Should take less memory this way, and might avoid this shared code issue. Modules don’t work if you use “new ApplicationDomain()†as there must be shared interfaces between the loader and loadee, and using applicationDomain.currentDomain will lock the module into memory. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Brendan Meutzner Sent: Saturday, May 16, 2009 3:48 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Duplicate Module Loads - applicationDomain / Shared Code Issues Hi All, I'm having trouble wrapping my head around an issue I'm facing while loading the same module twice into my main application. I've got a module which takes a few arguments to load up property data. If I ask for a different set of data, the same Module class gets loaded, it just makes different back end calls to populate its data. My module is located in a different project from my main application, so optimizing to application isn't an option. However, I am generating a link-report from the main application, and then using load-externs on the module's compile. 1) I load up an instance of the module, and it retrieves data just fine. 2) I load up a second instance of the same module, but when the data is returned, I get errors relating to the fact it's trying to set my data response to a local VO Class which has already been instantiated from the first module call. I know I've got a shared code issue going on here, but can't figure this out. I've tried the following: 1) Placed all re-used VO files inside main application, generated link-report, and referenced that link-report via load-externs on the modules compilation then I set applicationDomain on module load to be Application.currentDomain. 2) Placed all VO files inside module where they are actually used, and then set applicationDomain to a new ApplicationDomain() instance to try and sandbox their use. Neither of these worked which is suffice to say, why this post is being written. Thanks in advance for help. Brendan
[flexcoders] Re: Duplicate Module Loads - applicationDomain / Shared Code Issues
Alex, I set it up using your advice for factory.create(), so it's the latter... a new instance of the same module. Yeah, I figured there must be a way to distinguish the eventlistener's dispatcher... I'll post my results once I figure it out. Thanks again for the help. Brendan --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: By âload module 2â did you actually load a second module or is it a second instance of an already loaded module and thus the WebService instance is the same. Hopefully it is the latter as I wouldnât have an explanation for the former. For the latter, I believe (and I am not the expert on web-services) that every send() method returns an AsyncToken and you can save that away and decide whether to respond to the result event based on the AsyncToken referenced in the result event. 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 Brendan Meutzner Sent: Sunday, May 17, 2009 8:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Duplicate Module Loads - applicationDomain / Shared Code Issues Alex, That definitely did the trick. However... I'm using DataService calls inside the modules, and now when event listeners get set for result/fault/conflict events on them, they carry over to the other modules. So if I open module 1, load it up and make a data call, then load module 2, the result event on module 1 2 get fired. I can't exactly remove the event listeners on these (which would be the simplest answer) because of the fact that data synchronization is happening through LiveCycle DS. I have yet to look into trying to identify the calling module which causes the result event to see if I can single them out and ignore other multiple instances (which I will do tomorrow), but thought I'd post to see if there was an easier solution. Thanks very much for your original answer on this... it really helped out :-) Brendan --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: In theory, you simply put all shared VOââ¬â¢s in the main app and donââ¬â¢t mess with applicationDomains. Also in theory, if it is the same module class there is no need to load it twice, you should instantiate it twice (via factory.create()) and pass it parameters it needs to make different backend calls. Should take less memory this way, and might avoid this shared code issue. Modules donââ¬â¢t work if you use ââ¬Ånew ApplicationDomain()ââ¬Â as there must be shared interfaces between the loader and loadee, and using applicationDomain.currentDomain will lock the module into memory. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Brendan Meutzner Sent: Saturday, May 16, 2009 3:48 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Duplicate Module Loads - applicationDomain / Shared Code Issues Hi All, I'm having trouble wrapping my head around an issue I'm facing while loading the same module twice into my main application. I've got a module which takes a few arguments to load up property data. If I ask for a different set of data, the same Module class gets loaded, it just makes different back end calls to populate its data. My module is located in a different project from my main application, so optimizing to application isn't an option. However, I am generating a link-report from the main application, and then using load-externs on the module's compile. 1) I load up an instance of the module, and it retrieves data just fine. 2) I load up a second instance of the same module, but when the data is returned, I get errors relating to the fact it's trying to set my data response to a local VO Class which has already been instantiated from the first module call. I know I've got a shared code issue going on here, but can't figure this out. I've tried the following: 1) Placed all re-used VO files inside main application, generated link-report, and referenced that link-report via load-externs on the modules compilation then I set applicationDomain on module load to be Application.currentDomain. 2) Placed all VO files inside module where they are actually used, and then set applicationDomain to a new ApplicationDomain() instance to try and sandbox their use. Neither of these worked which is suffice to say, why this post is being written. Thanks in advance for help. Brendan
[flexcoders] Re: Question on Mx:HTTP Service
--- In flexcoders@yahoogroups.com, myworld100us myworld10...@... wrote: I am using an app Server{Jboss] to host Flex files . I want to call mx:HTTPService id=reportProfile resultFormat=e4x useProxy=false result=showReports(event) url=http://machineName:8080/ContextPath/flex/showReports.do/ how do i replace this part url= http://machineName:8080/ContextPath/flex/showReports.do; with /ContextPath/flex/showreports.do . Otherwise its link depending on the environment i have to keep changing the machineName and port