Greetings fellow FLASH'ers!
Today I am trying to load HTML from text file into a variable.
I have crated a MC with two bottons. Have AS on bottons to scroll text up/down ... Within the MC, I have a textbox (dynamic, HTML, multipleline) named ProductText.
I have created a text file (using notepad) with all the HTML code and text I want to load. I then added the action script to load the variable.
I cannot get it to work ... I have placed the AS in several places and have not been successfull. I tried first frame in timeline, I tried buttons and even first frame within MC.
The action script:
on (release) {
loadVariablesNum ("ProductText.txt", 0);
gotoAndStop ("products"
;
}
on buttons and:
loadVariablesNum ("ProductText.txt", 0);
on frames ... The textbox is within MC. The MC is on frame 26 with no name and it is a unique MC (not used anywhere else). The name of the textbox is ProductText.
Can some ome please help me out and tell me what I'm doing wrong?
Thank you all in advance!
josel If you have the knowledge, consult and educate those who need it! - Jose Lerebours
Today I am trying to load HTML from text file into a variable.
I have crated a MC with two bottons. Have AS on bottons to scroll text up/down ... Within the MC, I have a textbox (dynamic, HTML, multipleline) named ProductText.
I have created a text file (using notepad) with all the HTML code and text I want to load. I then added the action script to load the variable.
I cannot get it to work ... I have placed the AS in several places and have not been successfull. I tried first frame in timeline, I tried buttons and even first frame within MC.
The action script:
on (release) {
loadVariablesNum ("ProductText.txt", 0);
gotoAndStop ("products"
}
on buttons and:
loadVariablesNum ("ProductText.txt", 0);
on frames ... The textbox is within MC. The MC is on frame 26 with no name and it is a unique MC (not used anywhere else). The name of the textbox is ProductText.
Can some ome please help me out and tell me what I'm doing wrong?
Thank you all in advance!
josel If you have the knowledge, consult and educate those who need it! - Jose Lerebours