Hey
Is there anyone?
Please?
hallo van Basten
Basten as in MARCO VAN BASTEN!!! ?
try this:
script for the frame:
loadLetter = function (letterName) {
loadText = new loadVars();
loadText.load(letterName);
loadText.onLoad = function() {
_root.veld.text = this.kirupatext;
};
};
script for button:
on (release) {
loadLetter(“kirupa1.txt”)
}
hope this what you mean, meisje
Let me explain it better.
I`m working on a cd-rom project. There are 13 chapters and each one has complementary text. This text is called by clicking an icon besides the word. In some chapters there are more than 50 icons. By clicking on them I want to access the function "loadNote"
loadNote = function(idnote) {
loadText = new LoadVars();
loadText.load(idnote);
loadText.onLoad = function () {
// attach the mcnote into attachnote.
_root.attachnote.attachMovie("mcnote", "mcnote", 1);
// load the var loadText into "loadtxt"
_root.attachnote.mcnote.loadtxt = this.note;
// send attachnote to Y position = 300
_root.attachnote.posY = 300;
}
}
script for the button:
on(release) {
// call function "loadNote" and set the parameter idnote.
// this way I would only change the number of the file for each button in the same chapter!!!
_root.loadNote("cap02/notes/note" + "01" +".txt");
}
Maybe Im doing something wrong with the file.txt. Do I have to put the word "note" before the text? I
m writing the file.txt with simple text, a mac text editor.
Thanks
Van Basten comes from my last name “Bastos” !!!
maybe stupid question but do you have “loadtxt=” (w/o the quotations) at the beginning in the file.txt? i don’t know whether its loadtxt or any of the other variables… i always try them all out in the hope that it works
bastos cigarette wrapping is the best and they are from belgium i guess that like saying you are from argentina here in holland… something like that :beam:
Ive done some upgrade so the mc attachnote would deslocate depending on the final loadtxt height. Here it
s
loadNote = function(idnote) {
loadText = new LoadVars();
loadText.load(idnote);
loadText.onLoad = function () {
_root.attachnote.attachMovie("mcnote", "mcnote", 1);
_root.attachnote.mcnote.loadtxt = this.note;
_root.attachnote.posY = 360 - _root.attachnote.mcnote.loadtxt._height;
}
}
all the code is working fine except the text that is not being loaded!
no, before the text i didint use the " ".
I really need some help here so I can have a progress on my project.
The deadline is next Tuesday and I`ve done all the tests but the txt file is not being loaded. Can I put the txt file in another folder?.. cause all my text files path is like this:/chapterX/notes/noteX.txt.
Please, please
I was checking the debbuger and found out that the text is being loaded.
The problem is that is not being displayed inside the textfield “notetxt”.
I captured some screen shots…
Please, take a look at them!
This is the actual as code for the first frame:
function loadNote(idnote) {
loadText = new LoadVars();
loadText.load(idnote);
loadText.onLoad = function () {
_root.attachnote.attachMovie("mcnote", "mcnote", 1);
_root.attachnote.mcnote.notetxt = this.note;
_root.attachnote.posY = 360;
}
}
This is the as code attached to the btn:
on(release) {
_root.loadNote("cap01/notes/note" + "01" + ".txt");
}
Thanks!
maybe…
_root.attachnote.mcnote.notetxt.text = this.note;
??
and just in case, the .txt file should read something like this…
note=your text here&
LOVE YOU Kax!:love:
Finally!!! Im so happy. But this is not the end. I
ll prepair a special fla to post it here soon.
Now the problem is that, my dynamic textbox is set to multline, but when it load the filex.txt, it keeps showing the first line of text. It does not not fit the text lengh. I set the border to check this. What should I do?
Thanks again!
so glad!
are you sure that the line type is set to multiline, and not multiline no wrap?
i make that mistake all the time.
I tried both but they didnt work!
Would it be better if this textfield were created dynamically, using AS?
I created a new textfield, set to multiline, bla bla, and it continues to display only the first line of text. I can`t understand what is happening! Did I miss something?!! :?
i don’t feel like guessing… attach your .fla and .txt files.
In order to function properly I need to send other files, so u can load external swf and click on the btn to load the txt file. But the files exceed the maximum file size. Could I send it to your e-mail? Do u work with win or mac? cause I use stuff it…
win
*****@msn.com
ok… set its autoSize property to true. =)
notetxt.autoSize = true;
uhuuuu!
Great! Working fine!.
You are being very helpfull!
Thanks a lot!
Could you give me your opinion about the interface?
Please, feel free to point what u think is wrong or that could get better!
Would u mind helping me with a little other questions?
Thanks again
nope, i don’t mind at all. if i know the answer, why shouldn’t i help you? and if i don’t, i’ll try to figure it out.
and i really like the interface as is.
:):):):)
and the question is… ?