Hello everyone! First of all I want to thank all you guys developing and contributing to this framework. I was very excited to test hardware accelerated flash stuff and was looking forward for the release of the new AIR3.2... Today I managed to compile a mobile app through Flash CS5, tested it on Android device and wanted to share my experience with everyone that are still wandering..
Flash CS5 can be set up according to this guide:
http://blog.prevail.co.nz/2011/06/21/overlaying-air2-7-in-flash-cs5/
using the new AIR3.2 SDK (bottom of the page):
http://labs.adobe.com/downloads/air3-2.html
Good Luck!
Publish for mobile from CS5 IDE
(15 posts) (6 voices)-
Posted 1 year ago #
-
@foul - thanks for this. I use CS5.5 and feel a little left out!
I tried overlaying the new 3.2SDK but haven't been able to get it to work.
I always get the "This application is not correctly embedded (wrong mode value)" error, and when I check the app's xml file it says "<renderMode>auto</renderMode>"
I can't seem to get Flash to output an xml file with "<renderMode>direct</renderMode>", which I'm assuming would fix the problem. I tried changing the xml file by hand but it always resets when I republish. Any suggestions?
(By the way I'm testing on an iPhone which bundles the xml it creates into the ipa file)Posted 1 year ago # -
I struggle with the same problem is Mr. wmwilson. If you ask who do this on your answer. please...
Posted 1 year ago # -
Hi. I edit the xml, locked it(assuming read-only for Win) and then published successfully for android. Hope that this method works also for iPhone.
Posted 1 year ago # -
@wmwilson - in your application descriptor XML file (E.g. test2-app.xml) you need to manually change
<renderMode>auto</renderMode>
to
<renderMode>direct</renderMode>
Flash won't output this value for you automatically.
EDIT: I have now overlaid 3.2 and I too am getting 'This application is not correctly embedded (wrong wmode value)'. I have used my own advice above (!)
but it ain't working.<renderMode>direct</renderMode>
Posted 1 year ago # -
Hi, Chris Gannon. Edit what you suggested in the xml, then set the xml file to locked(mac) or read-only(win). That way the xml file wont overwrite and you should compile correctly.
Posted 1 year ago # -
Hi foul,
Thanks for your suggestion - unfortunately that doesn't seem to be working either.
This is so frustrating - I've been waiting so long now for 3.2 SDK so that I can test my stuff on iPad/iPhone and I'm so close but STILL no cigar!
Posted 1 year ago # -
Yes!!!
Locking worked for me. I'm using a Mac and it worked for iPhone. Thanks for the suggestion @foul. @chrisgannon, are you on a Mac or Windows?
I really wish Adobe would remember us CS5 and 5.5 users. It seems like we always have to rig something to get the latest features. Very frustrating!Tip: If you edit the xml file in Text Wrangler they have a handy lock button on the top left that looks like a pencil, makes it easy to edit and lock things.
Posted 1 year ago # -
Locking didn't work for me, alas. I'm on Windows - I tried changing the renderMode to 'direct', then making the file read-only and exporting to iPad - still no joy.
Posted 1 year ago # -
Sorry to hear that! After you change the xml, lock, and republish what does the xml file say? Does the xml file revert back to auto after republishing?
Posted 1 year ago # -
It's working!
I read elsewhere on the forum that the swf-version should be 15 - not sure where they discovered that but I had changed mine to 14 (as the previous one was 13) so maybe that was the cause. I am still locking the file with renderMode > direct and I am able to play and test my game!
Posted 1 year ago # -
Sorry to drudge this up again. Although I have things working on iOS, Android is now giving me the dreaded wmode error is CS 5.5.
I have render mode set to direct in the xml file, and the file is locked.
Also I have the swf version set to 15 in the Android.xml file contained in Common/Configuration/Players
I'm running this on the Android Emulator and using Air 3.2 Runtime.Any thoughts as to why I would still get the embedded error?
Posted 1 year ago # -
Friendly Bump...Anybody have any thoughts on this?
Posted 1 year ago # -
Hm ... sorry, I don't have any more ideas about this, either.
Could it be that the Android device you're using isn't supported by Stage3D?Posted 1 year ago # -
hi @chrisgannon,
---------------------------------
It's working!I read elsewhere on the forum that the swf-version should be 15 - not sure where they discovered that but I had changed mine to 14 (as the previous one was 13) so maybe that was the cause. I am still locking the file with renderMode > direct and I am able to play and test my game!
---------------------------------
I don't understand set the swf-version in flash cs.
please tell me in detail.
thanks.Posted 1 year ago #
Reply
You must log in to post.