Font Size Action Script 2

FFGL, OSC, GLSL. If you like abbreviations, this is the forum for you
Post Reply
coz3r
Posts: 62
Joined: Wed Aug 27, 2008 18:17

Font Size Action Script 2

Post by coz3r »

So I have no idea what I'm doing with AS and while I could spend a bunch of time figuring out a language I prolly wont use that much I thought I'd ask experts first. I've created a flash text without any issue but I want to add a slider for the font size.. Heres what I (unsuccessfully) tried

http://www.opularity.com/flash/


/**
* Very basic Resolume Flash communication AS2 example
**/

//import the resolume communication classes
import resolumeCom.*;
import resolumeCom.parameters.*;

if (this.init == undefined) {

//create the resolume object that will do all the hard work for you
var resolume:Resolume = new Resolume();

//create as many different parameters as you like
var fontSize:FloatParameter = resolume.addFloatParameter("Font Size", 0.5);

//set callback, this will notify us when a parameter has changed
resolume.addParameterListener(this);

//this will be called every time you change a parameter in Resolume
this.parameterChanged = function(object:Object): Void
{
//check to see what parameter was changed
if (object == fontSize)
{
//now it gets interesting
//do whatever you like with the value of the parameter
this.rtext1.size = this.fontSize.getValue() * 200;
}
}

this.init = true;
}

coz3r
Posts: 62
Joined: Wed Aug 27, 2008 18:17

Re: Font Size Action Script 2

Post by coz3r »

Noone? damn -- I'll give someone 5 bucks to sweeten the deal lol. I'm good for it on paypal:)

coz3r
Posts: 62
Joined: Wed Aug 27, 2008 18:17

Re: Font Size Action Script 2

Post by coz3r »

ok fine -- if someone can help me with this you can negotiate your own consulting fee:) PLEASE HELP!!! :)

Post Reply