String literal not properly terminated ....?

Symbol=divisions box appear, Layer=content, Frame=10: Line 32: String literal was not properly terminated
_root.movieToLoad = “panoramic"+this.label.text+”.swf";

i’m trying to tell it to load a movie that is in a folder called panoramic + the name of the variable + .swf

it’s not working though

i think it has something to do with the " that i put in there

any help is appreciated

thanks

" is a method to actually add a double quote within a string. So since your string looks like that is breaks out of quotes to add the double quote.

What you need to do is break out of that break hehe. Try this instead…

“panoramic\”+this.label.text+".swf";

alright … that works

locally

but when i put it on the server and it executes the loadMovie command. it shows the preloader for the loading movie and then the whole movie reloads … it’s weird :frowning:

That sounds more like you forgetting a stop() action somehwere or something like that. It doesn’t sound like its anything wrong with the loadMovie code itself.

how could it be a stop action

it works fine locally … nothing wrong but when i put it on the server … it’s broken

Then it sounds like a targetting issue. If you test the file itself locally and it works, but when you upload it and view it after it gets loaded in and it screws up, then it is a targetting issue.

But if you are viewing it the same exactly way both locally and on the server (viewing the main file and loading the new file into it) and it works locally and not on a server, then you just have a retarded file. Because the file works on the web the same way it works locally on your computer.

right … i thought it worked the same way

it’s not that it doesn’t load when it’s on the server

it gets the file, loads it really fast (plays the preloader) then the whole movie, not the loaded one, but the main one, resets. it’s retarded!

so i don’t know how to fix it b/c it’s not a targeting issue … atleast not as far as i can tell :frowning:

If the movie you are loading in contains _root anywhere (such as _root.gotoAndPlay() or something) then thats whats causing the problem. That is what I am assuming is happening because it sounds (if I understand correctly) like your preloader finishes loading, then it restarts your main movie, meaning that the if statement might say _root.gotoAndPlay(frame#) and therefore it is playing the main movies timeline.