AS3 Convert function name on the fly

Why would you want to do this? Not sure but a sample here:

[as]var _x = 100;

function a() : void
{
trace(“\t\tCalled from A = _x” + _x + “\n”);

}

var b = function (): void
{
trace(“\t\tCalled from B \n”);
}

trace(“Do a regular B call\n”);
b();

trace(“Convert B to A\n”);
b = a;

trace(“B Converted\n”);
b();
trace(“Do a regular A call\n”);
a();[/as]

Result

[as]Do a regular B call

Called from B

Convert B to A

B Converted

Called from A = _x100

Do a regular A call

Called from A = _x100[/as]

ZendFramework FollowSymLinks or SymLinksIfOwnerMatch error in XAMPP

Problem:
You may be getting a 403 error and if you look at the logs you should find something similar to the following:

[error] [client 127.0.0.1] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /Applications/xampp/xamppfiles/htdocs/project/public/index.php

Solution:

In your .htaccess file add the following line to the begining of the file:

[php]Options +FollowSymLinks[/php]

ZendFramework .htaccess ships with the following as default:

[php]RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ – [NC,L]
RewriteRule ^.*$ index.php [NC,L][/php]

Adding the two lines above fixes the problem. So the file should look like this:
[php]Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ – [NC,L]
RewriteRule ^.*$ index.php [NC,L][/php]