Hi Hank,

Line 21 would be a new line, not a replacement.  That'll push the
flashvars line from 73 to 74, where you'll add your extra parameters.


--- In flexcoders@yahoogroups.com, "hank williams" <[EMAIL PROTECTED]> wrote:
>
> Thanks Doug,
> 
> This is **very**  helpful. The only thing is I am not quite sure where
> you want me to put the thing at line 21.
> 
> Just for context 21 - 25 look like this:
> 
> // -->
> </script>
> </head>
> 
> <body scroll="no">
> 
> 
> If I replaced line 21 I would be replacing the end of a comment block.
> Did you mean to insert between the existing 21 and 22?
> 
> Thanks
> Hank
> 
> On 8/14/06, Doug Lowder <[EMAIL PROTECTED]> wrote:
> > In FB2, open the html-template folder, right-click the
> > index.template.html file and select open with -> text editor.  The
> > following changes will pass your url-string parameters on to the swf
> > via the flashvars parameter:
> >
> > line 21: var myvars = new String(document.location).split('?')[1];
> >
> > line 74: "flashvars",'historyUrl=history.htm%3F&lconid=' + lc_id
> > + '&' + myvars,
> >
> > Append whatever you want to the URL of your swf's html container
> > (e.g., "?myparam=myvalue") and you will be able to access it through
> > mx.core.Application.application.parameters.
> >
> > HTH,
> > Doug
> >
> > --- In flexcoders@yahoogroups.com, "hank williams" <hank777@>
> > wrote:
> > >
> > > I want to pass some information to my flex app on startup, and I
> > want
> > > that info to be embedded in the url.
> > >
> > > The problem is that in order for flex to run nice it sits in some
> > kind
> > > of swf html object which is a ctually the thing that calls the
> > swf. So
> > > my question is how do I retain the benefits of the swfObject and
> > pass
> > > the parameter to the swf.
> > >
> > > As I am typing this, I am thinking javascript, but I know about as
> > > much about javascript as I do about open heart surgery. So if that
> > is
> > > what is necessary - or even if its not :) any example or ideas on
> > > specifically how to do this would be greatly appreciated.
> > >
> > > Hank
> > >
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to