CSS Sprites

September 9th, 2009

What is it? And why use it? This first answer is it simply using one image and positioning it for multiple classes. A sprite is actually one large image positioned to make separate images. Have you ever seen a rollover on one image that uses repositioning well this is an extension of that technique. The difference is that instead of just two or three images being combined it’s one. First you start off with an image that has several icons, bullets. See sample here.

Read the rest of this entry »

Bookmark and Share

Random Post:
Create Linked Text with Style in Flash

January 26th, 2009

Say you wanted to create link on your flash website that has a style of blue and underlined. You could do that by setting the style before the htmlText.
var myStyleSheet:StyleSheet= new StyleSheet();
myStyleSheet.setStyle("A",{textDecoration: "underline", color: "#0000ff"});
var myWebLink:TextField=new TextField();
myWebLink.styleSheet=myStyleSheet;
myWebLink.htmlText="Visit <a href='http://craigwolfedesigns.com'>Craig Wolfe Designs</a>";
addChild(myWebLink);

Bookmark and Share