You may want to upgrade your browser.
You are using an old version of the Internet Explorer.
Platogo will work much better if you upgrade to a more modern browser like one of these:
I've read the instructions on the preloader API, but it seems that I cannot get it to run on FlashDevelop. The error I keep getting is...
TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.platogo.components::Preloader/frame1()
That's what happens whenever I perform a new Preloader()
If needed, here's the first part of my code: import com.platogo.components.GameHighscore; import com.platogo.components.Preloader;
/** * ... * @author Test */ public class Main extends Sprite { private var prel:Preloader;
public function Main():void { prel = new Preloader(); // <-- it errors here prel.y = 300; prel.gameId = <removed>; prel.jumpFrame = &root&; // <--- i'm not even sure if this is right this.addChild(prel);
if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init);
}
Help on using the preloader would be really appreciated :). I don't understand the instructions on the Components page that much. I wouldn't mind using Platogo's default loading MovieClip for now.
Thanks!!
(and a follow up question) How do you get that percentage loaded thing to appear?
http://www.platogo.com/devcenter/articles/components
I've read the instructions on the preloader API, but it seems that I cannot get it to run on FlashDevelop. The error I keep getting is...
[quote]TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.platogo.components::Preloader/frame1()
[/quote]
That's what happens whenever I perform a new Preloader()
If needed, here's the first part of my code:
[code]
import com.platogo.components.GameHighscore;
import com.platogo.components.Preloader;
/**
* ...
* @author Test
*/
public class Main extends Sprite
{
private var prel:Preloader;
public function Main():void
{
prel = new Preloader(); // <-- it errors here
prel.y = 300;
prel.gameId = ;
prel.jumpFrame = "root"; // <--- i'm not even sure if this is right
this.addChild(prel);
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
}[/code]
Help on using the preloader would be really appreciated :). I don't understand the instructions on the Components page that much. I wouldn't mind using Platogo's default loading MovieClip for now.
Thanks!!
(and a follow up question)
How do you get that percentage loaded thing to appear?
We successfully tested the preloader in various environments. However, we didn't try it with FlashDevelop so far (the Flash people in our team are all using Macs curiously). I'll take a look into this.
Thanks for reporting this issue.
We successfully tested the preloader in various environments. However, we didn't try it with FlashDevelop so far (the Flash people in our team are all using Macs curiously). I'll take a look into this.
Comment:
I've read the instructions on the preloader API, but it seems that I cannot get it to run on FlashDevelop. The error I keep getting is...
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.platogo.components::Preloader/frame1()
That's what happens whenever I perform a new Preloader()
If needed, here's the first part of my code:
import com.platogo.components.GameHighscore;
import com.platogo.components.Preloader;
/**
* ...
* @author Test
*/
public class Main extends Sprite
{
private var prel:Preloader;
public function Main():void
{
prel = new Preloader(); // <-- it errors here
prel.y = 300;
prel.gameId = <removed>;
prel.jumpFrame = &root&; // <--- i'm not even sure if this is right
this.addChild(prel);
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
}
Help on using the preloader would be really appreciated :). I don't understand the instructions on the Components page that much. I wouldn't mind using Platogo's default loading MovieClip for now.
Thanks!!
(and a follow up question)
How do you get that percentage loaded thing to appear?
Comment:
We successfully tested the preloader in various environments. However, we didn't try it with FlashDevelop so far (the Flash people in our team are all using Macs curiously). I'll take a look into this.