Copy link to clipboard
Copied
I am doing a game project with Flash CS5 and there are errors with my World classes. Never thought that "World" is reserved. Or it it partially reserved:
if you try to write a world class, it is fine. But in my game project, I explored inside the swf with Flash Develop. I did found a built-in class, which I later found belongs to the forbidden physics engine.
The point I want to make is if Flash does not want to publish this function, they should include "World" "PhysObj" into reserved world list. Or how can coders know the source of problem of name collision with these stuffs. Or even if someone who uses a external library that use these words, the problem could be more confusing.
So, either it be made sure that those hidden stuff not compiled into swf, or put them into reserve list. Otherwise, things will not be logical.
I demand apologies for the lost time of whoever had debugged for nothing over this issue.
L.A.
Copy link to clipboard
Copied
I am not sure if I follow you fully, but I can certainly create and run a class called "World". In fact I can even create and run a class "Sprite", which is nothing to do with the Flash built-in class "Sprite" and not even a DisplayObject.
Copy link to clipboard
Copied
Hi, it is sure we can build a World class from bare hand, without the problem in my saying. But somehow it will "import" those physics class and cause collision.
I will post my finding, but in the meantime, you can take a look at these post:
http://stackoverflow.com/questions/3055502/phantom-class-definitions-in-flash-cs5
http://heftybyte.com/flash/flash-cs5-physics/
and take a look at the following picture, which is kind of swf explorer that come with Flash Develop, showing somehow those class were "imported".
Thanks for your attention.
L.A.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now