Skip navigation

Here is a tool to easily package a swf for AIR 2.6!

Mar 31, 2011 8:19 PM

  Latest reply: horas_panes, Apr 29, 2011 6:03 AM
Replies 1 2 3 Previous Next
  • Currently Being Moderated
    Apr 13, 2011 8:20 PM   in reply to pekingman2011

    I used a invalid app id, not a bug.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 14, 2011 6:22 AM   in reply to Pea

    Hey Pea.
    I'm loving the easy to use layout but I'm encountering a problem when I deploy my app.

    The white output box seems to show that everything went fine:

     

    Deploying for iOS
      check AIR SDK path: ok
      check Java JRE path: ok
      check swf path: ok
      check password specified: ok
      creating output folder (ios)
        copy starcraft2soundboard.swf
        copy Default-Portrait~iphone.png
      creating app descriptor XML
      save starcraft2soundboard-app.xml
      create build.bat

      run build.bat

     

     

    but the cmd output box ends with

     

     

    ADT does not support 64bit java for IPA targets
    C:\FilePath\ios>set /p dummy=

     

    Using Windows 7 Pro 64bit.
    Installed Air SDK 2.6. (Maybe I need a 64bit SDK? But I can't find any if that is the case)
    Installed JRE 64bit
    I also had the "Use Java (adt.ar)" tick box checked.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 14, 2011 3:24 PM   in reply to PatrickFlash!

    I had the same issue - try installing the 32 bit JRE and pointing the tool at that.

     

    http://www.oracle.com/technetwork/java/javase/install-windows-141940.h tml

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 15, 2011 5:05 AM   in reply to Pea

    Hi Pea, first of all props to the program, it looks and feels great! )

     

    I followed install instructions for both ADT and ADTHelper, I've entered everything needed to Deploy to iOS but I've stumbled on an error during the deployment in cmd.

     

    Error: could not load keystore file (password may be incorrect)

     

    I was searching for a solution, some say it should be compiled in a bin folder, but I've been trying so far with no success, and for password I'm sure I'm entering the right one D:

     

    I installed both 64 and 32 bit java, played with them; 64 bit wont compile, 32bit shows this error and without Java cmd just closes by itself. I have Windows 7 64bit installed.

     

    Anyway, if any of you could shed some light I would be thankful; I'm new to AIR 2.6 because I didn't want to update prior to a program such as this being released )

     

    Thanks in advance and once again thanks for the great program Pea )

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 15, 2011 6:15 AM   in reply to Sasha Agafonoff

    Sasha Agafonoff wrote:

     

    I had the same issue - try installing the 32 bit JRE and pointing the tool at that.

     

    http://www.oracle.com/technetwork/java/javase/install-windows-141940.h tml

    Thanks Sasha Agafonoff. That actually seemed to work a bit better but now created a different error which funnily enough, is the exact same error I recieve when I try exporting using Adobe CS5 packager.
    This error which appears in both instances is:

     

    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.


    As this happens to the Adobe Packager it's safe to say this isn't a one off bug caused by your compiler Pea, but instead something to do with Java on my machine.
    Any Ideas anyone?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 15, 2011 6:46 AM   in reply to Pea

    Yes, I have managed to get an IPA file with both ADT from batch/command and with ADT Helper Tool (still facing a range of issues with the end results from both, but that's off topic). 

     

    You definitely need to use 32-bit Java - if you try to run ADT with 64 bit Java, you just get an "ADT does not support 64bit Java for IPA targets" message.  So, for clarity, my batch includes the full path to 32bit Java as follows:

     

    "C:\Program Files (x86)\Java\jre6\bin\java" -jar "C:\AdobeAIRSDK2.6\lib\adt.jar" -package ...etc

     

    Side comment: I've noticed with the ADT Helper Tool that it's sensitive to spaces (yes, I had some folders and files with spaces in them) - these might be causing a few issues once people get passed the Java issue...

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 15, 2011 2:06 PM   in reply to Sasha Agafonoff

    Thanks Sasha, space in folder name was the problem, now everything runs smoothly! except app performance, needs some tweaking cheers!

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 17, 2011 9:13 PM   in reply to Pea

    Awesome app Pea.  I just wish I could use it 

     

    I can't get pass the stupid error after enter password in cmd.

     

    C:\FilePath\ios>set /p dummy=

     

    I tried the steps above, alteast I thought I was doing the correct steps.

     

    Any other fixes for this error?

     

    Thanks

    Timothy!

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 17, 2011 9:48 PM   in reply to Pea

    Thanks for the reply Pea, cool didnt know that... but It still doesn't create a .IPA file

     

    here is what my DOS window says:

     

    http://pastie.org/pastes/1805885/text

     


    Thanks

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 17, 2011 10:00 PM   in reply to Pea

    not a problem! I appreciate it!

     

    Thanks!

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 17, 2011 10:36 PM   in reply to logue.timothy

    There are a couple of things that seem odd in your text:

     

    -storepass 65789 -provisioning-profile C:\
    Program Files (x86)\Adobe\Adobe Flash CS5\AIK2.0\bin\TImothy_Logue_Provision_.mo
    bileprovision test.ipa test-app.xml test.swf icons
    password:

     

    Normally you only get asked the password if you left out the -storepass part. Also, did you really name your provisioning file with a capital i as the second letter?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 17, 2011 11:08 PM   in reply to Colin Holgate

    This is the problem I am having too!

    It asked me for the password again in the terminal EVEN THOUGH I have already placed it in the dialog.

     

    When I do enter the password AGAIN and pressed enter, the terminal quickly displayed many lines and DISAPPEARS!

     

    I was like WHAT!!!???

     

    I tried not putting in the password and wait thinking that it was compiling.

     

    I felt so stupid trying to make it work

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 17, 2011 11:07 PM   in reply to Colin Holgate

    Yeah by mistake.  Its just a Profile Name... It really shouldnt matter correct?

     

     

     

    Timthy

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 17, 2011 11:41 PM   in reply to logue.timothy

    Hi Pea,

     

    I too getting the same error.

     

    i)   The password is already in the batchfile then why again asking for a password?

    ii)   If the password typed again, it returns the error as they mentioned

    iii) How do we know the progress running in the background that creates IPA?

    iv) I never get the IPA in the ios folder

    v) I'm not able to attach my external sound and xml files (not yet developed?)

     

     

    Otherwise the tool is nice and looking friendly.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 17, 2011 11:54 PM   in reply to logue.timothy

    There are many ways to get the message about the password being incorrect. One of them is to point to files that don't exist, or in your case are spelled differently (even if it's just the wrong casing).

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2011 12:05 AM   in reply to Colin Holgate

    Oops! Its working now. Guys, here a tip for all and pea should take care of this too while using the browse button.

     

    Some of them are getting worried about not creating the ipa and password error. Please check whether your path of the folder contain any space otherwise it shows the error of the password.

     

    And Pea, Is it possible to validate the space error when browsed the path? Hope its possible and its very easy for everybody to select the path even it having the space.

     

    Now I'm waiting for the tool to support my additional files to add! WHEN! WHEN! WHEN!

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2011 1:39 AM   in reply to relaxatraja

    Ok, in order to remove all possible traces of spaces in all the files I use, I port everything to pure C Drive.

     

    Now there is a new error: "iTunesArtwork-app.xml: error 304: Initial window contend is invalid"

     

    [Correction, I've fixed the problem, turns out there is a bug in the program for the time being, when everytime you select the 512 by 512 artwork, the path of the swf change to the image file name :(]

     

    Thanks for the dialog!

    Now we can use 2.6! Thanks!!!!

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2011 1:45 AM   in reply to Pea

    HO HO!

    I JUST realize the SDK 2.6 doesn't work with Flash Filters...

    Ok, that's game over for this version of the SDK

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2011 5:02 AM   in reply to Pea

    Hi Pea,

     

    The adobe packager turn it into the folders within that ipa and I mentioning the files within the ipa and not from the external one from server. For server you dont need to compile the folders here we just refer that by code. So the only thing is to packaging the ipa with the folders. I mean when you extract the files from the ipa the folders should be there. Hope you clear!

     

    I'm from India and you can take your own time, here its Evening

     

    Note: you should not remove the spaces in the browsed path, instead the script should access the specified path from the OS even have space.

     

    May I know what was the software you developing the GUI and the code?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2011 5:25 AM   in reply to Dei_Machiavelli

    Either make bitmaps that have the filter effects you're trying to do, and use the GPU, or try setting the app to use CPU.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2011 1:24 PM   in reply to Colin Holgate

    You are right Colin Holgate, turning OFF GPU does the trick.

     

    But now the whole application, without the help of the CPU turns into slow-mo.

     

    So...using 26 SDK, we gain new APIs, Multitask, but lose the usage of the GPU.

     

    I felt that we are moving backward as the main problem of the IOS Packager IS SPEED.

     

     

    But atleast I will have a lot of fun with the new API in a slower application

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2011 2:28 PM   in reply to Pea

    Sir Yes Sir!

    No more Filters for this Bad Boy!

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2011 2:40 PM   in reply to Dei_Machiavelli

    No more live filters in GPU. You can still have filter effects applied to movieclips and then convert those into bitmaps, to use with the GPU. And that will even become easy once CS5.5 is shipping.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2011 2:45 PM   in reply to Colin Holgate

    Not to mention that if you DID use the GPU, the vector output for those sprites with cacheAsBitmap and cacheAsBimapMatrix enabled is HORRIBLE, like "In your FACE" jagged!

     

    Try it ! Create a Circle or Round Rectangle, make a class out of them and in the constructor enable cacheAsBitmap and cacheAsBitmapMaxtrix = new Matrix().

     

    Look at how the GPU totally fail in your face!

     

    I love the new APIs, so I will be more then happy to use CPU for now, I am still a happy man

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2011 2:48 PM   in reply to Dei_Machiavelli

    Try stage.quality = "best" to make the vectors look nicer.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2011 3:01 PM   in reply to Colin Holgate

    Is there a reason why I don't have to do that in the older SDK and it still looks good ?

    Is something else damaged ?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2011 3:04 PM   in reply to Dei_Machiavelli

    The whole way that things work was changed to match how it was done with Android. The end result is that you can set the stage quality to any of the normal settings, with the old packager you got antialiasing ok, but it was always sort of medium quality. Now you can have it look horrible or great.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2011 3:28 PM   in reply to Colin Holgate

    I see !

    So in the old Packager we have NO control over the quality and now we do !

     

    I would gladly add one more extra line to my normal coding now

    Yeah!

     

    [Edit:

    Could I use

    stage.quality = StageQuality.BEST;

    or this constant is not part of the new SDK Android focus version ?

    ?

    ]

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2011 10:12 PM   in reply to Dei_Machiavelli

    stage.quality = StageQuality.BEST; This is the correct on for AS3

     

    Hi Pea,

     

    Did you missed out my post above?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 19, 2011 7:29 PM   in reply to Pea

    I can't win! I though the space issue was the fix! haha now i'm getting an error:

     

     

    C:\Users\Timothy Logue\Desktop\sample\ios\test-app.xml(3): error 105: applicatio

    n.id contains an invalid value

     

    can someone explain that to me?

     

     

    Thanks

    Timothy

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 19, 2011 10:06 PM   in reply to Pea

    Hi Pea,

     

    Why not replying to my post above still? Without the attachments and the space issue still its an incompleted tool, Am I right?. Becoz not only users going to develop their project within a single flash file, there are more than that adding external files, sounds, images, videos etc. Pure programmers not going to develop their files within a single file and publish with the tool given here. So please make it an complete tool, still the tool is great.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 20, 2011 3:19 AM   in reply to relaxatraja

    Don't be so harsh relaxatraja

     

    Remember, Pea is doing this out of his own free time, he has chosen to share his work with us, he don't do it so that we can suddenly start demanding him to "work for us" or that he have to answer to us.

     

    Give him some time

     

    He has already done something that have help most of us here already

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 20, 2011 6:27 AM   in reply to Pea

    Hey Pea

    No need to be sorry.  Take your time really.  I just didnt know.

     

    I'm just happy you created this kick ***  this tool for everyone!  AND! its open source

     

     

    I mean it awesome work!

    Thanks

     
    |
    Mark as:
Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)