+ Reply to Thread
Page 1 of 5 123 ... LastLast
Results 1 to 10 of 48

Thread: Tutorial - VB + Flash games!

  1. #1
    travy92's Avatar
    travy92 is offline Learning Programmer
    Join Date
    Sep 2007
    Location
    Australia
    Posts
    76
    Rep Power
    17

    Post Tutorial - VB + Flash games!

    INTRO

    Well in this tutorial we'll be making a Flash game player with some "hacks".

    ----------------------------------------------------------------

    GUI (LAYOUT):

    Here is my GUI:




    ----------------------------------------------------------------

    What you need:

    Here is what items/buttons you need:

    3 Command Buttons with:

    #1 Command Button:
    Name: cmdCash
    Caption: Get Cash

    #2 Command Button:
    Name: cmdPower
    Caption: Get Power

    #3 Command Button:
    Name: cmdTurrets
    Caption: Get Turrets

    3 Text Boxes with:

    #1 Text Box:
    Name: txtCash
    Caption (None)

    #2 Text Box:
    Name: txtPower
    Caption: (None)

    #3 Text Box:
    Name: txtTurrets
    Caption: (None)


    And the last thing you need to add is a ShockwaveFlash item by:

    Go to components or just press CTRL+T. Then scroll down to ShockWave Flash and tick it. A new item should appear on your toolbox, it looks like a piece of paper.

    Now click it and make a big box because this is what you'll be viewing/playing the flash game with.
    Give it the:
    Name: Movie


    Now to get the flash game playing.....

    First go to a flash game site (like miniclips or something) and load up a game. Wait until it's 100% fully loaded and then go into your "Temporary Internet Files" folder and find the game name with the extension ".swf". Right-Click it and then copy the location, in this case mine's:

    http://www.funny-base.com/games10/turretdefense.swf


    And then go back to VB and click on the Movie box (The thing we just made) and then do this:


    And you're done! YAY!

    ----------------------------------------------------------------

    CODE:

    Here is the code:

    Private Sub cmdCash_Click()
    Call Movie.SetVariable("_root.money", txtCash.Text)
    End Sub

    Private Sub cmdPower_Click()
    Call Movie.SetVariable("_root.power", txtPower.Text)
    End Sub

    Private Sub cmdTurrets_Click()
    Call Movie.SetVariable("_root.available_turrets", txtTurrets.Text)
    End Sub
    ----------------------------------------------------------------
    CODE EXPLANATIONS:

    Private Sub cmdCash_Click()
    Call Movie.SetVariable("_root.money", txtCash.Text)
    End Sub
    This just means every time you click the "cmdCash" button, it changes the variable (code) number to the number specified in the txtCash Text Box.

    ----------------------------------------------------------------

    Private Sub cmdPower_Click()
    Call Movie.SetVariable("_root.power", txtPower.Text)
    End Sub
    This does exactly what the first one does BUT it changes a different code (_root.power).

    ----------------------------------------------------------------

    Private Sub cmdTurrets_Click()
    Call Movie.SetVariable("_root.available_turrets", txtTurrets.Text)
    End Sub
    Also does the same as the two other codes! Again, it just changes a different code (_root.available_turrets).

    ----------------------------------------------------------------

    If you need any help with this tutorial/Sothink's SWF Decompiler/Flash games then please feel free to PM me or post in this Thread!

    Thanks to TheComputerMaster and Tcm9669 for the ScreenShot programs.

    Thanks to you for reading this tutorial!

    Made by me, Travy92.

    SAMPLES!:
    Attached Files Attached Files
    Last edited by Jordan; 09-13-2007 at 06:13 AM.
    C:\Users\Travis\Desktop\Image Converter\Knight1.bmp

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    Just a question as this is a very good tutorial, let's say that I have another swf game how can I know the variable name, so that when I press the command button the swf game variable changes to that in the text box? In short, how can I know variables like _root.available_turrets or _root.power??

    Thanks.

  4. #3
    travy92's Avatar
    travy92 is offline Learning Programmer
    Join Date
    Sep 2007
    Location
    Australia
    Posts
    76
    Rep Power
    17
    Well you need Sothink's SWF decomiler which you can search on google. Then you go to Action>Main to look at the variables.
    C:\Users\Travis\Desktop\Image Converter\Knight1.bmp

  5. #4
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    I can't find any Action>Main can you state this into more tdetail please? Thanks.

    EDIT: Ok I found it! You are great!! +rep given.
    Last edited by TcM; 09-13-2007 at 10:03 AM.

  6. #5
    khaabas is offline Newbie
    Join Date
    Sep 2007
    Posts
    4
    Rep Power
    0
    wow very good

  7. #6
    LOLOL is offline Newbie
    Join Date
    Oct 2007
    Posts
    1
    Rep Power
    0
    Very nice.

    * Goes to hax some games for fun.

  8. #7
    R-Kempik is offline Newbie
    Join Date
    Nov 2007
    Posts
    1
    Rep Power
    0
    Gd thts a great tutorial thx

  9. #8
    Yakuzaku505's Avatar
    Yakuzaku505 is offline Newbie
    Join Date
    Jan 2008
    Posts
    4
    Rep Power
    0
    Hello Travy I Want To Know How Can I Get Variable Codes For Flash Games Like The _root.available_turrets or _root.power?? I Want To Know How Please Please

    (THANKS)

  10. #9
    travy92's Avatar
    travy92 is offline Learning Programmer
    Join Date
    Sep 2007
    Location
    Australia
    Posts
    76
    Rep Power
    17

    Cool

    Quote Originally Posted by Yakuzaku505 View Post
    Hello Travy I Want To Know How Can I Get Variable Codes For Flash Games Like The _root.available_turrets or _root.power?? I Want To Know How Please Please

    (THANKS)
    Scroll up, i answered this question already.


    Offtopic: First time on in like 5 months!
    C:\Users\Travis\Desktop\Image Converter\Knight1.bmp

  11. #10
    Yakuzaku505's Avatar
    Yakuzaku505 is offline Newbie
    Join Date
    Jan 2008
    Posts
    4
    Rep Power
    0
    But I Cant Find The Action>main
    I Dont Know Where It Is

+ Reply to Thread
Page 1 of 5 123 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Similar Threads

  1. Hacking Flash Games (PART 1)
    By TcM in forum Security Tutorials
    Replies: 298
    Last Post: 01-16-2012, 06:42 PM
  2. Hacking Flash Games (PART 2)
    By TcM in forum Security Tutorials
    Replies: 119
    Last Post: 09-04-2011, 06:10 PM
  3. Can C++ Be Used In Internet Flash Games?
    By CommittedC0der in forum C and C++
    Replies: 12
    Last Post: 12-27-2009, 06:39 AM
  4. Flash Games on my site?
    By phpforfun in forum Website Design
    Replies: 5
    Last Post: 09-23-2009, 02:12 AM
  5. Online flash games site
    By 2stamlers in forum Site Reviews
    Replies: 5
    Last Post: 01-10-2008, 09:39 AM

Tags for this Thread

Bookmarks

Posting Permissions

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