Another Flash Q

  • Started
  • Last post
  • 1 Response
  • dstlb

    Hey Flash gurus... How can I get a variable (newSection) to form part of a Var that specifies which loaded text appears in a dynamic text field?

    Button action...
    _root.technology_btn.onPress = function() {
    _global.newSection = "technology";
    newText();
    }

    Function...
    function newText() {
    _root.textBase_mc.textContent_mc... = _root.contentLoad.(newSection)Ti...
    _root.textBase_mc.textContent_mc... = _root.contentLoad.(newSection)Te...
    _root.textBase_mc.textContent_mc... = 0;
    }

    Any ideas? Someone must know, please?

  • Hardcore0

    hmm... pass it in as a parameter?

    function setText ( p_Name ) {
    yourTextField.htmlText =
    p_Name;
    }