# vector3D input data

**URL:** <https://forum.kirupa.com/t/vector3d-input-data/294105>\
**Category:** flash\
**Created:** [August 8, 2009, 2:00pm UTC](https://forum.kirupa.com/t/vector3d-input-data/294105 "2009-08-08T14:00:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![renton79](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@renton79](https://forum.kirupa.com/u/renton79)\
**Post date:** [August 8, 2009, 2:00pm UTC](https://forum.kirupa.com/t/vector3d-input-data/294105/1 "2009-08-08T14:00:04Z")

</div>

Is there a way to input data in to vector3d instance same way like when creating the new vector3D instance (example 1), instead of doing it separately for each axis (example 2).

example 1  
ActionScript Code:  
[LEFT][COLOR=#000000] **var** [/COLOR] vec:Vector3D = [COLOR=#000000] **new** [/COLOR] Vector3DCOLOR=#000000[/COLOR];  
[/LEFT]

example 2  
ActionScript Code:  
[LEFT]vec.[COLOR=#000080]x[/COLOR] = [COLOR=#000080]1[/COLOR];  
vec.[COLOR=#000080]y[/COLOR] = [COLOR=#000080]2[/COLOR];  
vec.[COLOR=#000080]z[/COLOR] = [COLOR=#000080]3[/COLOR];  
[/LEFT]
