Hi all,
I was wondering if it was possible to use variables with the gotoandplay command in Flash 5?
I have loaded an array with frame labels. Elements of the array are chosen and passed to a local variable before being put into the goto command:
sampleArray = new array("one", "two"
;
.
.
.
localVar = new String( sampleArray[0] );
( OR localVar = sampleArray[0]; )
.
.
.
gotoAndPlay( localVar );
If the above is not possible then how would I go about doing the same thing...?
Any help appreciated.
Thanks.
I was wondering if it was possible to use variables with the gotoandplay command in Flash 5?
I have loaded an array with frame labels. Elements of the array are chosen and passed to a local variable before being put into the goto command:
sampleArray = new array("one", "two"
.
.
.
localVar = new String( sampleArray[0] );
( OR localVar = sampleArray[0]; )
.
.
.
gotoAndPlay( localVar );
If the above is not possible then how would I go about doing the same thing...?
Any help appreciated.
Thanks.