This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > May 2004 > script error





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author script error
pacific

2004-05-18, 11:03 pm

Hi,

is there something wrong with this statement in my script?

var aarray [][] = {{E1,08,00},{DE,08,00}};


the cortona console keeps saying: "missing ; before statement"
but before this statement there's only the function statement like this:
url[
"java script:
function verplaatsing(value){
var aarray [][] = {{E1,08,00},{DE,08,00}};
}
"]

Thx pacif.
seongwon kang

2004-05-20, 7:34 pm


"pacific" <pacific.16hhcv@mail.forum4designers.com> wrote in message
news:pacific.16hhcv@mail.forum4designers.com...
>
> Hi,
>
> is there something wrong with this statement in my script?
>
> var aarray [][] = {{E1,08,00},{DE,08,00}};
>
>
> the cortona console keeps saying: "missing ; before statement"
> but before this statement there's only the function statement like
> this:
> url[
> "java script:
> function verplaatsing(value){
> var aarray [][] = {{E1,08,00},{DE,08,00}};
> }
> "]
>
> Thx pacif.
>
>
>
> --
> pacific
> ------------------------------------------------------------------------
> Posted via http://www.forum4designers.com
> ------------------------------------------------------------------------
> View this thread: http://www.forum4designers.com/message80054.html
>


If you want to control the value of MFVec3f .

DEF A Transform {
translation 0 0 0
children [
Shape {
geometry Box {}
}
]
}
DEF TI TimeSensor {
loop TRUE
cycleInterval 5
}
DEF PI PositionInterpolator{
key [0 1]
keyValue []
}
Script {
field SFNode PI USE PI
field MFVec3f a []
url["java script:
function initialize(){
a[0] = new SFVec3f(0, 0, 0);
a[1] = new SFVec3f(3,0,0);
PI.keyValue=a;
}
"
]
}
ROUTE TI.fraction_changed TO PI.set_fraction
ROUTE PI.value_changed TO A.translation



www.leesunho.pe.kr
www.3dwork.co.kr


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews