Newbie to iPhone packager

I am using Flash CS5 with the current iPhone packager, to take an existing project that i made for AIR for android. Two issues..  One, i know that the publishing time for iPhone in flash is quite slow, as i did a test run with a completely empty fla and it took a minute or two.  But when i went to publish my project after i imported all my classes and such, it went on for 6 hours with out ever completing.  I checked my task manager and it did NOT say that flash was not responding.. but when i hit cancel, flash crashed. 
The other problem is that when i did a test (ctrl+enter) i got a bunch of errors from one of the classes i have been using.  These errors only happen with the project set to iPhone and not in any other project setting.. the class is below with the lines that caused the errors commented out..
package com.quasimondo.bitmapdata
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.events.TimerEvent;
import flash.filters.ColorMatrixFilter;
import flash.geom.ColorTransform;
import flash.geom.Matrix;
import flash.geom.Point;
import flash.media.Camera;
import flash.media.Video;
import flash.utils.Timer;
import flash.utils.setTimeout;
public class CameraBitmap extends EventDispatcher
[Event(name="Event.RENDER", type="flash.events.Event")]
public var bitmapData:BitmapData;
private var __width:int;
private var __height:int;
private var __cam:Camera;
private var __video:Video;
private var __refreshRate:int;
private var __timer:Timer;
private var __paintMatrix:Matrix;
private var __smooth:Boolean;
private var __colorTransform:ColorTransform;
private var __colorMatrix:Array;
private var __colorMatrixFilter:ColorMatrixFilter = new ColorMatrixFilter();
private const CAMERA_DELAY:int = 500;//orig 100;
private const origin:Point = new Point();
public function CameraBitmap( width:int, height:int, refreshRate:int = 15, cameraWidth:int = -1, cameraHeight:int = -1 )
__width  = width;
__height = height;
bitmapData = new BitmapData( width, height, false, 0 );
__cam = Camera.getCamera();
//__cam.setQuality(50000, 0);
if ( cameraWidth == -1 || cameraHeight == -1 )
//__cam.setMode( width, height, refreshRate, true );
} else {
//__cam.setMode( cameraWidth, cameraHeight, refreshRate, true );
__refreshRate = refreshRate;
setTimeout( cameraInit, CAMERA_DELAY );
public function set active( value:Boolean ):void
if ( value ) __timer.start() else __timer.stop();
public function close():void
active = false;
__video.attachCamera(null);
__video = null;
__cam = null;
public function set refreshRate( value:int ):void
__refreshRate = value;
__timer.delay = 1000 / __refreshRate;
public function set cameraColorTransform( value:ColorTransform ):void
__colorTransform = value;
public function set colorMatrix( value:Array ):void
__colorMatrixFilter.matrix = __colorMatrix = value;
private function cameraInit():void
//__video = new Video( __cam.width, __cam.height );
//__video.attachCamera( __cam );
//__paintMatrix = new Matrix( __width / __cam.width, 0, 0, __height / __cam.height, 0, 0 );
//__smooth = __paintMatrix.a != 1 || __paintMatrix.d != 1
__timer = new Timer( 1000 / __refreshRate );
__timer.addEventListener(TimerEvent.TIMER, paint );
__timer.start();
private function paint( event:TimerEvent = null ):void
bitmapData.lock();
//bitmapData.draw ( __video, __paintMatrix, __colorTransform, "normal", null, __smooth );
if ( __colorMatrix != null )
bitmapData.applyFilter( bitmapData, bitmapData.rect, origin, __colorMatrixFilter );
bitmapData.unlock();
dispatchEvent( new Event( Event.RENDER ) );

I have started going through my code on the main fla line by line in an effort to try and figure out what is actually causing my fla to freeze when publishing..
the problem seems to happen when i ad this line of code:
var myScanner:FaceDetector_Camera=new FaceDetector_Camera();
mind you, if i comment out that line and still leave the line that imports the FaceDetector_Camera class it publishes relatively quickly, but as soon as i ad the line mentioned above we fail.. any ideas?

Similar Messages

  • Quick iPhone packager question...

    Hello,
    I am interested in purchasing Flash CS5 so I can make an iPhone app that involves PDF opening and saving, but I had a question to all those who have used AlivePDF... would it work with the packager for iphone to make an iPhone app?
    If not...
    With the rescources Flash CS5 has with Air 2...would I be able to open a PDF, draw on it, then save it to the iPhones desktop? Or would that just be an AlivePDF thing? If AlivePDF doesn't work with the iPhone packager, is there any way I could handle opening/saving PDF's with anything else?
    Thanks in advance for the reply.
    -mightybotme

    Hi mightybot,
    I checked with Thibaut, and he indicated AlivePDF should work with AIR 2 mobile profile and the Packager for iPhone.  Let us know your results!

  • Air 2.7 and MacOs Lion: iPhone packager does not work

    hi. After upgrading from Snow Leopard to Lion the iPhone packager does not work. It throws an error concerning the Application Version Number. Is this a Know bug? Is there a work- around?  Thanks.  Michael.

    Yeah sorry, the start of my descriptor looks like this:
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <application xmlns="http://ns.adobe.com/air/application/2.7">
      <id></id>
      <versionNumber></versionNumber>
      <filename>d</filename>
      <description/>
      <name></name>
    When I go to compile the app the compiler inserts that line into my descriptor at the very bottom (just before the application tag closes). It's weird, I tried setting the <application xmlns="http://ns.adobe.com/air/application/2.7"> back to 2.6 and it works and seems to compile in 2.7 (as I noticed the timer bug).
    Anyway, I only tried 2.7 because I heard the GPU fullscreen bug had been fixed, but given that the timer issue still remains I'll go back to 2.6 for the time being.
    Thanks

  • How big is the Adobe team for developing the iphone packager?

    How many active full time developers are working on the iPhone packager at Adobe currently? I'm a bit curious since it would help me get a realistic idea how long it will take for new versions of the packager might come out. This is not to be taken as criticism (I realize the product is still in beta).

    Steve,
    I printed out the table of contents and the sample chapter using 100%. The print is too small for me to read. The first page looks great - comfortable to read, but this is 14.00 X 10.00 iinches. The next pages came out of the printer at 7.00 X 10.00 inches. I'd need a magnifying glass for this. Too bad. I know I'd learn a great deal from your book.
    Last month I got Photoshop Elements 11 for Dummies. The print size is perfect even under the graphics. And with this book there is none of that gratuitous humor that you often see in the Dummies books.
    I should  probably start a separate thread for this but perhaps you could give me a short answer. If you do a video that requiers a teleprompter, what kind do you use? I'm going to make three minutes videos for my websites and perhaps for Facebook in both English and Spanish. Even though my clips will be 250 words or less, it's hard for me to deliver the Spanish from memory. But I hate to pay over $600 for a teleprompter. Do you have any suggestions for a penny-pincher?

  • IPhone Packager File Size

    I just experimented with the new cs5 iPhone packager and noticed that although my little test app just had some movable text the app file size was already 5mb.  Can any explain this to me?  Am I missing out on some way to reduce the file size.  I am just wondering what will happen if I have actual app assets in there as well.

    using class files won't decrease file size substantially.
    i've published about 20 ipad apps and the ipa file size is pretty close to the sum of the swf + loaded assets size IF you're loading significant assets.  otherwise, an ipa file with almost no assets will be about 3.5mb.
    that said, why do you care how large the ipa file is (as long as it installs)?

  • Importing Flex project into Flash CS5 for use with iPhone packager? Please Help.

    Hi all,
    I have been developing an application in Flex builder for the iPhone using the iPhone packager, where I've been using the Flex framework.
    Now I'm stuck at trying to use my existing libraries in Flash. It seems I can't add the UI components I used in Flex (class VideoExample) to the default Flash container. I need someone's help who has experience with that.
    I have created a .SWC file, but when I'm trying to add the container in Flash using addChild(new VideoExample) it doesn't work. I can't load the .SWF externally using loader.load() at runtime, because the application is for iPhone. Any solutions how could I import the project to Flash?
    I was thinking about changing the UI components classes from mx.* to fl.*, but I would have to change many code and I'm not sure if it would even work, and I don't want to loose compatibility with mxml.
    Please respond, help would be very much appreciated!
    Here's my mxml wrapper, from which I start the main application:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="EntryPoint.main()">
    </mx:Application>
    Then I have a class which creates the main container:
    package {
    import mx.core.*;
    public class EntryPoint {
        public static function main():void {
            var client:VideoExample = new VideoExample();
            var mxmlApp:Application = Application(Application.application);
            mxmlApp.addChild(client);
    Here is the main class VideoExample:
    package {
    import mx.controls.*;
    import mx.containers.*;
    public class VideoExample extends Canvas {
        public function VideoExample() {
            super();
            init();
            private function init():void {
            loadImage();
            loadText();
                    loadDisplay();
                    startConnection();

    This forum is for Flash Media Server Developers so most likely you migth get much traction here. I would recommend you to post your query on Flash Builder forum: http://forums.adobe.com/community/flash_builder/using_flash_builder
    Also you can try posting here:
    Flash Platform Services For Promotion - http://forums.adobe.com/community/promotion
    Flash : http://forums.adobe.com/community/flash/flash_general

  • IPhone Packager, weight and start up performance

    Hi All
    I have a question about the Iphone packager, but first i can describe my main project structure.
    project-api ( only interface ) - swc - 32ko
    project-core ( implementation ) - swc - 825ko
    project-flex-app - swf - 2.000 ko
    project-mobile-core ( implementation of project api for mobile device ) - swc - 99ko
    project-mobile-app - swf size - 2.800 Ko
    project-mobile-app - IPA - 12.390 Ko
    Note that there is a lot of other dependencies such as springactionscript, crytoUtils etc...
    Im actually using flashbuider 4.5, flex 4.5.0
    So the problem is, my IPA weight 12 Mo. Once the application is deployed on the phone, it weights 30 Mo
    If i take a look at the mysizereport.xml ( with -size-report=mysizereport.xml compiler option )
    swf             2.804.641
    ActionScript          2.329.103
    Fonts                     70.516
    Sprite                      9.022
    Shape                     41.981
    Bitmpas                    306.477
    Data                      19.035
    frame data                 27.001
    So im asking why IPA is so huge, why my application take 18 seconds to start, and what can i do for
    reduce size and start time. Is IPP include all as class in the IPA ?
    Note: once the application is started, performance are good.
    Thanks in advance

    Hi All
    Im also having performance issues when launching an as3 app (1.2mb apk), but on android (havnt tried iphone yet).
    I dont have an answer but a few observations.
    1) Install app onto mobile using adb install myapp.apk . Launching initially on android the app takes 18 seconds ish to load. App plays fine. Now kill/ close the app. Relaunch the app. The app now launches in 2 seconds...
    2) Relaunch the app several times and it loads in 2 seconds each time.
    3) Turn off the mobile device for a few minutes. Switch back on. Launch app, app loads in 2 seconds.
    4) Delete/ remove app from mobile device. Reinstall using adb install myapp.apk. Launching takes 18 seconds. Kill the app. Relaunching takes 2 seconds...
    Like i say, no answers here but just a few observations...all i can assume from this is that as3 apps are very slow to run on initially, typically 18 seconds, but run fine ever after....??
    Why is the app so slow to launch initially? If anyone has any thoughts on any of the above id be very interested to hear them.
    Thanks in advance

  • HI guys - a newbie at iPhone and i have questions that I would appreciate s

    am a newbie on iPhone. Came from Symbian OS, and so I miss a couple of things. The first is this:
    1. How come Apple (iTunes) doesn't sync Outlook Notes - I have solved the problem with Evernote, but is it so difficult to include Outlook Notes in the sync program ?
    2. A document viewer - Something we can use to keep documents (Word, XCel, PDF, PPT, etc) and not resort to use e-mail and internet to download the same thing over and over again ?
    3. Bluetooth - how come we can´t ear music on a wireless headset ? When will the iPhone Bluetooth upgrade (?) to a system that is being provided by all others (Nokia, HTC etc) ?
    4. The limit of sounds (only one without possibility of change) imposed on Calendar alarms, Voicemail, New Mail, Sent mail is LUDICROUS. When is this going to get fixed ?
    I will add to these gripes a positive footnote : I love the phone in general, the touch screen and the facility of use - the look, the feel and the quality is great as well.
    But for the complaints above, it's hard not to like other products...

    Delfim wrote:
    1. How come Apple (iTunes) doesn't sync Outlook Notes - I have solved the problem with Evernote, but is it so difficult to include Outlook Notes in the sync program ?
    We don't know. Maybe note syncing will appear in a future update.
    2. A document viewer - Something we can use to keep documents (Word, XCel, PDF, PPT, etc) and not resort to use e-mail and internet to download the same thing over and over again ?
    Again, we don't know. It could be because you can't edit a document on the iPhone so it may not be considered a priority to have a viewer. There is an app in the App Store that will allow you to save documents to the iPhone without having to use email.
    3. Bluetooth - how come we can´t ear music on a wireless headset ? When will the iPhone Bluetooth upgrade (?) to a system that is being provided by all others (Nokia, HTC etc) ?
    Again, Apple will need to enable the protocol. It could be because bluetooth uses a lot of battery that the protocol has not been enabled.
    But for the complaints above, it's hard not to like other products...
    The iPhone is not the best choice for everyone.

  • When the update for iPhone Packager will be available??

    Anybody has any idea, when the new update will be available of iPhone packager? Does new update will be able to interact with the iPhone OS to load the images from the Camera Roll, if internet connection is available, message notification, badges etc...

    I think the iPad 2 is great news for us.  The amount of apps make with Flash that are on the store have proved that it can work.  We just hit a bit of a performance wall currently.  Now that the iPad 2 is dual core however we should be bale to expect much better performance.  Of course true Objective C programming will always be more efficient but my point is that soon the quality difference between Objective C and the ios packager is going to be more transparent.
    My only hope is that this doesn't discourage people from continusing to optimize their code.  The one thing that has plagued Flash over the years has been sloppy code which I myself am partially guilty for I guess.  The ios packager has forced many of us to learn the proper way of doing things.
    Of course we have awhile before we can expect a perfect world.  There are a lot of iPad 1's out there yet and it will be a few years before we can target only the iPad 2.
    Finally I would love to see the ios packager expanded on.  I think what Adobe is doing has been a good start.  Of course we did hit that 6 month roadblock but now that we are back on track I hope to see the packager expanded to support more ios features.

  • Is it really true that we can't update from iPhone packager to 2.6?

    Hi,
    My understanding is that once we have build an app in Iphone Packager we are never able to upgrade to air 2.6...
    http://developer.apple.com/library/ios/#qa/qa1623/_index.html
    Can anyone confirm that there really is no way to do this? Apple suggests that we have to replace our apps under a different name!?!
    I can't help but feeling a bit sad about this. Surely I can't ask all my clients to redownload the app (and make up a different name for it) just because I can't update to Air 2.6??
    Anyone has any ideas about this?

    AIR 2.6 apps won't run on the older devices, and one of the rules with the App Store is that you can't remove devices from the list that the app supports. The instructions on that page are slightly confusing, in that it suggests to remove the old app and then upload the new one with a new App ID, implying that it would be the same name, but then it also says that if you delete an app from the store you're not allowed to use the same name again.
    If you did manage to replace the current app with an AIR 2.6 one without your users having to pay again, you would still then have the problem that customers with older phones would not be able to get the update anyway. So one way or another you're going to upset some of your customers.
    One option would be to update the app with the old packager purely to present a splash screen telling people about a new version with better performance on later devices. Then some time later put that new version into the store with an introduction price that is very low, and after a few days increase the price to its normal amount, and also update the old app to remove the splash screen.
    You could perhaps call the new version "HD", as it would support Retina display. Doing it that way would still leave you with the ability to do bug fix updates with the old packager for users of the old app.

  • Working with facebook and Twitter oauth API with adobe flash iphone package

    Hi Guys any body tried to do some facebook stuff or twitter using with this package for iphone. any thought, findings or help. please share here.
    i am trying both with way to use facebook as3 librabry for web and desktop (but now success)and also now going to try to add some web view like thing to ask user to login and authenticate application then make all calls using php web services for rest of functionality.
    Would like input from developers interested in facebook, twitter intergration in flash iphone app.
    Regards
    waris

    hi any body try this library for twitter
    http://code.google.com/p/oauth-as3/source/checkout
    please share your example code if you can. i am trying this if succeeded will share my findings here. thanks

  • Question about Flash iPhone packager

    So since Apple now allows it, Adobe picked up development for it again I heard. My question is, additionally to the possibility of creating iPhone apps from scratch I heard there is a packager that allows you to wrap up Actionscript 3 projects as an iPhone app. I didn't get too many infos about it on google since its mostly the same kind of news turning up.
    Can you use a previously made Actionscript 3 game or do you have to start a new one and make it with the iPhone in mind? If you can use a previously made project how do you customize it for the touch controls? Does the packager change it into a file useable in Flash again to add these features? I'm totally clueless about the possibilities and it would be great if someone could tell me.
    Is it really that I can make an already made as3 game iPhone compatible as long as I have an Apple developer subscription? Or is it limited to simple apps?
    Would love for someone to elaborate this. Thanks

    http://help.adobe.com/en_US/as3/mobile/flashplatform_optimizing_content.pdf
    http://download.macromedia.com/pub/labs/packagerforiphone/packagerforiphone_devguide.pdf
    http://forums.adobe.com/community/labs/packagerforiphone?view=discussions&start=0
    http://floatlearning.com/2010/10/key-differences-in-air-for-android-and-ios/

  • ADOBE CS 5.5 - great news for iPhone packager

    So I believe the next update for CS5 will be a big one.
    The new suite, which will reportedly be marketed as "Adobe Creative Suite 5.5 Digital Publishing" suite, will showcase a new version of its "Packager for iPhone" application that will include support for not only Apple's iPhone, but also the iPad and the new crop of Android tablets, incorporating popular touch gestures like "Pinch."
    Check out the sources...
    http://www.iclarified.com/entry/index.php?enid=13661
    http://www.appleinsider.com/articles/11/01/28/adobe_prepping_creative_suite_5_5_digital_pu blishing_for_ios_android_development.html

    I was giving figures for each case. A bunch of people were able to submit apps by October 6th 2009, admittedly with an alpha of the packager. Then many more submitted apps with a beta of the packager, right up to when Steve stepped in. The rest of the world could make apps for internal and personal use (on up to 100 devices) until September 9th, when Steve changed his mind. Politics aside, Flash could make iPhone apps throughout that whole time.
    I realize that many people would think that it is implied in the marketing that Flash should be able to make iPhone apps that could be uploaded to the App Store, but Steve stopped everything (other tools too, not just Flash) on the same weekend as Adobe launched CS5. It was a very difficult situation for Adobe, and all they could do was let the feature remain in the product. A lot of us would have been unhappy if it was taken out, just as a childish reaction to what Steve had done. It did cause them to change their development direction, and put iPhone on hold, and go full strength on Android development. So, Steve's action was a huge boost for Android development.
    About the "Flash would not keep up" part, it's very easy for Steve to have been an oracle about that, after all, he was about to ban Flash.
    And with Retina display, it is very common for software to be released to support current hardware, and not so much future hardware. With the last packager development being about two months before the iPhone 4 came out, and with the amount of secrecy Apple have, it would have been hard for Adobe to be supporting the Retina display.
    None of which means that you don't have a valid argument, and I would be very happy if the next round of packager updates was free to all CS5 owners, and that the feature set catches and overtakes what AIR apps on Android can do. But that's different than expecting to get a free update of the entire suite that you bought.

  • Stolen iPhone Package, how to report ESN?

    Hey everyone,
    Long story short, my iPhone was stolen from my apartment "porch" in the hallway after placing multiple notes for UPS to leave it at the Resident Services office and I want to disable the ESN number so the person who took it can't use it. I cant seem to find it anywhere under My Verizon. Am I looking in the wrong spot? Can I even disable it since I don't even know what the ESN number is or does Verizon have it on record which ESN# the phone was they shipped me. I pre-ordered with Verizonwirelss.com FYI. Thanks for any help

    HK_USP wrote:
    The package would have had a signature required authorization.  I'd just run the tracking # on UPS/FedEX's site and see if it says "delivered" and if so then call the carrier (UPS/FedEx) and tell them that they left a package without obtaining a signature as required.  It'd be well documented because if you sign for it, the signature is saved in their system.  They'd easily be able to see that no signature was obtained.  Sounds like the delivery driver's fault. 
    If the OP left notes stating that they wanted the package delivered without them having to be there (which they seem to indicate is what happened, although it was not left at the office where they asked) and the driver perceived the location to be safe then the package can be left (UNLESS there were strict instructions from the shipper that stated the package could not be delivered without someone being there in person to sign for it). It's why in some instances you are able to print out a form from the shipper website that you sign and leave stating that you accept the risks of having the package delivered without you being there. Some have stated that they were able to have their iPhones delivered in that manner. It's risky (as the OP's situation clearly shows), but assuming that is what happened and was allowed in this case it was a risk that the OP was willing to take. Now if the driver left it without any instruction to do so from the OP and they were required to obtain a physical signature then yes, the driver would be at fault for poor judgement. Ultimately, I think it's a bad idea to have any package of value left anywhere when the risk is that high, but that's just my personal opionion. I personally would try to see if I could pick it up at the shipping center after the initial delivery attempt was done (which I have done many times). Hopefully the OP gets lucky and the package come up or VZW allows them to purchase again at the discounted price as the OP stated they were told might be the case. Otherwise...it might end up being an expensive situation if the responsibility is placed on the OP and not the driver.

  • IPhone packager update

    From Adobe Labs
    October 11, 2010 — An updated release of Packager for iPhone is now available.
    http://labs.adobe.com/technologies/packagerforiphone/
    If someone find out or try it out, please let us know what's new.

    This update fixed the problem about zipping/unzipping the app with the uploader, but we still have the problem, where if the app is only for ipad we still get an error saying the bundle it's invalid, since the packager is setting the minimum OS to 3.0 instead that 3.2

Maybe you are looking for

  • SO_NEW_DOCUMENT_ATT_SEND_API1 : How to use it to support multibyte

    Hi -, I am using SO_NEW_DOCUMENT_ATT_SEND_API1 to send excel file as an attachment . I am  able to submit in the excel file with both english & russian characters. But when i am recieving the same file in output, english characters are looking fine.

  • Multitap on touchpad no longer works after Xorg 7.4 upgrade

    After upgrading to Xorg 7.4 I can no longer use a two finger tap to middle-click, where I could before. Two finger scrolling was on by default somehow, but turning that off didn't help. How can I get middle-click back.

  • OneStep Doesn't Capture

    I am using iDVD '08 version 7.02 to capture video and burn a DVD from my digital camcorder hooked up by a firewire cable. iDVD properly rewinds the tape but then several seconds after it starts playing it stops and says "nothing captured; capture abo

  • I can no more read old iWork files since I installed the new iWork

    I installed the new iWork for iCloud and deleted the old iWork folder. Since that I discovered that files older than iWork 9 cannot be open. And I need all these files from time to time because I did not upgraded all files from 08 to 09. I tried to r

  • Oracle Policy Automation Cloud Service Tutorials through YouTube and RightNow knowledge base

    We now have the following additions to our YouTube channel: Introduction to Oracle Policy Modeling Interface - Cloud Edition Introduction to the Project View in Oracle Policy Modeling - Cloud Edition Introduction to Rules, Data and Interviews views w