How to Put on the AS3 MochiBot Code

Adding Mochibot code to your ActionScript 3 (AS3) Flash games and movies will give you the data needed to market and maximize profits. With Mochibot code in your game you can activate the Mochibot website monitoring program. The Mochibot program will display all the websites that have currently installed your Flash game and will break down the Web traffic for your game by site. Adding a Mochibot script into your game only takes a minute or two.

Instructions

  1. Generate the Mochibot AS3 Script

    • 1

      Sign up for a free Mochibot account.

    • 2

      Navigate to the Mochibot script generator page to generate the Mochibot script that you will insert into your Flash program. Type in an arbitrary title for your flash movie. Use "MyGame" for this example.

    • 3

      Check the type of Flash application your flash movie is. Select either Game, Animation, Flash Website, Video, Banner Ad, Hit Count or Other. Type in the application in the "Other" text box if you checked Other.

    • 4

      Check the "Rank this SWF" text box so that Mochibot can rank the performance of your SWF file with other applications that are in the same category you selected.

    • 5

      Paste in the URL where your SWF file is currently located. Click "Save."

    Modify Your Flash AS3 File

    • 6

      Start Adobe Flash Professional. Click "File" and navigate to the Flash program you created. Click "Open."

    • 7

      Click "Timeline" from the "Window" menu. Click the "New Layer" icon in the "Timeline" panel.

    • 8

      Position your mouse cursor over the new layer's label name and type in "Mochibot" into the layer text box.

    • 9

      Click the "First Frame" in the "Mochibot" layer, then click "Actions" from the "Window" menu to open the ActionScript 3 (AS3) editor. Paste the Mochibot script you generated into the AS3 editor.

    • 10

      Click "Publish" from the "File" menu to publish your Flash SWF file and then upload it to your website.

    • 11

      Check the Mochibot website monitor in a few days to see if it has recorded any visitors that viewed your flash movie on your website or any other websites that you or others may have put it on.

Learnify Hub © www.0685.com All Rights Reserved