  | |  | Hello Flash Gurus - addListener problem - 2nd posting | Hello Flash Gurus - addListener problem - 2nd posting 2004-04-04 - By rsassine1
Back Hello everyone, Does anybody know how to use an addListener for a textfield? I dont mean "myTextField.onChanged" only.
I found this code by Helen Triolo: [It works in Flash Player 6 but NOT in Flash Player 7, under Publish Settings in Flash MX Pro 2004]
Textfield.prototype.setText = function (str) { this.text = str; this.broadcastMessage ("onChanged"); };
mybox.text = "ooo"; myObj = new Object(); myObj.onChanged = function() { trace("mybox's been changed"); }; mybox.addListener(myObj); changer.onRelease = function() { mybox.setText(mybox.text + " more text"); }
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Server geeks, take heart! If you're sick of wading through animation & graphics instruction for relevant info., then Nate Weiss' Macromedia Flash MX Professional 2004 for Server Geeks is for you. Leave designing to designers and dig into core concepts to create rich user interfaces, online advertising, and more. See www.peachpit.com for more info. Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/FLASHmacromedia/
<*> To unsubscribe from this group, send an email to: FLASHmacromedia-unsubscribe@(protected)
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Earn $52 per hosting referral at Lunarpages.
|
|
 |