Skip to main content
Inspiring
June 21, 2011
Question

Flex/Flash AIR - differences?

  • June 21, 2011
  • 1 reply
  • 832 views

Hi,

since Colin posted that nice videos from bytearray.org I wonder if there might be differences from within the ipa that is produced by Flex or Flash?

The orientation is so much better compared to all attempts that I tried from within Flash and the videos I have seen from the FLex team look so amazing that I question if these things are probably just because of the fact that Flex is handling certain things differently...

That would also explain why there are a couple of weird errors within the 2.7 version that usually would have been seen when testing files on a device.

So, I would like to know if anyone has been doing a fullscreen, landscape app with Flex that has a native looking orientation change? Without all the short appearing squeezing and moving when turning into portrait?

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
June 21, 2011

There isn't any difference in what Flash Builder can produce and what Flash can produce, but it is more normal thinking to adjust to instantly changing layouts when doing a Flex project.

The first of those videos seems to have used After Effects a lot in making the video. I don't think the rotations you see in that video are what were seen in real life.

If you watch what happens in the iPad home screen when you do a rotation, it does a cross fade from one layout to the other. You could listen for a changing event, lay out your landscape arrangement, then cross fade to it. When you get the changed event you can get rid of the portrait layout.

josholmAuthor
Inspiring
June 21, 2011

Hi Colin,

you are right, the movies are not like the apps, but I have downloaded them and the rotation is great.

The crossfading doesn't work since the app can't fire a change while on rotation, or it least it doesn't react this fast.

The only way so far that I have found that COULD be a solution is the accelerator idea that you where pointing on in another thread. However, this idea doesn't work with my project so I couldn't do further tests with it...

Colin Holgate
Inspiring
June 21, 2011

I video recorded and stepped through the frames, and also watched repeatedly the rotation on the Digitas app. They seem to have both views already laid out, and as soon as the width is less than the height, or height less than the width, they switch to the other view. If you watch carefully you'll see that there is a tiny moment when Flash has already rotated the stage, but the switching hasn't happened yet. In that moment you'll see that either the portrait content is squished, or the landscape content is stretched, vertically in both cases.

So, nothing you can't do yourself, you just have to change the layout, or the view, at the moment that the stage dimensions are changed. That probably would work out better most of the time than if you watched for a changing event and tried to get the timing right for when to switch (the time might be less on an iPad 2 than an iPad 1).