I am using this in my flash movie:
loadVariables("file.txt",_root);
but in my text file how do I put in images?
I have tried: Home_logo=bulldog.jpg&
I am using this in my flash movie:
loadVariables("file.txt",_root);
but in my text file how do I put in images?
I have tried: Home_logo=bulldog.jpg&
Try using tis in your fla:
and this in your .txt:Code:var currentSlide = 0; var myLV = new LoadVars(); myLV.load("data.txt"); myLV.onLoad = function(success) { if (success) { img_arr = this.arrayVar.split("||"); _root.attachMovie("slideshow", "show", 1, {_x:0, _y:0, _visible:false, fps:18, nFrames:24, alphaIncr:10, slides_arr:img_arr, slideDepth:1, repeat:true, slideTracker:"currentSlide"}); show.addListener(_root); _root.onAllSlidesLoaded = function() { show._visible = true; show.beginTransitions(); }; } else { // the vars couldn't be loaded. } };
Should pull everything out just nice likeCode:&arrayVar=1.jpg||2.jpg||3.jpg||4.jpg&![]()
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:
$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
Doesn't work.
You put the "&" sign on both sides of the array?
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:
$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
Like this
or this:Code:&arrayVar=1.jpg||2.jpg||3.jpg||4.jpg&
Code:&arrayVar&=1.jpg||2.jpg||3.jpg||4.jpg&
It is like the first one, at the very beginning of the array line and at the very end.
Have you thought about using XML instead of plain text?
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:
$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
Bookmarks