|
-
image loading problem using external text file
Hi,
please somebody help me with this annoying problem:
I have a homepage with 2 swf-s, one in the top frame and the other one in the left frame.
When the user clicks on a menu item in the top frame I would like to change the picture in the left frame SWF.
My solution would be a text file, containing a variable that should be changed after user no.1 clicked on the menu item.
Now, I don't have the the idea how I could make Flash (MX) to write a single number into currentpic.txt .
Reading from curpic.txt is solved, so the left frame swf is (nearly OK).
btw the reading is a bit buggy too...
I have
curpic.txt containing curr=1
and in the FLA
Loadvariablesnum("curpic.txt",0);
loadmovie("pic/"+curr+".jpg","mymovieclip");
and this doesn't work unless I insert this line after loadvarnum:
if (curr=1) {
rr=1
}
if (curr=2)
{rr=2
} and so on.
and I replace curr to rr in the loadmovie line.
so please, give me a little help, especially on the writing issue!
big thanks in advance!!
bye
sajoati
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
|