eingko weblog

a developer's thoughts and musings

Extending the Movieclip Class in Flash (ActionScript 2.0)

In Optimizing Flash Buttons (Part 1) and (Part 2) I talked about improving the efficiency of creating movieclip buttons; although the methods/approaches discussed therein are valuable (but that’s for you to decide), sometimes a more powerful or abstract solution is required. In the text that follows I’ll dissect a class that I’ve created that takes [...]

  • Comments Off

Javascript Favelet: Outline

Whenever I produce I website I am always thankful for the Firefox Web Developer Toolbar extension; it’s an incredible convenience. One particular feature that I use constantly is “Outline”. This feature is great for seeing the locations of various elements on any page. But I’ve always wished that there was an equivalent feature/extension for Internet [...]

  • Comments Off

Optimizing Flash Buttons (Part 2)

Last week I shared the method I use to optimize (movieclip) buttons within Flash. Now, I’m going to take it one step further, by putting the following on the first frame of the topmost layer: _global.path = “/index.php”; _global.pg_1 = _global.path + “?id=1″; function eventListener(my_mc, mcInstance){ my_mc.onRollOver = function(){ this.gotoAndPlay(“over”); } my_mc.onRollOut = function(){ this.gotoAndPlay(“out”); [...]

  • Comments Off

Liquid Multi-column Floated Lists

Every now and then I’ll design a web site for a client that incorporates a multi-column list. Typically this list is on the homepage, so we would create a module that would allow the client/user to enter in values in a textfield and then a server-side language would render the page upon request. Last month [...]

  • Comments Off

Apache, Automatic Directory Listings

I recently formatted my PC – because it had begun to take forever to boot up. There have been instances where I would, literally, wait two minutes just to get to the desktop. I figured that the cause of my problem was possibly due to my system registry being packed with ancient entries, etc. – [...]

  • Comments Off

Optimizing Flash Buttons (Part 1)

In the past, whenever I needed buttons within Flash (whether movieclip or actual button instances) I would select the instance (_mc_opt01) on the stage open up the Actions panel and paste in the following code: on(rollOver){ _root._mc_opt01.gotoAndPlay(“rollover”); } on(rollOut){ _root._mc_opt01.gotoAndPlay(“rollout”); } on(release){ getURL(“mypage.php”); } Being one who likes to modularize, I decided to try and [...]

  • Comments Off

PHP and Sessions

I don’t know how many people have had this particular problem, but I know I’m not the only one. Two weeks ago I encountered a strange issue when using session_start() with PHP; the method call was not setting/creating a cookie, so I couldn’t access my session variables. I went to php.net and found several answers. [...]

  • Comments Off