Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
turbomerl #1
call functions dynamically
i am having some trouble calling functions dynamically.
i want to load data into pages as they are called. i therefore have a function
called initialisePage(pageName). i want to use this function in turn to call
initialisation functions for each page. these functions are called
firstContent(), secondContent(), thirdContent() etc... i have tried the syntax
eval(pageName+"Content()"); inside the initialisePage() function, but it
doesn't work. what am i doing wrong?
thanks.
turbomerl Guest
-
How can I call MFC functions from Perl
Hello, How can I call MFC functions from Perl? Which module / method I should select? Inline:C ? Inline:CPP ? XS ? or SWIG? Regards, Sankaran -
how can i call js functions with css?
any tutorial? -
Call/Declare Functions
I've got a movieclip that has some various functions declared inside of it like init(), etc...those work great. Then inside of that movieclip I have... -
Problem with dynamically generated and named functions
I'm trying to create a dynamically draw list of names that have rollovers and onmousedowns (like a datagrid list type thing), but done in my style... -
How to dynamically generate functions in a class
I am having to be tasked with a rather painful task of updating an existing class by adding a dynamic amount of database field values; for each... -
Jack. #2
Re: call functions dynamically
can you make use of this approach ?
function firstContent(){ trace("1st"); };
function secondContent(){ trace("2nd"); };
var1 = "first";
var2 = "second";
func = "Content"
F1 = this[var1+func];
F1();
F2 = this[var2+func];
F2();
Variable _level0.firstContent = [function 'firstContent']
Variable _level0.secondContent = [function 'secondContent']
Variable _level0.var1 = "first"
Variable _level0.var2 = "second"
Variable _level0.func = "Content"
Variable _level0.F1 = [function 'firstContent']
Variable _level0.F2 = [function 'secondContent']
hth ?
Jack. Guest
-
Jack. #3
Re: call functions dynamically
fwiw - (in MX)
F1 = this[var1+func]();
// this fires the trace OK, but the Variable Output is now -
// Variable _level0.F1 = undefined
go figure ?? can anyone out there provide enligtenment ?
Jack. Guest



Reply With Quote

