eclectikor,
> Thanks for the reply! I've checked out that link and a
few others.
> Still no luck. This seems to be a sticky topic for a lot
of folks.
FlashVars are a useful tool, and they were a tad easier to
use in prior
to AS3 ... simply because the passed-in variables were
available, like
magic, as main timeline variables. It's not much harder in
AS3, though,
once you see what's going on.
> simplified version I have right now:
>
> html:
>
> <script language="javascript">
> // code snipped ...
> 'flashvars', 'instID=kyle',
Good, there's your FlashVars variable, as passed to the
JavaScript. Not
sure if that needs to be FlashVars as opposed to flashvars,
but it may not
make a difference.
> // additional code snipped ...
> <param name="flashvars" value="instID=kyle" />
> // snipped again ...
> <embed src="/flash/fcGalleryPreloader.swf"
quality="high"
> bgcolor="##000000" flashvars="instID=kyle" ...
Okay, good. And there are your FlashVars again, passed
directly to the
SWF (in case this user doesn't have JavaScript enabled (note
this part is
inside a <noscript> tag). So far, so good.
> AS3:
>
> var extVars:Object =
LoaderInfo(this.root.loaderInfo).parameters;
> instID_txt.text = String(extVars["instID"]);
At this point, you've lost me, but it shouldn't be hard to
nail down. I
see you've got a text field with the instance name
instID_txt, and you'd
like to set its text property. To do that, just reference the
instID
variable in the parameters property of that LoaderInfo
instance:
instID_txt.text = root.loaderInfo.parameters.instID;
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design."