January 12th, 2009 by enefekt
I’m working on a tool based on XULRunner that generates some content. (HTML content, images, etc.) It produces a directory to put the content into, and then offers the user the option of viewing that content right away.
The problem lies in leaving that content open in a another application like a web browser. Upon returning to the tool, and attempting to re-publish the content, an NS_ERROR_FAILURE exception is thrown coming from the nsIFile.remove call to remove the directory recursively. This is because of some sort of file exclusivity the web browser process has already.
So easy, just catch that error, inform the user to close their content in any other open application, rinse and repeat, right? Well unfortunately under XULRunner on Mac OS 10.5, the initial failure gunks up any further attempts. So even reinitializing a new nsIFile instance doesn’t work. Only restarting the app works! Yech.
So meanwhile over on Windows, that technique throws it’s own lovely exception. But on Windows, catching the initial exception, and warning the user about files open in other application and closing them, works fine, so thats what I’m using over there.
December 4th, 2008 by enefekt
All taken from Safari trying to view samples.
September 30th, 2008 by enefekt
I’ve been trying to at the very least write one post a month, so I’m going to sneak my September in here.
I always thought the Tamarin project was a nice example of an open-source move by Adobe. The JS-Harmony project definitely threw some cold water on some idealistic visions.
This Reg article apparently cites some bitterness at least for one person at Adobe regarding the fruitions of the open source contributions.
August 25th, 2008 by enefekt
“I’m also grateful to Ed Smith and the Tamarin Tracing team at Adobe for the TT Nanojit, which was a huge boost to developing TraceMonkey.”
Really neat to see Adobe’s contributions helping to make such an impact, wish we could see more collaboration between Mozilla and Adobe.
July 28th, 2008 by enefekt
Since Xcode 3 has come out I’ve been tinkering with different ways to keep development with Flex and ActionScript 3 working decent for my day-to-day work.
In order to keep this stuff updated better and available for others to use, and hopefully help improve, I’ve created a Google Code project named Core SWF.
Right now this doesn’t have a whole ton of stuff, but it does have:
- Updated ActionScript and MXML language spec files (Including AS in MXML script blocks)
- A basic ActionScript 3 project template (Integrated with the Flex 3 SDK Ant tasks)
Gradually I’ll be adding more advanced project templates.
This is all updated to work with Xcode 3.1 as well.
You can download the very first 0.1 release on the project site.
Ping me for SVN access if you want to help add or improve some stuff. enefekt at that Google email service.
June 26th, 2008 by enefekt
There are so many online communities out there already, but I was curious when Mixx debuted their “Communities”.
Figured I would create a community just for Flex. I don’t know if there is enough value in a mini Digg-like community just for Flex developers and designers, but I guess we can find out … introducing:
It is open registration for members, so if you think it might be cool, join up!
June 5th, 2008 by enefekt
Just got done spending my afternoon tracking this one down. Had a Flash app on one domain, calling some web services from another.
The crossdomain.xml policy file worked perfectly fine up until 22.214.171.124 (Which BTW gets automatically installed with the Mac OS 10.5.3 update), then stopped working.
Started getting the:
Request for resource at (url) by requestor from (url) is denied due to lack of policy file permissions.
Set up the policy logging, and found out the WSDLs were being loaded just fine, but everything failed when it came to actually calling a service.
Pored over the security article on Adobe’s site. Couldn’t find anything.
Finally ended up stumbling on this TechNote, which solved the problem for me.
After finding the problem, also saw the section in the Flash Player 9 Security PDF.
What was needed?
Needed to allow the SOAP headers.
Hopefully this might help someone else.
June 5th, 2008 by enefekt
Here we go again. Via MacRumors, Apple has filed a patent application that seems to cover some of the rumored features for the next 3G iPhone on the 2.0 software.
The interesting bit is what the application says about our very own beloved Flash Player:
“In some embodiments, the content can be played with a QuickTime, Windows Media, or Flash plugin”
So will this be in the distant future, or on Monday?
May 14th, 2008 by enefekt
Nice, via Read Write Web, Google has released a Flash API for Google Maps in ActionScript 3! Nice to be skipping right over some of those annoying LocalConnection hassles with these APIs when using Flex/AS3.
Speaking of Google, LocalConnection, and APIs, has anyone wrapped up a LocalConnection lib to use the YouTube Chromeless Player APIs yet? I know there is some rough sample code in their forum, but is there a project that puts this all in one spot to use as a library?
April 23rd, 2008 by enefekt
What do fried cheese curds, spotted cows, and developing simulations, games, and educational applications in Flex have in common? Madison, WI baby!
If you are interested in working with the educational and academic community in Madison for the University of Wisconsin, and have strong skills and background with client-side development with a focus on Flex and ActionScript, then apply right now!
View the job description and apply!