View unanswered posts | View active topics


Reply to topic  [ 4 posts ] 
iOS + Stage3D : has .. managed to get this working? [SOLVED] 
Author Message
Member

Joined: Sun May 11, 2008 1:04 pm
Posts: 2
Post iOS + Stage3D : has .. managed to get this working? [SOLVED]
I keep getting the following result:

Code:
stage.stage3Ds.length = 0


Where it should be 1.

I'm using what's currently the latest versions: flash develop 4.0.1 RTM, air 3.1 and flex 4.6. I haven't managed to get it compiling at all with flash builder 4.5 (I don't have access to 4.6), but it does work when compiled from Flash CS 5.5.

It should be possible right? I have rendermode on direct, fullscreen on true. My code doesn't do anything other then add a textfield to the stage with the number 3d layers in it:

Code:
package
{
   import flash.display.Sprite;
   import flash.text.TextField;
   
   public class StageCounter extends Sprite
   {
      public function StageCounter()
      {
         var tf:TextField = new TextField();
         tf.text = stage.stage3Ds.length.toString();
         addChild(tf);
      }
   }
}


I would really appreciate any help here, I have a feeling it's an annoying little setting I'm overseeing, but I'm out of ideas at this point.


Last edited by stijn on Thu Mar 08, 2012 10:38 am, edited 1 time in total.



Wed Mar 07, 2012 5:22 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 10749
Location: Paris, France
Post Re: iOS + Stage3D : has anyone managed to get this working?
Stage3D is only available in AIR 3.2 - see labs.adobe.com.


Wed Mar 07, 2012 9:19 pm
Profile WWW
Member

Joined: Sun May 11, 2008 1:04 pm
Posts: 2
Post Re: iOS + Stage3D : has anyone managed to get this working?
Thanks Philippe!

And because I have been an idiot, I'll break it down for who wants to have a quick start on this or runs into similar problems:

First, here's some resources to read

- http://labs.adobe.com./technologies/fla ... es/air3-2/

- http://forum.starling-framework.org/top ... droid-love

- http://www.codeandvisual.com/2011/expor ... tallation/

- The AIR_iOS_readme.txt file in your project

Now, the steps to move from air 3.1 to air 3.2rc (using "Air Mobile AS3 App" project template in FlashDevelop 4 RTM):

1 - download or copy latest flex sdk to a folder
2 - download air 3.2 sdk and copy it over that folder
3 - in the project, in bat/SetupSDK.bat, set the right FLEX_SDK the the combined flex 4.6/air 3.2 folder you just made
4 - in project properties, under Output, Platform select "Air Mobile 3.2"
5 - in project properties, under SDK, Installed SDK(s)
6 - if you didn't add this SDK yet select "Manage SDKS...", under AS3Context click the "InstalledSDK[] Array", press "...", "Add", browse to your new sdk folder, press OK, it should say "Flex 4.6.0, AIR 3.2" under Name, OK, OK
7 - from the SDK list select "Flex 4.6.0, AIR 3.2" and apply and close the properties
8 - in project properties, under Compiler Options, Additional compiler arguments, add "-swf-version=15"
9 - in the Air Properties, make sure the settings are correct, for example under Initial Window, Non-Windowed Platforms it should say Rendermode "Direct"
10 - in application.xml, set the namespace to <application xmlns="http://ns.adobe.com/air/application/3.2">

Off course, to test your stuff on the computer, you'll also need to install Air 3.2 and/or flash player 11.2


Thu Mar 08, 2012 10:36 am
Profile
Member

Joined: Fri Apr 13, 2012 3:14 pm
Posts: 1
Post Re: iOS + Stage3D : has .. managed to get this working? [SOL
Hey Thank you stijn!

I was searching how to compile to FP11.2! if the latest version of FlexSDX come with AIR3.1, how to place AIR3.2, and you said (just copy and paste over the folder and place the argument "-swf-version=15" to the compiler options).

Now I can make use of MouseEvent.RIGHT_CLICK !

Thanks for FD admins and contributors, I hope to release a game soon and contribute with cash $$ :D


Fri Apr 13, 2012 3:30 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.