PDA

View Full Version : problem with vars


powerful
04-26-2006, 11:28 PM
this is the error message

**Error** Scene=Main, layer=variables, frame=1:Line 13: You must export your movie as Flash 5 to use this action.
var hola:String = "hola";

**Error** Scene=Main, layer=variables, frame=1:Line 14: You must export your movie as Flash 5 to use this action.
var i:Number = 3;

**Error** Scene=Main, layer=variables, frame=1:Line 15: You must export your movie as Flash 5 to use this action.
hola += i.toString();

Total ActionScript Errors: 3 Reported Errors: 3



and all code in this scene and this frame is tmi = "7";

for(i=0;i<tmi;i++)
menu[i]="hola"+i.toString();



var hola:String = "hi world";
var i:Number = 3;
hola += i.toString();
trace(hola); //// here I would like that showme "hi world [i value]"



how is it? wich one is the problem? im working with flash 8


Thank you so much ;)

norb
05-01-2006, 07:09 AM
code works fine for me.
check your publish settings. it seems that you are trying to publish for flash player 4 (or less)