AW: FlexMojos/Maven: one build to get different apps
Hi Mario, Well this is generally a problem in Maven. Usually one Maven Module produces one output artifact. The problem with your profiles is that in these you probably set some properties, plugin-settings etc. Think of these as variables. If you activate two profiles the value of these properties is set to one value so the last assignment wins. That's why you only get one output even if you activate both profiles. What you could try is to add a second execution of the compiler an in this second execution you configure things differently. So if the default compile run would produce "app-name-1.0.0.swf" the second execution could set the "finalName" property to "app-name-ent-1.0.0.swf". It sould be possible but I haven't tried this yet. Even if I am the maintainer of Flexmojos I still have to dig into the code and the testsuite to confirm this. I'll write a message as soon as I found out if this is possible and if it is how you have to configure things. Chris Von: Mario Souza Gesendet: Dienstag, 24. März 2015 22:31 An: users@flex.apache.org Betreff: FlexMojos/Maven: one build to get different apps Hi guys! So, I have an atypical scenario: - We have a same codebase to generate 2 different versions of the same product: a "basic" version and a "professional" version. What determinate how the final product will behave are some compiler arguments passed during the build phase to FlexMojos. So, I've configured my maven project to build the product using the Maven Profiles, and I'm able to run two commands: - mvn clean install . -Pbasic and this generates a "basic version" like this: app-name-1.0.0.swf In other hand, I can run: - mvn clean install . -Pprofessional and this generates a "professional version" like this: app-name-1.0.0.swf Note that, at end, I get different products of the same number version and finalName (obviously, in dev-mode you are working only with one version and if you run these two commands in sequence, the build result of the last one will override the first). However, to dispatch a formal release, I'm thinking *how to get the two different built products* *in one step/run command*. According the Maven docs, I could activate many profiles in "one shot" like this: - mvn clean install ... -Pbasic,professional But when I ran this command, and seeing the logs, just the last profile is executed, and at end I get only one build created. I would like be able to compile the project in one command and, at end, get final builds like this: - app-name-1.0.0-basic.swf - app-name-1.0.0-professional.swf I've tried a mix of profiles... tried include many , alter the passing an variable for "basic" or "professional" be concatenated, tried use the but... not success. So, anyone have an idea about how I could do that? In few words, Can I run two "build phase" passing different arguments for each build in one maven execution/shot? Thank you. @mariojunior
AW: FlexMojos/Maven: one build to get different apps
Ok ... so it was possible exactly the way I hoped it would be :-) I just extended the flexmojos testsuite with an example: https://github.com/chrisdutz/flexmojos/tree/flexmojos-7.x/flexmojos-testing/flexmojos-test-harness/projects/concept/multiple-versions Hope this was what you wanted. Keep in mind ... the default compilation doesn't have to be explicitly defined, just your second one. Here you have to put stuff that is different from the first. So you configure things for the default compilation in the default place and put the differences in the executions configuration block. Chris Von: Christofer Dutz Gesendet: Mittwoch, 25. März 2015 09:18 An: users@flex.apache.org Betreff: AW: FlexMojos/Maven: one build to get different apps Hi Mario, Well this is generally a problem in Maven. Usually one Maven Module produces one output artifact. The problem with your profiles is that in these you probably set some properties, plugin-settings etc. Think of these as variables. If you activate two profiles the value of these properties is set to one value so the last assignment wins. That's why you only get one output even if you activate both profiles. What you could try is to add a second execution of the compiler an in this second execution you configure things differently. So if the default compile run would produce "app-name-1.0.0.swf" the second execution could set the "finalName" property to "app-name-ent-1.0.0.swf". It sould be possible but I haven't tried this yet. Even if I am the maintainer of Flexmojos I still have to dig into the code and the testsuite to confirm this. I'll write a message as soon as I found out if this is possible and if it is how you have to configure things. Chris Von: Mario Souza Gesendet: Dienstag, 24. März 2015 22:31 An: users@flex.apache.org Betreff: FlexMojos/Maven: one build to get different apps Hi guys! So, I have an atypical scenario: - We have a same codebase to generate 2 different versions of the same product: a "basic" version and a "professional" version. What determinate how the final product will behave are some compiler arguments passed during the build phase to FlexMojos. So, I've configured my maven project to build the product using the Maven Profiles, and I'm able to run two commands: - mvn clean install . -Pbasic and this generates a "basic version" like this: app-name-1.0.0.swf In other hand, I can run: - mvn clean install . -Pprofessional and this generates a "professional version" like this: app-name-1.0.0.swf Note that, at end, I get different products of the same number version and finalName (obviously, in dev-mode you are working only with one version and if you run these two commands in sequence, the build result of the last one will override the first). However, to dispatch a formal release, I'm thinking *how to get the two different built products* *in one step/run command*. According the Maven docs, I could activate many profiles in "one shot" like this: - mvn clean install ... -Pbasic,professional But when I ran this command, and seeing the logs, just the last profile is executed, and at end I get only one build created. I would like be able to compile the project in one command and, at end, get final builds like this: - app-name-1.0.0-basic.swf - app-name-1.0.0-professional.swf I've tried a mix of profiles... tried include many , alter the passing an variable for "basic" or "professional" be concatenated, tried use the but... not success. So, anyone have an idea about how I could do that? In few words, Can I run two "build phase" passing different arguments for each build in one maven execution/shot? Thank you. @mariojunior
RE: security certificates
Well the problem with self-signed is other people cannot easily validate the signature. You are your own certificate authority(CA) in a simplistic sense. Were as purchasing one from a company that that hosts public CA's can more easily be verified by their root certificates. Here for the Flex signatures, they sign them locally and host out the key to verify it on the apache servers. -Mark -Original Message- From: Subs [mailto:subscripti...@leeburrows.com] Sent: Tuesday, March 24, 2015 12:30 PM To: Apache Flex User Mailing List; Apache Flex Dev Mailing List Subject: security certificates Hi All, Wondering what kind of security certificates people are using for desktop and android? Are people creating self-signed certificates (eg: in FB) or purchasing 'official' ones? Google app store allows self-signed apps to be published; can i assume from that, that self-signed is 'secure' enough? Thanks, -- Lee Burrows ActionScripter
RE: Combobox with icons
Ahh, guess it's going to be just gathering a list of urls from a source (such as a server) and creating a class to pre-download using something like URLLoader . Then when you reference them later they are already in the client cache. You could also alternatively store the binary data an object as well. -Mark -Original Message- From: mark goldin [mailto:markzolo...@gmail.com] Sent: Monday, March 23, 2015 2:04 PM To: users Subject: Re: Combobox with icons My code is a bit simplified. bitmapData is a result of loading an image in advance. On Mon, Mar 23, 2015 at 1:00 PM, Kessler CTR Mark J < mark.kessler@usmc.mil> wrote: > I do know a s:BitmapImage can load files on the fly with its source > property [1]. It supports "The name of a external image file" and " The > image location can be specified via a URL, URLRequest, or file reference". > It is limited to PNG, GIF, or JPG. > > > [1] > http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/primitives/BitmapImage.html#source > > -Mark >
Re: security certificates
On 25/03/15 10:08, Kessler CTR Mark J wrote: Well the problem with self-signed is other people cannot easily validate the signature. This is a non-issue if you are distributing via a 3rd party store like Google Play of course. We use self-signed for our Android apps. Tom
Re: security certificates
Hi, what about the iOS platform, commercial signatures are about $500 for 2 years Sent from my iPad > On 25 Mar 2015, at 05:36, Tom Chiverton wrote: > > >> On 25/03/15 10:08, Kessler CTR Mark J wrote: >> Well the problem with self-signed is other people cannot easily validate the >> signature. > > This is a non-issue if you are distributing via a 3rd party store like Google > Play of course. > We use self-signed for our Android apps. > > Tom Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.
Re: security certificates
On 25/03/15 13:10, Scott Matheson wrote: Hi, what about the iOS platform, commercial signatures are about $500 for 2 years It's nowhere near that to develop for iOS (mobile, I've not looked into desktop) as far as I remember, but I've not done an AIR release to iOS for about a year. http://www.adobe.com/devnet/air/articles/packaging-air-apps-ios.html says you only need a Apple cert and a provisioning profile. Joining the Apple developer program to be able to create both is under $100 a year. Tom
alivepdf questions
Hi, I use alivePDF to generate PDF client side, all works well, I end up saving the PDF to disk, the user can then open the PDF and print However the client would now like the PDF to be open after generation so the user can print from the PDF or save, saving becomes the users options Does anyone know if alivePDF can support this, ie opens a PDF window after creation, I find the document very difficult to follow, example would be nice :) Sent from my iPad Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.
Re: alivepdf questions
Use the html container to open the created file inside the application. 2015-03-25 16:00 GMT-04:00 Scott Matheson : > Hi, I use alivePDF to generate PDF client side, all works well, I end up > saving the PDF to disk, the user can then open the PDF and print > > However the client would now like the PDF to be open after generation so > the user can print from the PDF or save, saving becomes the users options > > Does anyone know if alivePDF can support this, ie opens a PDF window after > creation, I find the document very difficult to follow, example would be > nice :) > > > > > > Sent from my iPad > > > > Disclaimer: This electronic mail and any attachments are confidential and > may be privileged. If you are not the intended recipient, please notify the > sender immediately by replying to this email, and destroy all copies of > this email and any attachments. Thank you. >
Re: alivepdf questions
Can you point me at how to do this ? Sent from my iPad > On 25 Mar 2015, at 15:11, Carlos Velasco > wrote: > > Use the html container to open the created file inside the application. > > 2015-03-25 16:00 GMT-04:00 Scott Matheson : > >> Hi, I use alivePDF to generate PDF client side, all works well, I end up >> saving the PDF to disk, the user can then open the PDF and print >> >> However the client would now like the PDF to be open after generation so >> the user can print from the PDF or save, saving becomes the users options >> >> Does anyone know if alivePDF can support this, ie opens a PDF window after >> creation, I find the document very difficult to follow, example would be >> nice :) >> >> >> >> >> >> Sent from my iPad >> >> >> >> Disclaimer: This electronic mail and any attachments are confidential and >> may be privileged. If you are not the intended recipient, please notify the >> sender immediately by replying to this email, and destroy all copies of >> this email and any attachments. Thank you. >> Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.
Re: FlexMojos/Maven: one build to get different apps
WOW I tried put 2 executors, but they aren't targeting the correct life-cycle phase (I tried do it on the wrapper phase and not in the compiler.. so dumb! :D)! That's great man, thank you very much for your support! I know that, for "jar" package this scenario doesn't make sense... maybe the correct way would be create different artifacts, but different artifiacts could result a complex release because it would require different codebase... anyway, it's very nice we have this documented for anothers project where we need build different results according the compiler arguments passed to flex compiler. Thank you! o/ *Mario Souza*Front-End Developer Level 3, 54-56 Cambridge Terrace PO Box 19204, Wellington 6011 New Zealand *M.* +64 021 082 71135 | *W.* www.vizexplorer.com On 25 March 2015 at 21:52, Christofer Dutz wrote: > Ok ... so it was possible exactly the way I hoped it would be :-) > > I just extended the flexmojos testsuite with an example: > > https://github.com/chrisdutz/flexmojos/tree/flexmojos-7.x/flexmojos-testing/flexmojos-test-harness/projects/concept/multiple-versions > > Hope this was what you wanted. Keep in mind ... the default compilation > doesn't have to be explicitly defined, just your second one. Here you have > to put stuff that is different from the first. So you configure things for > the default compilation in the default place and put the differences in the > executions configuration block. > > Chris > > > Von: Christofer Dutz > Gesendet: Mittwoch, 25. März 2015 09:18 > An: users@flex.apache.org > Betreff: AW: FlexMojos/Maven: one build to get different apps > > Hi Mario, > > Well this is generally a problem in Maven. Usually one Maven Module > produces one output artifact. > The problem with your profiles is that in these you probably set some > properties, plugin-settings etc. > Think of these as variables. If you activate two profiles the value of > these properties is set to one value > so the last assignment wins. That's why you only get one output even if > you activate both profiles. > > What you could try is to add a second execution of the compiler an in this > second execution you configure things differently. So if the default > compile run would produce "app-name-1.0.0.swf" the second execution could > set the "finalName" property to "app-name-ent-1.0.0.swf". It sould be > possible but I haven't tried this yet. Even if I am the maintainer of > Flexmojos I still have to dig into the code and the testsuite to confirm > this. > > I'll write a message as soon as I found out if this is possible and if it > is how you have to configure things. > > Chris > > > > Von: Mario Souza > Gesendet: Dienstag, 24. März 2015 22:31 > An: users@flex.apache.org > Betreff: FlexMojos/Maven: one build to get different apps > > Hi guys! > > So, I have an atypical scenario: > > - We have a same codebase to generate 2 different versions of the same > product: a "basic" version and a "professional" version. What determinate > how the final product will behave are some compiler arguments passed during > the build phase to FlexMojos. > > So, I've configured my maven project to build the product using the Maven > Profiles, and I'm able to run two commands: > - mvn clean install . -Pbasic > and this generates a "basic version" like this: app-name-1.0.0.swf > > In other hand, I can run: > - mvn clean install . -Pprofessional > and this generates a "professional version" like this: app-name-1.0.0.swf > > Note that, at end, I get different products of the same number version and > finalName (obviously, in dev-mode you are working only with one version and > if you run these two commands in sequence, the build result of the last one > will override the first). > > However, to dispatch a formal release, I'm thinking *how to get the two > different built products* *in one step/run command*. According the Maven > docs, I could activate many profiles in "one shot" like this: > - mvn clean install ... -Pbasic,professional > > But when I ran this command, and seeing the logs, just the last profile is > executed, and at end I get only one build created. > > I would like be able to compile the project in one command and, at end, get > final builds like this: > - app-name-1.0.0-basic.swf > - app-name-1.0.0-professional.swf > > I've tried a mix of profiles... tried include many , alter the > passing an variable for "basic" or "professional" be > concatenated, tried use the but... not success. > > So, anyone have an idea about how I could do that? > In few words, Can I run two "build phase" passing different arguments for > each build in one maven execution/shot? > > > Thank you. > > @mariojunior >
Re: alivepdf questions
http://labs.adobe.com/"/> Use your local pdf file URL as the location for the HTML control. 2015-03-25 16:23 GMT-04:00 Scott Matheson : > Can you point me at how to do this ? > > Sent from my iPad > > > On 25 Mar 2015, at 15:11, Carlos Velasco < > carlos.velasco.bla...@gmail.com> wrote: > > > > Use the html container to open the created file inside the application. > > > > 2015-03-25 16:00 GMT-04:00 Scott Matheson : > > > >> Hi, I use alivePDF to generate PDF client side, all works well, I end up > >> saving the PDF to disk, the user can then open the PDF and print > >> > >> However the client would now like the PDF to be open after generation so > >> the user can print from the PDF or save, saving becomes the users > options > >> > >> Does anyone know if alivePDF can support this, ie opens a PDF window > after > >> creation, I find the document very difficult to follow, example would be > >> nice :) > >> > >> > >> > >> > >> > >> Sent from my iPad > >> > >> > >> > >> Disclaimer: This electronic mail and any attachments are confidential > and > >> may be privileged. If you are not the intended recipient, please notify > the > >> sender immediately by replying to this email, and destroy all copies of > >> this email and any attachments. Thank you. > >> > > > > Disclaimer: This electronic mail and any attachments are confidential and > may be privileged. If you are not the intended recipient, please notify the > sender immediately by replying to this email, and destroy all copies of > this email and any attachments. Thank you. >
Re: alivepdf questions
In a web context, you can launch a new navigator window using the local file url (see URLLoader) to display the pdf content. 2015-03-25 17:14 GMT-04:00 Carlos Velasco : > > http://labs.adobe.com/"/> > > > Use your local pdf file URL as the location for the HTML control. > > > 2015-03-25 16:23 GMT-04:00 Scott Matheson : > > Can you point me at how to do this ? >> >> Sent from my iPad >> >> > On 25 Mar 2015, at 15:11, Carlos Velasco < >> carlos.velasco.bla...@gmail.com> wrote: >> > >> > Use the html container to open the created file inside the application. >> > >> > 2015-03-25 16:00 GMT-04:00 Scott Matheson : >> > >> >> Hi, I use alivePDF to generate PDF client side, all works well, I end >> up >> >> saving the PDF to disk, the user can then open the PDF and print >> >> >> >> However the client would now like the PDF to be open after generation >> so >> >> the user can print from the PDF or save, saving becomes the users >> options >> >> >> >> Does anyone know if alivePDF can support this, ie opens a PDF window >> after >> >> creation, I find the document very difficult to follow, example would >> be >> >> nice :) >> >> >> >> >> >> >> >> >> >> >> >> Sent from my iPad >> >> >> >> >> >> >> >> Disclaimer: This electronic mail and any attachments are confidential >> and >> >> may be privileged. If you are not the intended recipient, please >> notify the >> >> sender immediately by replying to this email, and destroy all copies of >> >> this email and any attachments. Thank you. >> >> >> >> >> >> Disclaimer: This electronic mail and any attachments are confidential and >> may be privileged. If you are not the intended recipient, please notify the >> sender immediately by replying to this email, and destroy all copies of >> this email and any attachments. Thank you. >> > >
Could someone tell me how to upgrade to flexmojos 7.1 please
I am using flexmojos6.0.1, 1) is there a repository for Flexmojos7.1? do I have to build from source? where is the source? 2) is there a repository for Apache flex or I have to build byself please? thanks. -Gary
AW: Could someone tell me how to upgrade to flexmojos 7.1 please
Hi, think I should be quite ideal to help you with this ;-) Actually from the syntax and configuration options not much has changed. The only thing is that the 6.x branch hasn't received quite as much love regarding fixing of minor issues ... but hey ... my heart is beating for Apache Flex and no longer Adobe Flex ;-) The major change is that FM 7.x uses the groupId org.apache.flex wherever 6.x used com.adobe.flex, but the structure has changed slightly. In general switching to FM7.x and updating the groupId should do the trick. On other thing that might cause problems are third party libs compiled against Adobe flex, these still reference Adobe Flex SDKs with their com.adobe.flex groupIds, you will have to detect these with "mvn dependency:tree" and exclude them as having both will definitely cause problems. The Flexmojos testsuite contains a lot of configuration examples: https://github.com/chrisdutz/flexmojos/tree/flexmojos-7.x/flexmojos-testing/flexmojos-test-harness/projects I wrote down a lot of stuff in the Flex Wiki: https://cwiki.apache.org/confluence/display/FLEX/Quick+Start+Guide%3A+Building+Apache+Flex+applications+using+Maven So if you need any more help ... come back and post your problem. I'll try to help you as soon as I can or someone else here on the list will assist. Good luck, Chris -Ursprüngliche Nachricht- Von: Gary Yang [mailto:flashflex...@gmail.com] Gesendet: Mittwoch, 25. März 2015 22:33 An: users@flex.apache.org Betreff: Could someone tell me how to upgrade to flexmojos 7.1 please I am using flexmojos6.0.1, 1) is there a repository for Flexmojos7.1? do I have to build from source? where is the source? 2) is there a repository for Apache flex or I have to build byself please? thanks. -Gary
O,[PRTAMT KEFF EWING
Mark - Do you know Jeff Ewing? He is my son. If so, please call me at 520 977-2037. EXTREMELY IMPORTANT Suzette McPhail -Original Message- From: mark goldin [mailto:markzolo...@gmail.com] Sent: Tuesday, March 24, 2015 7:46 AM To: users Subject: Re: Cannot get Flex 3 compatibility working Seems like the other setting is ignoring -compatibility-version=3.0.0 -theme="C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\4.13.0\frameworks\themes\Halo\halo.swc" altogether. Any idea why? Thanks On Mon, Mar 23, 2015 at 4:06 PM, mark goldin wrote: > I have computer working fine with Flex 3 compatibility. My settings are: > Build Path: > MX only > compiler: > -compatibility-version=3.0.0 -theme="C:\Program Files\Adobe\Adobe Flash > Builder 4.7 (64 Bit)\sdks\4.13.0\frameworks\themes\Halo\halo.swc" > Am I missing a setting? Because I am trying to setup another box and when > I run my app it has Flex 4 theme. Please help. > > Thanks >
Re: O,[PRTAMT KEFF EWING
Not sure I am familiar with this name. On Wed, Mar 25, 2015 at 5:47 PM, jje wrote: > Mark - > > Do you know Jeff Ewing? He is my son. > > If so, please call me at 520 977-2037. > > EXTREMELY IMPORTANT > > Suzette McPhail > > -Original Message- > From: mark goldin [mailto:markzolo...@gmail.com] > Sent: Tuesday, March 24, 2015 7:46 AM > To: users > Subject: Re: Cannot get Flex 3 compatibility working > > Seems like the other setting is ignoring -compatibility-version=3.0.0 > -theme="C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 > Bit)\sdks\4.13.0\frameworks\themes\Halo\halo.swc" altogether. Any idea why? > > Thanks > > On Mon, Mar 23, 2015 at 4:06 PM, mark goldin > wrote: > > > I have computer working fine with Flex 3 compatibility. My settings are: > > Build Path: > > MX only > > compiler: > > -compatibility-version=3.0.0 -theme="C:\Program Files\Adobe\Adobe Flash > > Builder 4.7 (64 Bit)\sdks\4.13.0\frameworks\themes\Halo\halo.swc" > > Am I missing a setting? Because I am trying to setup another box and when > > I run my app it has Flex 4 theme. Please help. > > > > Thanks > > > >
Re: Could someone tell me how to upgrade to flexmojos 7.1 please
I've just migrated recently our project from flexmojos 3.5 directly to 7.0.1 and it's working perfectly. Also, we updated the Flex SDK version from 4.5 to 4.14, following the steps about the mavenizer the sdk and uploading the dependencies to our private nexus. And, recently, Chris help me about to build the same artifact/version with different compiler arguments.. it fits likea glove! :) My only "issue" (if that can be considered one) is about the skipTests ... even running -DskipTests=true, the flexmojos continues compiling/creating the TestRunner.swf. Doesn't run the TestRunner.swf, but it's still creating. But, it's a minor issue. @mariojunior On 26 March 2015 at 11:01, Christofer Dutz wrote: > Hi, > > think I should be quite ideal to help you with this ;-) > > Actually from the syntax and configuration options not much has changed. > The only thing is that the 6.x branch hasn't received quite as much love > regarding fixing of minor issues ... but hey ... my heart is beating for > Apache Flex and no longer Adobe Flex ;-) > > The major change is that FM 7.x uses the groupId org.apache.flex wherever > 6.x used com.adobe.flex, but the structure has changed slightly. In general > switching to FM7.x and updating the groupId should do the trick. On other > thing that might cause problems are third party libs compiled against Adobe > flex, these still reference Adobe Flex SDKs with their com.adobe.flex > groupIds, you will have to detect these with "mvn dependency:tree" and > exclude them as having both will definitely cause problems. > > The Flexmojos testsuite contains a lot of configuration examples: > > https://github.com/chrisdutz/flexmojos/tree/flexmojos-7.x/flexmojos-testing/flexmojos-test-harness/projects > > I wrote down a lot of stuff in the Flex Wiki: > > https://cwiki.apache.org/confluence/display/FLEX/Quick+Start+Guide%3A+Building+Apache+Flex+applications+using+Maven > > So if you need any more help ... come back and post your problem. I'll try > to help you as soon as I can or someone else here on the list will assist. > > Good luck, >Chris > > > -Ursprüngliche Nachricht- > Von: Gary Yang [mailto:flashflex...@gmail.com] > Gesendet: Mittwoch, 25. März 2015 22:33 > An: users@flex.apache.org > Betreff: Could someone tell me how to upgrade to flexmojos 7.1 please > > I am using flexmojos6.0.1, > > 1) is there a repository for Flexmojos7.1? do I have to build from source? > where is the source? > 2) is there a repository for Apache flex or I have to build byself please? > > thanks. > > -Gary >
Re: HTTP Basic Authentication for URLRequest
Yeah, a network packet log would be a huge help. Then you can rule out whether or not the Authorization header is present in your request or not. I use fiddler[1] all the time. Also it makes it easy to detect if something else went wrong at the server side like your authentication request failed with a 403 Forbidden response. [1] http://www.telerik.com/fiddler Chris Sent from Windows Mail From: Tom Chiverton Sent: Tuesday, March 24, 2015 2:24 AM To: users@flex.apache.org Do you have a network packet log ? Tom On 24/03/15 04:25, Deepak MS wrote: > Any help on this please? I still haven't found any solution for this. I > keep getting username\password prompt on the simulator. ;( > > On Mon, Mar 16, 2015 at 7:30 PM, Deepak MS wrote: > >> Hello, >> I'm trying to download a file from the server which requires basic >> authentication(need to enter user name and password to access). >> >> I came across these links: >> >> http://stackoverflow.com/questions/509219/flex-3-how-to-support-http-authentication-urlrequest >> >> http://johncblandii.com/2011/07/flex-quick-tip-urlrequest-basic-auth.html >> >> http://blog.derraab.com/2010/02/25/urlrequest-with-http-authentication/ >> >> Tried all of it. I either get IO error or I get windows authentication >> popup window when I run the mobile app on my desktop. >> >> None of it seem to work. I'm using Flex4.14\AIR16. >> >> Screenshot: >> http://pbrd.co/18wmsZK >> >> >> Code that I have been trying: >> >> >> http://ns.adobe.com/mxml/2009"; >> xmlns:s="library://ns.adobe.com/flex/spark" title="Contact" > >> >> >> >> >> >> >> >> >> >> >> >> >> >> Can you kindly let me know if there is something going wrong here? Or is >> there any other way to make it work? >> >> > > __ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > __
Re: HTTP Basic Authentication for URLRequest
Sorry, was away for sometime. I ran it through network monitor in FB. Screenshot: http://pasteboard.co/25kUwXgR.png Looks like header is not passed at all. Code: var req:URLRequest = new URLRequest(pathRemote); req.method = URLRequestMethod.POST; req.data = new URLVariables("name=John+Doe"); var encoder:Base64Encoder = new Base64Encoder(); encoder.insertNewLines = true; encoder.encode("myusername:mypassword"); var credsHeader:URLRequestHeader = new URLRequestHeader("Authorization", "Basic " + encoder.toString()); req.requestHeaders.push(credsHeader); remoteURLStreamer.load(req); I looked at the doc: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/URLRequestHeader.html It says: "In Flash Player and in Adobe AIR content outside of the application security sandbox, the following request headers cannot be used Accept-Charset, Accept-Encoding, Accept-Ranges, Age, Allow, Allowed, Authorization, Charge-To, Connect, Connection, Content-Length, Content-Location, Content-Range, Cookie, Date, Delete, ETag, Expect, Get, Head, Host, If-Modified-Since, Keep-Alive, Last-Modified, Location, Max-Forwards, Options, Origin, Post, Proxy-Authenticate, Proxy-Authorization, Proxy-Connection, Public, Put, Range, Referer, Request-Range, Retry-After, Server, TE, Trace, Trailer, Transfer-Encoding, Upgrade, URI, User-Agent, Vary, Via, Warning, WWW-Authenticate, x-flash-version." Why does header request cannot have 'Authorization' object? So how else can we pass the header request? On Thu, Mar 26, 2015 at 10:04 AM, Chris Martin wrote: > Yeah, a network packet log would be a huge help. Then you can rule out > whether or not the Authorization header is present in your request or not. > I use fiddler[1] all the time. Also it makes it easy to detect if > something else went wrong at the server side like your authentication > request failed with a 403 Forbidden response. > > > > > > > [1] http://www.telerik.com/fiddler > > > Chris > > > Sent from Windows Mail > > > > > > From: Tom Chiverton > Sent: Tuesday, March 24, 2015 2:24 AM > To: users@flex.apache.org > > > > > > Do you have a network packet log ? > > Tom > > On 24/03/15 04:25, Deepak MS wrote: > > Any help on this please? I still haven't found any solution for this. I > > keep getting username\password prompt on the simulator. ;( > > > > On Mon, Mar 16, 2015 at 7:30 PM, Deepak MS > wrote: > > > >> Hello, > >> I'm trying to download a file from the server which requires basic > >> authentication(need to enter user name and password to access). > >> > >> I came across these links: > >> > >> > http://stackoverflow.com/questions/509219/flex-3-how-to-support-http-authentication-urlrequest > >> > >> > http://johncblandii.com/2011/07/flex-quick-tip-urlrequest-basic-auth.html > >> > >> http://blog.derraab.com/2010/02/25/urlrequest-with-http-authentication/ > >> > >> Tried all of it. I either get IO error or I get windows authentication > >> popup window when I run the mobile app on my desktop. > >> > >> None of it seem to work. I'm using Flex4.14\AIR16. > >> > >> Screenshot: > >> http://pbrd.co/18wmsZK > >> > >> > >> Code that I have been trying: > >> > >> > >> http://ns.adobe.com/mxml/2009"; > >> xmlns:s="library://ns.adobe.com/flex/spark" title="Contact" > > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> Can you kindly let me know if there is something going wrong here? Or is > >> there any other way to make it work? > >> > >> > > > > __ > > This email has been scanned by the Symantec Email Security.cloud service. > > For more information please visit http://www.symanteccloud.com > > __ >
AW: Could someone tell me how to upgrade to flexmojos 7.1 please
Glad to hear your success story :-) Well the for java projects the skipTests=true also compiles the testcases, it just doesn't run them ... so I won't change anything here. If you use: -Dmaven.test.skip=true Instead of: -DskipTests=true It should also prevent FM from compiling the testsuite :-) Chris -Ursprüngliche Nachricht- Von: Mario Souza [mailto:mario.so...@vizexplorer.com] Gesendet: Donnerstag, 26. März 2015 01:44 An: users@flex.apache.org Betreff: Re: Could someone tell me how to upgrade to flexmojos 7.1 please I've just migrated recently our project from flexmojos 3.5 directly to 7.0.1 and it's working perfectly. Also, we updated the Flex SDK version from 4.5 to 4.14, following the steps about the mavenizer the sdk and uploading the dependencies to our private nexus. And, recently, Chris help me about to build the same artifact/version with different compiler arguments.. it fits likea glove! :) My only "issue" (if that can be considered one) is about the skipTests ... even running -DskipTests=true, the flexmojos continues compiling/creating the TestRunner.swf. Doesn't run the TestRunner.swf, but it's still creating. But, it's a minor issue. @mariojunior On 26 March 2015 at 11:01, Christofer Dutz wrote: > Hi, > > think I should be quite ideal to help you with this ;-) > > Actually from the syntax and configuration options not much has changed. > The only thing is that the 6.x branch hasn't received quite as much > love regarding fixing of minor issues ... but hey ... my heart is > beating for Apache Flex and no longer Adobe Flex ;-) > > The major change is that FM 7.x uses the groupId org.apache.flex > wherever 6.x used com.adobe.flex, but the structure has changed > slightly. In general switching to FM7.x and updating the groupId > should do the trick. On other thing that might cause problems are > third party libs compiled against Adobe flex, these still reference > Adobe Flex SDKs with their com.adobe.flex groupIds, you will have to > detect these with "mvn dependency:tree" and exclude them as having both will > definitely cause problems. > > The Flexmojos testsuite contains a lot of configuration examples: > > https://github.com/chrisdutz/flexmojos/tree/flexmojos-7.x/flexmojos-te > sting/flexmojos-test-harness/projects > > I wrote down a lot of stuff in the Flex Wiki: > > https://cwiki.apache.org/confluence/display/FLEX/Quick+Start+Guide%3A+ > Building+Apache+Flex+applications+using+Maven > > So if you need any more help ... come back and post your problem. I'll > try to help you as soon as I can or someone else here on the list will assist. > > Good luck, >Chris > > > -Ursprüngliche Nachricht- > Von: Gary Yang [mailto:flashflex...@gmail.com] > Gesendet: Mittwoch, 25. März 2015 22:33 > An: users@flex.apache.org > Betreff: Could someone tell me how to upgrade to flexmojos 7.1 please > > I am using flexmojos6.0.1, > > 1) is there a repository for Flexmojos7.1? do I have to build from source? > where is the source? > 2) is there a repository for Apache flex or I have to build byself please? > > thanks. > > -Gary >