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

Reply via email to