Flash CS5 Cannot load SWF during “Test Movie” or Startup Screen is blank.
Flash CS5 Cannot load SWF during “Test Movie” or Startup Screen is blank., Posted in Actionscript 3, Flash, May 10th, 2011

On OSX this typically means that you have moved your “Home” folder to another drive or have another drive mounted on the root /Users folder.

To resolve this issue you will need to create a symbolic link to the /Users folder from the /Volumes folder.

In my scenario, my Volume Name is “Users” which is being mounted to /Users using fstab.

$ cd /Volumes
$ sudo ln -sf /Users ./Users

In FINDER, you can goto /Volumes and it will show a hard disk icon which will direct you to /Users folder.

This fixes an issue with the startup screen and the test/debug movie functionality.

Netatalk on Solaris ZFS
Netatalk on Solaris ZFS, Posted in General, February 3rd, 2011

I’m working on some performance tuning with Netatalk on Solaris 11 Express.

The following volume configuration increases performance 4 fold for high file operation small writes such as transferring 1 gb folders with subversion metadata.

allow:@staff rwlist:@staff ea:sys options:caseinsensitive,usedots,nohex,noadouble,volcharset

ZFS must be set to caseinsensitive.

I also move the dbpath to another disk or nvram.

:DEFAULT: options:usedots,nohex,nostat,nofileid dbpath:/var/netatalk-$v/

Flex, AIR Projects without Flex, Part 1
Flex, AIR Projects without Flex, Part 1, Posted in General, August 15th, 2010

MXML is a great markup language. It is getting more extensible all the time and, often, is something you want to use in non-flex projects. In order to provide complete understanding on how to build MXML web and desktop applications ( Adobe AIR ) without the Flex framework; I am embarking on this multi-part journey to divulge the inner workings of Flex and AIR.

Flash Builder ( i.e. Flex Builder ) provides a very convenient wrapper and configuration for building Flex and AIR applications. It does not allow, by code-hinting, extending a non IUIComponent or UIComponent object in MXML e.g. <l:Sprite /> . So we do this with a little trickery.

After creating your default application ( be it either Flex or AIR ) you will need to create a ActionScript main file. Unlike other languages, the main in ActionScript becomes implemented at the flash.display.Stage and all of your other assets build from there. I tend to call this class Main.as, it can be placed anywhere in the source folder. Next you will have to manually change the “Default Application” MXML file to extend your Main.as. This is simply done by adding the namespace xmlns:local=”*” ( whereas * is the same package the Main exists in ). Then change <s:WindowedApplication /> or <s:Application/> to <local:Main />. The application should compile without errors.

Note, however, nothing displays on the screen. I usually add a trace statement in the Main constructor that allows me to verify that everything just started ok.

The ability to inject code at the stage level easily allows for not only bootstrapping of Pure ActionScript projects but also the ability to do a variety of tasks before starting Flex at all. Some instances, this may be a dependency checker/updater of some kind. In AIR, this could be a splash screen or some other useful action.

Here is a Zip file containing an example AIR application.
NoFlexAir.zip

Thats it for the first post, hope it was helpful. My email is at the top of this page if you have any questions.

P.S.
Using the non-system-chrome takes a lot of resources and essentially allows draw space over your entire screen estate. I have a inkling that the Popup / Context Components draw in some super-layer however I will cover that in another post.

Progressive Flash Video Publish
Progressive Flash Video Publish, Posted in General, August 2nd, 2010

I was working on something this week and was unable to find any help on google on how to publish ultra quality video with the flash player. The idea was to just buffer the entire video’s contents and slowly upload it. Its actually more simple than it looks however the ActionScript 3 docs don’t cover this at all.

Configuration
Here is the low down, the Camera.quality setting always drops frames — even when you also have the bandwidth setting enabled. Setting Camera.quality to 0 then the bandwidth setting to something large such as 500,000 kb/s will provide an excellent video. In the mean time, also maximize your camera frame-size and frame-rate.

The Buffer
Watching the bufferLength property to see the size of your buffer. Removing the devices from the NetStream when you want to finish recording but remember that you have to wait for bufferLength to 0 out before closing the connection or your upload will be lost forever.

GRUB_ boot problem.
GRUB_ boot problem., Posted in Linux/Unix, July 28th, 2010

So I updated my OpenFiler storage appliance a few days ago and I had to restart it for the first time since the update. To my surprise upon reboot, I got the following “non-error” message “GRUB_”. No other message or error code.( OpenFiler does not have a LiveCD ) I searched all over google only to find out that most people said this was some sort of error that required a LiveCD to reinstall GRUB. Well, I decided to hit the F11 key on restart ( to get the list of available devices to boot from ). Upon manually selecting the correct HD, I was able to boot. The moral of the story is, make sure your computer is attempting to boot the correct hard disk. I went into the BIOS and set that hard disk as the default boot device. Works just fine now.

Cheers,
-J

P.S. On another topic, the error “Comreset Failed (errno=-16)” has the good possibility of meaning the power for that drive has failed and to try another molex connector ( I just found out two connectors, in one chain of the power supply, just failed on me ). If it isn’t the power source ( you can tell the drive is spinning ) then its either a bug or the drive itself is causing a problem. Check SMART status.

« Older Entries