Thanks for the responses Karl. Yes, I meant displaying html inside Flash. I am using Keith Peters' tiny components. I want to instantiate an instance of the NumericStepper inside an instance of a TextField. I know that you can use htmlText with an <img> tag to place Library Items, image files and external SWF, but I want to instantiate just a random class in there (in this case NumericStepper).
vat txt:TextField = new TextField (); txt.htmlText = "age: <img src='NumericStepper'/>" does that make more sense? On Thu, Mar 10, 2011 at 10:32 PM, Karl DeSaulniers <k...@designdrumm.com>wrote: > Or Are you talking about displaying HTML in flash? > I did that once in AS2. Don't know about AIR, hopefully it is much better > at it than the flash player. > > Best, > Karl > > > On Mar 10, 2011, at 9:25 PM, Karl DeSaulniers wrote: > > You probably want to use flashVars to talk with some javascript that then >> calls the image and that, you put as the src? >> >> Best, >> Karl >> >> On Mar 10, 2011, at 9:10 PM, Ktu wrote: >> >> Hey List, >>> >>> I've been googling for an hour and haven't found a solution. My google fu >>> is >>> weak, I concede defeat. >>> >>> Pure AS3 AIR >>> No Library >>> No FLA >>> >>> >>> I am dynamically building a TextField. In it I would like to place some >>> instances of Sprites. What should the src attribute of the <img> tag be >>> if I >>> want it to instantiate an object? >>> >>> ex. <img src='com.name.MySpriteClass'/> >>> >>> If you can't do it, are there any workarounds? >>> >>> thanks guys. >>> >>> -- >>> Ktu; >>> >>> The information contained in this message may be privileged and/or >>> confidential. If you are NOT the intended recipient, please notify the >>> sender immediately and destroy this message. >>> _______________________________________________ >>> Flashcoders mailing list >>> Flashcoders@chattyfig.figleaf.com >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >> >> Karl DeSaulniers >> Design Drumm >> http://designdrumm.com >> >> _______________________________________________ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > Karl DeSaulniers > Design Drumm > http://designdrumm.com > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- Ktu; The information contained in this message may be privileged and/or confidential. If you are NOT the intended recipient, please notify the sender immediately and destroy this message. _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders