<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2803839066518694018</id><updated>2012-02-16T03:17:25.393-08:00</updated><category term='Flash'/><category term='Browsers'/><category term='Sociology'/><category term='Technology'/><category term='Javascript'/><category term='Actionscript 2'/><category term='Actionscript 3'/><category term='Astronomy'/><category term='Creation'/><category term='Science'/><category term='Optimization'/><category term='Programming'/><category term='JSFL'/><title type='text'>Dude Mon, Daleyjem</title><subtitle type='html'>This site is mainly for the purpose of documenting either work-related findings or random thoughts.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2803839066518694018.post-2915949319957075537</id><published>2010-04-09T23:30:00.001-07:00</published><updated>2010-04-10T01:43:45.054-07:00</updated><title type='text'>Apple and Adobe Quarrel</title><content type='html'>My response to the Adobe and Apple quarrel is that the 2 should just kiss and merge. Adobe has some groundbreaking ideas, and whether it's Flash or their next big contribution to the web, Apple has the drive to allow that to happen. As part of the Open Screen Project, I'd love to see Google help push the stone as well.&lt;br /&gt;&lt;br /&gt;This doesn't mean I'd be against dropping Flash out as much as it's what brings the income for me in. Their contribution to the web in areas of animation, including top/left (x/y) movement programming is what's transforming developers into even more creative capable masters at their art. Not that Adobe invented that stuff, but it's clearly more present with the advent of Flash. With that said, I still like the idea of AS3 being the new standard for JS 2.0 programming very much, if at least as a substantial contribution. Very similar to C#, actually, so everybody wins there.&lt;br /&gt;&lt;br /&gt;On a related note: I've heard rumor that Adobe still intends on including iPhone exporting, so I'm curious if the rule only applies to OS 4.0 contract (er somethin). I suppose Apple could force an update but disallowing backwards compatibility to OS 3.0 apps could break a lot of user and developer hearts with their "fork in the pie" already.&lt;br /&gt;&lt;br /&gt;Unrelated note: Could it really be illegal to watch or publish movies online if it could be considered the equivalent of renting a DVD and broadcasting it to my rather large "living room" of friends? Difference is, we're talking very sub-par DVD quality.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2803839066518694018-2915949319957075537?l=daleyjem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/2915949319957075537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2803839066518694018&amp;postID=2915949319957075537' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/2915949319957075537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/2915949319957075537'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/2010/04/apple-and-adobe-quarrel.html' title='Apple and Adobe Quarrel'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2803839066518694018.post-3406312346721395225</id><published>2010-04-09T23:28:00.000-07:00</published><updated>2010-04-09T23:29:14.919-07:00</updated><title type='text'>nts</title><content type='html'>my most successful friendships have been the result of failed relationships&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2803839066518694018-3406312346721395225?l=daleyjem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/3406312346721395225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2803839066518694018&amp;postID=3406312346721395225' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/3406312346721395225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/3406312346721395225'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/2010/04/nts.html' title='nts'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2803839066518694018.post-4876025844369701413</id><published>2010-03-31T21:12:00.001-07:00</published><updated>2010-03-31T21:12:58.814-07:00</updated><title type='text'>Note</title><content type='html'>Live your way to progress another's.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2803839066518694018-4876025844369701413?l=daleyjem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/4876025844369701413/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2803839066518694018&amp;postID=4876025844369701413' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/4876025844369701413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/4876025844369701413'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/2010/03/note.html' title='Note'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2803839066518694018.post-5238343938977401167</id><published>2010-02-09T09:37:00.000-08:00</published><updated>2010-02-09T09:42:51.097-08:00</updated><title type='text'>Flash: iTunes Coverflow Imposter</title><content type='html'>I'm hoping to begin working on a jukebox AIR app soon... at least until iTunes uses the same type of "coverflow" behavior as the iPhone's music app (flipping album art around to show album contents).&lt;br /&gt;&lt;br /&gt;Either way, I was pretty proud of what I was able to do using Flash 10's built-in 3D support (rotationX/Y/X). Check it out here:&lt;br /&gt;&lt;a href="http://daleyjem.com/projects/coverflow/"&gt;http://daleyjem.com/projects/coverflow/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2803839066518694018-5238343938977401167?l=daleyjem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/5238343938977401167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2803839066518694018&amp;postID=5238343938977401167' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/5238343938977401167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/5238343938977401167'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/2010/02/flash-itunes-coverflow-imposter.html' title='Flash: iTunes Coverflow Imposter'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2803839066518694018.post-7488427572877037096</id><published>2009-10-24T20:05:00.000-07:00</published><updated>2009-10-24T20:08:20.775-07:00</updated><title type='text'>Digital Media Rights</title><content type='html'>boy meets girl. boy makes mixed tape for girl. is it illegal?&lt;br /&gt;&lt;br /&gt;boy meets girl online. boy sends digital playlist of mp3's. is it illegal?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2803839066518694018-7488427572877037096?l=daleyjem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/7488427572877037096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2803839066518694018&amp;postID=7488427572877037096' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/7488427572877037096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/7488427572877037096'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/2009/10/digital-media-rights.html' title='Digital Media Rights'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2803839066518694018.post-5497701663419928450</id><published>2009-10-16T18:53:00.001-07:00</published><updated>2009-10-16T18:58:59.244-07:00</updated><title type='text'>If being attacked by a bear</title><content type='html'>why play dead? first find an object big enough to draw attention. (think about all the animals you've drawn away by throwing a stick). then throw it in the direction where the bear is less able to pivot back from quickly -- perhaps right over his head. the goal here is not to hit the bear but to distract him for the quickest moment in which you run your ass to the direction you came from... so as not to enter his "domain". besides, at least you know you didn't see any other bears in that direction. with a strike of luck, the bear will not wander too far from the zone he thought you were infiltrating.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2803839066518694018-5497701663419928450?l=daleyjem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/5497701663419928450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2803839066518694018&amp;postID=5497701663419928450' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/5497701663419928450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/5497701663419928450'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/2009/10/if-being-attacked-by-bear.html' title='If being attacked by a bear'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2803839066518694018.post-1891087381765713984</id><published>2009-10-02T16:18:00.000-07:00</published><updated>2010-04-04T20:48:13.157-07:00</updated><title type='text'>Making an animated PNG</title><content type='html'>Since an animated GIF can't contain anti-aliased transparent edges the same way a PNG can... and a PNG file can't animate within itself like an animated GIF, I had to create a PNGSequence class in Javascript to emulate the behavior of an animated GIF by containing it within a sprite, and animating it with the javascript.&lt;br /&gt;&lt;a href="http://www.daleyjem.com/projects/js/pngsequence/" target="_blank"&gt;www.daleyjem.com/projects/js/pngsequence/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I'm too lazy to put direct access to the file, but you can snag it and use it if you wish. I gave you the link... That should be all you need.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2803839066518694018-1891087381765713984?l=daleyjem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/1891087381765713984/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2803839066518694018&amp;postID=1891087381765713984' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/1891087381765713984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/1891087381765713984'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/2009/10/making-animated-png.html' title='Making an animated PNG'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2803839066518694018.post-825066671825072373</id><published>2009-07-19T15:39:00.000-07:00</published><updated>2009-09-29T17:01:08.910-07:00</updated><title type='text'>Basic Plan to Run Shell Commands with Adobe AIR</title><content type='html'>Not yet developed, but hopefully in the works soon:&lt;br /&gt;&lt;br /&gt;1.) Install "AIRExecute" (.NET) to C:\Program Files\AIRExecute\run.exe&lt;br /&gt;- How run.exe is to be initially opened I'm unsure of currently&lt;br /&gt;- Checks $(AIRExecute)\commands.txt for new commands.&lt;br /&gt;- "run" causes new execution of command, removes command on execute and pushes new processe to array.&lt;br /&gt;- "killAll" kills all processes in process array and removes entry from process array.&lt;br /&gt;&lt;br /&gt;2.) AS3 AIRExecute Class -&gt; appends to $(AIRExecute)\commands.txt:&lt;br /&gt;- run(command:String)&lt;br /&gt;- killAll()&lt;br /&gt;&lt;br /&gt;Example of commands.txt for starting new transcode using "run" command:&lt;br /&gt;-killAll&lt;br /&gt;-run C:\Program Files\FFMpeg\ffmpeg.exe -i somefile.wma -y somefile.mp3&lt;br /&gt;&lt;br /&gt;-------------&lt;br /&gt;Additional development would allow for specifying the AIR application issuing the command, so that "killAll" will only kill processes initiated by that application.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2803839066518694018-825066671825072373?l=daleyjem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/825066671825072373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2803839066518694018&amp;postID=825066671825072373' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/825066671825072373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/825066671825072373'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/2009/07/basic-plan-to-run-shell-commands-with.html' title='Basic Plan to Run Shell Commands with Adobe AIR'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2803839066518694018.post-3766525996447214980</id><published>2009-07-02T23:38:00.000-07:00</published><updated>2009-07-02T23:41:56.593-07:00</updated><title type='text'>Web page background colors and time of day</title><content type='html'>Too many websites have all white backgrounds. A fair number of them have dark ones all the time. What if a website's background color changed by user's current TOD?&lt;br /&gt;&lt;br /&gt;My current blog's dark gray background is especially soothing on the eyes at 15 til 3 A.M., but imagine it might get "drowsy" on a daytime user.&lt;br /&gt;&lt;br /&gt;...noted.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2803839066518694018-3766525996447214980?l=daleyjem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/3766525996447214980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2803839066518694018&amp;postID=3766525996447214980' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/3766525996447214980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/3766525996447214980'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/2009/07/web-page-background-colors-and-time-of.html' title='Web page background colors and time of day'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2803839066518694018.post-4782266313401391428</id><published>2009-06-23T19:52:00.001-07:00</published><updated>2009-08-09T01:16:43.472-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sociology'/><title type='text'>Pride in my nation (unedited for monumental grammatical errors)</title><content type='html'>it has come to my attention that my nation faces scrutiny by foreigners for lack of morallity.&lt;br /&gt;&lt;br /&gt;we must ask ourselves:&lt;br /&gt;has my nation allowed for the "shortcomings" of others in the best of its abilities to uphold a justice&lt;br /&gt;for each individual's well being or showed progress towards its improvement?&lt;br /&gt;&lt;br /&gt;do we widely publish our collection of historical monuments of man kind's accolades without bias towards his collective "personage"?&lt;br /&gt;&lt;br /&gt;my personal mind's reference of historic occurrences could lend me to asking myself, "can we lay claim to the prize that we are the inhabitants of a monumental land? could it be (humbly) true that our ways shape the more unified coexistence of diverse beings?&lt;br /&gt;&lt;br /&gt;has the way of our nation's inhabitants helped foster in the coexistence of once detached nations by scales unmatched in history?&lt;br /&gt;&lt;br /&gt;these things i believe we have.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2803839066518694018-4782266313401391428?l=daleyjem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/4782266313401391428/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2803839066518694018&amp;postID=4782266313401391428' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/4782266313401391428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/4782266313401391428'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/2009/06/pride-in-my-nation-unedited-for.html' title='Pride in my nation (unedited for monumental grammatical errors)'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2803839066518694018.post-3393063446325447154</id><published>2009-03-19T13:40:00.000-07:00</published><updated>2009-06-23T20:49:21.289-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><title type='text'>Flash CS3: Crashes on Open or When Setting Document Class</title><content type='html'>&lt;div&gt;Scenario:&lt;/div&gt;&lt;br /&gt;&lt;div&gt;- FLA on desktop&lt;/div&gt;&lt;br /&gt;&lt;div&gt;- Folder on desktop, containing corrupt file&lt;/div&gt;&lt;br /&gt;&lt;div&gt;- Double-click to open FLA and Flash crashes&lt;/div&gt;&lt;br /&gt;&lt;div&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;Why?? Because Flash feels the need to scrub through every subfolder and file residing along/within the same directory as your FLA.&lt;/div&gt;&lt;br /&gt;&lt;div&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;Conclusion:&lt;br /&gt;By tediously  moving individual folders out of the FLA's hierarchical structure, and later specific files, I was able to pinpoint a file that was backed-up off my LG enV phone's filesystem with bitpim.&lt;br /&gt;&lt;br /&gt;Don't make the same initial mistake I did of trying to reinstall your whole Adobe Production Suite (hours!!). Instead, begin your less timely hunt for a corrupt file.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;- &lt;/div&gt;&lt;br /&gt;&lt;div&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;Error report from Windows Event Viewer:&lt;/div&gt;&lt;br /&gt;&lt;div&gt;"Faulting application flash.exe, version 9.0.0.494, faulting module flash.exe, version 9.0.0.494, fault address 0x00c5958f."&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2803839066518694018-3393063446325447154?l=daleyjem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/3393063446325447154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2803839066518694018&amp;postID=3393063446325447154' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/3393063446325447154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/3393063446325447154'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/2009/03/flash-cs3-crashes-on-open-or-when.html' title='Flash CS3: Crashes on Open or When Setting Document Class'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2803839066518694018.post-955506706703227212</id><published>2009-02-28T12:57:00.000-08:00</published><updated>2009-07-06T22:02:04.601-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Optimization'/><title type='text'>Optimizing "For" Loops</title><content type='html'>I'm still a bit shocked to see how many developers aren't optimizing their "for" loops. Do some time trials in any language and you'll find a difference in the following methods.&lt;br /&gt;&lt;br /&gt;Method 1:&lt;br /&gt;&lt;pre style="BORDER-RIGHT: rgb(153,153,153) 1px dashed; PADDING-RIGHT: 5px; BORDER-TOP: rgb(153,153,153) 1px dashed; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; OVERFLOW: auto; BORDER-LEFT: rgb(153,153,153) 1px dashed; WIDTH: 75%; COLOR: rgb(0,0,0); LINE-HEIGHT: 14px; PADDING-TOP: 5px; BORDER-BOTTOM: rgb(153,153,153) 1px dashed; FONT-FAMILY: Andale Mono,Lucida Console,Monaco,fixed,monospace; BACKGROUND-COLOR: rgb(238,238,238)"&gt;&lt;br /&gt;// Javascript&lt;br /&gt;for (var i = 0; i &lt; document.getElementsByTagName("*").length; i++)&lt;br /&gt;    var theelement = document.getElementsByTagName("*")[i];&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;You have to realize that you're causing the the engine to grab every tag element and get the total count of those in EVERY iteration of the "for" loop. How do you make that easier on the engine? Set a variable.&lt;br /&gt;&lt;br /&gt;Method 2:&lt;br /&gt;&lt;pre style="BORDER-RIGHT: rgb(153,153,153) 1px dashed; PADDING-RIGHT: 5px; BORDER-TOP: rgb(153,153,153) 1px dashed; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; OVERFLOW: auto; BORDER-LEFT: rgb(153,153,153) 1px dashed; WIDTH: 75%; COLOR: rgb(0,0,0); LINE-HEIGHT: 14px; PADDING-TOP: 5px; BORDER-BOTTOM: rgb(153,153,153) 1px dashed; FONT-FAMILY: Andale Mono,Lucida Console,Monaco,fixed,monospace; BACKGROUND-COLOR: rgb(238,238,238)"&gt;&lt;br /&gt;// Javascript&lt;br /&gt;var elements = document.getElementsByTagName("*");&lt;br /&gt;var elementCount = elements.length;&lt;br /&gt;for (var i = 0; i &lt; elementCount; i++)&lt;br /&gt;    var theelement = elements[i];&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;I think that method 2 should be standard practice when looping through any array. Don't make the engine find the array count every single time... and for that matter, don't make the engine find the array itself every single time either. Of course, depending on the language, you might even have better luck with a "for each" loop.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2803839066518694018-955506706703227212?l=daleyjem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/955506706703227212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2803839066518694018&amp;postID=955506706703227212' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/955506706703227212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/955506706703227212'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/2009/02/optimizing-for-loops.html' title='Optimizing &quot;For&quot; Loops'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2803839066518694018.post-2939158337016327792</id><published>2008-12-30T11:58:00.000-08:00</published><updated>2008-12-30T12:19:32.208-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><category scheme='http://www.blogger.com/atom/ns#' term='Actionscript 3'/><category scheme='http://www.blogger.com/atom/ns#' term='Optimization'/><title type='text'>Actionscript 3: BitmapData.getPixel vs. BitmapData.getPixels</title><content type='html'>I'm currently in the process of writing a BitmapComparison class and am now optimizing it for maximum efficiency. The class essentially does a nested "for loop" through a BitmapData object's width and height -- comparing the pixel color values to the other BitmapData object at the corresponding x and y coordinates using the getPixel() method.&lt;br /&gt;&lt;br /&gt;Since the getPixels() method returns a ByteArray, I thought that perhaps &lt;em&gt;it&lt;/em&gt; would be the better choice, rather than the method just explained of going through the width and height. I used the tutorial explained at: &lt;a href="http://richardleggett.co.uk/blog/index.php/2006/08/11/getpixels"&gt;http://richardleggett.co.uk/blog/index.php/2006/08/11/getpixels&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I compared 2 identical images of 2880 x 2880 (the BitmapData object's max width/height), using both methods. It turns out that the getPixel() method took an average of 2.8 seconds, while the getPixels() method took an average of 3.4 seconds.&lt;br /&gt;&lt;br /&gt;I thought this could be due to the fact that getPixels() gets 32-bit values, while getPixel() does not... so I then used getPixel32() and still got an average of 2.8 seconds.&lt;br /&gt;&lt;br /&gt;Perhaps I'm missing something, but my conclusion is that, while the getPixels() method may save a few lines, it can be less efficient in many circumstances.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2803839066518694018-2939158337016327792?l=daleyjem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/2939158337016327792/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2803839066518694018&amp;postID=2939158337016327792' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/2939158337016327792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/2939158337016327792'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/2008/12/actionscript-3-bitmapdatagetpixel-vs.html' title='Actionscript 3: BitmapData.getPixel vs. BitmapData.getPixels'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2803839066518694018.post-8516785446209791308</id><published>2008-08-26T09:42:00.000-07:00</published><updated>2009-11-13T11:58:09.917-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><category scheme='http://www.blogger.com/atom/ns#' term='Optimization'/><title type='text'>Optimizing Flash Filesizes for Banner Ads</title><content type='html'>&lt;p&gt;Most Flash developers may not be too concerned regarding a few extra bytes here and there in their .swf filesize. Those who develop Flash banner ads, however, are most times restricted to a 30k filesize limit.&lt;br /&gt;&lt;br /&gt;The following are some techniques for trimming the filesize of a .swf down (if even by a few bytes).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Generate Size Report&lt;/strong&gt;&lt;br /&gt;In your publish settings, check this box so that you can see which items specifically are taking up the most bytes.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Remove Unused Linkage&lt;/strong&gt;&lt;br /&gt;If you included a component into your file, but later removed it, the linkage for that component still exists in the library and will be included in your compiled swf. These things can take up significant filesize, so keep in eye out for that.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Graphic Symbols Instead of MovieClips&lt;/strong&gt;&lt;br /&gt;MovieClip instances come with some overhead. They're simply put, more versatile. You may at some times find yourself converting back to MovieClip instances so that you may add a dropshadow, or what-have-you, but Graphics really do cut the filesize down, if even a tad.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Vector Instead of Raster&lt;/strong&gt;&lt;br /&gt;This one may be a bit more obvious. If you have enough design experience with vector, you can make a pretty realistic object. Avoid "Trace Bitmap" (which converts raster to vector) as it only take up MORE filesize.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Reuse Similar Objects&lt;/strong&gt;&lt;br /&gt;Let's say you have 2 objects. One is blue and the other is red. The blue object is a 20 pixel square, the red one is a 100x300 rectangle. For reuse, you could convert one to a Graphic symbol, and reuse it by simply resizing it on the stage and putting a "Tint" color behavior on it to change colors.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Render Text for Animation Instead of Readability&lt;br /&gt;&lt;/strong&gt;This cuts the filesize down everytime, although you may lose the readability factor in the process.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Break Apart Bitmaps&lt;br /&gt;&lt;/strong&gt;This can cause "fuzz" issues, but I curiously found out one day that breaking apart a bitmap contained within a Graphic instance shaves off a few bytes.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Condense Whitespace of Textfields&lt;br /&gt;&lt;/strong&gt;Double-click on any static textfield, and resize it with the square handle until the majority of excess whitespace is truncated.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Multiply/Screen JPG's instead of Transparent PNG's&lt;/strong&gt;&lt;br /&gt;A &lt;a href="http://www.mikekunze.com/"&gt;colleague&lt;/a&gt; of mine showed me this trick, and it really does do marvels. Here's the process of achieving this:&lt;br /&gt;&lt;br /&gt;1.) In a graphic editor, add a white background where transparency would usually be. Export this image to a JPG.&lt;br /&gt;&lt;br /&gt;2.) Using the same graphic, change the background color to black and fill the original graphic to have a full white. Export this to a JPG as well.&lt;br /&gt;&lt;br /&gt;3.) Pull these graphics into Flash and create a new Graphic symbol with 2 layers. The top layer will contain the white background JPG, and the bottom layer will contain the black background JPG.&lt;br /&gt;&lt;br /&gt;4.) Convert both of these bitmaps to separate MovieClip symbols (not Graphics, as we need to add blend modes).&lt;br /&gt;&lt;br /&gt;5.) Now give the top layer a "Multiply" blend mode, and the bottom layer a "Screen" blend mode.&lt;br /&gt;&lt;br /&gt;Voila! You should now have the same effect of transparency as a PNG. Exported filesize should drop, and now you can compress the screened JPG and multiplied JPG separately and accordingly.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2803839066518694018-8516785446209791308?l=daleyjem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/8516785446209791308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2803839066518694018&amp;postID=8516785446209791308' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/8516785446209791308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/8516785446209791308'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/2008/08/optimizing-flash-filesizes-for-banner.html' title='Optimizing Flash Filesizes for Banner Ads'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2803839066518694018.post-4919882698727436098</id><published>2008-07-17T09:52:00.000-07:00</published><updated>2010-03-25T07:07:39.370-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JSFL'/><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><title type='text'>JSFL: Maintain timeline duration after frame rate change</title><content type='html'>So I was tasked with a certain job (a Flash banner) that required me to decrease the frame rate of my Flash file, while keeping the overall duration of the movie the same. As anyone familiar with this scenario knows, when you change the FPS, the timeline stays the same -- but your movie now has a longer or shorter duration.&lt;br /&gt;&lt;br /&gt;Well, considering all of the tweens going on, this was going to be a tedious task if I was to correctly calculate how many frames to remove from EACH individual motion tween or tweenless span of frames.&lt;br /&gt;&lt;br /&gt;The following is some JSFL that does just this. Because it rounds the "frameChange" variable, it's still far from perfect, and I'm sure with more time of precise programming, a closer goal could be acheived... so feel free to build off of this and/or propose a better solution, 'cause I couldn't find one online.&lt;br /&gt;&lt;br /&gt;&lt;pre style="BORDER-RIGHT: #999999 1px dashed; PADDING-RIGHT: 5px; BORDER-TOP: #999999 1px dashed; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; OVERFLOW: auto; BORDER-LEFT: #999999 1px dashed; WIDTH: 75%; COLOR: #000000; LINE-HEIGHT: 14px; PADDING-TOP: 5px; BORDER-BOTTOM: #999999 1px dashed; FONT-FAMILY: Andale Mono, Lucida Console, Monaco, fixed, monospace; BACKGROUND-COLOR: #eee"&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;fl.outputPanel.clear();&lt;br /&gt;var doc = fl.getDocumentDOM();&lt;br /&gt;&lt;br /&gt;var lib = doc.library;&lt;br /&gt;var currFrameRate = doc.frameRate;&lt;br /&gt;var newFrameRate = prompt("Enter new desired frame rate:", currFrameRate.toString());&lt;br /&gt;var adjustMode = prompt("Adjust all movieclip timelines? (0=no, 1=yes)", 1);&lt;br /&gt;&lt;br /&gt;if (newFrameRate != null &amp;&amp; adjustMode != null)&lt;br /&gt;{&lt;br /&gt; if (adjustMode == 1) selectMainTimeline();&lt;br /&gt; adjustTimeline();&lt;br /&gt; if (adjustMode == 1)&lt;br /&gt; {&lt;br /&gt;  var libItemCount = lib.items.length;&lt;br /&gt;  for (var libItemIndex = 0; libItemIndex &lt; libItemCount; libItemIndex++)&lt;br /&gt;  {&lt;br /&gt;   var libItem = lib.items[libItemIndex];&lt;br /&gt;   if (libItem.itemType == "movie clip")&lt;br /&gt;   {&lt;br /&gt;    lib.editItem(libItem.name);&lt;br /&gt;    adjustTimeline();&lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; if (adjustMode == 1) doc.frameRate = parseFloat(newFrameRate);&lt;br /&gt; selectMainTimeline();&lt;br /&gt; fl.trace("Timeline adjustment complete");&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt; fl.trace("Action cancelled");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function selectMainTimeline()&lt;br /&gt;{&lt;br /&gt; doc.editScene(0);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function adjustTimeline()&lt;br /&gt;{&lt;br /&gt; var tl = doc.getTimeline();&lt;br /&gt; fl.getDocumentDOM().getTimeline().expandFolder(true, true, -1);&lt;br /&gt; var layerArray = tl.layers;&lt;br /&gt; var layerCount = layerArray.length;&lt;br /&gt; &lt;br /&gt; for (var layerIndex = 0; layerIndex &lt; layerCount; layerIndex++)&lt;br /&gt; {&lt;br /&gt;  tl.currentLayer = layerIndex;&lt;br /&gt;  var currLayer = layerArray[layerIndex];&lt;br /&gt;  var frameArray = currLayer.frames;&lt;br /&gt;  var frameCount = frameArray.length;&lt;br /&gt;  var keyFrameArray = new Array();&lt;br /&gt;  var currStartFrame = 0;&lt;br /&gt;  keyFrameArray.push(currStartFrame);&lt;br /&gt;&lt;br /&gt;  for (var frameIndex = 0; frameIndex &lt; frameCount; frameIndex++)&lt;br /&gt;  {&lt;br /&gt;   var currFrame = frameArray[frameIndex];&lt;br /&gt;   &lt;br /&gt;   if (currFrame.startFrame != currStartFrame)&lt;br /&gt;   {&lt;br /&gt;    keyFrameArray.push(currFrame.startFrame);&lt;br /&gt;    currStartFrame = currFrame.startFrame;&lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  var keyFrameCount = keyFrameArray.length;&lt;br /&gt;  var endFrame = currLayer.frameCount - 1;&lt;br /&gt;  var frameChange = 0;&lt;br /&gt;&lt;br /&gt;  for (var keyFrameIndex = 0; keyFrameIndex &lt; keyFrameCount; keyFrameIndex++)&lt;br /&gt;  {&lt;br /&gt;   var frameStart = keyFrameArray[keyFrameIndex];&lt;br /&gt;   &lt;br /&gt;   if (keyFrameIndex == (keyFrameCount - 1))&lt;br /&gt;   {&lt;br /&gt;    var frameEnd = endFrame;&lt;br /&gt;   }&lt;br /&gt;   else&lt;br /&gt;   {&lt;br /&gt;    var frameEnd = keyFrameArray[keyFrameIndex + 1];&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   var duration = frameEnd - frameStart;&lt;br /&gt;   var seconds = duration / currFrameRate;&lt;br /&gt;   var destFrameDur = seconds * newFrameRate;&lt;br /&gt;   frameChange = Math.round(duration - destFrameDur);&lt;br /&gt;&lt;br /&gt;   if (frameChange &gt; 0)&lt;br /&gt;   {&lt;br /&gt;    if (frameChange &gt; 0) tl.removeFrames(frameStart, (frameStart + frameChange));&lt;br /&gt;    endFrame -= frameChange;&lt;br /&gt;&lt;br /&gt;    for (var i = 0; i &lt; keyFrameCount; i++)&lt;br /&gt;    {&lt;br /&gt;     if (i &gt; keyFrameIndex)&lt;br /&gt;     {&lt;br /&gt;      keyFrameArray[i] -= frameChange;&lt;br /&gt;     }&lt;br /&gt;    }&lt;br /&gt;   }&lt;br /&gt;   else&lt;br /&gt;   {&lt;br /&gt;    frameChange = Math.abs(frameChange);&lt;br /&gt;&lt;br /&gt;    if (frameChange &gt; 0) tl.insertFrames(frameChange, false, frameStart);&lt;br /&gt;&lt;br /&gt;    endFrame += frameChange;&lt;br /&gt;&lt;br /&gt;    for (var i = 0; i &lt; keyFrameCount; i++)&lt;br /&gt;    {&lt;br /&gt;     if (i &gt; keyFrameIndex)&lt;br /&gt;     {&lt;br /&gt;      keyFrameArray[i] += frameChange;&lt;br /&gt;     }&lt;br /&gt;    }&lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2803839066518694018-4919882698727436098?l=daleyjem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/4919882698727436098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2803839066518694018&amp;postID=4919882698727436098' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/4919882698727436098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/4919882698727436098'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/2008/07/jsfl-maintain-timeline-duration-after.html' title='JSFL: Maintain timeline duration after frame rate change'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2803839066518694018.post-1266400639427362442</id><published>2008-06-04T14:48:00.000-07:00</published><updated>2009-06-23T20:52:45.183-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><category scheme='http://www.blogger.com/atom/ns#' term='Actionscript 2'/><title type='text'>Actionscript 2: getElementsByTagName prototype</title><content type='html'>I searched for one of these when I needed one, and don't think the ideas were properly emulating Javascript's getElementsByTagName function. I believe it returns an array... NOT an XML() object or an XMLNode() object.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style="border: 1px dashed rgb(153, 153, 153); padding: 5px; overflow: auto; font-size: 12px; width: 75%; color: rgb(0, 0, 0); line-height: 14px; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; background-color: rgb(238, 238, 238);"&gt;&lt;code&gt;XMLNode.prototype.getElementsByTagName = function(tagName:String):Array&lt;br /&gt;{&lt;br /&gt;  function findNodes(findNode:XMLNode, findTag:String):Void&lt;br /&gt;  {&lt;br /&gt;      var nodeCount:Number = findNode.childNodes.length;&lt;br /&gt;      for (var nodeIndex = 0; nodeIndex &amp;lt; nodeCount; nodeIndex++)&lt;br /&gt;      {&lt;br /&gt;          var node:XMLNode = findNode.childNodes[nodeIndex];&lt;br /&gt;          if (node.nodeName == findTag)&lt;br /&gt;          {&lt;br /&gt;              appendArray.push(node);&lt;br /&gt;          }&lt;br /&gt;          findNodes(node, findTag);&lt;br /&gt;      }&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  var appendArray:Array = new Array();&lt;br /&gt;  findNodes(this, tagName);&lt;br /&gt;  return appendArray;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Keep in mind... you can't put a type on a variable that will later call a prototyped method. So for the above prototype, you shouldn't say something like:&lt;br /&gt;&lt;pre style="border: 1px dashed rgb(153, 153, 153); padding: 5px; overflow: auto; font-size: 12px; width: 75%; color: rgb(0, 0, 0); line-height: 14px; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; background-color: rgb(238, 238, 238);"&gt;&lt;code&gt;var myNode:XMLNode = new XMLNode();&lt;br /&gt;trace(myNode.getElementsByTagName("tag").length);&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Instead, give "myNode" a generic declaration:&lt;br /&gt;&lt;pre style="border: 1px dashed rgb(153, 153, 153); padding: 5px; overflow: auto; font-size: 12px; width: 75%; color: rgb(0, 0, 0); line-height: 14px; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; background-color: rgb(238, 238, 238);"&gt;&lt;code&gt;var myNode = new XMLNode();&lt;br /&gt;trace(myNode.getElementsByTagName("tag").length);&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;There's always the option of creating a new class that extends the XMLNode and putting this as a method of that new class... if you're familiar with that kind of thing.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2803839066518694018-1266400639427362442?l=daleyjem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/1266400639427362442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2803839066518694018&amp;postID=1266400639427362442' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/1266400639427362442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/1266400639427362442'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/2008/06/actionscript-2-getelementsbytagname.html' title='Actionscript 2: getElementsByTagName prototype'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2803839066518694018.post-1367095527044663667</id><published>2008-04-22T07:30:00.000-07:00</published><updated>2009-06-23T20:33:35.752-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='Astronomy'/><category scheme='http://www.blogger.com/atom/ns#' term='Science'/><title type='text'>Stephen Hawking's Voice</title><content type='html'>&lt;a href="http://www.sfgate.com/blogs/images/sfgate/techchron/2006/09/07/hawking.jpg"&gt;&lt;img style="margin: 0px 10px 10px 0px; float: right; width: 228px; height: 216px;" alt="" src="http://www.sfgate.com/blogs/images/sfgate/techchron/2006/09/07/hawking.jpg" border="0" height="159" /&gt;&lt;/a&gt; Along with Carl Sagan, Professor Stephen Hawking is one of my favorite names in Cosmology. Please understand that I would never mean him any disrespect by the following question:&lt;br /&gt;&lt;br /&gt;Why is Stephen Hawking still using that standard computerized voice? I know that Microsoft has a pretty advanced voice SDK with variations in pitch, etc. to accomodate the sound of a man or woman's voice.&lt;br /&gt;&lt;br /&gt;I thought maybe even during questionairre sessions like I just watched on C-SPAN, where he read from a particular person's question -- he could have had a different pitched woman or man's voice ask a question, while his particular voice answered it. It would surely help distinguish between parties.&lt;br /&gt;&lt;br /&gt;Along with that thought, I'm aware that science and technology is at a point where a man could control a mouse cursor with his brain. How that device is connected exactly, I'm unsure of. I wonder if Professor Hawking would ever be willing (if technology allowed) to use this kind of technology to communicate real-time without the use of a text-to-speech system. Ideally, it would even allow proper emphasis on words as Professor Hawking saw fit. The expense would be teetering with one of man's most prized possessions, his brain. But even pacemakers could be considered a pinnacle achievement in merging between man and machine... and we know where those go.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2803839066518694018-1367095527044663667?l=daleyjem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/1367095527044663667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2803839066518694018&amp;postID=1367095527044663667' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/1367095527044663667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/1367095527044663667'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/2008/04/stephen-hawkings-voice.html' title='Stephen Hawking&apos;s Voice'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2803839066518694018.post-2104989813936350772</id><published>2008-03-09T12:53:00.000-07:00</published><updated>2008-04-22T12:50:52.656-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astronomy'/><category scheme='http://www.blogger.com/atom/ns#' term='Science'/><category scheme='http://www.blogger.com/atom/ns#' term='Creation'/><title type='text'>Atlantis on other Planets</title><content type='html'>It doesn't seem so strange to me that life exists on other planets throughout our universe. I never believed in this before until I started thinking outside of our solar system... when I learned that our sun was just like all the stars "in the sky". I would blame my Catholic education for the fact that I didn't learn this until my much later years.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.zbrushcentral.com/zbc/attachment.php?attachmentid=37787"&gt;&lt;img style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 320px; CURSOR: hand" alt="" src="http://www.zbrushcentral.com/zbc/attachment.php?attachmentid=37787" border="0" /&gt;&lt;/a&gt;&lt;strong&gt;Watching a show on Atlantis led me to a thought:&lt;/strong&gt;&lt;br /&gt;There is much discussion about the probability of intelligent life in other solar systems, but they always lean towards land-dwelling life. What are the posibilities of sea-dwelling intelligent life? What would they look like? What kind of technology might they have?&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Now I'm watching a show on UFO's, and my thought is:&lt;/strong&gt;&lt;br /&gt;Why is it so hard to think of a UFO possibility? Many planets in the universe are millions of years older than ours. Look at the phenomenal increase in our technology just within the last 100 years. Can you imagine what we might learn in even another 1000?&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Final thought:&lt;/strong&gt;&lt;br /&gt;Is the universe in a never-ending expand and contract "loop"? How far does space go even when the whole universe is compacted to the size of an atom? Is it infinite? Is the universe infinite? Does it have a beginning?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2803839066518694018-2104989813936350772?l=daleyjem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/2104989813936350772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2803839066518694018&amp;postID=2104989813936350772' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/2104989813936350772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/2104989813936350772'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/2008/03/atlantis-on-other-planets.html' title='Atlantis on other Planets'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2803839066518694018.post-6996402346181677630</id><published>2008-02-27T21:25:00.000-08:00</published><updated>2008-05-07T19:36:08.700-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Browsers'/><category scheme='http://www.blogger.com/atom/ns#' term='Optimization'/><title type='text'>XPath vs getElementsByTagName</title><content type='html'>I've been working on a client-side table sorting class in javascript with much success. The following are my findings:&lt;br /&gt;&lt;br /&gt;- Internet Explorer (IE) 7 doesn't support HTML DOM parsing through XPath with methods like &lt;a href="http://www.w3schools.com/XPath/xpath_examples.asp"&gt;document.selectNodes() and document.evaluate()&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;- Safari, Opera, and Firefox DO support HTML DOM parsing through XPath&lt;br /&gt;&lt;br /&gt;Perhaps the above info is obvious to some people... but in my findings I wondered if XPath would even save me in parsing speed. So i tested both the document.evaluate() and the getElementsByTagName() methods in able browsers. I found out the following:&lt;br /&gt;&lt;br /&gt;- Safari flies through either method much quicker than any other browser. Surprisingly, XPath was slower.&lt;br /&gt;&lt;br /&gt;- Firefox was quicker by about 1.5 times with XPath.. Same as Opera&lt;br /&gt;&lt;br /&gt;I actually used to hate safari, until I started realizing things like this and the fact that it passed the &lt;a href="http://www.webstandards.org/action/acid2/"&gt;Acid2 test&lt;/a&gt; when IE7 and Firefox 2 didn't. Perhaps they're not yet far along enough in their understanding of XPath. Still yet though... when is Microsoft gonna quit slacking with IE? I think it's about time they start caring more about the developer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2803839066518694018-6996402346181677630?l=daleyjem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://daleyjem.blogspot.com/feeds/6996402346181677630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2803839066518694018&amp;postID=6996402346181677630' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/6996402346181677630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2803839066518694018/posts/default/6996402346181677630'/><link rel='alternate' type='text/html' href='http://daleyjem.blogspot.com/2008/02/xpath-vs-getelementsbytagname.html' title='XPath vs getElementsByTagName'/><author><name>Jeremy Daley</name><uri>http://www.blogger.com/profile/09003840664361461028</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
