Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-15-2007, 04:00 PM   #1
Registered User
Join Date: Nov 2006
Posts: 8
Default Dynamic Text in ScrollPane

Hey all, Im not that new to AS, though this been very twitchy with me. I found an example of putting in text dynamically into a ScrollingPane object. I followed the code but I just cannot get it to work for me. This happens constantly that for some reason it will not just work.

What I am trying to do is that using a query string I pass it some variables, that tell it were to look in an xml file. And all I want it to do is be able to use that one flash file, to display different texts depending on what variables I send it. Also using the parameters in the HTML I tell it its sizes that is should be, and it will adjust accordingly the scrolling pane and all.

Here is the code:
function loadXML(loaded)


myTextFormat = new TextFormat();
myTextFormat.font = "xmlText";
_root.xml_mc.createTextField(xmlTextField,2,0,30,Stage.width, Stage.height);
_root.xml_mc[xmlTextField].embedFonts= true;
_root.xml_mc[xmlTextField].border = true;

_root.xml_mc[xmlTextField].text="This is a test";

	for (i=0;i<total;i++)
		if (section1==_root.page)
			for (x=0;x<total2;x++)
				if (section2==_root.section)


xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData is the var for loading up the xml. xmlNode are the nodes within the xml. xmlPane is the ScrollingPane, xml_mc is the empty movie clip, xmlTextField is the text field that goes into xml_mc.

If I put the sizing coding outside of the loadXML, it will not resize even if put before xmlData. When tracing _root.xml_mc[xmlTextField] it does display "This is a test", but will not bring it up in the the scolling pane.

Any help I would appreciate very much. Thank you

NeoSpawn is offline   Reply With Quote
Old 06-16-2007, 02:23 PM   #2
Senior Member
Join Date: May 2007
Location: Toronto,Canada
Posts: 530
Default scrollPane

does scroollPane works like this:


LOLFlash is offline   Reply With Quote
Old 06-17-2007, 01:23 PM   #3
Registered User
Join Date: Nov 2006
Posts: 8




work for me sadly
NeoSpawn is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML.txt ----> dynamic text box jerryCLEMENT ActionScript 2.0 3 09-23-2009 05:56 PM
UI Scrollbar and Dynamic Text Jason129 Components 7 07-28-2006 01:52 PM
Dynamic text / HTML text and a less than symbol (<) datter ActionScript 1.0 (and below) 2 04-10-2006 02:27 PM
changing dynamic text in scrollpane wonsik Components 0 12-15-2005 11:36 AM
sending multiple 'loadvariables' to 'dynamic text' Yorgo12345 ActionScript 1.0 (and below) 6 03-22-2005 11:26 AM

All times are GMT. The time now is 07:59 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.