Hi G!
Code seems to be fine, but it ain't seem to be working. I wrote the
following code withing Flex:
// call on creation complete
private function initApp():void{
myExternalUrl = Application.application.parameters.theUrl;
requestText.text = myExternalUrl;
}
and then, within the <object> tag in the HTML:
<param name="theUrl" value="this is the goddam dynamic url">
I open the HTML witht eh Flex app, but the textbox wont show anything.
Any Suggestions?
Thanks!
-g
--- In [email protected], "greg h" <[EMAIL PROTECTED]> wrote:
>
> Hi g,
>
> This page in the Flex 2 Language Reference covers ...
> Using query string parameters (under "NOTE" halfway down the page)
> http://livedocs.macromedia.com/flex/2/docs/00001006.html
>
> Personally, I use FlashVars to pass values into the SWF at runtime
through
> the HTML <object><embed> tags.
>
> You can check these two links in the Flex 2 Language Reference for
details:
>
> Using flashVars
> http://livedocs.macromedia.com/flex/2/docs/00001005.html
>
> Using the Application.application.parameters object
> http://livedocs.macromedia.com/flex/2/docs/00001004.html
>
> Please post back whether this helped or not.
>
> g
>
> On 12/28/06, g_vaccarezza <[EMAIL PROTECTED]> wrote:
> >
> > Guys,
> >
> > I got to externally set a variable on a swf.
> > I have very limited knowledge but I do know that in a regular
flash
> > movie I can set a variable through a declaration within the object
> > ember tag in the html:
> >
> > myMovie.swf?variable=something
> >
> > or through the <param> tag:
> >
> > <param name="variable" value="something" />
> >
> > Does this apply for an embedded flex movie? In that case, how
should I
> > read the variable from within flex?
> >
> > Thanks!
> > -g
> >
>