October 5th, 2009

ronin

flash.display.load() doesn't load from the current working directory.


request:URLRequest — The absolute or relative URL of the SWF, JPEG, GIF, or PNG file to be loaded. A relative path must be relative to the main SWF file.

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Loader.html#load()

Did you catch that? If you do "C:\> flashplayer c:\someotherdir\somefile.swf", and then you try and load "foo.swf" which lives in C:\, then you will get the cryptic and unhelpful: "Error #2036: Load Never Completed". But if you copy foo.swf to c:\someotherdir\, suddenly everything works!

Brilliant, Adobe! Why bother to use the perfectly good Current Working Directory when you could throw a big roadblock in the way by making all paths relative to where some random .swf file lives! I mean, nobody ever dynamically downloads swf files or anything! And they never end up living many sub-directories deep in a browser cache somewhere!

Well, at least I didn't discover this two hours before a major deadline. :P
Captain Obvious

(double facepalm)


Police say the accidental shooting happened as the group was planning to go to the gun range. One of the adults raised concern about the 25-year-old man handling the firearm because of the infant being in the room, according to a police press release. The adult also was concerned that the rifle was loaded.

"The man joked that there was one way to find out if it was loaded and, at that point, he reportedly put the rifle in his mouth and pulled the trigger," according to the release.


http://www.juneauempire.com/stories/100409/loc_500794027.shtml