March 2007
8 posts
AsUnit on OS X
I’m looking at AsUnit to start unit testing the Floorplanner. Aral Balkan has written a post AsUnit-X: AsUnit XUL UI for OS X on an easy way to get started on OS X. I’ll keep you posted on the progress!
Form_remote_tag submit by Javascript
When you try to submit a form from Javascript, using form_remote_tag, like this:
Rails:
form_remote_tag :url => {:controller => "somecontroller", :action => "} , :html => {:id => "ajax-form-1">
If you just invoke form.submit(), like this:
var form = document.getElementById('ajax-form-1');
if(form)
form.submit();
the form will be submitted to a new page, that’s not...
Configure FlashDevelop for AS3
I finally found 2 good links to posts on how to configure FlashDevelop for AS3:
Danny’s step by step tutorial
And one on FlashDevelop.org
Installing the Flash Debug Player on a Intel-based...
Today i’ve had some trouble getting the Flash Debug Player working on my new iMac. I downloaded the content debugger for Intel-based Macs from the Adobe Flash Player Support Center and installed it. The problem was, it didn’t work…. no mm.cfg, no flashlog.txt
After some surfing i found out that the easiest way to get things working is to install the fabulous Firefox Add-on Flash...
lineStyle upgrade in Flash 8
You probably already know this, but I just found out yesterday that drawing lines is greatly enhanched in Flash 8 (and Actionscript 2). There are 5 new parameters added to the lineStyle function:
lineStyle(thickness:Number, rgb:Number, alpha:Number, pixelHinting:Boolean, noScale:String, capsStyle:String, jointStyle:String, miterLimit:Number)
Prototype extends your arrays!
When using:
var lElements = ["el1","el2","el3"];
foreach(var el in arr) {
alert(el);
}
in Javascript and afterwards you add the Prototype library, don’t forget it extends your array! When doing the foreach, all extra functions that the (still wonderfull) Prototype Library adds, will be displayed. I had some weird problems after adding the javascript source file of Prototype. It took me...
Error calling method on NPObject!
UPDATE: To fix the issue I discussed some days ago(see below) use:
System.security.allowDomain(“http://ip-adress”);
ip-adress is the IP you are developing on! This will fix the security issues!
While trying to let Actionscript talk to Javascript using the External Interface API of Actionscript I bounced upon a problem when Actionscript tried to invoke this Javascript function. In...
SWF and Internet Explorer
After some diggin’ I finally figured out why Internet Explorer didn’t display my SWF movie. The width and the height of my movie are related to the width and height of the Stage. It seems that in IE the Stage isn’t available in the first frame. Therefore the movie has to wait a frame before it can acces the Stage properties.
public function Application() {
addEventListener(...