[osflash] Very basic. But cant figure it out

Chi Kin Lam keni011179 at gmail.com
Wed Apr 23 17:42:54 PDT 2008


Hi,

I have been double, trouble check and test drive my fla which is to  
load a external css and return some trace value.
Well, as you can expect, the traced string was "error loading css".  
Why? anyone got some ideas?

below are actionscript and css.

import TextField.StyleSheet;
var font_style:StyleSheet = new StyleSheet();

font_style.onLoad = function(success:Boolean){
	if(success){
		_root.nextFrame();
		trace (font_style.getStyleNames());
	}else{
		trace("error loading css");
	}
}

font_style.load("elements/css/fontstyle.css");

==============================

/* CSS Document */

.plr_style {
	font-family: Akzidenz Grotesk;
	font-size: 10;
	color: #CCCCCC;
	font-weight: bold;
	text-align: left;
	letter-spacing: 1px;
}

please help!!!

K- (  keni



More information about the osflash mailing list