Rather than try to do it via SWFObject, it seems like you should be using the built in SWFAddress methods:
getParameter<http://www.asual.com/swfaddress/docs/en/as/SWFAddress.html#getParameter()> (param:String):Object [static] Provides the value of a specific query parameter as a string or array of strings. getParameterNames<http://www.asual.com/swfaddress/docs/en/as/SWFAddress.html#getParameterNames()> ():Array [static] Provides a list of all the query parameter names. getPath<http://www.asual.com/swfaddress/docs/en/as/SWFAddress.html#getPath()> ():String [static] Provides the deep linking value without the query string. getQueryString<http://www.asual.com/swfaddress/docs/en/as/SWFAddress.html#getQueryString()> ():String [static] Provides the query string part of the deep linking value. Also, your URL should look like: http://website.com/page.html?Var=1&Var2=2#Home not: http://website.com/page.html#Home?Var=1&Var2=2 (vars first for the page, then the anchor) Section 4 in RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt) clearly states: "The term "URI-reference" is used here to denote the common usage of a resource identifier. A URI reference may be absolute or relative, and may have additional information attached in the form of a fragment identifier. However, "the URI" that results from such a reference includes only the absolute URI after the fragment identifier (if any) is removed and after any relative URI is resolved to its absolute form." In other words, according to the RCF the URL is split by the fragment identifier first (#), if present, and *then* parsed as an address. It's therefore imperative that the fragment identifier is placed last in the URL, which may also be combined with a query string If you reverse the var/fragment, then the swfobject util method might also work for you (try alerting getQueryParamValue("Var2") before passing into ) Aran On Thu, Apr 29, 2010 at 1:18 PM, cortezcreations <[email protected]>wrote: > Hello all. > Having a hard time getting info on SWFADDRESS so I thought I'd try > here. > > So my question is this. > > I am trying to attach a variable to the end of my SWFADDRESS url but > can't get it to register. I can get it working fine using SWFOBJECT > like so > > http://website.com?Var=1&Var2=2 > > but once I add the deeplinking I can't get any results. > > http://website.com/#/Home/?Var=1&Var2=2 > or > http://website.com/#/Home?Var=1&Var2=2 > > My code in the html is : > > <script type="text/javascript"> > // <![CDATA[ > var so = new SWFObject('Example', 'website', '800px', > '600px', '8'); > so.useExpressInstall('swfobject/expressinstall.swf'); > so.addVariable("Var", getQueryParamValue("Var")); > so.addVariable("Var2", getQueryParamValue("Var2")); > so.addParam("wmode","transparent"); > so.write("flashcontent"); > > // ]]> > </script> > > Anyone have a way around this or a good source for SWFADDRESS help? > Would really help me out! > Cheers > > -- > You received this message because you are subscribed to the Google Groups > "SWFObject" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<swfobject%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/swfobject?hl=en. > > -- You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.
