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

Game Making

Guest
Apr 17, 2015 Apr 17, 2015

Okay, so I have looked for a while now, even asked my teacher, and haven't been able to get any answers for my question. So hoping people here will be able to help me out. So, me and a friend are making a game. The game is the Nim strategy game. What we want is to have a .fla for the main menu of the game and an actionscript file for the main menu. The menu would be the first thing the user would see. There would be a button on the main menu to enter the game itself. We would like to have another separate .fla file for the game and just somehow call it up in the button function of the menu. The game .fla would have it's own actionscript code. Is this possible? If so how? And another little catch is if you can do it, does it need to have a file locator of some sort? As that would not help since we have to  hand this in as a project and the teacher wouldnt have access to the file location as it is online. Are we asking for the impossible? Is actionscript able to do this?

Thanks for any help possibe!!

TOPICS
ActionScript
297
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
LEGEND ,
Apr 17, 2015 Apr 17, 2015

You can have separate files and load them into other files as needed - look into the Loader class for loading swf files.  The actionscript can be in the fla files or as separate files.  I am guessing that you are handing in a finished game file (swf) rather than an fla files for this since it appears your instructor knows nothing about Flash (either that or he/she is being intentionally non-helpful).

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
Guest
Apr 17, 2015 Apr 17, 2015

So I had looked into the loader function and it seemed to do the trick, except for the part where it requires a file location to load the other fla file. And indeed I need to hand in the fla and as files along with the swf file, so the file location would not work in this case I believe.

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
Enthusiast ,
Apr 17, 2015 Apr 17, 2015
LATEST

You would have all of your swf files together - in the same folder even. Then when you load one you just use the relative location - simple as something like: myLoader.load("game.swf");

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