Within Flex builder I got it working like this:
ITestAS.as
package
{
public interface ITestAS
{
function get testVar():String;
};
};
TestAS1.as
package
{
import flash.display.DisplayObjectContainer;
import flash.display.Loader;
import flash.display.Sprite;
import
Can someone let me know how I can insert a newline in some dynamic text.
Basically I have some instructions in my flash movie that are loaded from an
external xml file. In the following I would like the text after Mouse
Controls: to start on a new line.
clockGameMouseControl
Use html:
english![CDATA[Mouse Controls: br /Control your hand using the
mouse]]/english
And enable html on the textfield and set its htmlText property, rather than the
text property
_txt.html = true;
_txt.htmlText = stringFromXML;
Check the docs for TextField (AS2):
you can use br and set your text field to use HTML.
[]'s
andrei
On Sun, Mar 9, 2008 at 8:12 AM, Paul Steven [EMAIL PROTECTED]
wrote:
Can someone let me know how I can insert a newline in some dynamic text.
Basically I have some instructions in my flash movie that are loaded from
an
Nice one! That works a treat.
Thanks a lot
Paul
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Muzak
Sent: 09 March 2008 12:44
To: Flash Coders List
Subject: Re: [Flashcoders] Insert new line in dynamic text loaded from xml
Use html:
Hey!
Recently I was surprised with Flash environment behavior.
Just want to share with you my observations.
Look at this very simple code:
//Create a clip from the library and store its reference to mc variable.
var mc:MovieClip = _root.attachMovie(Star, star_mc,
_root.getNextHighestDepth());
//-- You only removed the MovieClip.
mc.removeMovieClip();
//-- If you use delete it will remove the reference to the variable.
delete mc;
I'm glad it works this way, because I can reuse my variables.
When I'm done I can call delete
-- Keith H --
Pavel Empty wrote:
Hey!
Recently I was
7 matches
Mail list logo