hi guille,

Just to double-check, are you calling initApp()?

For instance:
<mx:Application ... creationComplete="initApp()" >

If that is ok, confirm which html "wrapper" is being called.  (e.g. Flex
Builder uses separate wrappers for debug and non-debug).

Also, for increased visibility into what is happening at runtime you can add
a checkpoint on the initApp() method.  Then you can step through the
processing and possibly see in the Variables panel the contents of
Application.application.parameters.  Or add a trace() in the method to
confirm that it is at least executing.

Please post back whether or not any of this helps.

hth,

g

On 1/2/07, g_vaccarezza <[EMAIL PROTECTED]> wrote:

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 flexcoders@yahoogroups.com, "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

Reply via email to