The BEST Profiler for Flash

With more than 10 innovative profiler tools, The Miner is the most complete solution for optimizing Flash content. Using a lightweight immersive approach, this profiler can hook on anything made in flash, which let you profile and debug anytime, as needed.

Tutorial: Installing TheMiner

1. First, make sure you have the Flash Player Debug Version

Alternative content

Get Adobe Flash player

You dont have the Debug player? Go get it!

2. The SWC way (Embeding TheMiner)
The first way is to embed it directly in your project by using the SWC version.
To embed it, you simply have to add one line of code to your project:
import com.sociodox.theminer.*;
public class Main extends Sprite 
	public function Main():void
		addEventListener(Event.ADDED_TO_STAGE, OnAddedToStage)

	private function OnAddedToStage(e:Event):void 
		removeEventListener(Event.ADDED_TO_STAGE, OnAddedToStage);
		this.addChild(new TheMiner());
That's it!

3. The SWF way (Pre-Launcher)
The second and most universal way is to launch it from the mm.cfg file
TheMiner.swf must be trusted
1: Add TheMiner.swf to your Flash Global Security Settings
2: Add TheMiner.swf as PreloadSWF in mm.cfg
The mm.cfg file is always located in your %homedrive%/%homepath% If it's not there, you can just create it in that folder.
(Most of the time it's something like: C:\Users\ProfileName\mm.cfg

Add this to mm.cfg

*If you want use special triggers such as HookClass and TraceFiles, you must also add these*

Possible Bug #1
If you run a page and the profiler don’t show up, Open your flash log and make sure you don’t have something like this:
PreloadSwf paths did not exist: C:\YOUR_PATH\TheMiner.swf

Possible Bug #2
Again, some people have problems finding the log file in Windows 7
Try adding to the mm.cfg the following line and see if the log works:
TraceOutPutFileName=c:\Users\UTILISATEUR\AppData\Roaming\Macromedia\Flash Player\Logs\flashlog.txt