I think

"FlashVars", 'whichSection=' +
querySt('page'),'loggedin='+querySt('login'));
  needs to be

"FlashVars", 'whichSection=' +
querySt('page')+'&loggedin='+querySt('login');

You may want to check out SWFObject 1.5 that would make this much more
readable ie:
var so = new SWFObject("your.swf", "swfID", "100", "100", "8", "#ffffff");
so.addVariable("whichSection", querySt("page"));
so.addVariable("loggedin", querySt("login"));

it also has a function that grabs params from the url

On Thu, May 15, 2008 at 12:17 AM, John R. Sweeney Jr <[EMAIL PROTECTED]>
wrote:

> Howdy all,
>
> I currently have a app that pulls a single variable from the URL
>
> I.e. =  index.html?page=2
>
> I pass that info into my program with FlashVars using:
>
> ------------------------------
> <script src="Scripts/AC_RunActiveContent.js"
> type="text/javascript"></script>
> <script type="text/javascript">
> function querySt(ji) {
>    hu = window.location.search.substring(1);
>    gy = hu.split("&");
>    for (i=0;i<gy.length;i++) {
>        ft = gy[i].split("=");
>        if (ft[0] == ji) {
>            return ft[1];
>        }
>    }
> }
> </script>
>
>
> <snippet from the Flash swf embed>
>
> "FlashVars", 'whichSection=' + querySt('page'));
>
> <end snippet>
> -------------------------------
>
> So querySt parses the value of 2 and passes it into my whichsection just
> fine.
>
> Now I have to have two things passed in:
>
> I.e. Index.html?page=2&login=1
>
> Can FlashVars handle this??
>
> I tried:
>
> "FlashVars", 'whichSection=' + querySt('page'),'loggedin=' +
> querySt('login'));
>
>
> But loggedin is NOT getting picked up inside of Flash.
>
> Can Flash handle multiple query strings being passed into itself?
>
> Did I explain this well enough?
>
>
> Thanks in advance,
> John
>
> ===================================================
> John R. Sweeney Jr.        ([EMAIL PROTECTED])
> Interactive Multimedia Developer/
> Digital Media Specialist
>
> OnDemand - Interactive, Inc.
> 847.651.4469 (cell)      847.310.5959 (office/fax)
> ===================================================
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to