I find this fast and reliable...
var lines:Array = str.split
("\r\n").join("\n").split("\r").join("\n").split("\n");
That's pretty much exactly what I ended up doing, thanks.
Danny
___
Flashcoders@chattyfig.figleaf.com
To change your subscription
- Original Message -
From: "Kerry Thompson" <[EMAIL PROTECTED]>
To:
Sent: Saturday, September 15, 2007 7:48 AM
Subject: [Flashcoders] Compound interest formula
I'm ok with math, but it's not my strong suite.
Does somebody have the compound interest formula, preferably in AS2 form?
I
> I am reading all the replies and trying to see if I am
> understand them correctly.
> Basically I have two options. Give every movable object the
> depth of the screen _y value and make sure that objects can
> never be on the same _y position.
> Second option. If the movable objects only mov
I'm looking for a simple, reliable method for splitting a string into its
constituent lines (at the hard line breaks - this isn't a text wrapping
thing). The problem is that line breaks could be Chr(10) or Chr(13), or
indeed both. I've done this:
myArr =
myStr.split(String.fromCharCode(10)).join(S
> Andy,
> I see what you are saying, I think. That the .toString()
> has to be used as a method directly being addressed by the
> object. Like I said that what I think you are saying. How
> ever it seems I still can not get the string "myMCinArray1"
> or "myMCinArray2" or "myMCinArray3"
> Every object gets a z-depth assigned. For the players the
> zdpeth need to be set based on the tile they are at. This way
> the players can walk 'around' the enviorment objects. For the
> z-depth calculation I use the tile grid x and y plus the
> width of the row, this generates an unique z-d
> Hallo,
>
> The text editor app is up and running now, thanks to those
> folks that offered suggestions. I've got everything working
> apart from the pasting of text. Does anyone know how it is
> possible to do this? Any cool tricks to access the clipboard
> from ActionScript (I've had a loo
What is a golden spiral?
http://en.wikipedia.org/wiki/Golden_spiral
"In geometry, a golden spiral is a logarithmic spiral whose growth factor b
is related to φ, the golden ratio. Specifically, a golden spiral gets wider
(or further from its origin) by a factor of φ for every quarter-turn it
ma
> I have BitmapData A and BitmapData B;
> Is there a fast routine that from every pixel in A will
> subtract the color of the coresponding pixel in B?
> I'm looking for a solution using the built-in BitmapData
> functions, since a manual looop on every pixel will be
> somewhat intensive (even
> This is pretty easy making to layers.
>
> fl.getDocumentDOM().getTimeline().addNewLayer("My Outer
> Folder", "folder", false);
> fl.getDocumentDOM().getTimeline().addNewLayer("My Inner
> Folder", "folder", false);
>
> However, I want to next the inner into the outer. For the
> life of me,
> Don't rant me for using _root, cause this was only for
> testing. I count the doubles out, which works fine for
> keyDown. The following code traces:
> enter down
> enter up
> enter up
If this is only happening with Enter, I wonder if it's because Enter is
actually putting two characters into
> I have this
> operand="÷";
> item.text=operand+" "+String(i);
> trace(item.text) /// ÷ 1
> but I don't see that operand in text area.
> text area: not html, Arial, all embedded text area HTML: the
> same I see operand in trace but I don't see on the screen
It sounds like you just haven't embed
> Hi
> Do anybody know how to solve one problem.I need to show in
> string variables division operand as the horizontal line
> with the dot above and below.
> So instead of "10 / 2=" I need "10 ÷ 2 ="
So put it in :)
Just add the character and it should display fine (you may need to embed it
> XML:
>
>
> The problem is the XML Node is not reading as a string and
> the html text field reads the node as a literal string
> instead of html text. I mean it prints something like "Blah
> blah someLink some bold text
> " in my text field.
>
> AS:
> var tt:TextField =
> m.createTextFi
> That's a fair point. It's more the principle of the thing - it was
> frustrating not to be *able* to make it strict. But yes, leaving off
> the :Object would be a better solution.
Well, you can't do argument overloading in AS2 (nor AS3, I believe), so
you can't have pure polymorphism in Flas
Hi,
I'm building an application that requires users to be abe to type in
almost
any language.
It has basically two types of fields: 1 input and 2 dynamic fields.
I was able to get things working in the Flash IDE where I could type in
hebrew and any other language and got correct output in the
You're "hacking" it either way. This one function is not going to cause
coder confusion. You're leaving the type off so you can pass any type.
Considering you type everything else, it's pretty obvious to anyone who
looks at it what's going on.
Adding extra lines of code that put a paramete
The only method I can think of that might do what you're looking for is to
have some of the actual code work on the server. So for example you'd do
something that has a fundamental effect in the game, but you make its code
run on your server instead of on the client and just return the result (not
> Danny,
>
> I'm still not entirely clear on what you're attempting to do.
> Can you show more code to give us a bigger picture?
Thanks to everyone for suggestions and comments. Many of them, I suspect,
would suffer from the same problem, though. For Steven, here's the problem
in a bit more de
> As it's AS2, you might think about making it so
> doMyArrayFunction will not expect an array, but will take anything:
>
> class ArrayTest {
>
> public function ArrayTest(a) {
> trace(a[0]);
> }
>
> }
>
>
>
> new ArrayTest([1,2,3,4]);
>
> works fine.
I'm trying to do something like this:
if (a instanceof Array) {
doMyArrayFunction(a)
}
the doMyArrayFunction expects an Array object, so this throws an error. What
I would normally do in this case is cast the object to the class I'm
expecting, but unfortunately Array(a) doesn't leave a unchanged,
I'm currently re-entering the nightmare world of SCORM packaging (honestly,
how can something so simple have been made so damn complicated?). I'm
wondering if anyone knows of some good resources on SCORM 2004 - in
particular, does anyone by any chance have a simple tool that can convert an
IMS-comp
> might the properties be hidden from enumeration?
>
> http://objectpainters.com/blog/?p=33
Nothing like that - it's really a bog-standard object (not even from a
special class, just a plain {} )
Danny
___
Flashcoders@chattyfig.figleaf.com
To change
> If you switched to AS3, teh for in loop does not work on
> 'sealed' classes, only on the legacy AS2 style prototype
> based objects - like
>
> myObj:Object = { prop: 1 , prop: 2, prop: 3 ...};
>
> For sealed classes like iterating thru the, say, props of a
> ByteArray or NetStream class, u
This is weird:
trace(tProps.nformat.nalignment)
for (var i in tProps.nformat) {
trace (i + ": " + tProps.nformat[i])
}
Result:
left
That is: tProps.nformat.nalignment is equal to "left", but the for..in loop
is failing to mention it (or any of the other properties in the object).
I'm r
> On 11/07/07, Adrian Parr <[EMAIL PROTECTED]> wrote:
> >
> > Hi All,
> >
> > I am building an app that allows the user to personalise as
> > screensaver online.
> >
> > 1) User chooses some settings and these are saved to a
> shared object.
> > 2) User downloads Flash screensaver (made with Scr
> Hi,
>
> well in the end everything is an object, so you are not
> really mixing datatypes.
>
> It all depends on the scope of your project I think, but
> seeing the code below doesn't make me wanna be the maintainer
> of that project when its author goes on vacation or sickleave :).
>
> I
> I feel really stupid right now. No, not that stupid. I mean
> really stupid.
> Take the highest level of stupid you can imagine and double
> that. Yes, now you've got it!
>
> I have a class named Game.
>
> Game.start() calls setInterval(this, "update", 1000).
>
> Game.update() calls _game
> Hi!
>
> I would like to get all the coordinates from a shape made
> with the Bezier tool in Flash or Illustrator into Flash so I
> can use them to create a dynamic shape in Flash with the
> curveTo syntax. Does anyone know if there is a tool or script
> outthere doing this?
There's no way
> Hi Danny,
>
> I'll definitely look into that, if not for this project,
> it'll come in very handy for later ones. So far I heard of
> SCORM, but never looked into it really in depth. Isn't it for
> web based learning only?
No, it's a method for packaging course data which is used by most (n
> Hi Ron,
>
> That seems very re-assuring. The problem I am having really
> is that I find it very difficult to find out more about using
> XML in Flash on a more advanced but still small scale level.
> I can parse attributes, and nodes, but most examples deal
> with 1-2 attributes, that can
> This is not a *major* issue but it's really annoying. I have
> two buttons that navigate back and forth through a series of
> images. (Flash 8, AS2).
> They work fine when I first open the SWF. But on the same
> screen is an input textfield with which a user can add or
> change a title. Th
> Ha! That is the best case of "It's not a bug, it's a
> feature!" I've ever seen.
>
> Danny Kodicek wrote:
> >
> >> you might have to go nodeValue.toString() first..
> >
> > No, nodeValue is already a string. I fixed the p
> you might have to go nodeValue.toString() first..
No, nodeValue is already a string. I fixed the problem by reading the file
in Director and passing it to Flash as a string - one case where Director's
lack of Unicode support turned out to be a virtue...
Danny
I'm having trouble reading and writing some characters to XML. I've got a
file with "." characters and I'm trying to read them and swap them for
arrows (u2192). But for some reason it's not managing to see them
(nodeValue.indexOf(".") is giving -1)
I think the problem may be something to do with
Never mind - I had the problem exactly right - I forgot Flash always assumes
UTF-8. That's okay, I can do it a different way.
> I'm having trouble reading and writing some characters to
> XML. I've got a file with "." characters and I'm trying to
> read them and swap them for arrows (u2192).
> I am trying to create a "Select All" button for a textArea
> component and I cant seem to get the selected text to stay
> selected. It gains focus, selects the text and then then
> unselects itself immediately.
>
> Am I missing something here?
>
> btnSelectAll.onPress = function() {
> S
> Are you testing this within the IDE? Just a guess, but
> perhaps you need to Control>Disable Keyboard Shortcuts
It's a good idea, but I don't think that's it - the key press is getting
through fine, it's just that the onChanged isn't happening.
I've hacked a solution by setting a flag in the
I've got a text field that is listening for onChanged events. For some
reason, it's not getting some of these events when they're carriage returns:
"a" : get the event
return : no event
"a": another event
return : no event
return : get the event
"a" : get the event
return : no event
That is: it m
> I've set up this kind of preloader:
>
> Frame 1: Preloader (when loaded, gotoAndStop frame 30) Frame
> 10: Classes export (set in File->Publish
> Settings->AS2->Settings) Frame 20: Components/MovieClips
> placed on stage to force export Frame 30: The movie (calls
> attachMovie, createClassO
> Hi, one more small comment:
>
> On 6/18/07, Alexander Farber <[EMAIL PROTECTED]> wrote:
> > I've solved my problem of the loadClip('Main.swf', ...)
> delivering the
> > same old version of the Main.swf by the standard trick of
> appending a
> > random string.
>
> I've realized, that an ext
> Indeed its online content that I want to read from a CDROM.
Sorry, didn't read properly :)
I
> guess the solution is to use System.security.allowDomain() to
> the url where the xml is hosted. Right ?
Actually, I've never encountered a problem accessing online content from a
CD-ROM either.
> Hi,
>
> Will I have a problem when I´ll try to read online content
> from a flash exe file on a cdrom through the xml object? I
> remember the security restrictions of the flashplayer..
> If there is a problem, what can I do to avoid it ?
If it's offline content accessing offline files, you
> I'll take it ;)
>
> thanks for everybody's help.
Just catching up on this, you might want to try looking up floodFill
algorithms - that's pretty much what you're doing.
Danny
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options
If I have a listener that's getting onMouseDown events, is there any way
that I can stop those events getting to it? I'm trying to make an event that
happens when I click anywhere *except* certain buttons. I hoped that I could
set a flag on clicking the buttons, but unfortunately the onMouseDown e
> no danny. setNewTextFormat means that all NEW text in the
> textfield will be formed. setTextFormat is only once and not
> for new text. and if you do some new text via AS
> setNexTextFormat will work fine..
Not for me, no. I always have to run setTextFormat after setting with AS,
whatever
> Hi All
>
> I have a loop that creates pages, creates textfields then
> adds text. Some of this text has font tags and some doesn't.
> I want to use a default textFormat so that an embedded font
> is used when no
> currentPage.createTextField("my_txt", 1, 5, 5,
> currentPage._
> this.cli_mc.hu_btn.onPress = function() {
>buttonfunction();
> };
>
> Function buttonfunction(){
> cli_mc._visible = 0;
> _root.mtit_txt.text = "Cliniques";
> _root.categ_var = "CLINIQUE";
> _level41.mar = "cli";
> _root.liste();
> }
>
> -- Move your onPress code into an
> I have a simple class and I can't access a private var after
> using setTimeout... I typed this up to show whats happening:
>
> class foo extends MovieClip
> {
> private var nTime:Number = 0.75;
> private var delay:Number;
>
> function foo()
> {
> // stuff
> };
>
> public function doSomethin
I want to allow users to enter anything except carriage returns in my input
field (but only sometimes). Is there no way to do this using
textField.restrict? I tried "^\r", "^\n", "^\u000d", none of which made any
difference. I know I can do it by setting multiline = false, but it's a bit
irritating
> HI guys,
>
> an easy one - I can't get a dynamic text filed to wrapp text
> around that I am asigning to it with:
>
> ' messBox_txt.text = "display this really looong sentence ..."; '
Have you set the wrap property of the field?
Danny
___
Flashco
> Hi there, I am sure I remember coming across a way of reading
> an XML file before it is fully loaded though I can't find it.
> What I would like to do is load all the information from an
> XML file but only if an attribute in the first node has
> changed (this is like an ID that the Flash a
> Hi
>
> Is there any way to uniquely identify a single Flash plug-in?
> Perhaps there is an indentity code, or is there anyway to get
> something unique from a user's computer through Flash
> (something like the MAC address)?
>
> Basically we need to know whether a user has played a game
>
> Hi there
>
> A client has asked me to create a mortgage calculator for
> their site and I was thinking of doing it in Flash. However
> the client is concerned that not everyone has Flash plugin.
> Therefore I need to consider the alternatives, one of which
> is to do it in javascript. Howev
>
> stop();
> btn.onRelease = function(){
> gotoAndStop("start"); // start label is in the middle of
> the mov about frame 150.
> this._alpha = 0;
> // I turn off the buttons vis. I will probably load it and
> unload it in the final copy. Not sure on the edicate for
> this. less
> But generally, I'd rather have FlashCoders split up into
> /more/ lists rather than combining it with FlashNewbies. A
> list each for AS2, AS3, FMS, architecture, components and so
> on. We could then choose which ones to subscribe to, and
> those of us gifted with the seemingly rare ability
> I wonder if I can use something like Keith Peter's Particle
> Class and have the clips repel a bit on their own and have
> that take care of the layout - if done with some care.
Good thinking, yes, that ought to work if your content is of a sensible kind
of shape - of course, there's no guara
> I highly suggest you get FLASC
>
> http://www.osflash.org/flasc
>
> 1) Your code will be cleaner. MTASC forces you to write
> clean code in order to compile. It is more strict than the
> Flash IDE compiler.
>
> 2) MTASC helps identify bugs before they happen. For
> instance, I had an is
> I am looking for a kind of layout manager (easy to use &
> fairly lightweight). I have done a little digging, and
> haven't found too much.
>
> This is for an AS2 project.
>
> I have a viewing port, and will fill it with Objects of
> random size. I only want to make sure that I don't end up
> Hi Danny, it would be multi line text and I don't know if it
> will be center aligned. Maybe some parts will be. I didn't
> really get the technique you described. Can you please try
> and describe it again? Or is it possible that you share the
> code that you have? I can even compensate it
> ...I am wanting to run a color of instance test. I am
> wondering if I can do this?
>
> attachMovie("shapes","shapes",num);
>
> if( shapes /*color*/ == 0x33){
> // action(s)
> }
>
> // this is sudo code but basically I want to know if I can
> test for color.
A library symbol doesn
> On 5/10/07, Danny Kodicek <[EMAIL PROTECTED]> wrote:
> > I've done it in the past (although in the end I didn't use it) by
> > creating a function that homes in on the exact coordinates of the
> > insertion point by adding text into a hidden field and
>
> Hi list, any tips on how to create a text highlighter? The
> perfect solution will be that I use the text cursor inside
> the textfield. Now, I was thinking of using drawing API on
> the invisible mc below the textfiled and when I would click
> in the textfield I would start drawing a rectan
I've only just noticed the dispose() method of the BitmapData object. Is it
strictly necessary? That is: if I just let a BitmapData object get garbage
collected, will the memory fail to be released? And if not, why would we
need this method instead of plain old delete?
Danny
_
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Alistair Colling
> Sent: 03 May 2007 15:27
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] Syntax for dynamically calling a function
>
> Hi there, I want to call a function but w
> Hello,
>
> Hi,
>
> In my app I need to show a modal dialogue and blur/unblur all
> on-stage clips while the dialogue is active.
>
> So, whats the cleanest AS2 way to do this - I'm in Flash 8
> but don't want any prototypes.
>
> I need to extend all movieclips so does this mean I will need
> Thanks for the help!
>
> In your professional opinion is "almost the same" good enough
> or will I need to tweak the char set? So you know I'm only
> displaying short button labels and headings.
I don't speak Arabic or know anything about it other than what's in the
Unicode data :) I get th
> Has anyone had any experience of using the Flash RTL classes
> from here:
> http://www.flashrtl.com/
>
> They seem to be good for Persian, but need porting to other
> char sets, and a general clean up/re-write.
>
> To do this I need to get a better idea of what needs to be
> converted, the
> how can we print a variable value in our execution screen..?
'execution screen'? Do you just mean displaying a variable on screen? Try
var tField:TextField = _root.createTextField("out",
_root.getNextHighestDepth(), 100, 100, 200, 20)
tField.text = String(myVariable)
Danny
> Thanks a lot for all the replies. Most helpful. It's a funny
> situation. I'm using a deserialised XML file to dictate the
> content and layout of each page. A page might contain 1. A
> heading, 2. A TextField 3. A link or it might contain 1.A
> heading 2. A thumbnailMenu or various other pe
> Hello Flashcoders
>
> I am trying to rotate a cube which i made in the flash
> authoring environment. However it is not a real cube but I
> don't want to use API to make a cube first and then rotate
> it. I want that a cube which have a specific design then it
> is rotate in the 3d environ
> Hello everybody!
>
> I want to know that if we make a cube in flash then want to
> play with it like shock boy at www.neostream.com . If any one
> have idea so please tell me and one thing more is, please
> give me some resources to learn physics and trignometry for flash.
For the last, you
> OpenOffice has a nice drawing tool with all of the
> flowcharting symbols defined. www.openoffice.org You can
> colour and shade them to your hearts content.
If you want to look at alternatives, I'm a fan of SmartDraw, which is good
for mocking up interfaces as well. For flow charts specific
> OK danny, your script work fine. sorry for not testing it first.
> here is the script in conjunction to my prior post. on frame 1:
Before you start timing different methods, you should remove all your
'trace' lines, they add a time overhead of their own. Try it again with no
traces and I suspe
> Hello Flash coders.
> :)
>
> Could anyone help me to fix my class code? I can't find any
> reference anywhere that will help me... I'm trying to load
> XML via a generalized class object, but the data in postXML
> never makes it to the parseXML constructor, any help is
> greatly appreciated
> Hello leolea
>
> > I'm trying to figure out a way to have objects "snap" to
> this curved
> > line. I would distribute them over the _x axis, and I need
> a formula
> > to get their _y position on the curved line.
>
> - you need to find an intersections between 2D Bezier curve
> and verti
> onEnterFrame/setInterval function is just to give spreading
> effect to the app.
> as I mention earlier, using for loop doesnt't let any
> animation play before loop ends.
> the real problem is only about the SEQUENCE-PATTERN.
I got that. Check my code again and you'll see what it's d
> > Is a new intervalID always one greater than the most recent
> intervalID?
>
> AFAIK, yes.
>
> > That is, will this always work to ensure you only ever have one
> > interval running at a time?
>
> Again, AFAIK, yes.. but at the same time it limits your to
> only ever have one interval, no
>
> HG> So once you create a new interval with the same name you
> will lose
> HG> the path of the original?
>
> An interval has no name, it has a numeric ID - what has a
> name is the variable (or more variables if you want) where
> you store this ID. And yes, if you doesn't care about stor
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Erich Erlangga
> Sent: 24 April 2007 14:27
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] WhITE SNOW and Seven Dwarf - MAth Problems!
> //run 7 times faster for attaching sym
This is a small and silly question, but:
Is there any way to persuade the AS editor's automatic indent function not
to turn something like this:
myArray = [
[1,2,3],
[4,5,6],
[7,8,9]]
into:
myArray = [1,2,3],[4,5,6],[7,8,9]]?
And yes, I know everyone prefers to use an
> What do you want to achieve, Danny?
>
>
> AFAIK setNewTextFormat is meant for user entered text, like
> mentioned in the LiveDocs, which works well for me.
>
> public setNewTextFormat(tf:TextFormat) : Void
>
> Sets the default new text format of a text field. The default
> new text format
Hopefully a quickie:
Am I the only person that can never get setNewTextFormat to work? When I
change the text of a field, I always seem to have to run setTextFormat, even
if I've setNewTextFormat to the format I want. Is there some foolproof
system for getting this working without having to keep
> Hi Nik,
>
> I have done research for my dad a while ago, and I came to
> the conclusion that it wasn't worth the effort $$$ wise.
> > Not sure whether that is applicable to your project, Pete, but has
> > anyone ever used dongle (i.e. hardware) protection for
> their projects?
> > I am curr
> We tried the following:
> (we're embedding fonts in all cases, also we don't have
> require any input fields...we're just displaying Arabic)
If you don't mind poor antialiasing, you could try not embedding the font -
this fixes all the problems you mention, for dynamic text.
>
> -Copied Arabi
> Hi Friends,
>
> I have developed the following script for scrolling
> dynamically loaded content in the movie clip.
>
> The script is working fine. I just wanted to know is it
> consuming lot of memory? Because when I load this movie onto
> another movie. The first movie become slower.
Ye
> Thank you very much, Danny,
>
>
> Yes I thought that this post sank without a trace, lucky you saw it!
>
> Fro the moment I jsut needed to know if there were any
> issues, as I am tendering for an English course DVD that will
> be sold in the Middle East.
>
> Do I remember seeing your nam
> HI,
>
> It now transpires that the project I am quoting for needs
> much of it done in Arabic. As it is my first multi language
> project in Flash are there any issues with that in Flash (I
> could write an encyclopedia full about Director and its
> characater set issues)
Just got back fro
> Any examples out there?
>
> I've got as far as resizing a user supplied image and am
> about to work on the ratio remaining fixed. Just thought I'd
> throw this out there as I think it may be tricky.
How are they resizing? Which bit is tricky? Maintaining an aspect ratio
isn't too hard - you
> Is this delivered???
'ello
D
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Co
> What do you mean specifically?
I mean editing AS with JSFL. I'm getting frustrated with not being able to
do a search and replace on multiple files, so I was going to write a tool to
do it with JSFL - unfortunately, it seems only to work with FLA files, not
AS.
Danny
_
> Danny Kodicek wrote:
> > It's a shame: My object structure has a bunch of objects in a tree
> > structure, all of which inherit the same base class. I'd
> like them all
> > to have a reference to the top-level node object, but I
> have to refer
> &g
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Hans Wichman
> Sent: 22 March 2007 12:39
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] Compiling with self-reference
> Importance: High
>
> Hi,
> this
> class Clarss {
>
Is there any way to do it? (And yes, I know I'd be better off with an
external editor, but sometimes it's easiest just to work in the IDE).
Danny
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://ch
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Mark Winterhalder
> Sent: 21 March 2007 23:41
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] Problem extending inherited function
> Importance: High
>
Mark, thank you so m
Slightly complicated and not terribly important but annoying:
It's possible for a class to compile while self-referring:
class Clarss {
var pParent:Clarss;
function Clarss(tParent:Clarss) {
if (tParent != undefined) {
pParent = tParent;
> Anyone know if there's a way to draw the contents of a SWF to
> a Bitmap/BitmapData object within Flash?
>
> I have a SWF that involves lots of complex rendering steps
> and I want to be export it as a bitmap. The export part
> should be fine (using a server to actually save the file) if
>
> The way you had your code, the Child class will never receive
> the killingFocus call. Add a Delegate within the Mother Class
> to put the onKillFocus event into scope with Child...
>
> import mx.utils.Delegate;
>
> class Mother extends MovieClip {
> public var txt:TextField;
>
>
> >> Might be interesting to know why you need to do this at all.
> >>
> >
> > I'm using an XML document to create a file. Without going into
> > details, each node of the XML is to be turned into an
> object, based on the kind of node.
> > So for example:
> >
> >
> >
> > This would become
> I was simply suggesting that using the right words would make
> things clearer. Danny is right in a sense.
> Ron
>
> Karina Steffens wrote:
> > Danny, I think what Ron means is, you don't instantiate the class
> > _and_ the super class, as you would with Director.
> >
> > As you know (and for
1 - 100 of 402 matches
Mail list logo