Skip to main content
January 3, 2012
Question

How to enable browser's back button with SWFAddress?

  • January 3, 2012
  • 1 reply
  • 935 views

Hi everyone!

I have an SWFAddress plugged to my flex application, and all works perfectly, instead of Browser's Back Button.

When user presses it, no event dispatched.

Maybe someone have had the same issue, and know how to resolve it or at least where to find about this.

If any script required, i can post ASAP.

This topic has been closed for replies.

1 reply

January 3, 2012

The online samples on asual.com work with back button for me, and this disturbs me most of all.

I've installed SWFAddress as they discribed in the tutorial.

I have  SWAddress.js in the folder

and i have this script in my html wrapper:

<script type="text/javascript" src="swfaddress/swfaddress.js" charset="utf-8"></script>

        <script type="text/javascript" src="swfobject.js" charset="utf-8"></script>

        <script type="text/javascript">

            <!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. -->

            var swfVersionStr = "9.0.0";

            <!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. -->

            var xiSwfUrlStr = "playerProductInstall.swf";

            var flashvars = {};

            var params = {};

            params.quality = "high";

            params.bgcolor = "#ffffff";

            params.allowscriptaccess = "sameDomain";

            params.allowfullscreen = "true";

            var attributes = {};

            attributes.id = "Upgradeshop";

            attributes.name = "Upgradeshop";

            attributes.align = "middle";

            swfobject.embedSWF(

                "Upgradeshop.swf", "flashContent",

                "100%", "100%",

                swfVersionStr, xiSwfUrlStr,

                flashvars, params, attributes );

            <!-- JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. -->

            swfobject.createCSS("#flashContent", "display:block;text-align:left;");

        </script>

and it works for me, but my event handler for SWFAddress.onChange do not recieve any events after back button is pressed.

March 30, 2012

this line   <script type="text/javascript" src="swfobject.js" charset="utf-8"></script>   suppose to be before this one  <script type="text/javascript" src="swfaddress/swfaddress.js" charset="utf-8"></script>