Excuse the IPhone casting 'ad' instead of 'as'
On Apr 25, 2010, at 14:21, Dimi <[email protected]> wrote:
An awsome answere i appreciate it alot. many thanx.
/Dimi
On Apr 24, 11:04 pm, Fabrice3D <[email protected]> wrote:
Once you have your model in Prefab, select the meshes and rename
them if they have the default "aw_digit" name.
In your project, if you have exported as AS3
you can previous to addChild add a mouseEvent3D listener
then retreive their names (if you want to identify who's who) or
just access their properties to trigger your zoom motion.
private function addTheCoolModels():void
{
var holder:MyPrefabClass = new MyPrefabClass();
for(var i:int = 0;i<holder.meshes.length;++i){
holder.meshes[i].addOnMouseDown(myMouseDownFunction);
_scene.addChild(holder.meshes[i]);
}
}
private function myMouseDownFunction(e:MouseEvent3D): void
{
//you will need the 3d coordinates to trigger your camera
to target tween
trace((e.target ad Mesh).scenePostion);
// in case you want to compare names...
trace("Mesh name: "+(e.target ad Mesh).name);
}
Fabrice
On Apr 24, 2010, at 10:41 PM, Dimi wrote:
Hi all.
I have made a 3dObject with a software called 3DSOM pro. I exported
the object to a .3ds file.
I used Prefab to make it to a actionscript and it works great to
use.
Now i would like to make ceartain areas clickable. What i have
made is
a controller with many
different viewpoints and small parts. So i would like that when
someone hover over a certain area
it would indicate that its a clickable area, and when clicked it
would
zoom in to that area.
I understand the zooming part, what i cant figure out is to how
make a
certain area on one side of the controller to be clickable. If it
was
a normal cube made by actionscript and have 4 sides i understand
but not in a imported 3ds object :(
I tried a round some with prefab but dident really get any smarter
so
some points to the right direction would be much appreciated.
best regards
Dimi
--
Subscription settings:http://groups.google.com/group/away3d-dev/
subscribe?hl=en- Hide quoted text -
- Show quoted text -