Resolume variables not working with actionscript

Post your questions here and we'll all try to help.
Post Reply
Anonymous

Resolume variables not working with actionscript

Post 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.

Anonymous

Post 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.

levon
Posts: 483
Joined: Fri Oct 08, 2004 03:38
Location: adelaide, australia

Post 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.

mfo
Posts: 350
Joined: Fri Oct 08, 2004 11:48

Post 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]

Post Reply