xWhackoJacko
04-14-2009, 07:29 PM
So I'm very new to AS, and I'm following a tutorial on my own time just to make a simple game. The code given to me was in an external .as file, which I found out you have to import as a Document class and what not.
That's cool and everything, even though I don't understand the benefits of external .as files beyond the whole package { thing, but now I don't know how I can effectively use it.
What I want to do is call upon that external file at a certain point in the timeline. So the game will have a home page with a start/instructions button, and when you hit the start button you go to that frame, with the game code and all that. But since its external, I have no idea how to do that. And i'm being forced to use an external because of the package and the public functions (at least I think I'm being forced :D).
Any help would be great. Thanks.
That's cool and everything, even though I don't understand the benefits of external .as files beyond the whole package { thing, but now I don't know how I can effectively use it.
What I want to do is call upon that external file at a certain point in the timeline. So the game will have a home page with a start/instructions button, and when you hit the start button you go to that frame, with the game code and all that. But since its external, I have no idea how to do that. And i'm being forced to use an external because of the package and the public functions (at least I think I'm being forced :D).
Any help would be great. Thanks.