Problems with Preloader
- wolftriplex
-
wolftriplex
- Member since: Oct. 14, 2005
- Offline.
-
- Forum Stats
- Member
- Level 02
- Blank Slate
I am using one of the preloaders that Newgrounds have provided and I did everything it asked, but it still isn't working. Every time I put it in the "Dumping Grounds" and play it, it just brings up the white screen until it's all the way loaded and automatically starts.
- Aprime
-
Aprime
- Member since: Aug. 15, 2005
- Offline.
-
- Forum Stats
- Member
- Level 47
- Game Developer
At 4/16/14 03:02 PM, wolftriplex wrote: I am using one of the preloaders that Newgrounds have provided and I did everything it asked, but it still isn't working. Every time I put it in the "Dumping Grounds" and play it, it just brings up the white screen until it's all the way loaded and automatically starts.
Link the Dumping grounds file
- Etherblood
-
Etherblood
- Member since: Apr. 14, 2013
- Offline.
-
- Forum Stats
- Member
- Level 12
- Game Developer
- wolftriplex
-
wolftriplex
- Member since: Oct. 14, 2005
- Offline.
-
- Forum Stats
- Member
- Level 02
- Blank Slate
I have changed the properties, but now, it brings up the preloader and loads, but the code still attempts to start and comes up with an error saying that my variables are Null or no properties. It's as if the preloader isn't stopping the code and the preloader just does it's thing.
http://www.newgrounds.com/dump/item/9f5fda2cabf26aa78287b3311a7c63f5
- Etherblood
-
Etherblood
- Member since: Apr. 14, 2013
- Offline.
-
- Forum Stats
- Member
- Level 12
- Game Developer
At 4/17/14 06:38 PM, wolftriplex wrote: I have changed the properties, but now, it brings up the preloader and loads, but the code still attempts to start and comes up with an error saying that my variables are Null or no properties. It's as if the preloader isn't stopping the code and the preloader just does it's thing.
The preloader doesn't 'stop' code, it just delays the 2nd frame until the loading finished. Put your code on the 2nd frame and it should work fine.
- wolftriplex
-
wolftriplex
- Member since: Oct. 14, 2005
- Offline.
-
- Forum Stats
- Member
- Level 02
- Blank Slate
But how do I do this? All the Actionscript code, including the main Engine, are all in separate Actionscript files and the Class on the Flash file is linked to the "Engine" actionscript file! I even set the code to start on Frame 2, but it still wants to run the actionscript engine, even though it's not on frame 2 :(
- Etherblood
-
Etherblood
- Member since: Apr. 14, 2013
- Offline.
-
- Forum Stats
- Member
- Level 12
- Game Developer
At 4/19/14 05:23 PM, wolftriplex wrote: But how do I do this? All the Actionscript code, including the main Engine, are all in separate Actionscript files and the Class on the Flash file is linked to the "Engine" actionscript file! I even set the code to start on Frame 2, but it still wants to run the actionscript engine, even though it's not on frame 2 :(
I'm not sure what your problem is, what isn't working, what errors do you get (if you get any), what does the corresponding code look like? What do you mean with "the Class on the Flash file"?
If you're using Adobe Flash CS x you just need to make 2 frames on the timeline, 1st frame for the preloader (nothing else), and the 2nd frame contains the ActionScript to start your game/engine.
- wolftriplex
-
wolftriplex
- Member since: Oct. 14, 2005
- Offline.
-
- Forum Stats
- Member
- Level 02
- Blank Slate
At 4/19/14 06:21 PM, Etherblood wrote:At 4/19/14 05:23 PM, wolftriplex wrote: But how do I do this? All the Actionscript code, including the main Engine, are all in separate Actionscript files and the Class on the Flash file is linked to the "Engine" actionscript file! I even set the code to start on Frame 2, but it still wants to run the actionscript engine, even though it's not on frame 2 :(I'm not sure what your problem is, what isn't working, what errors do you get (if you get any), what does the corresponding code look like? What do you mean with "the Class on the Flash file"?
If you're using Adobe Flash CS x you just need to make 2 frames on the timeline, 1st frame for the preloader (nothing else), and the 2nd frame contains the ActionScript to start your game/engine.
Alright, so the error I get is that the line is "null or contains no properties" and it is on the first line of code! Now, the code for the game is not linked to any frame at all, like an action, it is in an actionscript file. Now, what I mean by "The class on the flash file" is when in the properties menu on the Flash file, there is a "Class" spot where you link an actionscript file to it!
I am using Adobe Flash Creative Cloud.
- Etherblood
-
Etherblood
- Member since: Apr. 14, 2013
- Offline.
-
- Forum Stats
- Member
- Level 12
- Game Developer
At 4/19/14 08:29 PM, wolftriplex wrote: Alright, so the error I get is that the line is "null or contains no properties" and it is on the first line of code! Now, the code for the game is not linked to any frame at all, like an action, it is in an actionscript file. Now, what I mean by "The class on the flash file" is when in the properties menu on the Flash file, there is a "Class" spot where you link an actionscript file to it!
I am using Adobe Flash Creative Cloud.
Hmm...
Below the textfield where you type in your document class should be another textfield "export in frame", did you try setting it to 2? (not sure if this even changes something)
If not I'm out of ideas.


