Page 1 of 1

Resolume variables not working with actionscript

Posted: Tue Feb 21, 2006 15:55
by Anonymous
Can we not use actionscript and resolume variables together?

I can get dynamic text boxes to display the values of these variables fine. But when I create a dynamic text box and pass it a value of my own depending on the value of a resolume variable it doesn't work.

This is my code. bass being my dynamic text box.

if (raudiolow>50) {
bass = "kick";
}else{
bass = "soft";
}

If anyone has a solution or knows what to do please let me know. Have a gig coming up in a couple of weeks and would like to have this sorted before then so I can work on my animation.

Posted: Tue Feb 21, 2006 16:15
by Anonymous
I have just tried :

bass = raudiolow;

and

bass = _root.raudiolw;

to no such luck.

Also tried exporting it as a Flash 6 and Flash 7 document. Neither of which worked.

Posted: Wed Feb 22, 2006 05:32
by levon
make sure you define the variable in the first frame, and make it loop from frame 2... check out the fla file in the flash director for how it works.

Posted: Wed Feb 22, 2006 11:42
by mfo
As i read your post, i thought it's maybe the bad type recognition of flash. So i tried with this script (and a textbox in the movie):

Code: Select all

this.onEnterFrame=function() {
	txt= "With Number declaration: " + ( (Number(raudiolow)>50)? "Bass" : "Low" );
	txt+= "\nWithout Number declaration: " + ( (raudiolow>50)? "Bass" : "Low" );
}
But in both cases the result was ok.

[Edited on 22-2-2006 by mfo]