tags:

views:

98

answers:

1

I need to run a bot on an app and I'm not sure where to even begin.

I am not trying to cheat anything, I am simply trying to automate tasks using the app. If it helps, kind of like WoWGlider is for WoW (I think, never used it though). So I'm not worried about changing variables within the flash app, but I do need to view their value at least.

EDIT: Pretend some website, flashapp.com, is hosting a swf file, linked to a server which I have no access too. The app has a RNG, and everytime I click it gives me a new number. I need to be able to 'know' the value of that number, and then everything I need to do after that I can just record mouse movements for.

+1  A: 

Yes, it is possible. It depends on your actionscript version, but you can use the Loader class to load in an external swf, which you can then modify the variables of. I would suggest looking into the as docs for your version of flash, and going from there.

A few things to note:

  • You cannot load as3 content into an as2 movie
  • You need to know what variables to change, if it is an open source app, you can look through it like that. If it is as2 based, you can use flare, or some other decompiler. You may also want to look into flash's debugger.
PiPeep
It has to be "live" though, I need to use it on a flash app on a webpage (the app transmits data back and forth from their server).
akway
In fact, I'd rather not even write it in AS3, I'd like to write the bot in Ruby or Python if possible.
akway
Not sure if that is possible, check out osflash.org. There might be some library. You might be able to write an swf wrapper to communicate to your Ruby or Python. You can use the free Flex SDK for compiling AS3.
PiPeep
I'm pretty positive he doesn't have control of the SWF, meaning that it's not his...
Yar