@encryptme
Hi, thanks for asking. I’ve made some progress. Some help to share for those who can use it: a) to activate a function without argument but returning variables, i needed to initialise the variables needed at root level and not only into the menu //my Functions. Example: 1)You want to call a function named play_movie from the XML of the menu 2) You want to call a variable into this function, named targetfilm which is the filename of the movie and the content path of the FLVPlayer component: on the root write: var targetfilm:String = “init”; on frame 1 FLVPlayer.contentPath = targetfilm; where you have your player and into the //my functions of the Encryptme menu write: play_movie = function () { _root.targetfilm = “name_of_my_movie.flv”; }
b) Now, encryptme, what would be super cool for an upgrade is the capability to add arguments to the function you can call with your menu: So handling arguments here:
releaseIt = function () {
//
if (menuthis.no != “link”
{
var f:Function = root[menuthis.no];
trace(“RUN FUNCTION : “+menuthis.no);
f();
_root.tracer.text = “RUN FUNCTION —--
“+_root.tracer.text;
}
and into the xml: calling “function(parameter,parameter,…)” rather than “function”
I will be happy to buy a new flavour of you menu if it can handle function with arguments! Keep up the good work Stratus
Posted 8 months ago















