Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

So, world is reserved?

New Here ,
Jan 31, 2011 Jan 31, 2011

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.

TOPICS
ActionScript
503
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 01, 2011 Feb 01, 2011

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 01, 2011 Feb 01, 2011
LATEST

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".

捕获.PNG

Thanks for your attention.

L.A.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines