Very simple Actionscript help

Teensweb

New Member
Messages
352
Reaction score
1
Points
0
I am very new to flash mx. I have a code-
Code:
fm_label.text = this._parent.fm_label;
This fetches a variable from an xml file and displays it. Its works well, but I want to make the output bold. Can anyone help?
 
Last edited:

AttackBunnyPro

New Member
Messages
26
Reaction score
0
Points
0
I've never used, MX, so I don't know how that would compare with CS3, but would it be an option to just make everything in that particular text box bold in the text box properties?

If you need it changed otherwise, Then perhaps you could do it the way that worked in older versions of Flash; I don't know if it will in the newer versions. In older versions, at least, you could do it using HTML. So, you'd could possibly just add bold tags around it, and see if that works.
 

Teensweb

New Member
Messages
352
Reaction score
1
Points
0
Changing that property doesnt help.
Edit:
Here's the whole code:
Code:
// Code Credit: Lee Brimelow
// Tutorial Reference URL: www.gotoandlearn.com
// Modified by www.flashmo.com
stop();
var folder:String = "thumbnails/";    // a folder for thumbnail files + an XML file
var total:Number;
var radiusX:Number = 200;
var radiusY:Number = 60;
var centerX:Number = 400;
var centerY:Number = 150;
var speed:Number = 0.0002;
tn_group_mc._visible = false;
fm_label.text = ""; 
fm_url.text = "";

var xml:XML = new XML();
xml.ignoreWhite = true;

xml.onLoad = function()
{
    var nodes = this.firstChild.childNodes;
    total = nodes.length;
    
    for( var i=0; i < total; i++)
    {
        var t = tn_group_mc.duplicateMovieClip("tn"+i, i);
        t.angle = i * ((Math.PI*2)/total);
        t.onEnterFrame = mover;
        t.tn_mc.inner.loadMovie( folder + nodes[i].attributes.filename );
        t.tn_reflection_mc.inner.loadMovie( folder + nodes[i].attributes.filename );
        t.fm_label = nodes[i].attributes.label;
        t.fm_url = nodes[i].attributes.url;
    
        t.fm_button.onRollOver = function()
        {
            fm_label.text = this._parent.fm_label;
            fm_url.text = "";
        }
        t.fm_button.onRollOut = function()
        {
            fm_label.text = "";
            fm_url.text = "";
        }
        t.fm_button.onRelease = function()
        {
            getURL(this._parent.fm_url);
        }
    }
}
xml.load( folder + "flashmo_thumbnails.xml");

function mover()
{
    this._x = Math.cos(this.angle) * radiusX + centerX;
    this._y = Math.sin(this.angle) * radiusY + centerY;
    var s = this._y /(centerY+radiusY);
    this._xscale = this._yscale = s*100;
    this.angle += this._parent.speed;
    this.swapDepths(Math.round(this._xscale) + 100);
}
this.onMouseMove = function()
{
    speed = (this._xmouse-centerX) * 0.0005;
}
 
Last edited:
Top