Merge pull request #499 from tobeytailor/buttons

Refactor button support.
Initial AVM1 refactoring
Merge remote-tracking branch 'mozilla/master' into avm1-refactoring

Conflicts:
	src/flash/display/SimpleButton.js
Merge pull request #501 from yurydelendik/avm1-refactoring

Initial AVM1 refactoring
implements gradient and bitmap linestyles
pass dictionary and dependencies to createFill
revert Graphics::_createPattern because it's also called from shape.js
Add avm1 stack limit
Protects ActionNewMethod and ActionCallMethod from undefined objects
enable lineGradientStyle call in test swf
Directs AS2 calls to public AVM2 methods
Adds SharedObject to AS2
Fixes event handler call
Fakes _level1
Merge pull request #502 from claus/feature_linegradientstyle

fixes #359, implements Graphics::lineGradientStyle and Graphics::lineBitmapStyle
Don't load empty movie
Merge pull request #504 from yurydelendik/avm1-refactoring

Misc AVM1 fixes
Fixes counters output
Merge pull request #506 from yurydelendik/dont-load-empty

Dont load when movie url is empty
Fixes regression in xiao3 caused by f8fda4f7ab2