HOME | DD

Twistedsnail — QuickContext Script by-nc-nd

Published: 2010-03-03 09:06:26 +0000 UTC; Views: 1679; 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

dbszabo1 [2010-11-22 00:58:43 +0000 UTC]

var newMenu:ContextMenu = new ContextMenu();
//newMenu.hideBuiltInItems();
newMenu.customItems.push(new ContextMenuItem("your text...",goTo));
this.menu = newMenu;
function goTo() { getURL("[link] "); };

👍: 0 ⏩: 1

Twistedsnail In reply to dbszabo1 [2010-11-24 00:51:35 +0000 UTC]

Cool, this does what exactly??

👍: 0 ⏩: 1

dbszabo1 In reply to Twistedsnail [2010-11-28 13:54:49 +0000 UTC]

offtopic- throw me a bone snail: Why do flash developers dump all the actionscript into .as wordpads, and attach a empty/codeless fla in a zip file, and call it a source fla? do they think the reciver is without ability to open a blank fla document? please advise.

👍: 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

dbszabo1 In reply to Twistedsnail [2010-11-29 01:33:25 +0000 UTC]

well thank you snail. im an old mx'er, and now that i know i have to upload massive .as class files to a server in order to make a swf work, i know why frash developers are paid 75k-100k nowadays. all the others quit after as3 came out, and created a high income as3 job market.

👍: 0 ⏩: 2

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

dbszabo1 In reply to Twistedsnail [2010-11-29 20:25:21 +0000 UTC]

Good call Nate. You're aok with me.

👍: 0 ⏩: 1

Twistedsnail In reply to dbszabo1 [2010-11-29 21:49:08 +0000 UTC]

Thanks man

👍: 0 ⏩: 0

dbszabo1 In reply to dbszabo1 [2010-11-29 17:48:17 +0000 UTC]

I'm definiely not hearing good reviews on this "opp" style:

[link]

👍: 0 ⏩: 0

ZaneAsylum [2010-03-05 03:43:49 +0000 UTC]

I got the update!

👍: 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

waltzy [2010-03-03 22:51:07 +0000 UTC]

nice work, ill need this at some point i'm sure; should save some time.

👍: 0 ⏩: 1

Twistedsnail In reply to waltzy [2010-03-04 03:49:46 +0000 UTC]

Thanks!

👍: 0 ⏩: 0

ZaneAsylum [2010-03-03 20:13:08 +0000 UTC]

This is an excellent deviation. Exactly the kind that will help flash users

👍: 0 ⏩: 2

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

ZaneAsylum In reply to Twistedsnail [2010-03-04 21:24:36 +0000 UTC]

You just update it...your watchers will be notified automatically unless you choose the "this is a minor change your watchers will not be notified"

👍: 0 ⏩: 0