Ive made a scrollbar for my site, it works, but how do i change the size of the font and such?
The same way you would with any text…
Doesnt seem to work for me, ive tried tags, i’ve even tried Format>Font, nope… Not working.
I assume you mean you added the scrollbar UI component to a textbox. If so, then you should be able to change the font used etc. from the properties panel of the textbox…
Why did you post this in Random? If this is a Flash problem it belongs in the section with the correct Flash version you are using.
I am going to assume your using the scrollbar component and thus assume to move this to the Flash MX section.
As for your problem, right click on your textbox, open the properties panel, edit away. Just note that if you are using dynamic text and it is a font others won’t have installed on their system you will need to click on the “character…” button and choose to embed the font outlines.
http://www.kirupa.com/developer/mx/dynamic_scroller.htm
When i edit the .txt document font, nothing changes…
I tried right clicking but the font is different to what actually comes up…
…
Look at step ii. Look at the diagram - you can set the font there and that will affect what font is shown in the dynamic text box you have created.
Editing the font in the text file that is loaded will do nothing (as far as I know - unless there is some nifty html code trick); you need to edit the property of the dynamic text box you have created in Flash MX.
Hope this helps,
JK.
You can enable HTML text formatting for dynamic text, but if all the text is going to be the same, it’s better/easier to edit it in the .fla file.
Easyier to update the site this way.
Anyway, i got it working, but now when i press enter (start a new line) On the flash movie, it makes about 6 lines down.
Also there is an indent from the left which is annoying also.
Yeah, it likes to do that. You can fix that by HTML enabling your textbox and using the <BR> to go to a new line instead of hitting enter.
To stop the ident, don’t put a space after the = sign.
Here is some info on html formatting text…
The .html property…
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary744.html
The .htmlText property…
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary745.html
The tags that can be used…
http://www.macromedia.com/support/flash/ts/documents/htmltext.htm
Come one, come all, to see the magnificent lostinbeta with the answers to every Flash MX question you can imagine on his fingertips :thumb: :).
Well…
Here is the notepad document…
Btw ive removed the p align thing now…
Did you html enable yout textbox and tell it to read your text as htmlText and not just text? (as per the links I posted in my last post)
Do i add anything to action script or click the tag sign?
Tag sign: <>
To HTML enable the text box, click the HTML enable button in the properties panel. This is what you’re calling the “tag” button I believe (it has the symbol <>).
As for telling it to read it as HTMLtext, I’m not sure yet. I think you should read the information on the links lostinbeta provided because it is undoubtedly covered there.
Correction:
The button is actually “Render text as HTML” not Enable HTML. This might also cover the HTMLtext bit but I doubt it. I think you may have to ActionScript that part… again, refer to the links (I don’t have time to read the information right now since I’m off for some zzzz’s).
Good luck,
JK.
Not working still…
On the source files on the tutorial, it works fine, ive tried everything the same on mine, but the text is still got a margin on the left and has massive games when i press enter…
Yes the text is aligned to the left…