Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-16-2012, 08:54 PM   #1
Senior Member
IamFace's Avatar
Join Date: Jun 2006
Location: USA
Posts: 198
Talking Compress CSS before compile?

Hey all,
I was wondering if anyone knows if it helps with file size to compress your CSS sheets before compiling the swf?
For HTML files, it compresses the bytes and makes a smaller file size, turning something like:

	stroke-color: #5AA9FF;
	stroke-width: 1;

Does this make a difference or even matter, since Flash will compile its own swf anyway, does it do something like this automatically, or will this help build slightly smaller swf files?
IamFace is offline   Reply With Quote
Old 08-23-2012, 04:15 AM   #2
tadster's Avatar
Join Date: Feb 2009
Location: Texas
Posts: 2,111

If your embedding the css as text (.css) files into your swf, I would imagine that if you make the size of the text file smaller, then that would also make for a smaller swf, but that would matter little unless your css files are 500kb or more.
If your embedding them as octet stream files (raw data text), then my thought is that yes it makes a difference.
www.actiontad.com - ActionScript and JavaScript sitting in a tree...
tadster is offline   Reply With Quote
Old 08-24-2012, 10:42 PM   #3
drkstr's Avatar
Join Date: Sep 2006
Location: Seattle, WA: USA
Posts: 1,587

Styles in Flex are compiled into bytecode, so it will not make any difference at all. This is why you can't load a stylesheet as text at runtime. It must first be compiled into a SWF.

Last edited by drkstr; 09-12-2012 at 06:27 AM. Reason: Clarity
drkstr is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 06:31 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.