View Single Post
  #8 (permalink)  
Old 05-14-05, 06:20 AM
brambulkens brambulkens is offline
Newbie Coder
 
Join Date: May 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
NEW WAY OF WORKING:

Code:
on (release) {
var totalfiles = new LoadVars();
totalfiles.load("html/content/totalfiles.txt");
totalfiles.onload = function(){
goto = totalfiles.x};
link = "html/content/column/column"+goto+".html"getURL(goto , "content");}
With this script i get variable "X" from file "totalfiles.txt"
X will be putted there later bij PHP but is at this moment equal to "1"

Butt it doenst quet work the way i want ot to. If i look in flash at "List of Variables" of the FlashPlayer i see this:
Code:
Variable _level0.instance8.totalfiles = [object #1, class 'LoadVars'] { 
onload:[function 'onload'],    
x:"1"  }
Variable _level0.instance8.goto = "1"
Variable _level0.instance8.link = "html/content/column/column1.html"
De variables work as you see butt the button still wont take the variable as the link... verry strange. As in mather of fact as i click the button it opens the folder wich contains the index.php. The folder wich contains the path of the variable "link". If i putt it online and click the button, it wont do nothing at all...

What to do about it????
Reply With Quote