Groups | Blog | Home
all groups > flash actionscript > october 2004 >

flash actionscript : Problems with scroll bar in Dinamic Text Window don´t work!


Catarina Fernandez
10/29/2004 8:52:52 PM
I´m trying to put a scroll bar component to a Dinamic Text Window,
but the content of this window is in a php file called by
loadVariables("http://www.site.com/text.php", "", "GET");

The text loads, but the scroll bar don´t work...why?!

Also, if you all could help me to "GET" from a .txt or htm file
rather than this .php, will be perfect! (I intent to format the
text and incert some images...)

Thanks!
Caty.

fernandesfran
10/30/2004 5:59:10 AM
Hi, i'll tackle the second issue, as thats what you're asking for... Put the
foll. code in the first frame of your flash file: myText = new LoadVars();
//create an LoadVars object myText.load("myTextFile.txt"); //load
the text file...should be in the same folder myText.onLoad =
function(success){ //if load is successful... if(success){ theVar =
myText.someVar; //assign someVar to a variable } else{ trace("failed
to load file"); //couldn't load file...something wrong.. } }
-------------------------- The Text File should look like this: someVar=this
is the variable value Hope this helps. (not in the text file!) Cheers, FF
fernandesfran
10/30/2004 6:00:00 AM
oh.....lo and behold! the formatting appears all screwed up in the new updated forum! woops!


Catarina Fernandez
10/30/2004 12:36:25 PM
Thanks Fernandesfran! (were are you from?! with this nick I think your
primary language is not english! If so, fell free to write in
spanish/portuguese with me!)

I´ll try it and will be back to let you know, ok?!

Thank you very much!
Caty.


"fernandesfran" <webforumsuser@macromedia.com> escreveu na mensagem
news:clval0$eko$1@forums.macromedia.com...
[quoted text, click to view]

fernandesfran
10/31/2004 7:27:59 AM
Hi Caty, sounds strange, but i'm a native of Bombay, India (South-East Asia).
Actually English is supposed to be my first language out there....(more
like..Hindi + English = HingLish )...but is it too bad? :) And, i know as much
of spanish or portugese as i know of cantonese :)) Cheers, FF
AddThis Social Bookmark Button