MANIPULATE THIS
Whatever way I change this code, I either can't get var rowCounter to be read
by function makeTextFields(), or as the code is below it no longer reads
thisTimeline["text"+p].titlage.htmlText = splitArray[p]; within the function
makeTextFields().
To those that have been following this thread (Maffe) I have added a blue box
within my textbox to see if the this.attahMovie is working. It is. Therefore
the problem is that the line..
thisTimeline["text"+p].titlage.htmlText = splitArray[p]; can?t be read within
the function makeTextFields().
Your continued help and anyone else?s on this matter would be much
appreciated.
For those who don?t know? WHAT I AM TRYING TO DO: I want to create a site...IT
MUST BE IN FLASH. Where people can upload there personal details, pictures etc.
to a mysql database. I then want for example a page that displays these peoples
names only. Then when a user clicks on a name, a new frame is played with the
rest of that persons details. I have searched the web for tutorials many of
them similar to what I am trying to do, however I couldn?t find any that really
did what I wanted it to do.
Perhaps there is a better way to create what I am trying to do. As I?ve
mentioned before I am new to coding so if the way I am going is totally wrong
if you point me in the right direction I can research that area. The code below
is attempting to display the names data that can when clicked return the rest
of that?s persons details? The problem I am having is stated above? I am very
close and really once this problem is solved I think I am pretty much home and
dry. So thanks in advance.
stop();
var rowCounter;
var numberx = 250;
var numbery = 0;
var spacing = 50;
thisTimeline=this;
darren = new LoadVars();
darren.onLoad = function() {
splitArray = darren.flashResults1.split("|");
rowCounter = splitArray.length;
looping.looping.text = rowCounter;
for (var p = 0; p<rowCounter; p++) {
thisTimeline["text"+p].titlage.htmlText = splitArray[p];
}
makeTextFields();
};
darren.load("one.php");
function makeTextFields () {
for (var p = 0; p<rowCounter; p++) {
rclip = this.attachMovie("textbox", "text"+p,
this.getNextHighestDepth());
rclip._x = numberx+spacing;
rclip._y = numbery;
numbery += 50;
}
}
receive = new LoadVars ();
receive.onLoad= function () {
infoArray = receive.toresults.split("|");
resultsText.titlage.htmlText= infoArray[0];}
//New function to clear all textboxes.
function clearText(){
for (var p = 0; p<loops; p++){
removeMovieClip("text"+p);}}
for (var p = 0; p<loops; p++) {
thisTimeline["text"+p].onRelease= function(){
darren.filmName = this.titlage.htmlText;
receive.load("oneb.php");
darren.sendAndLoad("oneb.php",receive,"POST");
clearText();
_root.gotoAndPlay ('pleasework');
}
}