Re: [Flashcoders] inserting an MC in a TextField (and speaking to it)

2009-01-28 Thread Matt S.
It did work, actually, in terms of inserting it into the TextField, i
guess because the class name effectively functions as the Library
identifier. However, your tip regarding ID did the trick for
communicating with it, since I still couldnt modify it, the way I had
it. :)

thanks,

.matt


On Wed, Jan 28, 2009 at 12:31 AM, Keith Reinfeld
keithreinf...@comcast.net wrote:
 Matt,

 I s'pose I focused too much on the second part of your question in my
 previous message. So anyway, if this

 src='com.myclasses.DropCap'

 actually works then more power to ya!

 If not:

 ActionScript 3.0 Language and Components Reference:

 src: Specifies the URL to an image or SWF file, or the linkage identifier
 for a movie clip symbol in the library.

 So, if you have a movieclip in your library with a linkage identifier of
 'DropCap' (associated with a class 'com.myclasses.DropCap') you would use:

 var tString:String  = img src='DropCap' id=DC0
 style='padding:0px;margin:0px'/Lorem ipsom yadda yadda...;
 myTextField.htmlText = tString;
 myTextField.DC0.txt.text = Z;


 Regards,

 -Keith
 http://keithreinfeld.home.comcast.net




 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] inserting an MC in a TextField (and speaking to it)

2009-01-28 Thread Keith Reinfeld
Interesting, I'll have to give it a whirl. Thanks.

Regards, 

-Keith 
http://keithreinfeld.home.comcast.net
 


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Matt S.
 Sent: Wednesday, January 28, 2009 6:41 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] inserting an MC in a TextField (and speaking to
 it)
 
 It did work, actually, in terms of inserting it into the TextField, i
 guess because the class name effectively functions as the Library
 identifier. However, your tip regarding ID did the trick for
 communicating with it, since I still couldnt modify it, the way I had
 it. :)
 
 thanks,
 
 .matt


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] inserting an MC in a TextField (and speaking to it)

2009-01-27 Thread Keith Reinfeld
Matt, 
 
I s'pose I focused too much on the second part of your question in my
previous message. So anyway, if this 
 
 src='com.myclasses.DropCap' 
 
actually works then more power to ya! 
 
If not: 
 
ActionScript 3.0 Language and Components Reference: 
 
src: Specifies the URL to an image or SWF file, or the linkage identifier
for a movie clip symbol in the library. 
 
So, if you have a movieclip in your library with a linkage identifier of
'DropCap' (associated with a class 'com.myclasses.DropCap') you would use: 
 
var tString:String  = img src='DropCap' id=DC0
style='padding:0px;margin:0px'/Lorem ipsom yadda yadda...; 
myTextField.htmlText = tString; 
myTextField.DC0.txt.text = Z;
 
 
Regards, 

-Keith 
http://keithreinfeld.home.comcast.net
 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders