Archive for the ‘entries’ Category

Create Instance Name using MC Name in Library

Friday, March 21st, 2008

After wishing for years that Flash would automagically insert the name of a newly made MC as its instance, I finally grew antsy and make this little JSFL command:

if (fl.getDocumentDOM().selection.length > 0){

for(i in fl.getDocumentDOM().selection){

path = fl.getDocumentDOM().selection[i].libraryItem.name;
mc_name = path.substr(path.lastIndexOf(“/”)+1);
fl.trace(‘clip = ‘+mc_name);
fl.getDocumentDOM().selection[i].name = mc_name;

}

}

Photoshop Plug-in Woes w/ Vista

Saturday, July 21st, 2007

A friend of mine just bought a new system with Vista, but after installing CS3, all of his old Photoshop plugins just don’t work.  Hopefully it’s only a problem with the Data Execution Prevention.  We’ll find out soon enough.  Just in case, here’s some additional links to use for troubleshooting:

iPhone User Agent Spoof

Thursday, July 12th, 2007

Here’s a nifty little trick I figured out, used in conjunction with the Firefox extension User Agent Switcher:

Description:    iPhone
User Agent:    Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en)
App Name:    AppleWebKit/420+ (KHTML, like Gecko)
App Version:    Version/3.0
Platform:    Mobile/1A542a Safari/419.3

Guides: My New Best Friend

Saturday, July 7th, 2007

Y’know, I’m still amazed by how much Flash Professional has to offer, even after using it for almost a decade. Sure, I’d worked with rulers & guides in photoshop, etc, and I had forgotten they’re also in Flash too because I never really needed them.

This morning, I was looking for a good way to properly align elements inside of a MC without having to edit it within the stage’s context each time. Guess what? Those silly guides remain specific to each MC, not to the stage in general as I previously thought. Oh, Macromedia Adobe, what would I do without your geniuses? (I guess try an annoying workaround like I always do.)

Fix for Safari for Windows

Friday, June 15th, 2007

http://grupenet.com/2007/06/12/fix-font-issue-in-safari-for-windows/

It’s all Relative

Thursday, April 12th, 2007
if (System.capabilities.isDebugger) {
this.loadMovie("external.jpg");
} else {
this.loadMovie("images/external.jpg");
}

trace(); – the sequel

Thursday, March 1st, 2007

trace2 = function(s, r_all) {

if (!t_txt){    //create new textfield if none exists

this.createTextField("t_txt", 1, 0, 0, 1, 1);
t_txt.autoSize = true;    

}
r_all ? t_txt.text = s+"\n" : t_txt.text += s+"\n" ;

};