HOME | DD

Twistedsnail avatar

Twistedsnail — QuickContext Script by-nc-nd


QuickContext Script
Published: 2010-03-03 09:06:26 +0000 UTC; Views: 2682; Favourites: 2; Downloads: 109
Redirect to original
Description Thanks to for accepting this!!

Changes:

The ability to use functions AND links
I have removed the "Made with Quick Context" entry

New Basic Usage:

To add a menu:

QuickContext.addQuickMenu( [ name of object you want to have a menu ], [ boolean: hide in-built items?] );

To add an item with a link to the menu:

QuickContext.addQuickItemLink( [ name of object that owns chosen context menu ], [ string: item name ], [ string: item link ] );

To add an item with a function to the menu:

QuickContext.addQuickItemFunction( [ name of object that owns chosen context menu ], [ string: item name ], [ string: function to call ], [ string: Object that has the quickContextFunctions (explained below) ] );

function quickContextFunctions( functionEnteredAbove:string ) {

if ( functionEnteredAbove == "What ever you entered before" ) {

doMyFunction
}
}

See the test2.as and test2.fla in the tests folder for a better example.

.Zip contents: QuickContext.as, Tests folder -> Test1.fla, Test1.as, Test2.as, Test2.fla
Related content

Comments (17)