Skip to main content
April 24, 2010
Question

Flash CS3 run-time failure; the .fla can't find the Library

  • April 24, 2010
  • 1 reply
  • 996 views

While tweaking some graphics in my game, I made some minor changes to 4 Number variables in an Array in a Class in a .as file. Saved the .as file. Then clicked on Control -> Test Movie to see if the changes corrected my graphics...And the game will not run anymore!

Very strange behavior for CS3. It has happened to me before however..just once before and I had to recreate the entire .fla to recover. Keep in mind that the game was running just fine twenty seconds before I made the minor tweaking changes. There are no compile time errors in my code. But now I receive the following run-time errors in my output file:

<code>

ReferenceError: Error #1065: Variable RotazePreLoader is not defined.

ReferenceError: Error #1065: Variable ReticleSprite is not defined.

ReferenceError: Error #1065: Variable GravityVector is not defined.

ReferenceError: Error #1065: Variable CrateDoors is not defined.

ReferenceError: Error #1065: Variable About is not defined.

ReferenceError: Error #1065: Variable MainMenu is not defined.

ReferenceError: Error #1065: Variable CoinMC is not defined.

ReferenceError: Error #1065: Variable BallSprite is not defined.

ReferenceError: Error #1065: Variable CrateSprite is not defined.

ReferenceError: Error #1065: Variable Credits1 is not defined.

ReferenceError: Error #1065: Variable About1 is not defined.

ReferenceError: Error #1065: Variable Credits2 is not defined.

ReferenceError: Error #1065: Variable About2 is not defined.

ReferenceError: Error #1065: Variable Credits3 is not defined.

ReferenceError: Error #1065: Variable About3 is not defined.

ReferenceError: Error #1065: Variable Credits4 is not defined.

ReferenceError: Error #1065: Variable About4 is not defined.

ReferenceError: Error #1065: Variable Credits5 is not defined.

ReferenceError: Error #1065: Variable About5 is not defined.

ReferenceError: Error #1065: Variable Credits6 is not defined.

ReferenceError: Error #1065: Variable About6 is not defined.

ReferenceError: Error #1065: Variable MainMenuBackground is not defined.

ReferenceError: Error #1065: Variable CreditsBackground is not defined.

ReferenceError: Error #1065: Variable AboutBackground is not defined.

ReferenceError: Error #1065: Variable Play is not defined.

ReferenceError: Error #1065: Variable Credits is not defined.

ReferenceError: Error #1065: Variable Tutorial is not defined.

ReferenceError: Error #1065: Variable Clicked is not defined.

ReferenceError: Error #1065: Variable RollOver is not defined.

ReferenceError: Error #1065: Variable HSP15 is not defined.

ReferenceError: Error #1065: Variable Rotaze is not defined.

</code>

Each of these variables are the name I used when I Exported for ActionScript the graphical assets in the .fla's Library. So it seems, all of a sudden, the .fla can't find its own Library. So my game will not run at all and that sucks because it has a May 1rst launch date. Any help is appreciated.

This topic has been closed for replies.

1 reply

April 24, 2010

And I can add the fact that HSP15 is a Font. Clicked and RollOver are MP3 Sound Effects. The rest are graphical assets code in the game needs to instantiate. I have been working in AS3/CS3 for two years.

Known Participant
April 24, 2010

I am not sure if you are having the same problems I have had.

But for me if I save and .as file and then say resave it where it should be,

Flash does not recognize I have changed paths. So I have to

close everything and then reopen what I need and then it works fine.

Jim

April 24, 2010

Thanks jim. But my prob seems to be the AVM2 can't find the Classes created when I tell Flash to Export for ActionsScript a symbol in the Library.

As I understand it, when I Export for ActionScript I tell Flash to create a Class using the name I specify when I Export for ActionScript. I should be able to instantiate instances of the Classes thus created in code. But all of a sudden, AVM2 can't find ANY of the assets in the Library.