Re: [Flashcoders] Multiple query strings in a single URL
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, #ff); 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;igy.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=2login=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
Re: [Flashcoders] Multiple query strings in a single URL
on 5/15/08 1:32 AM, Jason Van Cleave at [EMAIL PROTECTED] wrote: Thank you Jason. The inclusion of the in the string and the plus instead of the comma was the ticket. For my current need this solution is perfect, but I will look into the SWFObject 1.5 for future reference. It looks promising. Thanks again, I really appreciate your suggestion. Have a great day, John FlashVars, 'whichSection=' + querySt('page')+'loggedin='+querySt('login'); You may want to check out SWFObject 1.5 that would make this much more readable ie: === 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] Multiple query strings in a single URL
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;igy.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=2login=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