AS3 2.1 Port (Alchemy), WCK Update and Kinematic Demos

mayobutter wrote:
boasera: I tried changing both scale and gravity in the blank project - it worked fine. Really not sure at all what could be happening on your end.


Thanks for checking it out. I've tried on two computers with Flash CS 5 and both have the same problems. So I installed my old CS 4 and it works with that, so it seems that it might be an issue with CS 5. What version are you using?

Edit: Ok so this seems to be a problem that only happens depending on your OS settings. This only happens on Numeric values because the component use "," instead of "." on decimals if your from a country that use that.

If I write "10,5" (if I put 10.5 it changes the dot to a comma) in the component editor it sets the gravity to 50, it takes whatever is after the comma. Adobe seems to know about this but I don't think there is a real solution for it. Here is a quick and dirty fix for it: http://kb2.adobe.com/cps/845/cpsid_84551.html if anyone else have this problem.
I'm having troubles getting this to work with FlashDevelop. I've searched the forums and couldn't find anything relevant to my problem.

I downloaded the Box2DAS folder from the github and included it in my classpath. That works fine.

What I am having problems with is the SWC file. I right clicked the Box2D.swc file and selected "Add to Library". When I try to compile a simple program, it gives me the following error:
Code:
Error: unable to load SWC Box2D.swc: D:\Box2D Test Project\lib\Box2DAS\Box2D.swc is not a SWC file.

I've read the forums and it seems people are getting this to work in FlashDevelop without hassle; so I don't know what the problem is.

I first was using Flex 3 and FlashDevelop 3.0. After the error occurred, I downloaded Flex 4.1 and FlashDevelop 3.2.2; however, the same error still occurs.

If anyone has any ideas, please respond when you get a second to spare. I greatly appreciate any help you're willing to offer.

Thanks.
I downloaded the code to see if I had accidentally uploaded a bad .swc file, but it worked fine, so that's not the issue. I would test in FlashDevelop but they don't have a Mac version, so hopefully someone else can chime in on that. Maybe test if the SWC even works in Flash / Flex in the first place?
This's amazing!!

Exist some car/bike controled by keyboard example?

Like this:
http://www.emanueleferonato.com/wp-cont ... 01/car.swf
or
http://www.emanueleferonato.com/downloads/TruckGame[1].swf

How add torque/motor speed in a revolute joint?



WCK is Fantastic!!! \o/
mayobutter wrote:
I downloaded the code to see if I had accidentally uploaded a bad .swc file, but it worked fine, so that's not the issue. I would test in FlashDevelop but they don't have a Mac version, so hopefully someone else can chime in on that. Maybe test if the SWC even works in Flash / Flex in the first place?
Thanks. I don't have Flash to test it with unfortunately. I'll keep trying to figure it out, but I'm not sure what else to do. If someone else thinks they can help, please attempt. If I find out how to fix it in the meantime, I'll post it here for future reference. Thanks again.
I am using FlashDevelop 3.2.2 on Windows 7x64 and I haven't had any issues.

Are you compiling for Flash 10?
Have you included the Flex SDK?

I don't know what else might be the problem, things are working fine for me. I can't get it to work with a Haxe project, but that's a problem with swfmill I believe. Working with a FlashDevelop As3 project I haven't had any problems.
jj.mac wrote:
I am using FlashDevelop 3.2.2 on Windows 7x64 and I haven't had any issues.

Are you compiling for Flash 10?
Have you included the Flex SDK?

I don't know what else might be the problem, things are working fine for me. I can't get it to work with a Haxe project, but that's a problem with swfmill I believe. Working with a FlashDevelop As3 project I haven't had any problems.
Hi jj.mac. Thanks for the response. May I ask what Flex version you are using? I want to try and duplicate your versions and see if that fixes the problem. Thanks again!

Edit: So I got it working. I uninstalled FlashDevelop (along with the saved settings) and deleted my folder containing Flex. Then, I downloaded Flex 4.1 from here (the Adobe Flex SDK, not the Open Source Flex SDK). I extracted that in "C:\Flex". Then I downloaded FlashDevelop 3.2.2 from here. I installed that. Then I went into FlashDevelop's settings (Tools > Program Settings). I set "Flex SDK Location" inside the "AS3Context" group to "C:\Flex". I set "External Player Path" inside the "FlashViewer" group to "C:\Flex\runtimes\player\10.1\win\FlashPlayerDebugger.exe". I started a new project (Project > New Project) and set it to be an "AS3 Project". I downloaded the AS3 2.1 Port here ("Download Source" button in the top right). I extracted the "Box2DAS" folder into my new project's "lib" folder. Then, inside FlashDevelop I added a classpath (Project > Properties > Classpaths > Add Classpath) to the "lib" folder. Then, in the project manager (View > Project Manager), I expanded the "lib" folder and "Box2DAS" folder, right clicked "Box2D.swc" and selected "Add To Library". I ran it (Project > Test Movie), and it compiled and ran successfully this time. I don't know why. I'm thinking it may have been the version of Flex I was previously using (maybe I was using the Open Source Flex SDK?). I don't know. In any case, those were the exact steps that I took to make this work. Thanks again for the help guys.
Hi guys!

Does anybody have a working game with a preloader in ONE file (preloader+game)?
If so, please tell me how to achieve this. This is impossible!

Thanks!
master wrote:
Hi guys!

Does anybody have a working game with a preloader in ONE file (preloader+game)?
If so, please tell me how to achieve this. This is impossible!

Thanks!


What errors do you get? Do you have a sample project I could start with to try and debug? I've always used an external loader...
I'm back after summer break, glad to see WCK is still around! Hope to finish my project next week.

Cheers

Original thread: https://box2d.org/forum/viewtopic.php?t=4105