Adobe air 2.6 iPhone animation tween class vs onEnterframe

Hi,  Does anyone knows what's better to create alpha or slide animations on iPhone applications, using a tween class like Tweener or use the classic onEnterframe.  What's the better choice, who's the better performance .  Thanks,  Nuno

Use Tween Class,
http://www.greensock.com/tweenlite/

Similar Messages

  • Anyone know of a free working highscore system for Adobe air iOS?

    I used to use Mochi Leaderbords before starting coding Adobe Air games for iPhone and Android. As the Mochi API doesn't have mobile support I had to find something else and found Playtomic. Playtomic is great and easy to use, BUT it's constantly down
    My players are complaing on how often the highscore server is down. For me it's like 6/10 times I try to view scores that it doesn't show.
    Anyone know of an alternative free highscore system that works with Adobe Air for mobile?

    Hi TenchMyo,
    Just say this post, I'm Almog one of the fonders and developers for Scoreoid I'm also an Adobe ACP and UGM if you need help with anything let me both with Scoreoid or Adobe AIR.

  • Adobe AIR on iPhone OS-based Apple Tablet?

    http://www.pcworld.com/businesscenter/article/187791/quick_draw_publisher_leaks_apple_tabl et_details.html
    So if Flash is already on the iPhone OS, can we expect to see our Adobe AIR app running on the modified iPhone OS that will power this new Apple tablet?  Our product is in alpha testing right now, and we expect to sign on thousands of users for our new Adobe AIR-based software  in 2010.  We're deploying on Windows 7 touch-screen tablets such as the ASUS Eee PC T91MT, but if this Apple tablet is a compelling device for our needs, it would be awesome to see our app running on that as well.

    As we have announced at MAX 2009 we are working on a solution that will be available in Flash Pro CS5 to convert your AIR applications so they can be run on the iPhone, iPod and iPad.
    We have a closed pre-release program in progress and as part of the beta testing several developers have used the Packager for iPhone to develop and post applications to the Apple App Store.
    We are looking for developers and designers who have a specific app in mind to be submitted to the Apple App Store within the next two months. If you want to build an app for the iPhone, iPod touch, or iPad using Flash, please shoot us a mail at [email protected] Please include in your message the name of the app you'd like to build and whether you think you can have it in the Apple App Store within the next two months.
    You can find out more about all this here:
    http://blogs.adobe.com/flashplatform/2010/01/building_ipad_apps.html

  • Re: Adobe AIR for iPhone

    Based on the announcement yesterday from Apple to let 3rd party code run on the iPhone, ie Adobe AIR files, does anyone know if there any plans to restart the Air SDK for the iPhone and make it like it is on Android?

    According to http://labs.adobe.com/technologies/packagerforiphone/
    "Apple’s recent announcement that it has lifted restrictions on its third-party developer guidelines has direct implications for the Packager for iPhone. The feature is available for developers to use today and we will now resume development work on this feature for future releases."
    Is that what you were asking?

  • Adobe AIR for iphone app: can't play audio properly

    I just developed an App by using adobe air. It contains some animations with background music in mp3 format. The problem is that the music is very jerky when the animation is playing... FYI, this is the way how I play audio in flash:new Sound(new URLRequest("m3.mp3")).play() Have I done anything wrong?
    BTW, the funny thing is that if you hit the HOME button, and then come back to the app again, everything plays beautifully...
    Any comments would be appreciated!!! Will be waiting for the answer online.

    Try the loading sound internally method through sound channels and such.
    Great tutorial below.
    http://www.republicofcode.com/tutorials/flash/as3sound/
    var mySound:Sound = new Sound();
    var myChannel:SoundChannel = new SoundChannel();
    mySound.load(new URLRequest("myFavSong.mp3"));
    myChannel = mySound.play();
    I just finished an app that uses a lot of audio while stuff is animated on the timeline and the sound responds well on all iOS devices. (havent tested on 3GS yet)

  • Adobe Air Initiates the wrong launch Image on iPhone 6 - Possible App Rejection by Apple Review Team for all developers

    I've opened a bug for this issue as well. I want to ask if anyone experiencing the same issue and has found a workaround.  Basically Air Runtime is picking up the wrong launch image when launching on iPhone 6. It defaults to [email protected] instead of the [email protected] iOS 8 picks the correct image but Air Runtime does not. Here is the link for the bug. If this is confirmed, this could result in rejection for all the app developers who optimized their apps for iPhone 6 . It is hard to catch this bug in release mode since the Air Runtime loads pretty fast and it occurs when you device is slow or doing something in the background. You can see it easily on iOS simulator or debug mode. We tried everything for a workaround but we failed.
    Bug#3831747 - Adobe Air Initiates the wrong launch Image on iPhone 6 - Possible App Rejection by Apple Review Team for a…

    Apple recommends the storyboard/xib option but you can still use launch images as assets in your root. When you open a new project in xcode you can look at Contents.json and see the naming conventions they use for iOS8. We grabbed the new naming convention from here. Also setting up in the application xml the UILaunchImages key works too. Please see the below example. It would be a better solution if Adobe Air refers to xml/info.plist values that the developer sets instead of hard-coded naming conventions.
    <key>UILaunchImages</key>
      <array>
          <dict>
              <key>UILaunchImageMinimumOSVersion</key>
              <string>8.0</string>
              <key>UILaunchImageName</key>
              <string>Default-667h</string>
              <key>UILaunchImageOrientation</key>
              <string>Portrait</string>
              <key>UILaunchImageSize</key>
              <string>{375, 667}</string>
          </dict>

  • Bitmap/picture/whatever size limitation in Adobe Air on iPhone.

    Hi
    I'm gonna start on a new app and was wondering what the max width and height of a picture can be?
    I will import a big picture into my Flash CS5.5 (pro) and place it in a movieclip.
    I found this info on an old site from 2008:
    Note: The maximum dimensions of a bitmap in Flash Player is limited to 2880 pixels in either direction (width or height). If you attempt to create a BitmapData instance that is larger than this restriction, the Bitmap will not be created. This limit is in place to keep people from creating Flash movies that gobble up the client’s RAM. A bitmap that is 2880 x 2880 pixels, will use roughly 32MB of RAM.
    I'm not sure if that is the limit of today's flash version. I'm using Flash CS5.5 Pro.
    And íf now, let's say the max width and height of a picture (or should I rather say bitmap?) is 2880x2880, will the limit change in any way if it's placed in a movieclip?
    According to some more info on the same site, there's no limit if you do a "trick":
    [Workaround] Flash Bitmap maximum width and height
    The trick is to “kidnap” a BitmapData object from a loaded image with dimension over the limit of 2880 pixels (Which flash allows. Huh! Yes Flash can actually handle bitmaps larger the the limit. It just doesn’t let you create one.).
    It’s simple. Create a dummy image with the dimension you need. Save it and make it accessible to Flash. Dynamically load it using ActionScript. And take the loader object’s BitmapData object. That’s why I termed it “kidnap”. We are actually just taking the child of the parent object(loader object), which is the BitmapData, and use it like we build it ourselves.
    Here’s the actionscript ,
    // 1. Create an image loader and
    var DummyImageLoader:Loader = new Loader;
    // 2. Assign a function to “kidnap” the BitmapData object
    DummyImageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, DummyImageOnComplete);
    // 3. Load the image with the preferred dimension
    var DummyImageRequest:URLRequest = new URLRequest(“dummy_image.jpg”);
    DummyImageLoader.load(DummyImageRequest);
    function DummyImageOnComplete(evt:Event):void {
         var DummyImageBitmap = Bitmap(DummyImageLoader.content);
         // “kidnap” the BitmapData object
        var ValidBitmapData:BitmapData = DummyImageBitmap.bitmapData;
        // you can now use ValidBitmapData to draw any element larger than 2880×2880
    var InvalidBitmapData:BitmapData = new BitmapData(3000, 3000);
    Now, I don't think I can do it this way anyway, I need to import it and manually put stuff on the picture in the movieclip in the Flash IDE.
    Is there a difference in picture size limit between normal Flash stuff (no Adobe Air) and Adobe Air? Maybe the picture limit also changes if the app is made for an iPhone?, ie, size limit for Adobe Air could be 2880x2880, but the iPhone can only handle max 2000x2000 so I must not do bigger than 2000x2000.
    Speaking of picture size limits in Flash, I experienced a problem once in Flash MX. I had a picture of max size imported, I could scroll to the far right, left, up and down in the Flash Player (not IDE, this was with code) and I could see every bit of the picture, so it all worked ok... but for some reason, the graphics I manually placed on the picture (the graphics were tiny objects I've drawn myself placed in movieclips) only showed in a limited area... for instance:   the big picture I imported was 2880x2880, I have the starting position in the bottom right corner of the picture. I place some graphics on the picture far apart from each other.. first one on .x=2880/y=2880 (bottom right), then I placed several from that position to the far left, til I reached x=0/y=2880... for some reason the graphics half way to the left stopped showing. I only placed like 10 small things. So, if the picture size limit is 2880x2880, it can not show anything else beyond a certain point? only the picture itself?
    I apologize for my somewhat bad English... I find it hard to express what I want to say

    Ah, nice page... 16.7X mill seems to be the rough number.
    I didn't look such pages up as I wasn't sure, and still arn't if that size applies to everything with Flash. Could vary depending on what it's used for, like Adobe Air desktop apps, Adobe Air iPhone apps etc.... But I guess I'll just have to accept and hope it's the same for all.
    The largest square bitmap allowed is 4,095 x 4,095 pixels.  Nonrectangular size limits vary, for example, the following sizes all fit within Flash Player 10 limits:
    2169 x 7735
    3133 x 5355
    3315 x 5061
    3615 x 4641
    4095 x 4097
    4097 x 4095
    4641 x 3615
    5061 x 3315
    5355 x 3133
    7735 x 2169
    So guess I could make any size I want, as long as it's not above 7735xXXXX / XXXXx7735 and 16.7X million pixels.
    Wonder if that's how it is, or if I could have like 10000x1600...couldn't find that answer on that page.

  • Tween class animations - modifying elasticity

    I am fairly new to Flash, and couldn't find the help I needed through a search.
    I am using the Tween class to move objects when buttons are clicked. I am using elastic easing as the animation ends, and it looks ok. But am I able to modify the elasticity at all? I like the effect, but it is a little strong and I would like to reduce the bounce at the end.
    Can I do this, or by using this method of animation am I losing the fine control that I would have by using the timeline and I just have to suck it up?

    Well the easing you provide for the tween is just a reference to a function. So you can search the web and find your own functions. Robert Penner is famous for a large number of really great easing methods. Or you can just muck a bit with the built in functions. I put two small clips on the stage, clip0 and clip1. Then this code:
    import fl.transitions.*;
    import fl.transitions.easing.*;
    var myTween0:Tween=new Tween(clip0,"x",Elastic.easeOut,100,500,2,true);
    myTween0.start();
    var myTween1:Tween=new Tween(clip1,"x",myEase,100,500,2,true);
    myTween1.start();
    function myEase(t:Number, b:Number, c:Number, d:Number):Number {
    return Elastic.easeOut(t, b, c, d, .5, .9);
    The the top one is the default and the lower one is my "modified" version. If you check out the help files for the Elastic classes easeOut method it requires the first four arguments (time, start value, end value of the prop, and duration) as do all tween functions. But the last two a and p are specific to elastic easing. The first is the amplitude of the sine wave and p is the period of the sine wave. I don't know what the units are on either of those, but I'm guessing pixels (or twips) and either seconds or milliseconds. So you could just fiddle with those numbers.
    I'm not sure if there is anyway to send those numbers directly through the Tween constructor -- regardless of whether I used the built in functions or made my own.

  • JQuery AJAX vs. Adobe AIR AJAX Class

    Hi,
    I would like to use jQuery for my next project, and as you know, jquery comes with an included AJAX module, but i could also use the ajax class provided with adobe air. Which one should i better use it ? I've worked before with jQuery and so i'm more familiar with this library.
    Is there a difference between Adobe AIR AJAX Class and jQuery's AJAX ?
    Thank you,
    Alex

    I've seen a tutorial such as this:
    $("#loginbtn").click(function(){ 
    params = 'username='+$("#username").val()+'&password='+$("#password").val(); 
    request = new air.URLRequest(server + 'loginService.php'); 
    request.data = params; 
    request.method = air.URLRequestMethod.POST; 
    loader = new air.URLLoader(); 
    loader.addEventListener(air.Event.COMPLETE, loginComplete); 
    try { 
       loader.load(request); 
    } catch (error) { 
       alert("Error connecting to login server."); 
    and i am saying that you could do the same thing in jQuery.
    Is there any advantage in using AIR's AJAX Class ?
    Thank you for your support.
    Sincerely,
    Alex

  • IPhone App via Adobe AIR and Webservice

    Hi Forum,
    I am trying to deploy a iPhone App developed with ADOBE AIR. This gets data from SAP via a webservice. When I test it on the iphone simulator provided by Flash Builder it works fine. But when I try to run it on the iPhone, it just does not get any data. It does not ask for the user credentials also. I was wondering if any one has tried this route and succeeded ?
    Any pointers will be greatly appreciated.
    rgds,
    Rajvish

    Hello,
    Just try to open the any sample sap webpage sitting on SAP server ,where the webservice is residing on the iphone browser,if
    the webpage is opening,then there is problem in the application or else,your SAP server is not exposed on internet,so the webservice is not called.
    regards
    kaushik

  • Adobe Air for Android - caching key event that have "unusual" keycode

    I am developing an application for a platform. The OS of this platform is Android Gingerbread (2.3.4) The platform has some buttons with "unusual" key code: 141, 131 etc.
    Native application that created in ADT can catch and respond to these keyboard events While my Adobe AIR application (created in Flash professional) are Indifferent to them.
    I try both: stage.addEventListener(KeyboardEvent.KEY_DOWN,KeyHandler,false,0,true); NativeApplication.nativeApplication.addEventListener(KeyboardEvent.KEY_DOWN,KeyHandler,fa lse,0,true);
    How can I "catch" this event? Maybe a way to add constant to the keyboard class?
    Thanks

    If you are deploying for iPhone it is on the 'general' settings(First setting page opened).
    Just noticed you are making android app but i still added iphone deployment settings for further future
    But if you are using it for flash/android you have to add code into your fla descriptor with XML language(dont worry it is 1 line of code)
    Watch the video on this page about GPU rendering:
    http://blogs.adobe.com/cantrell/archives/2010/10/gpu-rendering-in-adobe-air-for-android.ht ml
    Your app shouldn't lag after these steps but if you have a project that gets bigger and has lots of code it MIGHT lag so that is when external files should help.

  • Doki, one of the biggest Adobe Air for iOS projects, released yesterday

    I am proud to present one of the biggest Adobe Air for iOS projects, that was released yesterday. Amazingly, the project completed in less that a year. Doki is a unique modern method of learning the basics of a foreign foreign language without the use of grammar and writing.  Through colourful animated scenarios and characters, Doki brings to life a number of languages through real life situations, humour and interactive exercises. Exclusively designed for the iPad 2, New iPad, and iPhone 4S, Doki teaches five different languages: English, French, German, Iberian Spanish and Latin American Spanish. Each language has two levels: Doki and Doki Further.  Both levels have been designed to teach the basics of these languages so that you can communicate with confidence.  In Doki, a beginner’s level, the learner navigates through 14 chapters or ‘places’ in Doki City, listens and repeats the phrases and then solves simple interactive exercises.  Each chapter is divided into lessons (a total of 51) that present key words and phrases in English and the other languages Doki covers. Doki Further, a more advanced beginner’s level, consists of 9 chapters with 28 lessons that take place in Doki City.
    The development of Doki is based entirely on Adobe Air . The result is spectacular. With a development team that consisted of 5 programmers, 2 designers, 3 language specialists, one assistant programmer, plus a team of 4 testers, the gigantic project of 14 apps was completed in less than a year, resulting in very low development costs!
    Please visit http://www.dokispeak.com for further details.

    Pretty cool.

  • AIR package size & and why Adobe AIR rules..

    Here is one for all the flash dooms-dayers:
    I just published my app Gig Ink to Amazon App store. My app is now on iTunes for iPad/iPhone/iPod, Android Market for over 460 phones and tablets, and soon for Blackberry and desktop for mac/pc/linux with no runtime needed as I use captive runtime to package. And soon I will have access to Stage3D using the GPU to render full 3D content AND with Native Extensions I can do In-App billing, native notifications etc..
    Every one of them is the same 1 project in Flash Builder, same code, works landscape/portrait/phone/tablet etc. etc. etc.
    If I tried to do that with native code I would have to employ 5 separate developers and pay them heaps and anytime a change or update occurs... no way.
    Honestly are people thick? Doesn't anyone get how awesome this is, considering the massive and constant changes to web development recently?
    I hope Adobe know how important Flash Builder/AIR/AS3 is to a lot of developers now focusing on apps and keep making it better. My No 1 request? Reduce the file size of packaged AIR for captive runtime, possible allow us to select only dependant classes? Any suggestions? Is this an issue others think important?
    Cheers
    Blackmarketbear Mobile

    I totally agree with blackmarketbear !!
    Developing for mobile devices using Adobe AIR, Flex and Flash Builder brings exceptionnal productivity, and reduces a lot development cost !! =D
    However, the only drawback to this is the final packaged file size which won't let users download the app via 3G on Apple Store...
    This is such a big issue i think since our last client wanted his app to be downloadable via 3G ... =(
    I hope Adobe is working on this point, it is really important and if no improvment is made, i might fall into another development solution (native development with Java and Objective-C ...)

  • StageVideo Adobe Air 3.0 iOS Error 1069 |onUpstreamBase not found

    I am using a StageVideo object with Adobe Air 3.0 compiled down and running on an iOS device iPhone 3GS.  The StageVideo appears and attaches to the NetStream just fine.  But after I issue NetStream.play(), I get the following runtime error:
    ReferenceError: Error #1069: Property |onUpstreamBase not found on views.DisplayView and there is no default value.
    You'll notice that the "|onUpstreamBase" contains a "pipe"-character at the beginning.  I tried to add:
    public function onUpstreamBase (dataObject:Object):void {
                                            trace(dataObject.toString());
    to the view function, but that didn't work.  And I can't create a function handler for |onUpsteamBase because of the pipe character.
    I am attaching the Netstream and NetConnection to an recorded H.264 rtmp stream. The rest of my code works just fine, but is failing on this runtime error.
    Anyone else run into this? 
    Thanks in advance.

    I got this error too, but not trying to do anything fancy like Stage Video. The issue is w/the "client" property on the NetStream object. You're supposed to use this to add some event handlers/call back functions that the NetStream will invoke.
    I got this error when I set the client property to "this" and defined the callback functions in my class.  However, that generates this error. If you use a generic object to store the call back function, the error does not occur (b/c the generic object is dynamic)...
    private function onNetStatusConnect():void
    foo = { onMetaData: onMetaData };
    stream=new NetStream(connection);
    stream.client=foo;
    // don't do this
    stream.client=this;
    vid=new Video();
    addChild(vid);
    vid.attachNetStream(stream);
    stream.play(feedAddress);
    public function onMetaData(data:Object):void
    trace(data);

  • Adobe AIR and Tweenlite - help!

    Hi Guys,
    Does Adobe Air support tweenlite or other 3rd party animation/tween plugins?
    I have a Flash CS4 (AS3) application that uses a Tweenlite animation within a loop. This works perfectly when I output to FlashPlayer 9/10 but not when I publish to AIR 1.1.
    I have included the /gs folder when I package out and publish as AIR but to no avail.
    I'm so frustrated with this!
    Super thanks in advance

    what's the error you get?
    Please consider an upgrade to the last version of Air (1.5.1).
    HTH.

Maybe you are looking for