Need a Music Fix…bad

Do you have a deep and desparate craving for some music? Something with a beat…a solid bass line…and some cutting edge lyrics. I know how you feel. I gotta it to.

Need a Music Fix…bad.

Flash Helps: Open Browser Window

Here is a quick yet very helpful little tid-bit for opening a new browser window from Flash. The basics is this: you call some javascript from Flash using the getURL. Here is what you put in Flash:

//Put this on your button
on (release) {
getURL("javascript:Launch('http://www.yourSite.com/')");
}

//Or this on the main timeline where your button resides:
myButton.onRelease=function(){
getURL("javascript:Launch('http://www.yourSite.com/')");
}

So, that means you need some JavaScript on your html page:

function Launch(page) {
OpenWin = this.open(page, "MYWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,
resizable=no,width=400,height=200");
}

That’s it. You can modify the look of your new pop-up browser window by ajusting the other attributes of the window like menubar=yes, or toolbar and so forth.

Engrish T-shirt

Tshirt

Snazzy, Flash

Just think if the creators of Flash had decided on the name “Snazzy” instead of “Flash”…

Flash Helps: Remove the &apos, &quot, &amp from text

I know what you’ve been going through trying to get dynamic text from XML or whatever into flash and there is a “&apos, &quot, &amp ” that shows up. Well folks, here is a sample:

myText.text =cleanTextFunc(baseName[x].firstChild.nextSibling.childNodes);

//this is the function that cleans out the unwanted stuff
cleanTextFunc = function (txt) {
txt = txt.toString();
txt = txt.split(“'”).join(“‘”);
txt = txt.split(“"”).join(“\”");
txt = txt.split(“&”).join(“&”);
return txt;
};