Hi,
I've been using TM to develop flash apps for a few months now, and whilst I like the integration with MTASC provided by Alé I have found one serious problem with the way it preview the flash movies.
If you build a movie in MTASC and it pops up in the textmate preview browser, you can interact with it, do whatever, it's all fine. When you close the preview window it appears that the flash continues to run after you've closed the window. Whatever renders the HTML (I presume some part of the Safari core or WebKit) doesn't close itself down properly when the window is closed.
This is a problem as one of the apps I am working in is fairly CPU intensive, so after I've built with MTASC once and previewed it, after I close the window everything is still running at 100% cpu as the flash app is still churning away in the background.
Is there any way to cleanly remove the browser preview when the window is closed? To totally destroy the environment it created during that preview? Or at least is there some way to find and terminate the flash player that is running in it?
Gaby
-- Junkets for bunterish lickspittles since 1998! http://www.playr.co.uk/
I'll take a look at it. Could you please send me a swf file that exhibits that behavior?
I don't think it's a bug with the bundle (it looks like a problem with Web Preview) but I'd like to test it a bit before filling a bug : )
Also, it would help to know some details about your setup, specially Flash Player version and Safari version...
2007/8/15, Gaby Vanhegan gaby@vanhegan.net:
Hi,
I've been using TM to develop flash apps for a few months now, and whilst I like the integration with MTASC provided by Alé I have found one serious problem with the way it preview the flash movies.
If you build a movie in MTASC and it pops up in the textmate preview browser, you can interact with it, do whatever, it's all fine. When you close the preview window it appears that the flash continues to run after you've closed the window. Whatever renders the HTML (I presume some part of the Safari core or WebKit) doesn't close itself down properly when the window is closed.
This is a problem as one of the apps I am working in is fairly CPU intensive, so after I've built with MTASC once and previewed it, after I close the window everything is still running at 100% cpu as the flash app is still churning away in the background.
Is there any way to cleanly remove the browser preview when the window is closed? To totally destroy the environment it created during that preview? Or at least is there some way to find and terminate the flash player that is running in it?
Gaby
-- Junkets for bunterish lickspittles since 1998! http://www.playr.co.uk/
On 15 Aug 2007, at 22:25, Ale Muñoz wrote:
I'll take a look at it. Could you please send me a swf file that exhibits that behavior?
I've found the culprit. I was trying out the Safari 3 beta and after downgrading back to Safari 2 the problem has gone away. When I close the Web Preview window the flash movie goes away properly.
However I now have a weirder problem. My flash movie would load in an external .swf which contained the sounds. It loads it fine when I preview in Flash MX or when I view it in a browser. It loaded fine in the TextMate preview window before I upgraded to Safari 3 and after I upgraded to Safari 3, but now I have downgraded to Safari 2 again it no longer loads the file. In all other situations it works fine, just not in the TM preview window any more.
I think I've set all the security settings I need to, allowed access in the Global Security Settings pane of the Flash settings manager and made sure all the files are readable. I've no idea what's going on with this one. Any suggestions?
Gaby
-- Junkets for bunterish lickspittles since 1998! http://www.playr.co.uk/
On 8/16/07, Gaby Vanhegan gaby@vanhegan.net wrote:
It loaded fine in the TextMate preview window before I upgraded to Safari 3 and after I upgraded to Safari 3, but now I have downgraded to Safari 2 again it no longer loads the file.
Now that you mention it, that sounds familiar...
I *think* I've had a somewhat similar problem, but I always thought it was me breaking the ActionScript bundle :)
Some ideas:
- reinstall latest Flash Player - create a fresh new user on the machine and see if the problem persists (if so, I'd advise you to follow the traditional "Delete caches, delete preferences, fix permissions" on your current user and see if that helps)
Failing that, I'd file a bug with Apple and Adobe. It may also help to file a bug for TextMate, just so we remember to check if it's fixed when it's fixed :)
On Aug 16, 2007, at 3:10 AM, Gaby Vanhegan wrote:
On 15 Aug 2007, at 22:25, Ale Muñoz wrote:
I'll take a look at it. Could you please send me a swf file that exhibits that behavior?
I've found the culprit. I was trying out the Safari 3 beta and after downgrading back to Safari 2 the problem has gone away. When I close the Web Preview window the flash movie goes away properly.
However I now have a weirder problem. My flash movie would load in an external .swf which contained the sounds. It loads it fine when I preview in Flash MX or when I view it in a browser. It loaded fine in the TextMate preview window before I upgraded to Safari 3 and after I upgraded to Safari 3, but now I have downgraded to Safari 2 again it no longer loads the file. In all other situations it works fine, just not in the TM preview window any more.
I think I've set all the security settings I need to, allowed access in the Global Security Settings pane of the Flash settings manager and made sure all the files are readable. I've no idea what's going on with this one. Any suggestions?
Gaby
-- Junkets for bunterish lickspittles since 1998! http://www.playr.co.uk/
You could try observing the onunload event and having javascript destroy the flash before it closes the window.
You used to have to do that with the TextMate.system thing or else it would crash textmate, not sure if you still do, but I do anyway. Always good practive to clean up your garbage when you leave a room ;)
thomas Aylott — subtleGradient — CrazyEgg — bundleForge