| Welcome to Brackenwood. We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Argh! @#%ing Flash!; Flash 7 ain't cooperating. | |
|---|---|
| Tweet Topic Started: Jun 17 2005, 07:49 PM (131 Views) | |
| KWarp | Jun 17 2005, 07:49 PM Post #1 |
![]()
Brackenwood Middleweight
|
Here's the deal, I went through this text tutorial so I could run my website more efficiently through an external text file and flash interface. Problem is: -I can't change the color of the scroll bar -I can't render the text in html -And it double spaces every new line I make. Seems the text wont show up this way. Click Here and Hope it works on your computer Download FLA Someone PLEASE HELP.
|
![]() |
|
| Vector | Jun 17 2005, 08:04 PM Post #2 |
|
Resident Actionscript Guru ♂
![]()
|
I can tell you now about that bit i just quoted. When you say textfield.text = .....; make it textfield.htmlText instead... that will render the text in html format, ie colours, <b><i><u> tags, etc. as for scrolling, you can make your own buttons... there's a textfield.scroll property i think. In whole numbers, it starts at 0, and as you scroll down further the number increases. so to make scroll buttons or something similar: buttonup.onRelease = function() { if (textfield.scroll > 0) { textfield.scroll -= 1; } } buttondown.onRelease = function() { if (textfield.scroll < textfield.maxscroll) { textfield.scroll += 1; } } I think maxscroll is the property for the most that you can scroll... from memory :/ Any probs just post back.
|
![]() |
|
| KWarp | Jun 17 2005, 10:28 PM Post #3 |
![]()
Brackenwood Middleweight
|
That solves 2 problems. 1 to go. How do I make new lines single spaced?
Is how it is now
Is what I want. Any ideas? |
![]() |
|
| Vector | Jun 17 2005, 11:26 PM Post #4 |
|
Resident Actionscript Guru ♂
![]()
|
erm.. not sure how or why that one's happening... The only thing that i can think of is if you are using <p></p> tags just try using <br /> tags instead. <br /> means break. ie, not a new paragraph, but a line break. to use this all you do is put it where you want the new line. just like <br />.. no "opening and closing tags" like <p> </p> etc... anyway that's all i can thinkey-dinkey of for the moment... |
![]() |
|
| KWarp | Jun 18 2005, 07:38 AM Post #5 |
![]()
Brackenwood Middleweight
|
Flash seems to double space any new lines I make in the text file, and single space any <br> statements. Single-line paragraphs will be difficult to read, but I suppose I can deal with that.
|
![]() |
|
| KWarp | Jun 18 2005, 07:02 PM Post #6 |
![]()
Brackenwood Middleweight
|
Success!! New problem though. The little dots kinda stop darting around the screen after 20 seconds or so (I want them to go forever). I can't quite figure out why. Here's the code:
Do movie clips self-terminate or something? |
![]() |
|
| Vector | Jun 18 2005, 07:50 PM Post #7 |
|
Resident Actionscript Guru ♂
![]()
|
ungh.... I can't really tell without seeing the whole project.. :/ Nothing wrong with that code tho.. <edit> Actually looking at it again, I think they might be reaching their destination but not quite, resulting in them moving really really really damn slowly but still just moving none-the-less. Ie they never quite reach their destination so they never have to pick a new one... In order to fix this change if (Math.round(this._x) == ranx || Math.round(this._y) == rany) { to if (Math.round(this._x) == Math.round(ranx) || Math.round(this._y) == Math.round(rany)) { |
![]() |
|
| KWarp | Jun 18 2005, 08:18 PM Post #8 |
![]()
Brackenwood Middleweight
|
No dice. The code probably helped, but didn't solve the problem. You were right though, they were just moving really slowly. Good news though, I just lowered the acc variable to 10 and poof it works. :lol: |
![]() |
|
| KWarp | Jun 24 2005, 11:09 PM Post #9 |
![]()
Brackenwood Middleweight
|
Ummm... I updated my website with the external textfile. The new text shows up immediately in Internet Explorer, but not (yet?) in Firefox. Can someone explain? http://www.kwarp.com |
![]() |
|
| Vector | Jun 24 2005, 11:31 PM Post #10 |
|
Resident Actionscript Guru ♂
![]()
|
I'm using firefox and it worked fine for me
|
![]() |
|
| KWarp | Jun 24 2005, 11:45 PM Post #11 |
![]()
Brackenwood Middleweight
|
I'm still not seeing it on my own Firefox browser. How bothersome. Maybe it has something to do with how flash "remembers" where it has loaded before. |
![]() |
|
| Vector | Jun 24 2005, 11:57 PM Post #12 |
|
Resident Actionscript Guru ♂
![]()
|
If that's the case try clearing out your cache (Tools > Options.... Security Tab > Cache > Clear) |
![]() |
|
| KWarp | Jun 25 2005, 09:30 AM Post #13 |
![]()
Brackenwood Middleweight
|
That did the trick. Thanks Vec. Now back to that custom scrollbar difficulty.... nevermind finally got it.
|
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Actionscript · Next Topic » |








12:27 AM Jul 12