Re: [Flashcoders] Flash is full of surprises. I will show you how to move movie-clip using a reference to another deleted clip.

2008-03-09 Thread Keith
//--> 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 wa

[Flashcoders] Flash is full of surprises. I will show you how to move movie-clip using a reference to another deleted clip.

2008-03-09 Thread Pavel Empty
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()

RE: [Flashcoders] Insert new line in dynamic text loaded from xml

2008-03-09 Thread Paul Steven
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: And enable htm

Re: [Flashcoders] Insert new line in dynamic text loaded from xml

2008-03-09 Thread Andrei Thomaz
you can use 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 > ex

Re: [Flashcoders] Insert new line in dynamic text loaded from xml

2008-03-09 Thread Muzak
Use html: 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): http://livedocs.adobe.com/flash/9.0/main/2190.html If you're using a TextArea component, same deal

[Flashcoders] Insert new line in dynamic text loaded from xml

2008-03-09 Thread Paul Steven
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.

Re: [Flashcoders] LoaderContext question

2008-03-09 Thread EECOLOR
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 flash