Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


C# flash game trainer question

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
badluckz
How do I cheat?
Reputation: 0

Joined: 10 Sep 2009
Posts: 3

PostPosted: Thu Sep 10, 2009 7:44 am    Post subject: C# flash game trainer question Reply with quote

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites