+ Reply to Thread
Results 1 to 4 of 4

Thread: Very simple Actionscript help

  1. #1
    Teensweb is offline x10 Lieutenant Teensweb is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    352

    Very simple Actionscript help

    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 by Teensweb; 10-10-2008 at 06:53 AM.

  2. #2
    Teensweb is offline x10 Lieutenant Teensweb is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    352

    Re: Very simple Actionscript help

    Somebody Help me!

  3. #3
    AttackBunnyPro is offline x10Hosting Member AttackBunnyPro is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    26

    Re: Very simple Actionscript help

    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.

  4. #4
    Teensweb is offline x10 Lieutenant Teensweb is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    352

    Re: Very simple Actionscript help

    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 by Teensweb; 10-12-2008 at 05:14 AM. Reason: Automerged Doublepost

+ Reply to Thread

Similar Threads

  1. simple actionscript problem
    By stalkio in forum Programming Help
    Replies: 2
    Last Post: 08-19-2008, 06:18 PM
  2. earn money,very simple
    By beandab in forum Earning Money
    Replies: 0
    Last Post: 07-13-2008, 06:26 PM
  3. Two very simple php file upload scripts-Free
    By Symbian.Ankit in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 02-20-2008, 09:55 AM
  4. Simple Forum Sig Tutorial (Photoshop)
    By Veivei in forum Graphics & Webdesign
    Replies: 7
    Last Post: 09-05-2007, 09:34 PM
  5. simple script
    By swirly in forum Scripts & 3rd Party Apps
    Replies: 10
    Last Post: 06-17-2006, 06:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers