badluckz How do I cheat?
Reputation: 0
Joined: 10 Sep 2009 Posts: 3
|
Posted: Thu Sep 10, 2009 7:44 am Post subject: C# flash game trainer question |
|
|
i am trying to make a trainer for the gaia online booty grab flash game. i have disassembled the source and found the correct variables to edit...and now i am facing the problem on how to load the flash movie into my trainer program.
as the booty grab game launches randomly, the best way to use the trainer is to let the user type in the userid of the owner of the tank into the trainer.
here's what i have so far in y program...simple:
Code: | public main() {
InitializeComponent();
}
private void loadBtn_Click(object sender, EventArgs e) {
if (userId_txt.Text != "") {
userId = userId_txt.Text;
testResult_lbl.Text = "User ID: " + userId;
loadMovie();
} else {
testResult_lbl.Text = "Please enter a User ID.";
}
}
private void loadMovie() {
String flashVars = "version=094&gsiUrl=www&userEnvironmentId=" + userId + "&quality=low&location=popUp&item_id=&type=&isGameActive=true";
fishTankObj.FlashVars = flashVars;
fishTankObj.Movie = moviePath;
fishTankObj.Playing = true;
} |
when i run the program, it turns out fine and the problem comes when i press the load button.
here's wat comes up:
Code: | TypeError: Error #1009: Cannot access a property or method of a null object reference.
at FishTank/getParentVars()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick() |
everything runs fine if i just copy the whole <embed> code from the browser and save it as a html file. am i missing something here?
thanks!
P.S.: i would really appreciate it if someone would also teach me how to access private variables in flash as3. would it be the same as using Code: | SetVariable("variable", value); |
or would it be something else?
|
|