CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2009
    Posts
    1

    Read contents of flash file

    Hello,
    A friend of mine built a game in flash. The object of the game is to pair 3 or more of the same items (much like the game bejeweled (http://en.wikipedia.org/wiki/Bejeweled).
    I'd like to create an "auto pilot" of the game.

    My idea is to "read" each row in a grid and search for matches.
    I have NO IDEA on how to read data from flash files.
    Here's a picture of the game itself --> http://img705.yfrog.com/img705/6761/20185816.jpg
    Any help will be appreciated.

  2. #2
    Join Date
    Apr 2004
    Posts
    102

    Re: Read contents of flash file

    I have NO IDEA on how to read data from flash files.
    Reading a flash file is not a trivial task by any stretch of the imagination. But anyway, Here is a link explaining the flash file format.

  3. #3
    Join Date
    May 2007
    Posts
    1,546

    Re: Read contents of flash file

    A simpler, but still difficult, task would be to use a screen capture approach. Just load the game up, capture a screenshot of the game and then do some pattern matching to figure out where each element is. As there are a limited number of elements and they are always going to be laid out in a perfect grid, it'd be pretty easy to find all occurances of each element.
    www.monotorrent.com For all your .NET bittorrent needs

    NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured