Wednesday, September 16, 2009

[JSFL] Convert to Symbol for each selected Item

1. Select items in the stage
2. Run the script

Here is the script:

if (fl.getDocumentDOM().selection.length > 0)
{
var cur_selection = fl.getDocumentDOM().selection;
var mySelected = new Array();

for(var i in cur_selection)
{
mySelected.push(fl.getDocumentDOM().selection[i]);
}

//fl.getDocumentDOM().selectNone();
//fl.getDocumentDOM().selection = mySelected;

for(var i in mySelected)
{
var sel = mySelected[i];
var path = sel.libraryItem.name;
var pName = sel.name;
var mc_name = path.substr(path.lastIndexOf("/")+1);
if (mc_name != null)
{
fl.trace(path + "_" + pName);
fl.getDocumentDOM().selectNone();
fl.getDocumentDOM().selection = [sel];
//fl.trace(sel.name);
//fl.trace(fl.getDocumentDOM().selection.length);
var newMc = fl.getDocumentDOM().convertToSymbol("movie clip", path + "_" + pName, "top left");
fl.getDocumentDOM().selection[0].name = pName;

fl.getDocumentDOM().selection = mySelected;
}
}
}

Tuesday, July 7, 2009

[Cast3D]3D Animation

3D Boxman (四葉妹妹紙箱人) Demo by using PV3D & Cast3D
The 3D Boxman is created in 3DMax and converted to xc3 by Cast3D

View Demo

Friday, June 19, 2009

[PV3D]3D Photo Album

3D Photo Album Demo by using PV3D
Loading Image with XML file

View Demo

Wednesday, April 15, 2009

[PV3D]3D Photo View by Moving Camera

A 3D Photo View by using PV3D
Moving the camera to go through the photo list

View Demo

Saturday, February 21, 2009

[AWAY3D]Matching Card in 3D

4 faces Matching Cards Game
It is a quick demo by using plane & line in 3D flash
The 3D engine is using Away3D and ASWING GUI Button.

View Demo

Wednesday, February 18, 2009

[PV3D]My Valentine 2009

This is an eCard of 3D heart for my valentine by using PV3D engine.

View Demo