Shining_Hand
04-02-2004, 12:50 AM
Greetings, i dont really know that much about scripting, but i figure somone should be able to help me out.
I've downloaded a flash Template from Flashcomponents.com, of which are ment to be very customisable (hence the name 'template'), but there is a actionscripted Collapible Menu involved, and it is a very ugly green agaist my customised scene.
Ive posted multiple posts on Flashcomponents.com but no one seems to care, even thou i am a paying subscriber...
The scripts seem rather simple, i just dont know how to edit them, in order for me to change the colour and the text of the menu. Can anyone help me?
There is code placed in three layers of the menu, the layers are
: String Extensions
: Array Extensions
: Collapsible Menu Class Definition
The most obvious one to edit appears to be the String Extensions which is coded...
// changes the color of the movie clip
MovieClip.prototype.set_color = function (hex)
{
var _color = new color (this);
_color.setRGB (hex);
}
// returns a copy of this string with no spaces
String.prototype.strip_spaces_return = function (){
// string that will be returned
var _str = new Array (" ");
// loop through the characters of this string to compile the new string
for (var j = 0; j < this.length; j++){
// add the character to the string that will be returned if it is not a space
if (this.charAt (j) != " "){
_str += this.charAt (j);
}
}
// return the string with no spaces
return (_str);
}
I've downloaded a flash Template from Flashcomponents.com, of which are ment to be very customisable (hence the name 'template'), but there is a actionscripted Collapible Menu involved, and it is a very ugly green agaist my customised scene.
Ive posted multiple posts on Flashcomponents.com but no one seems to care, even thou i am a paying subscriber...
The scripts seem rather simple, i just dont know how to edit them, in order for me to change the colour and the text of the menu. Can anyone help me?
There is code placed in three layers of the menu, the layers are
: String Extensions
: Array Extensions
: Collapsible Menu Class Definition
The most obvious one to edit appears to be the String Extensions which is coded...
// changes the color of the movie clip
MovieClip.prototype.set_color = function (hex)
{
var _color = new color (this);
_color.setRGB (hex);
}
// returns a copy of this string with no spaces
String.prototype.strip_spaces_return = function (){
// string that will be returned
var _str = new Array (" ");
// loop through the characters of this string to compile the new string
for (var j = 0; j < this.length; j++){
// add the character to the string that will be returned if it is not a space
if (this.charAt (j) != " "){
_str += this.charAt (j);
}
}
// return the string with no spaces
return (_str);
}