Avatar of RBS
RBS

asked on 

Flash Close Button does not work in IE9 page

Hi:

I have an application in which I embed a flash movie created in Flash 8 into an asp.net page (frame).  The last frame of the movie contains a big button with the following action:

on (release){  // close window
getURL("javascript:window.close();"); }

This application has been working for a couple of years and when the user presses the button, it closes the window in which the movie is contained and sends an event notification back to my .net app letting it know that the window has been closed at which point I record the time at which the window closed.

This has worked with all recent versions of FireFox, Chrome and IE7 and IE8.  However, when I press the button in an IE9 browser, nothing happens.  

I'm afraid my knowledge of Flash is quite limited.  Any help in dealing with this issue greatly appreciated.

RBS
Adobe FlashMicrosoft SQL Server

Avatar of undefined
Last Comment
RBS
Avatar of dgofman
dgofman
Flag of United States of America image

Did you change your code to AS3?
Avatar of RBS
RBS

ASKER

No I didn't  - just took whatever was native to Flash 8.  Is it possible to change however it is encoded in Flash8 to Action Script 3 in Flash 8?  Thanks for your comment.

RBS
Avatar of RBS
RBS

ASKER

Hi - it looks like Flash 8 only has AS1 and AS2.  I add this button to a program that converts powerpoint to flash at the end of the movie.   The entire extent of my development in Flash consists of this one movie - so am not in a position to upgrade to new version of Flash.  I was wondering if you would mind compiling my movie  to a version that uses AS3?

Regards,
RBS
closeWindow.zip
Avatar of dgofman
dgofman
Flag of United States of America image

I removed invalid binding values assigned to your button , compile and run
Working fine for me I attached your file SWF and HTML
Execute HTML file and click on your button
closeWindow.zip
Avatar of RBS
RBS

ASKER

Hi dgofman:

Thanks so much for this.  Your button works fine in Chrome - it asks for confirmation in IE9 and it does not seem to work in Firefox 5.0.

Here are links to the close buttons at test pages that I have:

http://www.check30.com/Test_Close2/closeWindow.html

http://www.check30.com/Test_Close/index.html

Ironically, if I open the button in a frame, it still works fine in all browsers including ie 7 and 8 but not in ie9

Any thoughts greatly appreciated

RBS


ASKER CERTIFIED SOLUTION
Avatar of dgofman
dgofman
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of RBS
RBS

ASKER

Hi dgofman:

Thanks for this.  While I have not fixed the problem - which I believe has to do with the control I am using to load/closed the surrounding window, your suggestions were extremely helpful and helped me eliminate a number of paths down which I might have wasted a whole lot of time.

Thanks Again,
RBS
Microsoft SQL Server
Microsoft SQL Server

Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.

171K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo