Loading movieclip depending on txt file info
I have a txt file with variables equalling numbers.
In the first frame in the Action Layer of my main movie clip I have
Back to my main movie clip I add a layer. In this layer I write some text and I name the "Var" field in the text properties "variable1"
This prints the 5 from the txt file when publishing the movie without problems.
Now imagine that instead of a number from the txt file I want to load a movie or a movieclip .. how should I do it??
I was working in something like:
NOTE: I'm using AS2
Thanks a ton in advance !!
You can only import as a string like that, so you cannot load a function through a file. This is a security precaution. So you can load a string to the swf you wish to load, and have a function ready in the flash file to accept it.
Also I don't think you can put a function inside of an if statement. variable1 isn't a variable in this situation, its the name of a function which has to be called for the code to execute.
|All times are GMT +1. The time now is 03:54 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.