Re: Update on Adobe Flash Player End of Support from Microsoft today

2020-09-04 Thread Greg Dove
Yes this gives some 'hope' :)
But it is difficult to be sure.

It does seem to contradict one statement in this page:
https://www.adobe.com/products/flashplayer/end-of-life.html
'Flash-based content will be blocked from running in Adobe Flash Player
after the EOL Date'

Are there any Adobe employees reading this thread who could verify the
interpretation of the Microsoft blog post?



On Sat, Sep 5, 2020 at 2:45 PM Flex Developer 
wrote:

> Yes... i also thought all browsers  will stop running flash.
> But this article seems to  suggest that Microsoft will still support Flash
> player in IE11 post DEC 2020.
> I also could not get clearly interpret this blog post if this is the case.
>
> Regards,
> Shyam
>
> On Fri, Sep 4, 2020 at 5:27 PM Greg Dove  wrote:
>
> > That's interesting, it does sound like it might continue to be
> 'available'
> > in terms of 'function' after 2020 for player versions since June this
> year,
> > but disabled by default and not 'supported'in the old Edge and in IE11.
> > That interpretation is actually 'better' than I had understood it to be
> in
> > the past (I assumed it would cease to function after 2020). But I am
> still
> > not 100% clear on that after reading this.
> >
> > I think it would probably require a very specific question and response
> > from Microsoft (and/or Adobe) to clarify this. It would be great if
> > Microsoft and Adobe published some FAQs on this...
> >
> >
> >
> >
> >
> > On Sat, Sep 5, 2020 at 10:10 AM Flex Developer <
> > shyamforf...@gmail.com>
> > wrote:
> >
> > > Hi All,
> > >
> > > I am not sure if anything has changed regarding Flash Player.
> > >
> > > Wanted to clarify if Microsoft is saying that IE11 will still run Flash
> > > Player post Dec 2020.
> > >
> > > Can anyone share their understanding from below blog post today from
> > > Microsoft ?
> > >
> > >
> > >
> >
> https://blogs.windows.com/msedgedev/2020/09/04/update-adobe-flash-end-support/
> > >
> > >
> > > Regards,
> > > Shyam
> > >
> >
>


Re: Flex 4.16.1 broken for AIR33.1?

2020-03-03 Thread Greg Dove
That sounds like there might be a few of these. Any classes that extend the
native ones inside mx.geom will likely need attention for the affected
overridden methods.


On Wed, Mar 4, 2020 at 9:00 AM leokan23  wrote:

> Changing the -swf-version didn't do the trick. This is the change they did:
>
> /Update geometry APIs to allow object pooling, so for example, rather than
> creating and returning
> new Point, Matrix, Vector3D etc objects, functions within the flash.geom.*
> classes will take an
> optional parameter that can be an object to reuse and return. /
>
> I will try messing around with Transform.as next.
>
>
>
>
>
>
> --
> Sent from: http://apache-flex-users.246.n4.nabble.com/
>


Re: Flex 4.16.1 broken for AIR33.1?

2020-03-03 Thread Greg Dove
sorry, that should have been:

It sounds like an extra optonal parameter was added to

flash.geom.Transform.getRelativeMatrix3D

You could try monkey patching

mx.geom.Transform

by adding the source package for that to your local project, and then look
at the overridden method for 'getRelativeMatrix3D' and add the second
missing parameter for the latest version of that method

On Wed, Mar 4, 2020 at 8:08 AM Greg Dove  wrote:

>
> It sounds like an extra optonal parameter was added to
>
> mx.geom.Transform.getRelativeMatrix3D
>
> You could try monkey patching
>
> mx.geom.Transform
>
> by adding the source package for that to your local project, and then look
> at the overridden method for 'getRelativeMatrix3D' and add the second
> missing parameter for the latest version of that method
>
>
>
>
>
> On Wed, Mar 4, 2020 at 7:49 AM leokan23  wrote:
>
>> It looks like there is an issue with the latest AIR version, after they
>> updated the geometry APIs.
>>
>> I am trying to run some projects and i get the following errors:
>>
>> param count mismatch
>> virt params=2 optional=1 flash.geom::Transform/getRelativeMatrix3D()
>> over params=1 optional=0 flash.geom::Transform/getRelativeMatrix3D()
>> VerifyError: Error #1053: Illegal override of Transform in
>> mx.geom.Transform.
>>
>> at
>>
>> spark.primitives.supportClasses::GraphicElement/validateProperties()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\spark\src\spark\primitives\supportClasses\GraphicElement.as:3546]
>> at
>>
>> spark.components::Group/validateProperties()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\spark\src\spark\components\Group.as:938]
>> at
>>
>> mx.managers::LayoutManager/validateProperties()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:601]
>> at
>>
>> mx.managers::LayoutManager/doPhasedInstantiation()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:787]
>> at
>>
>> mx.managers::LayoutManager/doPhasedInstantiationCallback()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1191]
>>
>>
>> Any ideas?
>>
>>
>>
>> --
>> Sent from: http://apache-flex-users.246.n4.nabble.com/
>>
>


Re: Flex 4.16.1 broken for AIR33.1?

2020-03-03 Thread Greg Dove
It sounds like an extra optonal parameter was added to

mx.geom.Transform.getRelativeMatrix3D

You could try monkey patching

mx.geom.Transform

by adding the source package for that to your local project, and then look
at the overridden method for 'getRelativeMatrix3D' and add the second
missing parameter for the latest version of that method





On Wed, Mar 4, 2020 at 7:49 AM leokan23  wrote:

> It looks like there is an issue with the latest AIR version, after they
> updated the geometry APIs.
>
> I am trying to run some projects and i get the following errors:
>
> param count mismatch
> virt params=2 optional=1 flash.geom::Transform/getRelativeMatrix3D()
> over params=1 optional=0 flash.geom::Transform/getRelativeMatrix3D()
> VerifyError: Error #1053: Illegal override of Transform in
> mx.geom.Transform.
>
> at
>
> spark.primitives.supportClasses::GraphicElement/validateProperties()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\spark\src\spark\primitives\supportClasses\GraphicElement.as:3546]
> at
>
> spark.components::Group/validateProperties()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\spark\src\spark\components\Group.as:938]
> at
>
> mx.managers::LayoutManager/validateProperties()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:601]
> at
>
> mx.managers::LayoutManager/doPhasedInstantiation()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:787]
> at
>
> mx.managers::LayoutManager/doPhasedInstantiationCallback()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1191]
>
>
> Any ideas?
>
>
>
> --
> Sent from: http://apache-flex-users.246.n4.nabble.com/
>


Re: Skins - Get Properties From Parent Component

2019-12-29 Thread Greg Dove
You can also access other properties on the 'parent' component that the
skin is attached to if they are bindable as well.
{hostComponent.whateverHere}

And of course for custom components/custom skins you can define the host
component's type via [HostComponent()] metadata inside the skin's
fx:Metadata tag.

Mobile skins used to be quite important to try to avoid bindings in and
instead use actionscript based skins. But they might even be ok with using
mxml and bindings in today's mobile devices.
A lot of things got so much faster simply by time going by.
It's been a while since I used Flex 4 skinning now. Miss it a lot!


On Mon, Dec 30, 2019 at 4:18 PM bilbosax  wrote:

> Alex, to be honest, I have become accustomed to avoiding binding
> expressions
> due to performance hits, especially with large array collections and
> dataproviders.  I have become so accustomed to doing this, that it
> didn't even cross my mind.  But a binding expressions are brilliant in this
> situation and streamlines the process considerably, getting rid of two
> unneccessary methods and a timing mechanism that can't be 100% relied
> upon.
> Thanks for this simple but very useful solution.  Here is what the skin
> code
> looks like now:
>
> 
> http://ns.adobe.com/mxml/2009;
>xmlns:s="library://
> ns.adobe.com/flex/spark"
>xmlns:fb="
> http://ns.adobe.com/flashbuilder/2009;
>minWidth="20" minHeight="20"
>alpha.disabled="0.5"
> xmlns:fxgAssets="fxgAssets.*">
>
> 
>
> 
>
>
> 
> 
> 
> 
> 
> 
>
>  bottomLeftRadiusX="{height/2}" bottomLeftRadiusY="{height/2}"
> bottomRightRadiusX="{height/2}" bottomRightRadiusY="{height/2}"
> topLeftRadiusX="{height/2}" topLeftRadiusY="{height/2}"
> topRightRadiusX="{height/2}" topRightRadiusY="{height/2}">
> 
>  color.down="#323233"/>
> 
> 
>  fontWeight="bold" horizontalCenter="0" verticalCenter="0"/>
> 
> 
> 
> 
> 
>
> 
>
>
>
> --
> Sent from: http://apache-flex-users.246.n4.nabble.com/
>


Re: Future proof Flex/Flash apps.

2019-09-09 Thread Greg Dove
   'What is the level of difficulty of setting up "automatic" upgrade
deployment using AIR? I would like to have SWF files be recognized as being
out of date and automatically downloaded. '

I guess there are different ways to do that.
Making the installed application itself update-able is not an unusual goal.
This would usually be the pattern where the app contains all the current
versions of any swf assets it uses, bundled in the package, and the user
gets a message saying the app can be updated, and it is like an
installation update process for the app itself.
iirc the only option for AIR now might be via captive-runtime builds (that
is something to check). So the update process is something that has to be
supported specifically instead of this: - perhaps either via a 'store'
distribution or manually for the specific app. I have seen a an AIR lib for
this in the past (this: [1] may still be relevant, not sure), or there are
probably ways to do it with native installer wrappers as well I think (all
to be verified).

The pattern where the app downloads and saves various swf assets and uses
them is also possible but it would likely require extra code on the client
side and server side to support the versioning checks etc.
This is easier on desktop than mobile (android is not so bad, but iOS has
some restrictions). it is also possible of course to mix this with the
above approach.

In terms of difficulty, I guess both of the above approaches are not new,
and IMO reasonably routine, so I would not rate this part as 'difficult'. I
have not done either on desktop because I have only worked on a few desktop
apps in the past, but I have used the second approach before on android.

If you do want to continue to target the browser though, Royale is likely
your best option without massive re-writes.


1.
https://www.adobe.com/devnet/air/articles/updating-air-apps-native-installer.html



On Tue, Sep 10, 2019 at 7:30 AM Paul Stearns 
wrote:

> Greg:
>
> Thanks for taking the time to reply.
>
> The applications are as close to being a desktop self contained
> application as we could make them. The only reason for being a browser
> based app is that it made installs and deployment of changes & enhancements
> a non issue.
>
> AIR might be an option. What is the level of difficulty of setting up
> "automatic" upgrade deployment using AIR? I would like to have SWF files be
> recognized as being out of date and automatically downloaded. The current
> system uses ModuleLoader to place "programs" on the users "screen." When in
> the environment it looks very much like an old menu based .NET desktop
> application (only prettier).
>
> Paul
>
> 
> From: Greg Dove 
> Sent: 9/9/19 3:14 PM
> To: users@flex.apache.org
> Subject: Re: Future proof Flex/Flash apps.
> Hi Paul,
> ' The applications will continue to be desktop applications, with no
> portable/tablet interface required. '
>
> It was not entirely clear to me whether they will continue to be *web*
> 'desktop' applications? If not, one (relatively) quick option is to convert
> the existing code to installable desktop applications built with AIR.
>
> Otherwise if you are continuing to target the browser, the most direct way
> to get to where you want to be is via Apache Royale.
> Although I am not aware at this point of anyone using Apache Royale
> specifically with FlourineFX, AMF remoting works (in the imminent 0.9.6
> release) and it has been used in at least one app that has been in
> production use for a number of months already.
>
> In terms of support, one option is that Royale has page where you can
> contact directly with some companies or individual developers. [1]
>
> [1] https://royale.apache.org/royale-commercial-support/
>
> On Tue, Sep 10, 2019 at 5:35 AM Paul Stearns
> wrote:
>
> > Who would be able to help me assess which way to go to future proof Flex
> > apps?
> >
> > We have 4 Flex (currently compiled with 3.6 SDK) applications which are
> > fully integrated with a FluorineFX/VB middle tier and Oracle DB tier.
> They
> > currently run in browser based Flash with very little interaction with
> the
> > browser. The applications will continue to be desktop applications, with
> no
> > portable/tablet interface required.
> >
> > It appears we will need to do something prior to the end of 2020.
> >
> > One of the applications which uses the framework created in house is a
> > Time Accounting System (TAS) which we could make available to anyone
> > interested in helping us figure the easiest approach to maintain as much
> of
> > the user interface as possible while minimizing the conversion effort.
> >
> > The applications have the look and feel of a desktop application with the
> > flexibility of web deployment. A screenshot of the TAS system is
> attached.
> >
> >
> >
>
>
>


Re: Future proof Flex/Flash apps.

2019-09-09 Thread Greg Dove
Hi Paul,
' The applications will continue to be desktop applications, with no
portable/tablet interface required. '

It was not entirely clear to me whether they will continue to be *web*
'desktop' applications? If not, one (relatively) quick option is to convert
the existing code to installable desktop applications built with AIR.

Otherwise if you are continuing to target the browser, the most direct way
to get to where you want to be is via Apache Royale.
Although I am not aware at this point of anyone using Apache Royale
specifically with FlourineFX, AMF remoting works (in the imminent 0.9.6
release) and it has been used in at least one app that has been in
production use for a number of months already.

In terms of support, one option is that Royale has page where you can
contact directly with some companies or individual developers. [1]

[1] https://royale.apache.org/royale-commercial-support/

On Tue, Sep 10, 2019 at 5:35 AM Paul Stearns 
wrote:

> Who would be able to help me assess which way to go to future proof Flex
> apps?
>
> We have 4 Flex (currently compiled with 3.6 SDK)  applications which are
> fully integrated with a FluorineFX/VB middle tier and Oracle DB tier. They
> currently run in browser based Flash with very little interaction with the
> browser. The applications will continue to be desktop applications, with no
> portable/tablet interface required.
>
> It appears we will need to do something prior to the end of 2020.
>
> One of the applications which uses the framework created in house is a
> Time Accounting System (TAS) which we could make available to anyone
> interested in helping us figure the easiest approach to maintain as much of
> the user interface as possible while minimizing the conversion effort.
>
> The applications have the look and feel of a desktop application with the
> flexibility of web deployment. A screenshot of the TAS system is attached.
>
>
>


Re: BrowseForSave issue

2018-11-16 Thread Greg Dove
I remember reading something about this.
Check the release notes here:
https://helpx.adobe.com/nz/flash-player/release-note/fp_31_air_31_release_notes.html

   - Saving files to the filesystem from a Flash applet

maybe that is affecting you.



On Sat, Nov 17, 2018 at 9:24 AM Tucsonjhall  wrote:

> A very odd thing happening. I use file.browseForSave throughout my
> application but a new use all of a sudden doesn't work but only in runtime.
> It's fine when testing in FlashBuilder. There's nothing particularly
> different than other uses I have.
>
> fileToCreate.browseForSave( "Save File As" );
> fileToCreate.addEventListener( Event.SELECT, saveExportFile, false, 0, true
> );
>
> What could possibly account for it working in authoring mode but not
> runtime?
>
>
>
> --
> Sent from: http://apache-flex-users.246.n4.nabble.com/
>


Re: Persisting ContentCache to disk between sessions

2018-10-27 Thread Greg Dove
Oops, I pressed send to early, more info this time :)


I think BitmapData may not be directly serializable to amf. It is in
display package, and although not directly a display object, it might be
subject to same rules.
Here's the type of thing someone did in the past to avoid that:

https://cambiatablog.wordpress.com/2009/09/12/as3-bitmapdata-amf-solution-using-iexternalizable/


Also it would be more compact I think to store the original loaded bytes.

Png and jpeg encoding was always slow with the original action script libs,
but bitmapdata has much faster native encoding methods now. Still maybe not
practical for large volumes of images as a batch, but I have found it to be
much more performance for encoding.

I wonder why you need to reencode when the original cache should have
access to the original loaded bytes (png or jpeg) at some level. It should
be more compact in the final cached file.



On Sun, Oct 28, 2018 at 11:03 AM Greg Dove  wrote:

> Not an answer to the main question, but a couple of thoughts...
>
> I think BitmapData may not be directly serializable to amf. It is in
> display package, and although not directly a display object, it might be
> subject to same rules.
> Here's the type of thing someone did in the past to avoid that:
> Also it would be more compact I think to store the original loaded bytes.
>
> Png and jpeg encoding was always slow with the original action script
> libs, but bitmapdata has much faster native encoding methods now. Still
> maybe not practical for large volumes of images as a batch, but I have
> found it to be much more performance for encoding.
>
> I wonder why you need to reencode when the original cache should have
> access
>
>
>
> On Sun, 28 Oct 2018, 06:13 Erik Thomas,  wrote:
>
>> Hi Alex:
>>
>> The icons and logos are loaded from a server on startup, and then kept up
>> to date via a 20 second polling pattern where the app checks if anything
>> has changed on the server. We timestamp all images and when one does change
>> we get latest and update the image in the app.
>>
>> The way a ContentCache is used for BitmapImage and Image is to set the
>> loader like this:
>>
>> public static var imageCache:ImageCache = new ImageCache(); // subclass
>> of ContentCache
>> _image.contentLoader = Model.imageCache;
>> _image.source = "https/someImageUrl"
>>
>> When the image is first retrieved from the URL, the ContentCache loader
>> will save the image into a Dictionary (key/value pairs) where the key is
>> the URL and the value is the bitmapData of the image.
>>
>> Then when using ItemRenderers, and they get recycled, the when the image
>> URL changes, ContentCache will look up the URL in it's Dictionary and if
>> it's already been downloaded it will simply display it without having to
>> make an HTTP request.
>>
>> ContentCache is a very cool thing the Adobe engineers designed into
>> Flex/Flash and it makes lists with icons and pictures far more responsive.
>>
>> What I want to do is persist the cache to disk and load it when the user
>> logs in again. If any image have changed since the last time they launched
>> the app, the first 20 second poll will indicate a timestamp has changed and
>> the app will retrieve images with a timestamp after the one returned when
>> polling. So they will always be up to date.
>>
>> I said the images don't change but that's not actually true, they just
>> don't change often, maybe once a week we'll onboard new organizations and
>> events with images.
>>
>> Embedding images is not an option because every new onboarded entity will
>> require a new app build, full regression testing, submission to Apple for
>> review and the entire release process. That's a bad business model.
>>
>> Anyway, there must be a way in FileStream to save a Dictionary with key
>> as String and value as ByteArray, but I haven't figured it out yet. Was
>> hoping someone else knows how.
>>
>> Thanks, Alex.
>>
>> Erik
>>
>> PS: I know how I can do this, but it's too much work the way I know how,
>> I would have to take each cached image, use pngencoder to encode the
>> bitmapData (ByteArray) to a PNG and save each image as a separate file.
>> Last count our image cache has about 1500 images so that means 1500 files,
>> plus a hash file to match the image URL to a generated filename for the
>> image. Loading will then require reversing the process. If you've used
>> image encoders in Flash/AIR you know they're  pretty slow. If we don't gain
>> any speed, it's not worth the effort.
>>
>>
>> On Oct 26, 2018, at 3:44 PM, Alex Harui 

Re: Persisting ContentCache to disk between sessions

2018-10-27 Thread Greg Dove
Not an answer to the main question, but a couple of thoughts...

I think BitmapData may not be directly serializable to amf. It is in
display package, and although not directly a display object, it might be
subject to same rules.
Here's the type of thing someone did in the past to avoid that:
Also it would be more compact I think to store the original loaded bytes.

Png and jpeg encoding was always slow with the original action script libs,
but bitmapdata has much faster native encoding methods now. Still maybe not
practical for large volumes of images as a batch, but I have found it to be
much more performance for encoding.

I wonder why you need to reencode when the original cache should have access



On Sun, 28 Oct 2018, 06:13 Erik Thomas,  wrote:

> Hi Alex:
>
> The icons and logos are loaded from a server on startup, and then kept up
> to date via a 20 second polling pattern where the app checks if anything
> has changed on the server. We timestamp all images and when one does change
> we get latest and update the image in the app.
>
> The way a ContentCache is used for BitmapImage and Image is to set the
> loader like this:
>
> public static var imageCache:ImageCache = new ImageCache(); // subclass of
> ContentCache
> _image.contentLoader = Model.imageCache;
> _image.source = "https/someImageUrl"
>
> When the image is first retrieved from the URL, the ContentCache loader
> will save the image into a Dictionary (key/value pairs) where the key is
> the URL and the value is the bitmapData of the image.
>
> Then when using ItemRenderers, and they get recycled, the when the image
> URL changes, ContentCache will look up the URL in it's Dictionary and if
> it's already been downloaded it will simply display it without having to
> make an HTTP request.
>
> ContentCache is a very cool thing the Adobe engineers designed into
> Flex/Flash and it makes lists with icons and pictures far more responsive.
>
> What I want to do is persist the cache to disk and load it when the user
> logs in again. If any image have changed since the last time they launched
> the app, the first 20 second poll will indicate a timestamp has changed and
> the app will retrieve images with a timestamp after the one returned when
> polling. So they will always be up to date.
>
> I said the images don't change but that's not actually true, they just
> don't change often, maybe once a week we'll onboard new organizations and
> events with images.
>
> Embedding images is not an option because every new onboarded entity will
> require a new app build, full regression testing, submission to Apple for
> review and the entire release process. That's a bad business model.
>
> Anyway, there must be a way in FileStream to save a Dictionary with key as
> String and value as ByteArray, but I haven't figured it out yet. Was hoping
> someone else knows how.
>
> Thanks, Alex.
>
> Erik
>
> PS: I know how I can do this, but it's too much work the way I know how, I
> would have to take each cached image, use pngencoder to encode the
> bitmapData (ByteArray) to a PNG and save each image as a separate file.
> Last count our image cache has about 1500 images so that means 1500 files,
> plus a hash file to match the image URL to a generated filename for the
> image. Loading will then require reversing the process. If you've used
> image encoders in Flash/AIR you know they're  pretty slow. If we don't gain
> any speed, it's not worth the effort.
>
>
> On Oct 26, 2018, at 3:44 PM, Alex Harui  wrote:
>
> Erik,
>
> How do the icons and logos get into the cache in the first place?  If they
> don't change, is there any reason not to embed them in the application?
>
> -Alex
>
> On 10/26/18, 3:36 PM, "Erik J. Thomas"  wrote:
>
>Hey all:
>
>Have any of you come across an example of persisting a ContentCache to
> disk and reading it back on app launch? We have lots of icons and logos for
> hundreds of companies and they don't change between sessions.
>
>Like this (doesn't work though). ImageCache is a subclass of
> ContentCache to get access to the protected cachedData:Dictionary which is
> key/value pairs, with key as URL to image, and value is bitmapData.
>
>public function saveImageCache(imageCache:ImageCache):void {
>   var cacheFile:File = File.applicationStorageDirectory;
>   cacheFile = cacheFile.resolvePath(IMAGE_CACHE_FILE_NAME);
>   if (cacheFile.exists) {
>  cacheFile.deleteFile();
>   }
>   var fileStream:FileStream = new FileStream();
>   fileStream.open(cacheFile, FileMode.WRITE);
>   fileStream.writeObject(imageCache.getEntries()); // this is a
> Dictionary with byte array for image as value
>   fileStream.close();
>}
>
>The writeObject API of FileStream does not marshal the bitmapData to
> disk.
>
>/**
> * Loads a persisted image cache from disk.
> *
> * @return ContentCache
> */
>public function loadImageCache():ImageCache {
>   var cacheFile:File = 

Re: In-app Purchases

2018-10-19 Thread Greg Dove
iirc there are rules about what purchasing support you can use depending on
the app store. I think Stripe is permitted for content or products that are
not 'delivered' in-app. But for in-app items or app status subscriptions I
think you are obliged to use the in-app purchasing support via whatever app
store you are on, if it is 'in-app'. And pay their 30% or whatever the rate
is now. In the past I used milkmangames ANE for this. But there are other
options.

Please check the rules for whatever app store you intend to publish to.


On Sat, 20 Oct 2018, 12:27 bilbosax,  wrote:

> I know that this is an odd place to ask this, but there are relatively few
> active forums to ask about Adobe Air. Although it had passed app review
> twice, I had an app rejected recently from Apple's App Store because it
> does
> not use the in-app purchase API. My app is a real estate app that you can
> log into, or if you don't have an account, you can create it in the app and
> pay for a monthly subscription. Since it is a cross-platform app for
> Android, Apple, and desktop, I wanted just one payment solution to make it
> simple, so I chose Stripe. I open a webview in the app to pay for the
> subscription. Apple claims that my content is locked until payment is made,
> so I am required to use the in-app purchase API to unlock the content. Now
> that I am so far into development, this could be a huge change that adds a
> lot of time to my actual release. I have two options as I see it:
>
> 1) Implement in-app purchase API somehow into my code
> 2) Give the user the option to Sign Up or Log In. If they choose to sign
> up,
> redirect them to my website in safari to sign up and use Stripe as I have
> already laid out. Once they have signed up they can then move back to the
> app and simply Log In.
>
> I know absolutely nothing about in-app purchases. I always thought that
> they
> used Apple Pay, which I would prefer not to do. Can the in-app purchase API
> work with my Stripe Account and subscription products that I created there,
> or would I be forced to transform my whole workflow? Of the two options I
> listed above, which would you choose? Any ANE recommendations?
>
> Thanks for any insights!
>
>
>
> --
> Sent from: http://apache-flex-users.246.n4.nabble.com/
>


Re: Problems with svg

2018-03-05 Thread Greg Dove
Are you referring to embedding an svg asset?

I believe that if you use svg features that are not easily 'translatable'
to be expressed as swf-style vector instructions, then it will be rendered
as a bitmap and embedded that way.
I suspect there are differences in how smart this conversion process is in
the compiler vs. how well some tools can do 'save as fxg' from svg format.
 Not sure that is helpful but it might be something to pursue in terms of
researching this further.


On Tue, Mar 6, 2018 at 3:01 AM, chris_flex  wrote:

> Is anyone out there displaying an svg in apache flex / air without having
> this problem? So am I doing something wrong or is this a bug?
>
>
>
> --
> Sent from: http://apache-flex-users.246.n4.nabble.com/
>


Re: Strange Graphic Anomoly

2018-02-15 Thread Greg Dove
It might pay to check your AIR version and release notes:

E.g. for example

https://helpx.adobe.com/flash-player/release-note/fp_28_air_28_release_notes.html

under FIXED ISSUES:
[iOS]Artifacts are observed when child Sprite is near bottom of
screen(AIR-4198445)

There have been things like this in the past and it might apply to android
too.


On Fri, Feb 16, 2018 at 6:17 PM, bilbosax  wrote:

> ... and if I remove my custom skin with the green in it, I still have the
> artifacts in the same shapes and sizes, but the artifact changes to the
> color of the default MobileGridHeaderSkin.  So it is related, but I don't
> think it is the cause.
>
>
>
> --
> Sent from: http://apache-flex-users.246.n4.nabble.com/
>


Re: Any tools to convert svg to fxg?

2018-02-10 Thread Greg Dove
I don't know if it still supports it in recent releases but I understand
Inkscape had fxg export (at least it did so at one point).

see:
http://blog.devinholloway.com/2013/08/using-inkscape-to-generate-fxg-from.html

Because Inkscape's primary format is SVG it might be a good option
(assuming fxg is still supported, or perhaps you can install an older
version where it was if it is no longer supported).

On Sun, Feb 11, 2018 at 1:58 PM, chris_flex  wrote:

> Searching for a tool to convert svg to fxg as I had to upgrade to Animate
> CC
> I only found http://www.realcreation.com/S2F_Converter/ which is not
> working. Are there any tools out there which can be used to convert svg to
> fxg?
>
> And - are there any disadvantages in using SVG instead of FXG in Flex?
>
>
>
>
> --
> Sent from: http://apache-flex-users.246.n4.nabble.com/
>


Re: iOS SDK Version in AIR 27

2018-01-04 Thread Greg Dove
'I wonder how adobe plans to get around the asset catalog requirement. Do
you suppose they create an asset catalog during the build'

At the moment that is not the case - see the section titled 'iOS SDK
Upgrade' in the air28 release notes. I don't know if this will change or
not. but for now it is a manual step and requires a mac & xcode9 (my main
dev setup is windows, but I had to get a small mac for dealing with the
occasional mac-only build requirements or differences).






On Fri, Jan 5, 2018 at 9:07 AM, Linqto <e...@linqto.com> wrote:

> Hey Greg that’s perfect. Thanks for the info. I wonder how adobe plans to
> get around the asset catalog requirement. Do you suppose they create an
> asset catalog during the build?
>
> Sent from my iPhone
>
> > On Jan 4, 2018, at 11:35 AM, Greg Dove <greg.d...@gmail.com> wrote:
> >
> > Hi Erik,
> >
> > iOS SDK version is 'bundled' with Air SDK, but there is a way to specify
> an
> > external location for iOS SDK to point to a different external sdk
> version
> > when packaging.
> >
> > AIR 28 sdk will be the first one that has iOS11 by default and will
> > therefore have the new requirements.
> > You can read about that here:
> > https://fpdownload.macromedia.com/pub/labs/flashruntimes/
> shared/air28_flashplayer28_releasenotes.pdf
> >
> > One way I check things is to look at the builds themselves.
> > An ipa file is basically a zip archive (apk is similar for android).
> > If you open it in an archive utility and either extract or directly open
> > the file Info.plist (inside the main Payload folder) in a text editor you
> > can usually find some helpful info.,
> > Here is an extract of what I found for an AIR 27 build:
> >
> > DTPlatformName
> >iphoneos
> >DTSDKName
> >iphoneos10.1
> >DTPlatformVersion
> >10.1
> >DTXcode
> >0810
> >DTXcodeBuild
> >8B62
> >
> > This seems clear to me that Air 27 is using iOS 10.1
> >
> >
> > Hope that is helpful...
> > Greg
> >
> >> On Fri, Jan 5, 2018 at 7:42 AM, Erik J. Thomas <e...@linqto.com> wrote:
> >>
> >> Or perhaps iOS SDK is packaged with the Flex SDK? If so, what version? I
> >> can't find anything on the web that explains how an iOS app is compiled
> >> using FlexSDK or AIRSDK. I understand there is the runtime component
> but I
> >> do not configure my project to use an external XCode iOS SDK to build (I
> >> use IntelliJ and that's configurable) so if I don't, then it must be
> >> getting compiled with an iOS SDK that's bundled somehow with Flex or
> AIR.
> >>
> >> I am very weak in my understanding of this issue. None of the release
> >> notes I can find on AIR and Flex SDK releases mention the iOS SDK but
> they
> >> do mention macOS SDK for desktop AIR apps.
> >>
> >> Thanks.
> >>
> >> Erik
> >>
> >> On Jan 4, 2018, at 10:25 AM, Erik J. Thomas <e...@linqto.com> wrote:
> >>
> >> Apple recently started enforcing the use of an asset catalog for app
> icons
> >> if the app was compiled using iOS 11 SDK. If the icons are not inside an
> >> asset catalog that's compiled into the binary itself iTC will refuse
> your
> >> build with this message:
> >>
> >> "Apps built with iOS 11 or later SDK must supply app icons in an asset
> >> catalog and must also provide a value for this Info.plist key. For more
> >> information see http://help.apple.com/xcode/mac/current/#/dev10510b1f7
> <
> >> http://help.apple.com/xcode/mac/current/#/dev10510b1f7>."
> >>
> >> I suppose this might be a question for the Flex developer mailing list,
> >> but I'm assuming AIR 27 is still bundling the iOS 10 SDK? Because if it
> >> bundled iOS 11 SDK my AIR apps would fail to load into iTunes Connect.
> >>
> >> We also build native apps and as of the past few weeks, Apple has
> started
> >> rejecting apps that don't use app catalogs for app icons. I expect the
> Flex
> >> community will run into this same issue if/when AIR SDK starts including
> >> iOS 11 SDK.
> >>
> >> Does anyone know what version of iOS SDK that AIR 27 uses to build the
> IPA?
> >>
> >> Thanks.
> >>
> >> Erik
> >>
> >>
>
>


Re: iOS SDK Version in AIR 27

2018-01-04 Thread Greg Dove
Hi Erik,

iOS SDK version is 'bundled' with Air SDK, but there is a way to specify an
external location for iOS SDK to point to a different external sdk version
when packaging.

AIR 28 sdk will be the first one that has iOS11 by default and will
therefore have the new requirements.
You can read about that here:
https://fpdownload.macromedia.com/pub/labs/flashruntimes/shared/air28_flashplayer28_releasenotes.pdf

One way I check things is to look at the builds themselves.
An ipa file is basically a zip archive (apk is similar for android).
If you open it in an archive utility and either extract or directly open
the file Info.plist (inside the main Payload folder) in a text editor you
can usually find some helpful info.,
Here is an extract of what I found for an AIR 27 build:

DTPlatformName
iphoneos
DTSDKName
iphoneos10.1
DTPlatformVersion
10.1
DTXcode
0810
DTXcodeBuild
8B62

This seems clear to me that Air 27 is using iOS 10.1


Hope that is helpful...
Greg

On Fri, Jan 5, 2018 at 7:42 AM, Erik J. Thomas  wrote:

> Or perhaps iOS SDK is packaged with the Flex SDK? If so, what version? I
> can't find anything on the web that explains how an iOS app is compiled
> using FlexSDK or AIRSDK. I understand there is the runtime component but I
> do not configure my project to use an external XCode iOS SDK to build (I
> use IntelliJ and that's configurable) so if I don't, then it must be
> getting compiled with an iOS SDK that's bundled somehow with Flex or AIR.
>
> I am very weak in my understanding of this issue. None of the release
> notes I can find on AIR and Flex SDK releases mention the iOS SDK but they
> do mention macOS SDK for desktop AIR apps.
>
> Thanks.
>
> Erik
>
> On Jan 4, 2018, at 10:25 AM, Erik J. Thomas  wrote:
>
> Apple recently started enforcing the use of an asset catalog for app icons
> if the app was compiled using iOS 11 SDK. If the icons are not inside an
> asset catalog that's compiled into the binary itself iTC will refuse your
> build with this message:
>
> "Apps built with iOS 11 or later SDK must supply app icons in an asset
> catalog and must also provide a value for this Info.plist key. For more
> information see http://help.apple.com/xcode/mac/current/#/dev10510b1f7 <
> http://help.apple.com/xcode/mac/current/#/dev10510b1f7>."
>
> I suppose this might be a question for the Flex developer mailing list,
> but I'm assuming AIR 27 is still bundling the iOS 10 SDK? Because if it
> bundled iOS 11 SDK my AIR apps would fail to load into iTunes Connect.
>
> We also build native apps and as of the past few weeks, Apple has started
> rejecting apps that don't use app catalogs for app icons. I expect the Flex
> community will run into this same issue if/when AIR SDK starts including
> iOS 11 SDK.
>
> Does anyone know what version of iOS SDK that AIR 27 uses to build the IPA?
>
> Thanks.
>
> Erik
>
>


Re: Advertising ID on Mobile

2017-12-18 Thread Greg Dove
In my experience Apple can have an issue with using the advertising id if
you do not have one of the advertising provider ANEs also installed and
initialized. I can't remember if apple actually needed to see ads to
approve it or not, but yes it is something you need to be careful with on
iOS.
Android was less of an issue (I don't recall any issue).

If I recall correctly the advertising id can also be reset by the user so
it is possible for the same device to have a different advertising id at
different points in time. In practice I think this is rare for most users.
But this might be worth checking if it is important also

-Greg


On Tue, Dec 19, 2017 at 12:18 PM, bilbosax  wrote:

> I don't want to overwhelm anyone with the details of what I am trying to
> do,
> but in a nutshell, I am trying to develop a mobile AIR app for real estate
> agents that is customizeable that they can give to their clients and, and
> when the client installs it, it will look like the real estate agent wrote
> it themselves and will have their branding in the app.
>
> To do this, I need to save a unique identifier from any Android or iOS
> device that installs the app.  Apparently, this is inconsistent approach
> and
> not supported across all devices, so I can't do something simple like store
> a MAC address or a UDID because not all devices will allow access to these
> identifiers, so I would get inconsistent results.
>
> The only consistent identifiers that I have been able to narrow down are
> Advertising ID's.  These are provided by both iOS and Android devices and
> there are ANE's available that will give you access to these identifiers.
> What I am concerned with is this - I am not using them to provide Ads to my
> users.  I just need to know who a user is and associate them with a real
> estate agent consistently.
>
> Does anyone know if Apple or Google will throw up a fuss if you try to
> submit an app to the app store that uses an Advertising ID, but is not
> using
> it to serve up ads???
>
> Thanks for any thoughts!
>
>
>
> --
> Sent from: http://apache-flex-users.246.n4.nabble.com/
>


Re: Soap Webservices after iOS Update

2017-10-18 Thread Greg Dove
My first thought would be to wonder if it could be related to something
that was originally configured as http instead of https and might therefore
be affected by more recent ATS requirements... that would be my first thing
to check I think.

-Greg
[sent from my phone]

On 19/10/2017 5:46 PM, "patrickd"  wrote:

> Hello,
>
> a couple of years back I wrote an iPad business app for one of my clients
> which uses soap to communicate with my clients SAP System.
> After the latest iOS update the events (fault, result) for one of the
> webservices don't fire anymore. All other webservices on the same server
> work without a problem. The strange thing is that it works in the simulator
> and even on the device in debug mode but not in the final built.
> Does anyone else have this problem?
>
> Cheers,
> Patrick.
>
>
>
> --
> Sent from: http://apache-flex-users.246.n4.nabble.com/
>


Re: ios 11. Cannot load App

2017-10-02 Thread Greg Dove
Are you on windows? I have the same problem.

It seems to be a known issue with iOS11.

 https://forums.adobe.com/thread/2387478



On Tue, Oct 3, 2017 at 3:09 PM, bjaved 
wrote:

> Hey All
>
> Installation fails while trying to load the IoS app onto the ipad. Anyone
> else facing similar issues? Any workarounds?
>
> Cheers
>
>
>
> --
> Sent from: http://apache-flex-users.246.n4.nabble.com/
>


Re: Slow Image Sizing

2017-04-24 Thread Greg Dove
If JPEGEncoder is an actionscript encoder, you could switch to using the
native encoding support. It is much faster.

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/BitmapData.html#encode()



On Tue, Apr 25, 2017 at 6:45 AM, Erik J. Thomas  wrote:

> Hey all:
>
> My flex mobile app posts social chat messages with an optional image. It
> uses CameraRoll to allow the user to select any image on their phone. But
> modern phones take HUGE pics. We don't need full res photos for the chat
> and don't want to use up the bandwidth uploading full images and resizing
> on the server.
>
> The API we hit accepts an octet stream of bytes that represents the file.
> All this functions fine, but it takes about 10 seconds to upload an HDR
> rear camera photo on an iPhone 6 Plus.
>
> I'd like to resize it on the client. But using both PNG and JPG encoders
> are far too slow:
>
> var bitmapData:BitmapData = new BitmapData(photo.width, photo.height,
> true, 0xff);
> var jpegEncoder:JPEGEncoder = new JPEGEncoder();
> urlRequest.data = jpegEncoder.encode(bitmapData); // this takes like 12
> seconds for a 13 MB iPhone 6 photo.
>
> So uploading is the better solution from a user experience perspective
> because UI can remain responsive while the async upload occurs. Resizing
> the image using an encoder cannot be done asynchronously so it blocks UI
> and we can do nothing but show a busy cursor.
>
> I don't like either solution. Someone out there have any ideas?
>
> Thanks.
>
> Erik
>
>


Re: Screen DPI ANE?

2017-03-05 Thread Greg Dove
I've definitely seen this issue on android devices in the past, but I also
assume it may no longer be relevant in recent years.
We had an app that classified itself as either phone or tablet based on the
7 inch threshold, with different layouts etc, but calculating that from the
flash based api was not correct for all devices about 3-4 years ago (even
allowing a calculation range for variation :6.9 inches etc)

IIRC this definitely occurred on a 7 inch amazon Kindle device at one
point, I can't remember specifics about any others, it was quite some time
ago. At the time I made a homemade ANE to deal with it, and it is still in
current use in recent builds of the same app.



On Mon, Mar 6, 2017 at 8:14 AM, bilbosax  wrote:

> Thanks Josh.  I have been searching posts and blog articles about the
> unreliability of Capabilities.screenDPI, and I realized they were written
> way back in 2011.  Since I am not finding an ANE that was developed for
> this
> purpose, I have to assume it is because there is no need for one at this
> point.  I only have a Galaxy Tab, and iPad, and an iPhone to test with for
> my app, so I am grateful for the feedback from someone who has been doing
> this for years.  It looks like Capabilities is my best option.  Let me know
> if anyone else has differing opinions than this.
>
>
>
> --
> View this message in context: http://apache-flex-users.
> 246.n4.nabble.com/Screen-DPI-ANE-tp14761p14766.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>


Re: FlexJS:Reflection API

2017-02-20 Thread Greg Dove
>
> Regarding,
> registerClassAlias(unTypeObject['_explicitType'],
> getClassByAlias(unTypeObject['_explicitType']))
>
> - I am getting the data from blazeDs and blazeDS adding the "_explicitType"
> to every object.
>

Great - I assume _explicitType is the alias used to retrieve the class
clientside, this seems clear to me.


> - I am just picking "_explicitType" and registering that class using
> registerClassAlias()
>

Using registerClassAlias here is what seems unusual to me.

registerClassAlias normally occurs early in an application startup or at
some point before any amf data has been received from any remote server.
registerClassAlias needs to be done *before* getClassByAlias will work, so
it does not seem correct to use getClassByAlias inside a registerClassAlias
call (it should return null if the alias is not already registered).




> - Same _explicitType class, i am having inside my project in same package
> structure.
> - One point to note here is that i added registerClassAlias inside my AMF
> library not in main application. means library project not having the
> "_explicitType" class.
>


I hope I have understood what you are doing correctly.
I would not expect registerClassAlias to be used inside the amf library - I
don't think that is close to the original functionality in flash player for
amf deserialization.
I would expect an amf library to perhaps use getClassByAlias, but not
registerClassAlias. In a traditional Flex 4 project, registerClassAlias
should happen before any amf remoting activity as well. In Flex 4 (and
earlier Flex) registerClassAlias was often implemented by metadata on the
class and early reference to the class in terms of dependencies, which I
suspect ran the registerClassAlias code in a static initializer, before any
amf deserialization takes place.

Maybe there are some javascript tricks for converting/casting an untyped
object to a typed object without instantiating anything new that I don't
know about because I am unfamiliar, but if not then I expect the most
efficient implementation would include an attempt to getClassByAlias from
the explictType data at a lower level inside the amf library code, before
the 'unTypeObject' js object is created from the amf data. If
getClassByAlias returns a class (and not null) then it would be preferable
to instantiate that class and populate the instance fields directly instead
of creating a generic js object and adding _explicitType field (which is
then later replaced with the typed object after inspecting _explicitType
value and attempting getClassByAlias).
However, this deeper level of integration is probably easier to do in a
future custom FlexJS implementation for amf, unless the library you are
using has a configurable runtime override of what it in instantiates for
the alias information it receives, instead of simply creating a new generic
object every time.

If I have made this sound too complicated, sorry I was trying not to.
Please ask me to clarify any of my points if this does not seem clear.
Perhaps I have the wrong interpretation of what you are doing and none of
this is relevant.
I hope to get back to some work on FlexJS soon and perhaps I can look at a
custom amf implementation in the js side as part of the framework if no-one
else has gotten to it yet.


>
>
>
>
>
> -
> Regards,
> Prashant
> --
> View this message in context: http://apache-flex-users.
> 246.n4.nabble.com/FlexJS-Reflection-API-tp14701p14711.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>


Re: FlexJS:Reflection API

2017-02-19 Thread Greg Dove
registerClassAlias(unTypeObject['_explicitType'],
getClassByAlias(unTypeObject['_explicitType']))


Aside  from the issue with TypeDefinition being missing, I think the class
aliases should be declared explicitly elsewhere. Using

registerClassAlias("vopackage.MyVo",vopackage.MyVo);

I don't think [RemoteClass] metadata was set up for Falconjx yet to do this
(unless Alex or someone else did it) so that means doing this explicitly in
code somewhere early in code before first use for amf deserialization
purposes. Then it should be

getClassByAlias(unTypeObject['_explicitType']) during deserialization to
retrieve the related class, instantiate and populate fields etc. I would
not expect to see registerclassalias used in this way above (unless I
really misunderstand what is the intention here)

-Greg
[sent from my phone]

On 20/02/2017 4:51 AM, "Alex Harui"  wrote:

>
>
> On 2/19/17, 7:17 AM, "PKumar"  wrote:
>
> >Do i  need to include it explicitly? i am using the flash Builder 4.7 to
> >develop library project.
>
> Hopefully not.  It looks like your problem is in building the JS version.
> Are you using the Launch Configurations to build the JS version?  If so,
> post a link to the entire console output.  It will show what SWCs it used.
>
> HTH,
> -Alex
>
>


Re: air/flash 24 sdk, please update to release NOT beta

2017-01-18 Thread Greg Dove
"This update is actually crucial due to a UIDeviceFamily ios field change:
from string to integer, it blocks attempts to upload .ipa for test or sale."

To clarify: Unless something changed, this was known for some time and is
only a warning message - it did not block us to update existing ios apps
with air 23, including several apps updated within last 4 or 5 days.

We had to use air 23 instead of air 24 because we saw some packaging issues
with air 24 using extensions that work fine with air 23... see recent
topics in air beta discussion forum for details

-Greg
[sent from my phone]

On 18/01/2017 11:30 PM, "jaco"  wrote:

hi,

just need to install latest adobe AIR sdk and flash sdk to 24 release NOT
beta in osx/win, apache flex install fails @flash sdk download, which is
probably due to a wrong checksum.

This update is actually crucial due to a UIDeviceFamily ios field change:
from string to integer, it blocks attempts to upload .ipa for test or sale.

Please fix asap or let us know how to fix the md5 to complete installation.

* merging manually the sdk has some issue in osx with an indeterminate
result.

thanx in advance
Marco Fusett aka Jaco





--
View this message in context: http://apache-flex-users.
246.n4.nabble.com/air-flash-24-sdk-please-update-to-
release-NOT-beta-tp14516.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Using a variable in a sqlite query

2016-12-26 Thread Greg Dove
Trevor did you also make sure you had a space after the name, before the
opening parethesis?

NOT EXISTS " + name + "(r
NOT EXISTS " + name + " (r




On Tue, Dec 27, 2016 at 8:58 AM, Trevor Holman  wrote:

> Hello,
>
>
>
> I have been struggling with this for some time. Everything I've tried and
> googled has not helped.
>
>
>
> var query:String = "CREATE TABLE IF NOT EXISTS " + name + "(recid INTEGER
> PRIMARY KEY AUTOINCREMENT, object_name TEXT)";
>
> The variable "name" is used to create tables by the user. In the main Flex
> file I use an input field to pass the name into the query string. The
> problem is that I can't seem to separate the query command to create the
> table from the actual table name unless I add the space in the input field
> itself.
>
>
>
> Error #2044: Unhandled SQLErrorEvent:. errorID=3115, operation=execute ,
> message=Error #3115: SQL Error. , details=near 'EXISTSKnives': syntax error
>
>
>
> I've tried concatenating a space everywhere I can think of without any
> luck.
>
>
>
>
> Trevor
>
>


Re: FlexJS : AMFJS Class Mapping

2016-11-13 Thread Greg Dove
What I am suggesting is to try something like this (I have not *actually*
tried this, just typed it up quickly):


var patientList:ArrayList = new ArrayList(evt.data as Array);
typeUntypedItems(patientList);
trace("list=" + patientList);



private function typeUntypedItems(items:ArrayList):void{
if (!items) return;
var l:uint = items.length;
var i:uint;
for (i=0;i wrote:

> Thanks for details, below is my code,
>
> //Patient is AS3 class and i am  trying to map it with
> org.blazeds.vo.Patient, which is java class.
> *registerClassAlias("org.blazeds.vo.Patient",Patient);*
>
> I am getting the list of Patient from BlazeDs side and trying to use it
> like
> below,
>
> trace("Result=" + evt.data);
> var patientList:ArrayList = new ArrayList(evt.data as Array);
> trace("list=" + patientList);
> var patient:Patient = patientList.getItemIndex(0) as Patient;
> trace("Patient=" + patient); // Patient is null here
>
>
>
>
> -
> Regards,
> Prashant
> --
> View this message in context: http://apache-flex-users.
> 246.n4.nabble.com/FlexJS-AMFJS-Class-Mapping-tp14106p14112.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>


Re: FlexJS : AMFJS Class Mapping

2016-11-12 Thread Greg Dove
Hi Prashant,

The methods added to the reflection package were to support storing aliases
(for class mappings) and also retrieving the class based on the stored
alias.

In the patient case the local alias would also be "org.blazeds.vo.Patient"

I am not familiar with the approach you are using for deserializing the amf
in js, but I expect the general approach should be something like this:

a) identify the alias from the inbound amf data (seems like the
_explicitType field in your data)
b) retrieve the local class that corresponds to that alias and instantiate
an instance using getClassByAlias method from the _explicitType value:  var
classToInstantiate:Class = getClassByAlias("org.blazeds.vo.Patient");
This class should have been already registered using registerClassAlias at
some earlier point in time.
c) populate the fields of that typed instance based on the value of the
fields during deserialization. Ideally this should happen during
deserialization directly into the new typed instance instead of creating
one generic object during deserialization and then using it to subsequently
populate the typed instance.

If you are using a 3rd party library then unless it has support for the
explicitType mappings (to retrieve from getClassByAlias) perhaps you will
need to work from the object structure with the _explictType fields and
recreate the typed object structure from it (again, it would be helpful if
the library had some sort of mapping to avoid this 'double handling'). This
could be more complicated if the inbound amf has instances with nested
custom class fields, but should be straightforward for basic value object
type scenarios (as per your Patient example).


Hopefully that makes sense let me know if I can clarify any of the
above.


cheers,
Greg



On Sun, Nov 13, 2016 at 5:27 AM, PKumar  wrote:

> Hi,
>
> I am working on amfjs integration and it almost done. but i need to map the
> java clas object to AS3 class object. I am getting the _explicitType from
> BlazeDS side but could not map it with AS3 object. i also used the
> registerClassAlias but nothing working. I attached the trace from chorme.
> Please suggest how can i do it in FlexJS.
>
> 
>
>
>
> -
> Regards,
> Prashant
> --
> View this message in context: http://apache-flex-users.
> 246.n4.nabble.com/FlexJS-AMFJS-Class-Mapping-tp14106.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>


Re: FlexJS: Binding Issue

2016-09-24 Thread Greg Dove
I did try this quickly, and I could not get it to compile. But I also have
not really got things set up correctly to use FlexJS in my IDE (Intellij).

I think the nightly build might be stalled at September 14, when I look
inside the archive at
FlexJS_Nightly\temp\apache-flex-flexjs-0.8.0-bin.zip

all the internal files in the archive appear to be dated September 14 (this
may be in my local timezone, not sure).
So I think we might need Alex or someone else who knows about the nightly
build setup to check this.




On Sun, Sep 25, 2016 at 4:42 PM, PKumar  wrote:

> Thanks Greg, but what  i noticed that nightly build is broken my others
> examples also. might be  some other development is going on.
>
>
>
> -
> Regards,
> Prashant
> --
> View this message in context: http://apache-flex-users.
> 246.n4.nabble.com/FlexJS-Binding-Issue-tp13553p13619.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>


Re: FlexJS: Binding Issue

2016-09-24 Thread Greg Dove
I have this working locally in both, so perhaps the nightly builds are not
updated. I will download and check against a nightly build and report back
in 20 mins



On Sun, Sep 25, 2016 at 4:31 PM, PKumar  wrote:

> Not working, validated in both side Flash & JS.
>
>
>
> -
> Regards,
> Prashant
> --
> View this message in context: http://apache-flex-users.
> 246.n4.nabble.com/FlexJS-Binding-Issue-tp13553p13616.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>


Re: FlexJS: Binding Issue

2016-09-24 Thread Greg Dove
Hi Prashant,

Please try with this:



 

at the Application level, like so


  



 
 








On Sun, Sep 25, 2016 at 4:09 PM, PKumar  wrote:

> Hi Greg,
>
> I took the latest nightly build and validated the binding. but it is not
> working. below is my sample code.
>
> 
> 
> 
> 
> 
> 
> 
>  text="{txtInput1.text}"/>
> 
> 
> 
>
> Also VContainer also not working as expected on JS side. textinput is not
> showing in vertically.
> Please suggest.
>
>
>
> -
> Regards,
> Prashant
> --
> View this message in context: http://apache-flex-users.
> 246.n4.nabble.com/FlexJS-Binding-Issue-tp13553p13614.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>


Re: FlexJS: Binding Issue

2016-09-18 Thread Greg Dove
Hi Prashant,

I recently became a committer for the project, but I have been working
mostly at the unit level in lower level framework code, unrelated to UI
components, so I had not even used a TextInput component in any testing to
date yet, although I did do some work on general binding-related code
recently.

I'll leave it for others to answer you with more details on the binding
classes, not because I don't want to, but because I am not yet familiar
with much of the history of decision-making with this, other than the
general principle of PAYG which Alex already mentioned.

I have added the fix for TextInput to the develop branch code, so it should
be available (I expect) in the next nightly build, if you want to try this
with FlexJS Nightly instead of 0.7.0 (FlexJS Nightly should be available
via the SDK installer app after right-clicking and choosing 'show Dev
builds' ).

BTW your earlier example was particularly good in the sense that it allowed
me to quickly check what was wrong, because it was a minimal example. If
you do notice any other issues, yours is a great example of how to present
them to us so we can quickly address them (whether it is by explanation or
to resolve an underlying issue in the code). Thanks again for highlighting
this issue.

cheers,
Greg



On Sun, Sep 18, 2016 at 9:35 PM, PKumar  wrote:

> Thanks for  info Greg, I am using FlexJS0.7.0.  There are different binding
> bead available in FlexJS and  no doc available on these. So if you can
> provide brief info on below binding statement that will be really helpful
> for me to distinguish.
>
> ApplicationDataBinding
> ViewDataBinding
> SimpleBinding
> ConstantBinding
> ContainerDataBinding
> MXMLBeadViewDataBinding
> BindableCSSStyles
>
>
>
> -
> Regards,
> Prashant
> --
> View this message in context: http://apache-flex-users.
> 246.n4.nabble.com/FlexJS-Binding-Issue-tp13553p13561.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>


Re: FlexJS: Binding Issue

2016-09-17 Thread Greg Dove
Hi Prashant,

I believe you have discovered a small bug, thanks for bringing it to our
attention.

I followed Alex's advice but varied it slightly, and have gotten it working
locally with



  

at the application level, but that alone is not sufficient, unfortunately.

The TextInput class itself is missing a couple of
[Bindable(event="change")] metadata elements
from its text and html getters, which provides the compiler with the clues
to generate the necessary binding code.

Are you using nightly builds or the last release?
We can definitely have this fixed in the next release, but if you are happy
to use nightly builds, it could be available to you in the next day or so ,


cheers,
Greg


On Sun, Sep 18, 2016 at 3:27 AM, PKumar  wrote:

> Thanks for explanation Alex,
>
> I tried the provided sample code but it is not working. We have superb
> support of data binding in regular FlexSDK with options to optimize.
>
> My purpose  to  understand FlexJS binding effectively  and create series of
> example so these can help others also.
>
> BindingUtils class contains utility methods  to use data binding in action
> script. check the below ASDOC URL:
> http://help.adobe.com/en_US/FlashPlatform/reference/
> actionscript/3/mx/binding/utils/BindingUtils.html
>
>
>
>
> -
> Regards,
> Prashant
> --
> View this message in context: http://apache-flex-users.
> 246.n4.nabble.com/FlexJS-Binding-Issue-tp13553p13556.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>


Re: FlexJS question - ByteArray vs. BinaryData

2016-07-17 Thread Greg Dove
Harbs,

FYI I have made progress on this and expect I will have something to share
with you in a couple of days.

What is your preferred way to submit a patch for review? Is it easiest to
make a pull request against the github mirror? (I use git a lot, but have
somehow avoided making a pull request for anything so far, so this would be
something new for me!). Otherwise I can link to or send patch files etc -
whatever works best.

cheers,
Greg



On Thu, Jul 14, 2016 at 9:38 PM, Harbs <harbs.li...@gmail.com> wrote:

> FYI, I just added an “array” getter which returns the underlying array of
> bytes. The exact type is different on the different platforms.
>
> Alex, I tried to make the type “TypedArray” instead of “Uint8Array” on the
> JS side, but TypedArray was not recognized for some reason. Any ideas on
> why that might be?
>
> Harbs
>
> On Jul 14, 2016, at 9:33 AM, Greg Dove <greg.d...@gmail.com> wrote:
>
> > Harbs and Alex, thanks for your explanations.
> >
> > I guess 'drop-in' replacement is quite unrealistic. But I think if could
> be
> > closer to the IDataInput/IDataOutput, and given that ByteArray is a
> common
> > utility class in many libraries, particularly for low-level parsing of
> > various formats, the closer the better imo.
> >
> > In my experience most ByteArray use seems to be mostly sequential reading
> > or writing which uses the flash class' read/write methods instead of
> array
> > access. So in terms of migration effort, swapping array access out
> wherever
> > it is used to the method-based getByteAt, setByteAt is not so bad.
> >
> > Harbs, I picked up the recent updates from nightly and there is more
> there
> > than what I had for sure, but more to do I think - perhaps I can help - I
> > will try to work on this over the next day or so and share where I get
> to.
> > After using Flex for 8 years I am kinda struggling with my setup for
> > FlexJS, and I'm not sure if I can use monkey-patching  for checking the
> > additions I have in mind which I could do in the past with the
> regular
> > flex sdk.
> >
> >
> > cheers
> > Greg
> >
> >
> > On Wed, Jul 13, 2016 at 6:46 PM, Alex Harui <aha...@adobe.com> wrote:
> >
> >>
> >>
> >> On 7/12/16, 3:57 PM, "Greg Dove" <greg.d...@gmail.com> wrote:
> >>
> >>> I have dipped my toes into FlexJS for the first time. I am evaluating
> >>> FlexJS for a migration away from Flex4/flash and figured I would try to
> >>> cross compile an isolated a3 library that is a core dependency for my
> >>> client's project.
> >>>
> >>> It seems there is no direct substitute for flash.utils.ByteArray on
> the js
> >>> side, The nearest I could find was org.apache.flex.utils.BinaryData
> which
> >>> seems to be a partial proxy implementation for ByteArray.
> >>>
> >>> BinaryData does not implement IDataInput and IDataOutput and therefore
> >>> cannot simply be used in place of the original ByteArray in arbitrary
> >>> code.
> >>>
> >>> Is this intentional? Or is this WIP, with a plan to get to the original
> >>> interfaces? Or am I looking in the wrong place for what I am trying to
> do
> >>> (entirely possible!).
> >>
> >> IMO, FlexJS is a WIP, but there is no "plan" per-se.
> >>
> >> Unlike Flex, FlexJS is intended to support multiple component sets.  The
> >> Basic set we have released so far is meant to thinly wrap
> Browser/HTML/JS
> >> APIs so that when you compose an application, the result has as little
> >> overhead as possible when compared to writing an HTML/JS app directly in
> >> JS.  It isn't a goal for these components to emulate Flash.  Instead,
> the
> >> SWF versions of those components are trying to emulate the browser.
> >>
> >> There is an experiment under way to try to see how hard it would be to
> >> make a component set that supports most (but not all) Flex APIs.  We
> >> received several opinions that the Basic set is too big of a migration
> >> step for existing Flex code bases.  Flex is already heavy so making a
> >> heavy component set that lowers migration pain by spending code on
> >> emulating more of Flex in the browser might be viable.  This component
> set
> >> is a ton of work and isn't a top priority on my list right now and could
> >> use more volunteers to help.
> >>
> >> ByteArray isn't even a Flex API.  But it is often used so I suppose a
> >

Re: FlexJS question - ByteArray vs. BinaryData

2016-07-14 Thread Greg Dove
Oh I see that issue I mentioned below was only a change that happened
today.

 "js-config-template (plus jquery and node): added missing reference to
Core.swc, which is required for org.apache.flex.utils.Language"

So if the above change is necessary then the ant build scripts should
probably change to avoid for the framework build, or maybe the lower level
configs could specify the dependency on GCL.swc alone (without setting the
append attribute - I think there is that option here, which overrides?). I
hope that makes sense

On Fri, Jul 15, 2016 at 3:34 PM, Greg Dove <greg.d...@gmail.com> wrote:

> Thanks Harbs, I am on windows, but did something similar with a windows
> batch file.
>
> Instructions here [1] are also similar but include a couple of differences:
> 1. playerglobal seems to be required as 11.1.
> When I tried using a more recent playerglobal version as per those
> instructions I had to update the ant scripts which did not handle the more
> recent swfversion conversions in task "playerglobal-setswfversion"
> 2. Also mention the need to set GOOG-HOME envar. which I actually set to
> point inside my flex-asjs install, like so:
> set GOOG_HOME=%BASE_DIR%/flex-asjs/js/lib/google/closure-library
> I did not try without GOOG_HOME set, so not sure if it is absolutely
> required or not
>
>
> I finally got it to build, but not without making some changes
>
> It was breaking at the step when trying to build CoreJS.swc.
> Actually I am a bit confused here, because it seems that somewhere the
> script is changing the js-config.xml inside flex-asjs/frameworks by copying
> from js-config-template.xml. The updated js-config.xml inside frameworks
> now specifies a dependency on Core.swc see [2] (which does not yet exist)
> and is used to attempt to build CoreJS.swc which fails (Core.swc and others
> look to be built following the JS.swc versions in the frameworks ant
> script).
>
>
> I commented out this dependency
> 
> inside the 3 config.template.xml files that have that and the 'ant all'
> build then made it through to completion, so I am assuming/hoping all is
> well.
>
>
> This above issue may not be apparent to you if you are doing work on the
> isolated parts where the build scripts in the deeper directories do not
> change the configs, but I suspect it will be there for you if you did a
> full build. It's not the most encouraging experience for  someone trying
> this for the first time, and I don't think I did anything wrong (although
> perhaps that is wrong!). Anyhow I think I might be set up to look into the
> BinaryData/ByteArray stuff now :)
>
>
> 1. https://github.com/apache/flex-asjs/blob/develop/READme
>
> 2.
> https://github.com/apache/flex-asjs/blob/develop/frameworks/js-config-template.xml#L73
>
>
> On Thu, Jul 14, 2016 at 8:59 PM, Harbs <harbs.li...@gmail.com> wrote:
>
>> Monkey patching does not work very well.
>>
>> Here’s my setup (on Mac — Windows is similar):
>>
>> 1) Follow the instructions here to get your basic environment setup:
>> https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Developer+Setup
>>
>> 2) If you want to use Flash Builder, read the section on Flash Builder on
>> the above page and this as well:
>> https://cwiki.apache.org/confluence/display/FLEX/Using+FlexJS+with+Adobe+Flash+Builder
>>
>> 3) I have a shell script to set all my environment variables in each
>> shell like this:
>> #!/bin/sh
>>
>> export FALCON_HOME=/Users/harbs/Documents/ApacheFlex/flex-falcon/compiler
>> export FLEXUNIT_HOME=/Users/harbs/Documents/ApacheFlex/flex-flexunit
>> export FLEX_HOME=/Users/harbs/Documents/ApacheFlex/flex-sdk
>> export
>> AIR_HOME=/Users/harbs/Documents/ApacheFlex/frameworks/AIRSDK_Compiler
>> export
>> PLAYERGLOBAL_HOME=/Users/harbs/Documents/ApacheFlex/frameworks/libs/player
>> export
>> FLASHPLAYER_DEBUGGER=/Users/harbs/Documents/ApacheFlex/frameworks/Flash\
>> Player\ Debugger.app/Contents/MacOS/Flash\ Player\ Debugger
>> export FLEXJS_HOME=/Users/harbs/Documents/ApacheFlex/flex-asjs
>>
>> 4) You can then run ant on either flex-asjs or any one of the individual
>> Projects such as Core. For doing incremental builds of the projects, that
>> is highly recommended.
>>
>> 5) To use the changes with a nightly build, I run the following script
>> which copies the changed files:
>> rsync -r -u --include="*.swc"
>> /Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/libs
>> /Users/harbs/Documents/Apache\ Flex\ Dist/FlexJSNightly/frameworks
>> rsync -r -u --include="*.js"
>> /Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/js/Flex

Re: FlexJS question - ByteArray vs. BinaryData

2016-07-14 Thread Greg Dove
Thanks Harbs, I am on windows, but did something similar with a windows
batch file.

Instructions here [1] are also similar but include a couple of differences:
1. playerglobal seems to be required as 11.1.
When I tried using a more recent playerglobal version as per those
instructions I had to update the ant scripts which did not handle the more
recent swfversion conversions in task "playerglobal-setswfversion"
2. Also mention the need to set GOOG-HOME envar. which I actually set to
point inside my flex-asjs install, like so:
set GOOG_HOME=%BASE_DIR%/flex-asjs/js/lib/google/closure-library
I did not try without GOOG_HOME set, so not sure if it is absolutely
required or not


I finally got it to build, but not without making some changes

It was breaking at the step when trying to build CoreJS.swc.
Actually I am a bit confused here, because it seems that somewhere the
script is changing the js-config.xml inside flex-asjs/frameworks by copying
from js-config-template.xml. The updated js-config.xml inside frameworks
now specifies a dependency on Core.swc see [2] (which does not yet exist)
and is used to attempt to build CoreJS.swc which fails (Core.swc and others
look to be built following the JS.swc versions in the frameworks ant
script).


I commented out this dependency

inside the 3 config.template.xml files that have that and the 'ant all'
build then made it through to completion, so I am assuming/hoping all is
well.


This above issue may not be apparent to you if you are doing work on the
isolated parts where the build scripts in the deeper directories do not
change the configs, but I suspect it will be there for you if you did a
full build. It's not the most encouraging experience for  someone trying
this for the first time, and I don't think I did anything wrong (although
perhaps that is wrong!). Anyhow I think I might be set up to look into the
BinaryData/ByteArray stuff now :)


1. https://github.com/apache/flex-asjs/blob/develop/READme

2.
https://github.com/apache/flex-asjs/blob/develop/frameworks/js-config-template.xml#L73


On Thu, Jul 14, 2016 at 8:59 PM, Harbs <harbs.li...@gmail.com> wrote:

> Monkey patching does not work very well.
>
> Here’s my setup (on Mac — Windows is similar):
>
> 1) Follow the instructions here to get your basic environment setup:
> https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Developer+Setup
>
> 2) If you want to use Flash Builder, read the section on Flash Builder on
> the above page and this as well:
> https://cwiki.apache.org/confluence/display/FLEX/Using+FlexJS+with+Adobe+Flash+Builder
>
> 3) I have a shell script to set all my environment variables in each shell
> like this:
> #!/bin/sh
>
> export FALCON_HOME=/Users/harbs/Documents/ApacheFlex/flex-falcon/compiler
> export FLEXUNIT_HOME=/Users/harbs/Documents/ApacheFlex/flex-flexunit
> export FLEX_HOME=/Users/harbs/Documents/ApacheFlex/flex-sdk
> export
> AIR_HOME=/Users/harbs/Documents/ApacheFlex/frameworks/AIRSDK_Compiler
> export
> PLAYERGLOBAL_HOME=/Users/harbs/Documents/ApacheFlex/frameworks/libs/player
> export
> FLASHPLAYER_DEBUGGER=/Users/harbs/Documents/ApacheFlex/frameworks/Flash\
> Player\ Debugger.app/Contents/MacOS/Flash\ Player\ Debugger
> export FLEXJS_HOME=/Users/harbs/Documents/ApacheFlex/flex-asjs
>
> 4) You can then run ant on either flex-asjs or any one of the individual
> Projects such as Core. For doing incremental builds of the projects, that
> is highly recommended.
>
> 5) To use the changes with a nightly build, I run the following script
> which copies the changed files:
> rsync -r -u --include="*.swc"
> /Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/libs
> /Users/harbs/Documents/Apache\ Flex\ Dist/FlexJSNightly/frameworks
> rsync -r -u --include="*.js"
> /Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/js/FlexJS/generated-sources
> /Users/harbs/Documents/Apache\ Flex\ Dist/FlexJSNightly/frameworks/js/FlexJS
>
> HTH,
> Harbs
>
> On Jul 14, 2016, at 9:33 AM, Greg Dove <greg.d...@gmail.com> wrote:
>
> > Harbs and Alex, thanks for your explanations.
> >
> > I guess 'drop-in' replacement is quite unrealistic. But I think if could
> be
> > closer to the IDataInput/IDataOutput, and given that ByteArray is a
> common
> > utility class in many libraries, particularly for low-level parsing of
> > various formats, the closer the better imo.
> >
> > In my experience most ByteArray use seems to be mostly sequential reading
> > or writing which uses the flash class' read/write methods instead of
> array
> > access. So in terms of migration effort, swapping array access out
> wherever
> > it is used to the method-based getByteAt, setByteAt is not so bad.
> >
> > Harbs, I picked up the recent updates

Re: FlexJS question - ByteArray vs. BinaryData

2016-07-14 Thread Greg Dove
Harbs and Alex, thanks for your explanations.

I guess 'drop-in' replacement is quite unrealistic. But I think if could be
closer to the IDataInput/IDataOutput, and given that ByteArray is a common
utility class in many libraries, particularly for low-level parsing of
various formats, the closer the better imo.

In my experience most ByteArray use seems to be mostly sequential reading
or writing which uses the flash class' read/write methods instead of array
access. So in terms of migration effort, swapping array access out wherever
it is used to the method-based getByteAt, setByteAt is not so bad.

Harbs, I picked up the recent updates from nightly and there is more there
than what I had for sure, but more to do I think - perhaps I can help - I
will try to work on this over the next day or so and share where I get to.
After using Flex for 8 years I am kinda struggling with my setup for
FlexJS, and I'm not sure if I can use monkey-patching  for checking the
additions I have in mind which I could do in the past with the regular
flex sdk.


cheers
Greg


On Wed, Jul 13, 2016 at 6:46 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 7/12/16, 3:57 PM, "Greg Dove" <greg.d...@gmail.com> wrote:
>
> >I have dipped my toes into FlexJS for the first time. I am evaluating
> >FlexJS for a migration away from Flex4/flash and figured I would try to
> >cross compile an isolated a3 library that is a core dependency for my
> >client's project.
> >
> >It seems there is no direct substitute for flash.utils.ByteArray on the js
> >side, The nearest I could find was org.apache.flex.utils.BinaryData which
> >seems to be a partial proxy implementation for ByteArray.
> >
> >BinaryData does not implement IDataInput and IDataOutput and therefore
> >cannot simply be used in place of the original ByteArray in arbitrary
> >code.
> >
> >Is this intentional? Or is this WIP, with a plan to get to the original
> >interfaces? Or am I looking in the wrong place for what I am trying to do
> >(entirely possible!).
>
> IMO, FlexJS is a WIP, but there is no "plan" per-se.
>
> Unlike Flex, FlexJS is intended to support multiple component sets.  The
> Basic set we have released so far is meant to thinly wrap Browser/HTML/JS
> APIs so that when you compose an application, the result has as little
> overhead as possible when compared to writing an HTML/JS app directly in
> JS.  It isn't a goal for these components to emulate Flash.  Instead, the
> SWF versions of those components are trying to emulate the browser.
>
> There is an experiment under way to try to see how hard it would be to
> make a component set that supports most (but not all) Flex APIs.  We
> received several opinions that the Basic set is too big of a migration
> step for existing Flex code bases.  Flex is already heavy so making a
> heavy component set that lowers migration pain by spending code on
> emulating more of Flex in the browser might be viable.  This component set
> is a ton of work and isn't a top priority on my list right now and could
> use more volunteers to help.
>
> ByteArray isn't even a Flex API.  But it is often used so I suppose a
> component set that emulates Flex will likely have to support most of
> ByteArray.  The Basic set is supposed to be pay-as-you-go and use plugins
> for additional functionality, so IDataInput/IDataOutput might be replaced
> by plug-ins that support similar APIs.
>
> But really, what actually happens is often up to the person that codes it.
>  We don't have resources to mark every API as needing implementation, and
> since we want to make many implementations as plugins, the API may not be
> the same anyway, so we just need folks to jump in and deal with holes in
> the documentation and code and help make things better for the next person
> who jumps in.
>
> HTH,
> -Alex
>
>


FlexJS question - ByteArray vs. BinaryData

2016-07-12 Thread Greg Dove
I have dipped my toes into FlexJS for the first time. I am evaluating
FlexJS for a migration away from Flex4/flash and figured I would try to
cross compile an isolated a3 library that is a core dependency for my
client's project.

It seems there is no direct substitute for flash.utils.ByteArray on the js
side, The nearest I could find was org.apache.flex.utils.BinaryData which
seems to be a partial proxy implementation for ByteArray.

BinaryData does not implement IDataInput and IDataOutput and therefore
cannot simply be used in place of the original ByteArray in arbitrary code.

Is this intentional? Or is this WIP, with a plan to get to the original
interfaces? Or am I looking in the wrong place for what I am trying to do
(entirely possible!).

If BinaryData is ultimately intended as a drop-in replacement for ByteArray
I guess my question right now is why does it not implement those interfaces
as it is and contain unimplemented stub methods/getters/setters etc on the
js side for the unimplemented parts? (even with 'throw new
UnimplementedError()' during WIP,  or something else that clearly shows
intent - and possibly guides people to contribute the specific missing
parts)


Re: SoftKeyboard and TextField combined

2016-02-17 Thread Greg Dove
I haven't done this specifically, but I have certainly moved input fields
to cope with softkeyboard appearance/size, while keeping the app's
background static. I am not aware whether what you described exists as an
ANE in its own right, but if not, I think you will need an ANE at the very
least for accurate soft keyboard dimensions, the softKeyboardRect is not
accurate on some devices. I have not used this one, but I have down
something similar, and it would probably help for some android
devices/keyboard combinations:
https://github.com/freshplanet/ANE-KeyboardSize



On Thu, Feb 18, 2016 at 8:07 AM, Stuart Thomas <
stho...@beyondconnect.com.invalid> wrote:

> Hey Guys,
>
> For your typical messaging scenario - where the textfield is on top of the
> softkeyboard as it opens and closes..:
>
> I'm using a combination of softkeyboard events and focus events, with a
> move effect to make it appear that a textfield is bound to the softkeyboard
> - but it's a bit clunky.
>
> Has anyone solved this in a more elegant way?  Perhaps an ANE?
>
> Many Thanks,
>
>  -sT


Re: Flex Mobile App crashes on Startup (iOS)

2015-05-29 Thread Greg Dove
I suggest you try with the latest Air 18 beta. There have definitely been
some bugs have been fixed. One iOS one that I encountered with 17 was with
Boolean getters/setters via variables typed with an interface.

There may be others that were fixed also, check the beta release notes
here:
http://labsdownload.adobe.com/pub/labs/flashruntimes/shared/air18_flashplayer18_releasenotes.pdf


On Fri, May 29, 2015 at 9:07 PM, PanolifeHB s.sie...@panolife.de wrote:

 Hey,
 I just updated my AIR Version from 14 to 17 (to comply the new 64bit
 guideline) and now the app (standard debug builds and release builds) keeps
 on crashing on startup: iOS launch screen appears, the apps Splash Screen
 as
 well, then the app just closes.

 I first tried removing ANEs and other libraries and in the end just created
 an empty Project (new Flex Mobile Project in Flash Builder 4.7)  that
 just
 has a View with a Label. Even this one crashes.

 I compile on Windows 7, Flash Builder 4.7, Flex SDK 4.13, Air SDK 17.

 The iPad reports the following:
 Application 'UIKitApplication:de.pl.testapp.debug[0x5ea6]' exited
 abnormally
 with signal 11: Segmentation fault: 11

 And the Error Log tells me:
 Incident Identifier: F58E991C-B9DE-41B8-97D6-274BD431FD8E
 CrashReporter Key:   1614577c3a5fce692ee3b623abce81b4f8f7efe6
 Hardware Model:  iPhone3,1
 Process: testapp [494]
 Path:

 /var/mobile/Applications/047FA705-2D4B-4D49-9F3A-5DA1A7792231/testapp.app/testapp
 Identifier:  de.pl.testapp.debug
 Version: 0.0.0 (0.0.0)
 Code Type:   ARM (Native)
 Parent Process:  launchd [1]

 Date/Time:   2015-05-29 11:05:08.068 +0200
 OS Version:  iOS 7.0.3 (11B511)
 Report Version:  104

 Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
 Exception Subtype: KERN_INVALID_ADDRESS at 0x7001
 Triggered by Thread:  0

 Thread 0 Crashed:
 0   testapp 0x0123bc80 0x7b000 + 18615424
 1   testapp 0x0120633a 0x7b000 + 18395962
 2   testapp 0x012062d8 0x7b000 + 18395864
 3   testapp 0x011fd038 0x7b000 + 18358328
 4   testapp 0x00f87854 0x7b000 + 15779924
 5   testapp 0x00f8ae9c 0x7b000 + 15793820
 6   testapp 0x00f8afb8 0x7b000 + 15794104
 7   testapp 0x00f8b908 0x7b000 + 15796488
 8   testapp 0x0123aea8 0x7b000 + 18611880
 9   testapp 0x0123bb74 0x7b000 + 18615156
 10  testapp 0x0123b8f6 0x7b000 + 18614518
 11  testapp 0x0123aedc 0x7b000 + 18611932
 12  testapp 0x0123bb74 0x7b000 + 18615156
 13  testapp 0x0123b8f6 0x7b000 + 18614518
 14  testapp 0x0123b850 0x7b000 + 18614352
 15  testapp 0x01239b94 0x7b000 + 18606996
 16  testapp 0x0123a004 0x7b000 + 18608132
 17  testapp 0x01240ede 0x7b000 + 18636510
 18  testapp 0x011e4c2e 0x7b000 + 18258990
 19  testapp 0x01226bc2 0x7b000 + 18529218
 20  testapp 0x011dc5de 0x7b000 + 18224606
 21  testapp 0x00f90380 0x7b000 + 15815552
 22  testapp 0x00df0d78 0x7b000 + 14114168
 23  testapp 0x00df108c 0x7b000 + 14114956
 24  testapp 0x00df725c 0x7b000 + 14139996
 25  testapp 0x00df77f0 0x7b000 + 14141424
 26  testapp 0x00df7bb4 0x7b000 + 14142388
 27  testapp 0x00defd00 0x7b000 + 14109952
 28  testapp 0x00f532d4 0x7b000 + 15565524
 29  testapp 0x000a22f0 0x7b000 + 160496
 30  testapp 0x00091960 0x7b000 + 92512
 31  testapp 0x01210efc 0x7b000 + 18439932
 32  testapp 0x0122661c 0x7b000 + 18527772
 33  testapp 0x01225fc6 0x7b000 + 18526150
 34  testapp 0x01225d6a 0x7b000 + 18525546
 35  testapp 0x00f31d38 0x7b000 + 15428920
 36  testapp 0x00f31898 0x7b000 + 15427736
 37  testapp 0x00f3090c 0x7b000 + 15423756
 38  testapp 0x00d4dff4 0x7b000 + 13447156
 39  testapp 0x000bf4f4 0x7b000 + 279796
 40  testapp 0x01210efc 0x7b000 + 18439932
 41  testapp 0x0122661c 0x7b000 + 18527772
 42  testapp 0x01225fc6 0x7b000 + 18526150
 43  testapp 0x01225d6a 0x7b000 + 18525546
 44  testapp 0x00f31d38 0x7b000 + 15428920
 45  testapp 0x00f31394 0x7b000 + 15426452
 46  testapp 0x00f3 0x7b000 + 15438916
 47  testapp 0x00d3d7e0 0x7b000 + 13379552
 48  testapp 0x01210efc 0x7b000 + 18439932
 49  testapp 0x0122661c 0x7b000 + 18527772
 50  testapp 0x01225fc6 0x7b000 + 18526150
 51  testapp 0x01225d6a 0x7b000 + 18525546
 52  testapp 0x00ffae44 0x7b000 + 16252484
 53  testapp 0x00e90714 0x7b000 + 14767892
 54  testapp 0x00e8c7c0 0x7b000 + 14751680
 55  testapp 0x00e90dd4 0x7b000 + 14769620
 56  testapp 0x00e21968 0x7b000 + 

Re: OpenSSL Flex

2015-05-07 Thread Greg Dove
actually I'm using air 17 and getting this for the first time...just fyi

Greg Dove
Dove Software Development Ltd
http://greg-dove.com

On Fri, May 8, 2015 at 1:46 PM, OmPrakash Muppirala bigosma...@gmail.com
wrote:

 Oh yes, it must be regarding this Adobe AIR related issue:

 https://forums.adobe.com/thread/1495664

 Matthew, you mentioned Flex 4.12.  You might have got the then current
 version of AIR which probably had this issue.   I think upgrading to Flex
 4.14.1  + AIR 17 (latest supported by Apache Flex) should fix the issue.

 Thanks,
 Om

 On Thu, May 7, 2015 at 6:41 PM, Greg Dove greg.d...@gmail.com wrote:

  I got notice of a 60 day warning too, with builds that had not had any
  warning previously. At the moment I wonder if it might be Air SDK related
  (although I thought they had addressed that) otherwise I will be checking
  to see if older ANEs might have a static linked copy of the deprecated
  OpenSSL lib.
 
 
  On Fri, May 8, 2015 at 1:38 PM, Matthew Weir
 mattcomm...@yahoo.com.invalid
  
  wrote:
 
   I should also state that the app warned against is one in the Google
   playstore and not a web based app.
  
  
   Thanks Om
  
   Sent from Yahoo Mail on Android
  
   From:OmPrakash Muppirala bigosma...@gmail.com
   Date:Thu, May 7, 2015 at 9:31 PM
   Subject:Re: OpenSSL  Flex
  
   It might be related to the server on which the app is hosted on.  In
   chrome, click on the icon next to the url and see if there are warning
   messages regarding the site's encryption, certificates, etc.
  
   Thanks,
   Om
  
  
   On May 7, 2015 6:21 PM, Matthew Weir mattcomm...@yahoo.com.invalid
   wrote:
  
Hey all,
Just got a security warning from Google about one of my apps using
outdated OpenSSL.  Is this something that's on the Flex side of the
spectrum? Or from the web APIs that it's talking to?
If it is Flex, I think the last SDK I compiled it against was 4.12.
  Will
compiling against 4.14.1 resolve it?
Thanks,Matthew
  
  
 



Re: OpenSSL Flex

2015-05-07 Thread Greg Dove
I got notice of a 60 day warning too, with builds that had not had any
warning previously. At the moment I wonder if it might be Air SDK related
(although I thought they had addressed that) otherwise I will be checking
to see if older ANEs might have a static linked copy of the deprecated
OpenSSL lib.


On Fri, May 8, 2015 at 1:38 PM, Matthew Weir mattcomm...@yahoo.com.invalid
wrote:

 I should also state that the app warned against is one in the Google
 playstore and not a web based app.


 Thanks Om

 Sent from Yahoo Mail on Android

 From:OmPrakash Muppirala bigosma...@gmail.com
 Date:Thu, May 7, 2015 at 9:31 PM
 Subject:Re: OpenSSL  Flex

 It might be related to the server on which the app is hosted on.  In
 chrome, click on the icon next to the url and see if there are warning
 messages regarding the site's encryption, certificates, etc.

 Thanks,
 Om


 On May 7, 2015 6:21 PM, Matthew Weir mattcomm...@yahoo.com.invalid
 wrote:

  Hey all,
  Just got a security warning from Google about one of my apps using
  outdated OpenSSL.  Is this something that's on the Flex side of the
  spectrum? Or from the web APIs that it's talking to?
  If it is Flex, I think the last SDK I compiled it against was 4.12.  Will
  compiling against 4.14.1 resolve it?
  Thanks,Matthew




Re: OpenSSL Flex

2015-05-07 Thread Greg Dove
Google:

Recently we sent you a notification that one or more of your apps should be
upgraded to more recent version of OpenSSL, due to security
vulnerabilities. The notification was sent in error, and we thank you for
previously making the necessary changes to your app.


Greg Dove
Dove Software Development Ltd
http://greg-dove.com

On Fri, May 8, 2015 at 2:33 PM, Jeffry Houser jef...@dot-com-it.com wrote:


  I got the same message and the last time my app was compiled predated
 Flex being donated to Apache.






 On 5/7/2015 9:49 PM, Greg Dove wrote:

 actually I'm using air 17 and getting this for the first time...just fyi

 Greg Dove
 Dove Software Development Ltd
 http://greg-dove.com

 On Fri, May 8, 2015 at 1:46 PM, OmPrakash Muppirala bigosma...@gmail.com
 
 wrote:

  Oh yes, it must be regarding this Adobe AIR related issue:

 https://forums.adobe.com/thread/1495664

 Matthew, you mentioned Flex 4.12.  You might have got the then current
 version of AIR which probably had this issue.   I think upgrading to Flex
 4.14.1  + AIR 17 (latest supported by Apache Flex) should fix the issue.

 Thanks,
 Om

 On Thu, May 7, 2015 at 6:41 PM, Greg Dove greg.d...@gmail.com wrote:

  I got notice of a 60 day warning too, with builds that had not had any
 warning previously. At the moment I wonder if it might be Air SDK
 related
 (although I thought they had addressed that) otherwise I will be
 checking
 to see if older ANEs might have a static linked copy of the deprecated
 OpenSSL lib.


 On Fri, May 8, 2015 at 1:38 PM, Matthew Weir

 mattcomm...@yahoo.com.invalid

 wrote:

  I should also state that the app warned against is one in the Google
 playstore and not a web based app.


 Thanks Om

 Sent from Yahoo Mail on Android

 From:OmPrakash Muppirala bigosma...@gmail.com
 Date:Thu, May 7, 2015 at 9:31 PM
 Subject:Re: OpenSSL  Flex

 It might be related to the server on which the app is hosted on.  In
 chrome, click on the icon next to the url and see if there are warning
 messages regarding the site's encryption, certificates, etc.

 Thanks,
 Om


 On May 7, 2015 6:21 PM, Matthew Weir mattcomm...@yahoo.com.invalid
 wrote:

  Hey all,
 Just got a security warning from Google about one of my apps using
 outdated OpenSSL.  Is this something that's on the Flex side of the
 spectrum? Or from the web APIs that it's talking to?
 If it is Flex, I think the last SDK I compiled it against was 4.12.

 Will

 compiling against 4.14.1 resolve it?
 Thanks,Matthew




 --
 Jeffry Houser
 Technical Entrepreneur
 http://www.jeffryhouser.com
 203-379-0773




Re: Flex AIR iPad App security concerns

2015-03-04 Thread Greg Dove
I don't think that technique will work on iOS, because I am pretty sure
that Loader.loadBytes does not work for content with actionscript bytecode.
You can only load external swfs which have been processed during AIR
packaging



On Thu, Mar 5, 2015 at 4:01 AM, Deepak MS megharajdee...@gmail.com wrote:

 Hi Erik,
 I tried that. But it gives me a blank screen. I'm using native extensions.
 Will that be an issue here? I tried wrapping it both in the main shell and
 also in the child application.

 On Wed, Mar 4, 2015 at 3:19 PM, Erik de Bruin e...@ixsoftware.nl wrote:

  You may want to check out this technique:
 
 
 
 http://www.ghostwire.com/blog/archives/as3-hiding-assets-and-code-by-embedding-swf-within-another-swf/
 
  EdB
 



Re: Use styles for another applicationDPI possible?

2015-03-04 Thread Greg Dove
In the past I have have had issues with accurate calculation of screen
sizes/diagonals from AIR on android with certain devices.
I definiitely recall issues with this on kindle devices where we had a
cutoff of 7 inches for tablet layout vs. phone layout and the actionscript
value was not accurate leading to a phone classification when the device
was 7 inches on the diagonal. The actionscript Capabilities screenDPI value
was wrong and led to a lower diagonal result than was actually the case.

I ended up writing an extension to get the android values for x_dpi and
y_dpi from this android class:
http://developer.android.com/reference/android/util/DisplayMetrics.html:

Once I had these in actionscript, all was well.




Greg Dove
Dove Software Development Ltd
http://greg-dove.com

On Thu, Mar 5, 2015 at 2:21 PM, kevin.godell kevin.god...@gmail.com wrote:

 Your best option might be to use some css and target the screen diagonal
 size:

 @media (-flex-min-device-diagonal: 6in) {

 s|ActionBar s|Group#titleGroup s|Label.title {
 fontSize : 40;
 }
 }

 Or maybe you can create a top level variable and calculate the screen
 diagonal when the app is created, and use that value to derive a multiplier
 that you can use to size some objects with properties that are not affected
 by css:

 Number(MediaQueryParser.instance.flexDeviceDiagonal)/Capabilities.screenDPI
 gives the diagonal inches of screen. I used mediaqueryparser because it
 will
 have correct size even when debugging on computer.

 And yet another option would be to use this screen diagonal size and set
 some custom states like phonePortrait or phabletLandscape to further layout
 control of the content.

 Personally, I incorporate these 3 techniques in my current project that is
 designed for android and ios devices, including phone, phablet, and tablet.



 -
 .
 --
 View this message in context:
 http://apache-flex-users.246.n4.nabble.com/Use-styles-for-another-applicationDPI-possible-tp9732p9745.html
 Sent from the Apache Flex Users mailing list archive at Nabble.com.



Re: iOS packaging issue within Flex SDK 4.13 air 15

2014-12-05 Thread Greg Dove
IOS packaging mode changed default setting -useLegacyAOT no from previous
-useLegacyAOT yes in air 15. I suggest you try setting that to yes again. I
have encountered similar issues when not doing so.
On 6/12/2014 3:27 AM, 4xy workingfe...@gmail.com wrote:

 Hi folks, it's me again and I have good news) I've made an example that
 reproduces the issue.
 apache-flex-sdk-ios-packaging-bug.zip
 
 http://apache-flex-users.246.n4.nabble.com/file/n8980/apache-flex-sdk-ios-packaging-bug.zip
 

 It includes pom.xml and IDEA project. If you wish you can delete IDEA's
 files and create it from scratch by importing pom.xml. Also you need adt
 (15.0) to be on the path to be possible to pack the app.

 You need to replace the certificates for the app by your own when building
 for iOS. Look at build.props file please.

 If you need extra clarification please tell me.
 Note that I only tested it within FlexSDK 4.13 in couple with Air 15.

 Thanx in advance.



 --
 View this message in context:
 http://apache-flex-users.246.n4.nabble.com/iOS-packaging-issue-within-Flex-SDK-4-13-air-15-tp8842p8980.html
 Sent from the Apache Flex Users mailing list archive at Nabble.com.



Re: Flex App swf initialization failure when working as an Android worker!!!!

2014-03-12 Thread Greg Dove
I can't imagine using a flex application as a worker. I don't think Workers
can access the main display list/stage, and a flex application expects to
do so. It may be because of this that you are seeing the error because
ContextMenu is not available on Android, and that part is nothing to do
with Flex.

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/ui/ContextMenu.html
*AIR profile support:* This feature is not supported on mobile devices or
AIR for TV devices.








On Thu, Mar 13, 2014 at 8:14 AM, Gary Yang flashflex...@gmail.com wrote:

 You have to support it!!!

 Flex's binding, [remote class], collection data models are critical for
 building reacting model which is a key for complex application and this is
 Flex's core value!

 It's already working for Flash Player in browsers, if you can add a few
 lines to make sure

 var defaultMenu:ContextMenu = new ContextMenu();

 won't kill the initialization process, it will be good for now!!

 For the future, I would like to recommend to take a look at Java Spring's
 growth.

 Please!!




 On Wed, Mar 12, 2014 at 2:49 PM, Alex Harui aha...@adobe.com wrote:

  You're trying to run a Flex SWF as a worker and not the main app?  I
 doubt
  that is supported.
 
  -Alex
 
  On 3/12/14 8:43 AM, Gary Yang flashflex...@gmail.com wrote:
 
  https://issues.apache.org/jira/browse/FLEX-34137
  
  
  On Wed, Mar 12, 2014 at 10:26 AM, Gary Yang flashflex...@gmail.com
  wrote:
  
   Error: Error #3731: This feature is not available within this context.
   at
  
 
 spark.components::Application/initContextMenu()[/Users/justinmclean/Docum
 
 ents/ApacheFlex4.12.0/frameworks/projects/spark/src/spark/components/Appl
  ication.as:1832]
at
  
 
 spark.components::Application/initialize()[/Users/justinmclean/Documents/
 
 ApacheFlex4.12.0/frameworks/projects/spark/src/spark/components/Applicati
  on.as:1385]
at AppMain/initialize()
   at
  
 
 mx.managers.systemClasses::ChildManager/childAdded()[/Users/justinmclean/
 
 Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/managers/
  systemClasses/ChildManager.as:197]
at
  
 
 mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[/Users
 
 /justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/sr
  c/mx/managers/systemClasses/ChildManager.as:367]
at
  
 
 mx.managers::SystemManager/initializeTopLevelWindow()[/Users/justinmclean
 
 /Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/managers
  /SystemManager.as:3065]
at mx.managers::SystemManager/
  
  
 
 http://www.adobe.com/2006/flex/mx/internal::kickOff()[/Users/justinmclean
 
 /Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/managers
  /SystemManager.as:2851]
at mx.managers::SystemManager/
  
  
 
 http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[/
 
 Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framewo
  rk/src/mx/managers/SystemManager.as:2731]
at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
at
  
 
 mx.preloaders::Preloader/timerHandler()[/Users/justinmclean/Documents/Apa
 
 cheFlex4.12.0/frameworks/projects/framework/src/mx/preloaders/Preloader.a
  s:572]
   at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
  
 
 



Re: Flex iOs project compiling in a Mac VM under VirtualBox ?

2014-02-06 Thread Greg Dove
I think the distinction needs to be made between creating (or updating
native code in) iOS ANEs for use in a flex/air project and
compiling/packaging a flex/air app that uses a precompiled ANE (with iOS
support).
You need Mac OS for the former, but windows alone is fine for the latter.




On Fri, Feb 7, 2014 at 11:42 AM, Mark Line markl...@gmail.com wrote:

 Sorry I have no idea i've not compiled iOS ane myself.

 You should be able to compile via the command line using: mxmlc
 +configname=airmobile Main.mxml

 Maybe it takes so long as you are virtualizing OS X? leave it on over night
 and see if it finishes, could just be really really slow


 On 6 February 2014 18:29, Claude BERNARDINI cbernard...@ultima-com.net
 wrote:

 
  Flash Builder in the MacOS VM works fine except compiling iOs project...
  This same project compiles good on Flash Builder PC when I deactivate
  ANEs, but I want to compile in a Mac in order to activate these ANEs.
 
  Nothing in the Error Log view.
 
  Could you give me the command line for comiling in mac ?
 
  Please Note that the MacOS freezes (no interaction with the mouse a few
  seconds after the beginning of compilation) but the CPU keeps high
  activity; I let it run more than 2 hours without result. Is It normal ?
  Do you think I can try to run longer time ?
 
  Thanks !
 
 
  Le 2014-02-06 15:26, Mark Line a écrit :
 
   Well it isn't something I've ever tried.
 
  Can you compile anything via Flash Builder? (you said it works fine
  but does that include compiling?)
 
  Have you tried compiling via the command line? Maybe if you posted the
  logs?
 
  Have you looked at the error view in Flash builder: Window - Show
  View - General - Error Log?
 
  There might be a log file in the installation direction? (No idea
  where that is in OS X)
 
  -Original Message-
  From: Claude BERNARDINI [mailto:cbernard...@ultima-com.net]
  Sent: 06 February 2014 14:05
  To: users@flex.apache.org
  Subject: Re: Flex iOs project compiling in a Mac VM under VirtualBox ?
 
  Hi,
 
  Nobody can help ?
 
  Thanks
 
 
  Le 2014-02-05 22:57, Claude BERNARDINI a écrit :
  Hi,
 
  I try to compile a iOs flex Project (with ane)on a iAktos Mac OS 10.7
  VM under VirtualBox.
 
  All seems good :
  - Flash Builder 4.7 works well
  - XCode is installed
 
  But the compilation freezes under Flash Builder.
  Please note I've deactivated the Ane extensions for testing my first
  compilation.
 
  So, did anyone try to compile a Flex iOs project on a Mac VM under
  windows ?
  Is it possible ?
 
 
  Thanks a lot
 
 



Re: relative merits of Haxe vs ActionScript

2014-01-06 Thread Greg Dove
Flex still has substantial advantages on the UI side in my opinion as well.
But Haxe is really quite amazing. There is an increasing set of Haxe UI
libs, although I have not tried any of them personally. There is also
library support for various MVC architectures etc. It does let you write
client (swf, js or other targets) code and serverside (php, java, neko,
nodejs etc) in the same language/codebase (e.g sharing the same dto/vo
definitions). So it has advantages if you want to use a single language to
write both client and server code.

I think the fast memory support is now available directly in actionscript,
although it was certainly true that Haxe had it for a long time prior to
that.



Greg Dove
Dove Software Development Ltd
http://greg-dove.com


On Tue, Jan 7, 2014 at 10:19 AM, Sean Thayne s...@skyseek.com wrote:

 I've used Haxe a bit before. The major downside is UI components. Haxe has
 none. You can use a Haxe library (swc) in a flex project, but you can not
 use Flex in a Haxe project.

 I think Haxe might be good to write cross language SDKs in, but for
 building a whole application. You will need to write your own UI elements
 or find a decent library with them. You won't be able to use any of the MX
 or Spark libraries.

 ~Sean

 http://www.skyseek.com
 class *Sean_Thayne*
 extends Developer {
 public $skype = sthayne23;
 public $gTalk = s...@skyseek.com;
 public $url   = www.skyseek.com;
 }


 On Mon, Jan 6, 2014 at 2:12 PM, Brian ok...@dreamforum.com wrote:

  I am starting a new project and was intending to write it in ActionScript
  and Flex, but then I came across Haxe, whose promoters make these claims:
 
  Faster  more optimized than the Flex compiler and easier to use and
 setup
  than the Flex SDK
  Due to inlining, generics and general compiler optimizations, Haxe can
  generate SWFs with much better performance than the current Flex
 compiler.
 
  Haxe SWFs are fully compatible with Flex  Flash
  You can load a Haxe SWF into one made by Flash or Flex or vice-versa,
  without any troubles.
 
  Support an AS3 userbase via SWC Export
  Using the SWC Export feature you can generate an SWC. This can then be
  loaded by Flex. This will allow library makers to use Haxe for its great
  features, while still supporting their AS3 user-base.
 
  Access Alchemy OpCodes
  There are OpCodes for memory allocation hidden in the SWF player which
 are
  used by Adobe Alchemy. Haxe has the ability to access them giving you low
  level memory access which can allow HUGE speed increases.
 
  Access the PixelBender Assembly
  Using low level functions you can control PixelBender directly.
 
  Simple lightweight video streaming and recording using HaxeVideo
  HaxeVideo can serve streaming video over the RTMP protocol.
 
  I have limited experience in Flex and ActionScript so I can't evaluate
  this objectively.  Has anyone got a perspective on this question: Why
 use
  Haxe (or not)?
 
  Thanks.
  ~Brian