-
importing txt file and using as variable
Hello,
I am trying to import a text file, I want the content of the text file to be used as part of a dynamically loaded sound file.
I think the problem is my syntax....
my AC
loadVariablesNum("sound.txt", 0);
var my_sound_name = soundname;
var my_sound:Sound = new Sound();
my_sound.loadSound("soundname", isStreaming)
my_sound.loadSound("soundname", true);
My text file is called sound.txt and this is its contents
&soundname=1a.MP3
What am i missing here?
Justin
-
well,
this is weird, i can get the name of the mp3 to display in a dynamic textbox by using "soundname" as the var, but i cant get it t work with my creating a sound object
-
this is my code now
var soundname;
loadVariablesNum("sound.txt", 0);
//var my_sound_name = soundname;
var my_sound:Sound = new Sound();
my_sound.loadSound(soundname, isStreaming)
my_sound.loadSound(soundname, true);
trace(soundname);
my trace come sup as undefined, yet the dynamic text box is displying it properly
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|