Mailing List
Home
Flash Pro
Extending Flash
Flash Macromedia Developer
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Textfield.prototype question

Textfield.prototype question

2004-02-17       - By Robin Evans

 Back
Reply:     1     2     3     4     5  

thanks for this - I think overloading was what I was looking for, but it
doesn 't seem to be possible in flash. Unless anyone has a cunning
workaround?

My real problem is that I have lots of textfields on stage so unfortunately
I can 't use till 's suggestion either. Your second solution may be ok, will
have to find out how long it takes to trapse through the whole movie, as
I 'll have to run it whenever new stage textfields appear. However, even if
I can do this, I reckon there is no guarantee that the fonts will actually
be embedded!

robin

-- --Original Message-- --
From: Ashley Rajaratnam [mailto:ashley@(protected)]
Sent: 17 February 2004 15:03
To: flashcoders@(protected)
Subject: RE: [Flashcoders] Textfield.prototype question



Could try overloading
TextField.prototype.TextCreateTextField

Or the only other way I can think of atm would be to add something like
this possibly in the first frame of the movie...

It 's not very tidy solution though :s

for(varobj in _root){
trace( "name: "+varobj+ " The type: "+typeof(_root[varobj]))
if ((typeof(_root[varobj])) == "object "){
    trace( "we got an object could be textfield ");
    //if do some condition maybe based on name or property to see
if it    // is really a textField set the embedfonts property
    _root[varobj].embedFonts = true;
}
}

-- --Original Message-- --
From: Robin Evans [mailto:robin.evans@(protected)]
Sent: Dienstag, 17. Februar 2004 14:41
To: flashcoders
Subject: [Flashcoders] Textfield.prototype question

Does anybody know if there is any way to add an onLoad capability to the
generic TextField object? Basically I want to change the default of
TextField.embedFonts = true.

thanks

Robin Evans
Flash Developer
www.eurobet.com
mailTo:robin.evans@(protected)



=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104446
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)



=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104453
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)


=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104460
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)