  | |  | OT: Text field | OT: Text field 2004-02-10 - By Simon Lord
Back My 2 questions about the textfield component from set 5 just got buried under 6 hrs of posts on the coders list, I'm hoping for a little success on this one.
(1) Margins: Does anyone know how to increase the margins on the text field component? I find the text lines up right against the border making it unpleasant to read a full page layout.
(2) I use the code below to load an external text file, this file has html in it and it gets loaded successfully as well as displaying the html with images properly. It's all good. The problem is when I resize the stage it reverts to just plain ascii text which is a real show stopper in my app.
The work around is to reload the external text file during each resize but this seems to be overkill as the user already has the data, so why should we have to reload it etc.
The code:
function showDescription() { loadVarsText = new LoadVars(); loadVarsText.load("data/htmlpages/gqsetup.txt"); // assign a function which fires when the data is loaded: loadVarsText.onLoad = function(success) { if (success) { trace("done loading description text"); // _root.previewtext.text = this.text; _root.helptext.html = true; _root.helptext.htmlText = this.text; } else { trace("not loaded"); } }; } showDescription();
stageListener = new Object(); stageListener.onResize = function() { Stage.align = "left"; _root.helptext.setSize(Stage.width, Stage.height); }; Stage.addListener(stageListener);
Sincerely, Simon
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: flashcomm-unsubscribe@(protected) For additional commands, e-mail: flashcomm-help@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |