flash actionscript:
Tom,
[quoted text, click to view] > What I want to do is construct a flash version of my site
> and embed these graphs within a flash textfield.
That's a really interesting approach. At first, I didn't understand
what you were aiming for, but it sounds to me like you're tying to use HTML
inside a Flash text field -- which is doable, to some extent -- and embed an
external SWF in that HTML ... all within Flash.
[quoted text, click to view] > I have been able to successfully embed a test SWF file
> using <img> tags on a text field --->
That does work, but it's about the closest you'll get, I'm afraid. It's
only happenstance that Flash's very narrow (and somewhat unique) version of
HTML accepts SWFs in an <img> tag.
[quoted text, click to view] > but here is my question. How do I support the <param name=
> value=> functionality I got when I called these graphs from
> HTML using <object>?
Flash only supports a very limited subset of the HTML language. You can
see the full list of supported tags by searching the phrase "supported tags"
in the documentation (specifically, the Learning ActionScript 2.0 in Flash
book). For better or worse, <object>, <param>, and <embed> are simply not
in that list.
[quoted text, click to view] > Any help at all is greatly appreciated.
Your only choice is to use one of the more traditional methods of
loading external SWFs, such as loadMovie(), MovieClip.loadMovie(), or the
MovieClipLoader class. Once your external SWF is loaded, you may "feed" it
variables that should be detectable by the ActionScript inside the loaded
SWF.
David
stiller (at) quip (dot) net
Dev essays:
http://www.quip.net/blog/ "Luck is the residue of good design."