HOME | DD
Published: 2010-03-03 09:06:26 +0000 UTC; Views: 2189; 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
Twistedsnail In reply to dbszabo1 [2010-11-24 00:51:35 +0000 UTC]
Cool, this does what exactly??
👍: 0 ⏩: 1
Twistedsnail In reply to dbszabo1 [2010-11-28 19:51:40 +0000 UTC]
It's called OOP " Object Oriented Programming", a very clean and organized way to script.
Quite often the .fla contains a single movieclip or multiple symbols that are used by the .AS's.
In the case that it is completely empty, it's just for convenience.
Here, have some bacon as I have no bone:
👍: 0 ⏩: 1
Twistedsnail In reply to dbszabo1 [2010-11-29 20:04:52 +0000 UTC]
All .as classes should be packaged straight into the .swf, making the upload of the .as's unecessary
👍: 0 ⏩: 1
Twistedsnail In reply to ZaneAsylum [2010-03-05 05:59:44 +0000 UTC]
awesome...
Although I just realised I forgot to add the .as in test2
I'll update that now
👍: 0 ⏩: 0
Twistedsnail In reply to ZaneAsylum [2010-03-04 03:50:59 +0000 UTC]
P.s Thanks heaps for accepting it!!!
👍: 0 ⏩: 0
Twistedsnail In reply to ZaneAsylum [2010-03-04 03:49:37 +0000 UTC]
what do I do if I want to update it?
👍: 0 ⏩: 1



















