thanks wrangruyi, I am trying my hardest
I think in this one all the papervision 3d is wrapped up in the
actual component because I had to turn off my as3 papervision actionscript classes links to let his component publish corectly.
so I think it would just be as3.0 normal load movieclip.
Meaning no 3d.
here is a snippet of the action script so far
//You must import the event class to interface to tree3D event objects
import com.zerofractal.tree3D.tree3DItemEvent;
//The navigation breadcrumbs are set
//The text field can be any dynamic text field on the stage.
tree3D.breadcrumbs = breadcrumbTextField;
//Here you define a function that assigns custom icons to each item.
//Since images will come from an external URL , an empty movie will do.
function menuIconFunction(item
bject):String {
return “tree3D.icon.empty”;
}
tree3D.iconFunction = menuIconFunction;
//This event is fired when the actual movie is ready to accept our external image
function onAdded(e:tree3DItemEvent) {
}
tree3D.addEventListener(tree3DItemEvent.ITEM_ADDED,onAdded);
//Here you use As3's own loader class to load the external image
var iconLoader:Loader = new Loader();
//Here you set the loader as a child to the emty item icon
e.item.movie.addChild(iconLoader);
//You call the icon movie from the item XML node's icon attribute.
//To call attributes use the @ sign
iconLoader.load(new URLRequest(e.item.data.@icon));">href="mailto:URLRequest(e.item.data.@icon));">URLRequest(e.item.data.@icon));">href="mailto:href="mailto:URLRequest(e.item.data.@icon));">URLRequest(e.item.data.@icon));">href="mailto:URLRequest(e.item.data.@icon));">URLRequest(e.item.data.@icon));">href="mailto:href="mailto:href="mailto:URLRequest(e.item.data.@icon));">URLRequest(e.item.data.@icon));">href="mailto:URLRequest(e.item.data.@icon));">URLRequest(e.item.data.@icon));">href="mailto:href="mailto:URLRequest(e.item.data.@icon));">URLRequest(e.item.data.@icon));">href="mailto:URLRequest(e.item.data.@icon));">URLRequest(e.item.data.@icon));
//Here you assign an xml to the component
var xmlData
ML = new XML (
tree3D.loadXMLData(xmlData);
);
//IMPORTANT: Make sure the canvas size for the external icon is appropiate.
//The default should be 128×128 px.
Posted 2 months ago