I appreciate your responses Karl, but I think you're still a bit off. The <img> in htmlText can have a source of a library item, and an interactive MovieClip (say checkbox) can be inserted into the textfield and work. I want to put an interactive Sprite into the textfield, but not through a library linkage id, but through any arbitrary class reference.
Has no one ever tried doing this? On Thu, Mar 10, 2011 at 11:27 PM, Karl DeSaulniers <k...@designdrumm.com>wrote: > Ah I see. > > Something along these lines? > > > http://stackoverflow.com/questions/203969/how-do-i-get-from-an-instance-of-a-class-to-a-class-object-in-actionscript-3 > > I googled:: AS3 return instance as image > > HTH, > Best, > Karl > > > > On Mar 10, 2011, at 10:08 PM, Ktu wrote: > > well, I'm not trying to embed an image. I want to use a MovieClip. >> >> maybe this 'ideal scenario' will help >> >> var numStep:NumericStepper = new NumericStepper (); >> var txt:TextField = new TextField (); >> txt.htmlText = "age: <img src='" + numStep + "'/>"; >> >> (I know that will not work. I am just trying to get the point across that >> I don't want an image or linkage id, but I want an instance of class) >> >> >> On Thu, Mar 10, 2011 at 10:56 PM, Karl DeSaulniers <k...@designdrumm.com> >> wrote: >> Hi Ktu, >> I believe you want it to be a function return. >> >> txt.htmlText = "age: <img src='getNumericStepper()'/>" >> >> getNumericStepper could be a call to a createimage php file for example. >> when returning the image, php will send the data and content type of the >> image and the <img> tag interprets it as an image. >> >> like ... >> >> return imagepng($image); //the last line in my createimage.php file >> >> I did this with a captcha box I made. >> Made one in flash and html. both call on that php file for the image. >> That way if a user was viewing with flash or a non-flash user, both had to >> submit this captcha to register for instance. >> >> Hope im not too off. *:) >> >> Best, >> Karl >> >> >> >> On Mar 10, 2011, at 9:41 PM, Ktu wrote: >> >> 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. >> >> 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. >> > > 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