ok i have a text box in flash which has text loaded dynamically from a .txt file. and its html enabled… the text file has a variable name … notes but it doesnt have an instant name… the problem i have is. that when i snap a flash mx scroll bar component … it gives it an instant name but the scroll bar doesnt work… please help …
Hi jazz,
first get rid of the variable name and give your text box an instance name - then on your Loadvars code :
[AS]
LVs.onLoad = function(success){
if (success){
instancename.text = true;
instancename.htmlText = this.varnamefromtxtFile
}
};[/AS]
The scroller will not work if there is not enough text to scroll!!!
Hope that helps
SteveD
i did what u said… but flash is acting soo wierd…
http://www.brianstandre.com/mainflash.php?page_content=guestbook
click this … and the text will get loaded… if you just click and drag and select… the text… in like 3 seconds after u click the scroll bar will work… untill then it wont work… if u click around for a bit… it will start working all of a sudden… sooooo WIERD… i was thinking maybe coz the text isnt loaded… but its not that coz if u select and drag down the text is there. its loaded but yet the scrollbar shows up after a delay… why is that?
edit sometimes it works fine…
Hi Jazz,
I don’t know !!!
I went to the site ( nice graphics ), loaded the scroll bar which didn’t scroll at all, it took more than the 3 seconds you said to activate.
One possibilty is that Flash components take a while to load and the focus may not be set until fully loaded ( a guess), does it perform the same way on your hard drive, or does it work instantly - if the latter, then I would guess it is to do with loading time. Other than that I really have no idea, have you checked for any code conflicts.
One thing you can help me with, when you click to load in the second text, the scroll jumps back to ist start position, I have never managed to achieve that - how do you do it ? Is is a magic piece of code that has got by me.
SteveD
well steve about the scroll bar going back to the top on the second page… well when u press the next button… it loads the next 5 guestbook entries from the notepad ( using php ) soo it reloads the variables… the **GuestBook{/b] variable is chnaged soo when the varaiable is reloaded the scroll bar goes to the top… ( i hope that answered your question )
and about testing it on my hard disk yea… i did … does the exact same thing… soo it cant be the loading…
what do u mean about focus not being set… untill its fully loaded??
and
what do u mean conflict of code… how could the code conflict?? i am not sure i understand … how would i check if there is any code conflict???.. please help
thanks
Hi jazz,
Sorry for not responding before, have been away for a short while - have you resolved this problem yet ?
SteveD
noo steve… not yet… the problem is still there… i need to figure out something
check it out again…
http://www.brianstandre.com/mainflash.php?page_content=guestbook
well the scroll bar doesnt work … when u first go to the page ( sometimes it works ) and if u click around for a while … in a bit it will come… but untill then its not being enabled… the text is selectable so if u click and drag down you will see that the entire text is loaded… but still the scroll bar doesnt get activated for a while … and plus the transitions for each page are soo slow… even thou ive set the frame rate to 80fps… soo wierd i dont know whhy
Hi,
Yes it is weird, do you have an fla you can post - if its too big zip it and send it to me HERE
A frsh pair of eyes may help !
SteveD
btw - really like your menu button graphics, did you make them in Flash ?
yea id rather send it to you than… post it…coz its clients website…
edit
just emailed u my files thanks aagin
Hi,
Saw your post over an hour ago, but nothing has arrived in my mail box yet ?
SteveD
well thats wierd… i sent another copy anyways… hope u get this one…
OK, I got 'em, its about 2.30 am here, so I will not be looking at them tonight !!!
SteveD