Tip: Export all images from a Word document in a few clicks

Simply open the document in Word and save it as a web page (.htm).

Use the ‘Tools’ button next to the ‘Save’ button to modify the Web Options.
Select IE6 or higher and ‘Allow PNG…’
Select ‘Organize supporting files in a folder’ to save the images separately.
Uncheck the default editor stuff..
Select the biggest screen size to prevent scaling.

HTML braking/non-braking tricks

a. HTML Entities:

­ or Soft hyphen

Indicates the position to hyphenate & brake long words.
Usefull in liquid layouts (eg. print version) and especially in German or Dutch text:

  • Qualitäts­sicherungs­abteilung

  or non-braking space

Not just a space but also non-braking!
Usefull to avoid braking constructions like company names or dates:

  • WR Vanderschoot Inc.
  • 31 oktober

or to avoid ‘orphins’ (last word of a paragraph ending up alone on a new line).

b. CSS:

.nowrap{white-space: nowrap;}

Same as ‘ ’ but without the space. Keeps everything it’s applied to on the same line.
Usefull to avoid words with hyphens to brake:

  • UNIVEG <span class=”nowrap”>Nova-Veg</span> Logistics
    (otherwise ‘Veg Logistics’ could end up on a new line)
  • Bio-Obst und <span class=”nowrap”>-Gemüse</span>
    (otherwise the hyphen might end up at the end of a line, while ‘Gemüse’ is on the next)
  • <span class=”nowrap”>20-03-2011</span>

Flash command: Convert layers to movieclips

This command loops through the layers of the current timeline. For each layer it selects everything on the first frame and converts it to a movieclip with the name of the layer.

Optionally you can immediatly add a class name and linkage id.

var dom = fl.getDocumentDOM();
var timeline = dom.getTimeline();
var library = dom.library;
var trace = fl.trace;

trace("*** Convert layers to movieclips ***");

var layers = timeline.layers;

for(var i = 0;i<layers.length;i++){
	dom.selectNone();
	var layerName = layers[i].name;
	trace(layerName);
	var movieClipName = layerName.split(" ").join("");
	// select the layer
	timeline.setSelectedLayers(i);
	// select everything on the first frame
	for (var n in layers[i].frames[0].elements) {
		var e = layers[i].frames[0].elements[n];
		e.selected = true;
	}
	// convert it to a symbol
	dom.convertToSymbol("movie clip", movieClipName, "top left");
	
	// option: add a class & linkage id

	library.selectItem(movieClipName, true, true);
	library.setItemProperty('linkageExportForAS', true);
	library.setItemProperty('linkageExportForRS', false);
	library.setItemProperty('linkageExportInFirstFrame', true);
	library.setItemProperty('linkageClassName', movieClipName); 
	// movieClipName must be unique (layer names must be unique too!)
	library.setItemProperty('linkageBaseClass', "TheClassName");

	// end option
}

Save it as a .jsfl file in the ‘Commands’ folder.
(something like: C:\Users\[username]\AppData\Local\Adobe\Flash CS5\en_US\Configuration\Commands)

Restart Flash. It’s now available in the ‘Commands’ menu.

Flash CS3 512 frames bug?

Today I ran into a very strange bug.. My Flash project wouldn’t publish. After trying the usual (copying frames into a new file, cleaning up library…), I just added a frame and solved it.

Can anyone confirm this on your machine / Flash version? Create a new FLA, put something on stage, make it 512 frames in time and try publishing. On my machine Flash crashes. Same goes for 1024, 2048,… frames.

Reminds me of the mysterious Dreamweaver filesize bug I ran into a few months ago:
http://www.mikepadgett.com/technology/technical/dreamweaver-cs3-crashes-and-wont-start-up-again/