|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
function doesnt call
in my library, i have a basic button which contains an empty movie clip instance called btntxt_mc. i added the following code to the mc:
ActionScript: function addText(textval){ this.createTextField("LogIn_txt",1,-20,-10,40,20); LogIn_txt.border = true; LogIn_txt.selectable = false; var letters = new TextFormat("_sans",12); letters.align = "center"; letters.color = 0x000000; LogIn_txt.text = textval; LogIn_txt.setTextFormat(letters); trace("helloooo"); } i have a button on stage called login_btn. on the main time line, i have the following ActionScript: login_btn.btntxt_mc.addText("Login"); i plan on using actionscript to change the labels of the buttons on the fly, when i take the code out of the function and hard code the label, it works. can anyone see why it wont call my btntxt_mc.addText(string) function? i'm really stuck on this one.....
__________________
microsofts butterfly is their way off telling u their systems have a **** load of buggs Advocating Linux Guide Lesbian Linux Great & Practical Computer Books like the links? |
|
#2
|
|||
|
|||
|
Howdy...
![]() I see the familiar face right here... ![]() Try this... I think this might get you going abit further... PHP Code:
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > function doesnt call |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|