FlashDevelop + Away3D + Air 3.2 + Stage3D + Android = Love!

Software: Other

GameDesigner, Jr. Member
Posted: 29 February 2012 11:59 PM   Total Posts: 33

Enjoy it wink

 

File Attachments
FlashDevelopAway3DAir3.2Stage3DAndroidLove.pdf  (File Size: 130KB - Downloads: 5448)
   

Avatar
theMightyAtom, Sr. Member
Posted: 01 March 2012 09:43 AM   Total Posts: 669   [ # 1 ]

Thanks so much for sharing, and not least for giving me an excuse to buy an Android tablet.

   

GameDesigner, Jr. Member
Posted: 01 March 2012 12:32 PM   Total Posts: 33   [ # 2 ]
theMightyAtom - 01 March 2012 09:43 AM

Thanks so much for sharing, and not least for giving me an excuse to buy an Android tablet.

you’re welcome! wink

   

Mr Margaret Scratcher, Sr. Member
Posted: 01 June 2012 04:21 PM   Total Posts: 344   [ # 3 ]

Hi there, followed your directions, but when I publish I get loads of errors like

Type was not found or was not a compile time constant TextureBase

Type was not found or was not a compile time constant Context3D

Type was not found or was not a compile time constant VertexBuffer3D

Type was not found or was not a compile time constant IndexBuffer3D

Type was not found or was not a compile time constant Texture

Type was not found or was not a compile time constant Stage3D

etc…

I’ve set the classpath to point to the away3d libraries, but should I have copied them in the directory as it says in the instructions? I’ll give that a go now and see if that makes any difference…

   

Mr Margaret Scratcher, Sr. Member
Posted: 01 June 2012 04:25 PM   Total Posts: 344   [ # 4 ]

Okay, that has helped loads, I now get

Type was not found…. :Camera3D

This is in my cameracontroller subclass…

   

GameDesigner, Jr. Member
Posted: 05 June 2012 08:58 PM   Total Posts: 33   [ # 5 ]
Mr Margaret Scratcher - 01 June 2012 04:21 PM

Hi there, followed your directions, but when I publish I get loads of errors like

Type was not found or was not a compile time constant TextureBase

Type was not found or was not a compile time constant Context3D

Type was not found or was not a compile time constant VertexBuffer3D

Type was not found or was not a compile time constant IndexBuffer3D

Type was not found or was not a compile time constant Texture

Type was not found or was not a compile time constant Stage3D

etc…

I’ve set the classpath to point to the away3d libraries, but should I have copied them in the directory as it says in the instructions? I’ll give that a go now and see if that makes any difference…

When you extract the away3D zip file (source code) you will find 2 folders in it: pb and src.

- Copy src and pb folders in your root project folder.

Then be sure to really follow the steps. I think you are compiling or testing your movie with a wrong flash version. ;)

Hope that helps wink

   

Mr Margaret Scratcher, Sr. Member
Posted: 14 June 2012 12:04 AM   Total Posts: 344   [ # 6 ]

Okay, yep I didn’t have the pb folder in there, so i put the latest away3d src and pb folders in the root directory of the project, but now when I compile I get the same errors as I did in the first instance.

Soooo….

I changed the name of the pb folder to ‘_pb’ to see if that had made a difference, and I got the same errors but with an additional couple of errors along the lines of:

Error: Unable to transcode /../pb/RayTriangleKernel.pbj.

which is to be expected.

So I change it back, and find that I get the same errors (minus the ones about /pb/RayTriangleKernel) if I unplug my phone, which leads me to believe that the errors are now appearing because my phone is not being recognised or the airplayer in the phone is incorrect..

 

   

Mr Margaret Scratcher, Sr. Member
Posted: 14 June 2012 12:05 AM   Total Posts: 344   [ # 7 ]

Okay, seems I have Air 3.3.0.3650 on my phone…

   

Mr Margaret Scratcher, Sr. Member
Posted: 15 June 2012 01:21 AM   Total Posts: 344   [ # 8 ]

Soooo… In order to try to see where the problem lies, I went back to basics and made a simple .as which just has a textField in it.

On compiling that I get:


Packaging and installing application for debugging on Android ()

Packaging: dist\VirtualEmpAir-debug.apk
using certificate: cert\VirtualEmpAir.p12…

C:\Users\Dell\Desktop\Design_stuff\Virtual Emporium V3\VirtualEmporium3.1\Away3D
Version\virtualEmporiumA3D AIR\Virtual Emp Air\application.xml: error 102: Inva
lid namespace http://ns.adobe.com/air/application/3.2

APK setup creation FAILED.

Troubleshooting:
- did you build your project in FlashDevelop?
- verify AIR SDK target version in application.xml

Press any key to continue . . .


Is this because I have air 3.3 on my phone?

   

Mr Margaret Scratcher, Sr. Member
Posted: 15 June 2012 02:51 AM   Total Posts: 344   [ # 9 ]

Ahhh… getting nowhere….

Here’s my project etc:

http://www.margaretscratcher.co.uk/projects/VirtualEmporium/Virtual Emp Air.zip

The simple .as is Main, and he actual 3d project I was trying to get working is VirtualEmporium.as…

If you could have a look at my configs in there and see if I’m doing something silly that would be much appreciated… smile

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X