Re: [Flashcoders] Determine text overflow

2006-05-02 Thread Ian Thomas
Would TextFormat.getTextExtent() be of help..? (I know it says 'deprecated' in Flash 8 - that's a documentation error.) Ian On 5/2/06, Ash Warren [EMAIL PROTECTED] wrote: I have always found that setting the textfield to autosize = left and filling it one letter at a time checking the width

Re: [Flashcoders] quick question about buttons

2006-05-02 Thread Ian Thomas
Or even: var doStuff:Function=function (){ // code... } myButton_btn.onRelease = doStuff; myButton_btn.onPress = doStuff; myButton_btn.onRollOver = doStuff; or import mx.utils.Delegate; function doStuff(){ // code... } var delDoStuff:Function=Delegate.create(this,doStuff);

Re: [Flashcoders] Flash Maths bug???

2006-04-28 Thread Ian Thomas
Here's a direct lift from something I posted on the OSFlash list... This is all to do with floating-point precision and that you can't represent all numbers exactly (0.1 is one culprit) in the IEE standard. There are plenty of sites about this - see here, for example:

Re: [Flashcoders] [POLL] getters setters preference

2006-04-26 Thread Ian Thomas
The only other reason that I don't use built-in getters and setters is that, at present, they don't work with Interfaces, only with Classes. And we use Interfaces a lot. Ian On 4/26/06, Kevin Newman [EMAIL PROTECTED] wrote: So in general, at this point I try to stay away from built in getters

Re: [Flashcoders] greek/math chars

2006-04-21 Thread Ian Thomas
Hi Enrico, If you override the LoadVars method onData you can actually parse the raw text from the text file, without having everything split up by and =. See the help file for LoadVars.onData() That might well help you. Cheers, Ian On 4/21/06, MetaArt [EMAIL PROTECTED] wrote: I must load

Re: [Flashcoders] Create an Empty MC and assign it to a class?

2006-04-19 Thread Ian Thomas
Take a look at the following FAQ entry: http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_movieclip_without_a_symbol_in_the_library HTH, Ian On 4/19/06, Rifled Cloaca [EMAIL PROTECTED] wrote: Thanks for your response.. Actually, I want to assign a class to an empty

Re: [Flashcoders] Extending Array Question

2006-04-18 Thread Ian Thomas
Hi there (whoever you are!) Your problem is that the [1,2,3] initialiser syntax is actually a short cut for creating a new Array() object, not an ArrayExtension(). So you're replacing the object you just created with new(). What you need to do is to _modify_ your ArrayExtension() object, not

Re: [Flashcoders] Instantiate a class by string - SOLVED

2006-04-13 Thread Ian Thomas
Sorry, that's what I meant when I said... such as the declaration of a variable or the creation of an object I should have provided a concrete example. :-) As Scott says, working with .swfs is more like working with .jars than you might think - particularly when you are working with

Re: [Flashcoders] What's different between _alpha=0 and _visible =flase;

2006-04-06 Thread Ian Thomas
The other major difference is easily shown: Place a movieClip on stage. Give it an onRelease handler: clip.onRelease=function(){trace(Release!);} Test your movie - click on it, and Release! is traced. Set clip._alpha to 0 Test the movie - click on where the clip should be, and Release! is

Re: [Flashcoders] allowing slow animation

2006-04-04 Thread Ian Thomas
Is this solely for text? In which case, is this something to do with the new Anti-alias for Animation or Anti-alias for Readability options in the properties dialog of the new IDE? Does switching that solve your problem? Cheers, Ian On 4/4/06, PR Durand [EMAIL PROTECTED] wrote: Hi List!

Re: [Flashcoders] MovieClipLoader - Crash in player 7, fine in player 8

2006-04-04 Thread Ian Thomas
Roman, Yes, I've had this - but it seems to only be an issue when working with local files. I've never yet had an issue with online files, even when cached. The only workaround I've found is to queue the requests rather than issue them together - but in most cases that does slow things

Re: [Flashcoders] MovieClipLoader - Crash in player 7, fine in player 8

2006-04-04 Thread Ian Thomas
Thanks Roman - I'll try it next time I encounter another MCL situation which crashes FP7. Cheers, Ian On 4/4/06, Roman Blöth [EMAIL PROTECTED] wrote: O.k., we've some sort of cure for strange loadClip-behaviors: Between onLoadInit and the next call to loadClip we set a delay of about 500ms

Re: [Flashcoders] + simbol issue help

2006-03-29 Thread Ian Thomas
= this._parent.contenido } posY = posY +60 } } - Original Message - From: Ian Thomas [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, March 29, 2006 3:52 PM Subject: Re

Re: [Flashcoders] Actionscript 2 - suitable for designers?

2006-03-27 Thread Ian Thomas
I'd go for AS2. Mostly because that OOP flavour is the direction that almost all the commonly-used languages are heading in; the whole idea of objects and methods now pretty much applies to: - Javascript - Java - C++ - C# - Coding using XML - AS2 - Lingo - .NET - PHP And will apply to the XML

Re: [Flashcoders] FATAL Zinc issue

2006-03-27 Thread Ian Thomas
On 3/27/06, John Hattan [EMAIL PROTECTED] wrote: Speaking as a registered user, Zinc is currently suffering from some serious quality problems. Version 2.5 was rushed out the door, and they haven't done a good job staying on top of things since then. Yes - I've had exactly the same problem.

Re: [Flashcoders] createEmptyMovieClip for individual MovieClip-class

2006-03-27 Thread Ian Thomas
Hi Robert, The following FAQ entry should answer your question: http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_movieclip_without_a_symbol_in_the_library HTH, Ian On 3/27/06, Robert Clochard [EMAIL PROTECTED] wrote: Hello everyone, I've searched a while for the

Re: [Flashcoders] A lack of understanding re static methods

2006-03-24 Thread Ian Thomas
HI Dave, It's my understanding that that _should_ work. However, Const.portfolioPath isn't replaced at compile time - Flash has no native understanding of constants. But at runtime, Const.portfolioPath should certainly return your hardcoded path. The only immediate things I can think of which

Re: [Flashcoders] System.Locale

2006-03-24 Thread Ian Thomas
What you want is System.capabilities.language: http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=2061.html Sorry for the long URL - that's livedocs for you! HTH, Ian On 3/24/06, Robert Chyko [EMAIL PROTECTED] wrote: Regarding

Re: [Flashcoders] Multiuser - which backend?

2006-03-23 Thread Ian Thomas
Thanks all. I'll look a bit deeper into Electroserver, Red5 and Eric's version of Oregano, then. You're quite right that what I'm doing is experimental, Chris, so Red5 might well be suitable - besides, 'bleeding edge' always appeals. :-) Cheers, Ian

[Flashcoders] Multiuser - which backend?

2006-03-22 Thread Ian Thomas
Hi folks, Partly as something of an experiment, but mainly as a testbed and proof-of-concept for something else entirely, I'm looking at throwing together a (non-commercial) multi-user game with a Flash interface. It should be fairly straightforward wise - a simple grid-based interface not

Re: [Flashcoders] Drawing regular, filled shapes into BitmapData

2006-03-20 Thread Ian Thomas
Hi Adrian, I have no experience of doing this whatsoever - but - my immediate feeling is that you should go for your first idea. Create the shapes as vectors, then grab the BitmapData from. This is simply because the routines to draw the shapes are all native to the Flash Player, and they are

[Flashcoders] More Text Embedding Woes

2006-03-20 Thread Ian Thomas
Okay, a new text embed issue for me today... Text embedding is working fine - that's not the problem. I'm trying to do some getTextExtent() calculations. The steps I take to do so are: - Dynamically create a text field and give it some text and an embedded font. This all works perfectly well. -

Re: [Flashcoders] More Text Embedding Woes

2006-03-20 Thread Ian Thomas
Hi Eric, Thanks for that - but it doesn't seem to solve my problem. :-) I can get getTextExtent() _working_ perfectly happily - I just can't get it to work using the actual metrics of the embedded font, only (apparently) of the system version of that font. (Or possibly what's happening is it's

Re: [Flashcoders] Inconsistent Constant

2006-03-20 Thread Ian Thomas
Chris... Firstly - Flash doesn't have the concept of constants, so you couldn't enforce a constant even if you wanted to (except by a hack like defining a null set() function, but that's beside the point a bit)... you can only suggest that specific things should be constant by convention i.e.

Re: [Flashcoders] Inconsistent Constant

2006-03-20 Thread Ian Thomas
Steve, Fine. :-) My two-second thought works, then. Haven't tried that, but may well start using it - it only just occurred to me as a method as I was writing the post. :-) I stand corrected. :-) That doesn't gainsay the second part of the posting - there really isn't enough detail in that

Re: [Flashcoders] Flash MX2004, Video CD with auto-play {Director v. Flash??}

2006-03-20 Thread Ian Thomas
Michael, I use Flash for CD authoring all the time. The only caveat, really, is that I use Zinc as a wrapper for the main Flash application rather than just using Flash projectors, as I want extended functionality (Resolution changing, registry access, file access, that sort of thing). But other

Re: [Flashcoders] Cannot stop loaded movie

2006-03-18 Thread Ian Thomas
Is this a scoping issue? Are you sure that mcClip is defined and pointing at the right thing inside your function()? Try import mx.utils.Delegate; function onLoadedClip(clip:MovieClip) { clip.stop(); // or clip.gotoAndStop(1); } var mcl:MovieClipLoader=new MovieClipLoader();

Re: [Flashcoders] only keynote?????

2006-02-22 Thread Ian Thomas
Did you miss the email pointing you at OpenOffice.org? http://www.openoffice.org It's not a toy. Ian On 3/23/06, Alfonso Florio [EMAIL PROTECTED] wrote: So PowerPoint has the monopoly into the windows world for presentation software? i don't see nothing else than ppt2swf converters and

Re: [Flashcoders] only keynote?????

2006-02-22 Thread Ian Thomas
Scripting - http://framework.openoffice.org/scripting/ You can certainly export from Impress to .swf I haven't tried either of these features yet, I'm afraid, so can't comment on how good they are. HTH, Ian On 2/22/06, Nick Weekes [EMAIL PROTECTED] wrote: Is this because its open source

Re: [Flashcoders] OOP Concepts

2006-02-21 Thread Ian Thomas
Paul, Just my two penn'orth... For my money, the best way to think about these things is more on a conceptual level rather than specifically at a code level. What is your child movieclip? What does it do? Best example I can think of is off the top of my head is, say, a requester dialog. Say a

Re: [Flashcoders] Question regarding use of Delegate in a class

2006-02-21 Thread Ian Thomas
Hi Wouter, Delegate.create() doesn't _call_ a function, it just creates a Function variable for later use. Which is like a reference to a function. By calling: container_mc.onRelease = Delegate.create(this, startTimer); You're saying, in effect when onRelease is called, trigger the code in

Re: [Flashcoders] Question regarding use of Delegate in a class

2006-02-21 Thread Ian Thomas
Oops - would help if I read your code properly! The first bit of my reply made sense - you're not _calling_ the function, just creating a reference to it. Calling this.startTimer() won't work because you're in an inner function. startTimer() should do it. Ian

Re: [Flashcoders] Platform Game Collision Detection

2006-02-20 Thread Ian Thomas
I was about to strongly suggest that book - but I see you already got there, Charles. *grin* Ian On 2/20/06, Charles Parcell [EMAIL PROTECTED] wrote: I would strongly suggest this book.

Re: [Flashcoders] Re: When singletons go bad

2006-02-20 Thread Ian Thomas
If you use getInstance(), a constructor gets called - which is often handy if you need to run any kind of initialisation code for your singleton (that you couldn't just do with initial property values). If you just used statics, you might end up having to do something like: public static

Re: [Flashcoders] Platform Game Collision Detection

2006-02-20 Thread Ian Thomas
Hi Rob, The book deals with exactly that sort of stuff, from fairly much first principles - then later goes on to talk about 3D. From what I understand, it was pretty much written to deal with exactly your situation... (Danny is on this list somewhere, so can no doubt speak for himself. :-) )

Re: [Flashcoders] Resize MC within an MC

2006-02-15 Thread Ian Thomas
If it's a simple case of getting a shape of 400 pixels to be 1600 pixels, you need to get it 4 times bigger. It sounds like it's not that simple. You probably need to worry about any current scalings applied at the time. Does it help to do a getBounds(_root) on the inner shape - that should at

Re: [Flashcoders] No variables in Interfaces?

2006-02-13 Thread Ian Thomas
No, there isn't. Is there a reason why you can't roll your own accessor functions? e.g. getValue() setValue() ? Cheers, Ian On 2/13/06, David Rorex [EMAIL PROTECTED] wrote: Hi, Is there NO way to use variables in an interface? Code: var obj:ICanvas = new

Re: [Flashcoders] No variables in Interfaces?

2006-02-13 Thread Ian Thomas
Excellent news... On 2/13/06, Johannes Nel [EMAIL PROTECTED] wrote: getters and setters are allowed in AS3! On 2/13/06, David Rorex [EMAIL PROTECTED] wrote: Hadn't thought of that, I guess that would work. Thanks ___

Re: [Flashcoders] Can you extend the _y and _height setters of a movie clip?

2006-02-08 Thread Ian Thomas
Have you tried using Object.watch? It certainly works for me with .enabled - might work with _x and _y, haven't tried it. Cheers, Ian On 2/8/06, Morten Barklund TBWAPlay [EMAIL PROTECTED] wrote: David Lochhead wrote: Hi, I've got a movieclip that can have it's _y and _height

Re: [Flashcoders] Can you extend the _y and _height setters of amovie clip?

2006-02-08 Thread Ian Thomas
Um - Tyler - as I said in an earlier post, Object.watch _does_ work with .enabled. Definitely. I use it all the time. MX2004. So it might be worth trying with _x and _y, too... Ian On 2/8/06, Tyler Wright [EMAIL PROTECTED] wrote: No, there is no way to do this by extending the MovieClip

Re: [Flashcoders] EventDispatcher.removeEventListener

2006-02-06 Thread Ian Thomas
Or perhaps a bit simpler and safer: var myFunction:Function=Delegate.create(this,somefunction); cancel_btn.addEventListener(click,myFunction); and later: cancel_btn.removeEventListener(click,myFunction); You could always store myFunction as a property... Ian On 2/6/06, blists [EMAIL

Re: [Flashcoders] International Address to Map position

2006-02-03 Thread Ian Thomas
Quick sideways thought - does it have to be Flash? You can embed the Google Maps code on your own site, and the API allows you to layer your own data over the world map, or even substitute your own map. All the zooming/latitude/longitude/place marker on map location code is already built in.

Re: [Flashcoders] Seeking a bit of drawing API inspiration..

2006-02-03 Thread Ian Thomas
, 0xFF); xDrawCircle(_mc, Stage.width/2, Stage.height/2, 100, 8); _mc.endFill(); _ Ian Thomas wrote: Thanks for that - I've come up with an approximation based on very similar code. Not ideal, but it's close enough for the purpose I needed it for. That combined with a quick hash

Re: [Flashcoders] Seeking a bit of drawing API inspiration..

2006-02-03 Thread Ian Thomas
Whoops, replied too fast without reading carefully - I hadn't spotted the nSegments parameter. That might come in handy, thank you! Ian On 2/3/06, Ian Thomas [EMAIL PROTECTED] wrote: Thanks Fumio - I already had an 8-segment circle-drawing function, I was looking for a 4-segment. It turned

Re: [Flashcoders] Naming conventions for AS2.0 ...

2006-02-02 Thread Ian Thomas
In the days of old compilers and IDEs I used to use complicated naming conventions - including the (horrible) Hungarian notation mentioned above (But it did help at the time. I think. When wading through piles of someone else's mangled C code.). Now with more sensible IDEs that can do

Re: [Flashcoders] Seeking a bit of drawing API inspiration..

2006-02-02 Thread Ian Thomas
Hi Gregory, Thanks for that. I am basically plotting/drawing a circle at each point the mouse moves to while clicked. (This isn't a paint package, it's for something else entirely - which is why I'm not drawing lines...) I had already got as far as trying rectangles - they are indeed a lot

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-02 Thread Ian Thomas
Hi Franto, As far as I understand it, 'import' isn't enough to get a class compiled into your .swf. The line: import sk.sowhat.linuxPlayer.play4dogs.Test; just tells the compiler that any mention of the word Test in your code will refer to that class. If the class isn't compiled into the SWF,

Re: [Flashcoders] Naming conventions for AS2.0 ...

2006-02-02 Thread Ian Thomas
On 2/2/06, Adrian Lynch [EMAIL PROTECTED] wrote: Also, if you're working on a project with others, be consistent with each other. If it's a fresh project, have a chat about what to use. If you're coming on board you might be more inclined to follow what's already there. Amen. If you're

Re: [Flashcoders] Seeking a bit of drawing API inspiration..

2006-02-02 Thread Ian Thomas
/2/06, Ian Thomas [EMAIL PROTECTED] wrote: Hi Gregory, Thanks for that. I am basically plotting/drawing a circle at each point the mouse moves to while clicked. (This isn't a paint package, it's for something else entirely - which is why I'm not drawing lines...) I had already got

Re: [Flashcoders] mx.utils.ClassFinder.findClass problem

2006-02-02 Thread Ian Thomas
Whoops - I'm being dim. These will work just as well: import sk.sowhat.linuxPlayer.play4dogs.Test; var dummyVar:Function=Test; or var dummyVar:Function=sk.sowhat.linuxPlayer.play4dogs.Test; (with no import) Ian On 2/2/06, Ian Thomas [EMAIL PROTECTED] wrote: Hi Franto, As far as I

Re: [Flashcoders] Seeking a bit of drawing API inspiration..

2006-02-02 Thread Ian Thomas
I'm using an 8-arc method - I'd prefer to find 4-arc (i.e. the quadratic bezier) but haven't been able to find/work out suitable code. Could you point me in the right direction? Many thanks, Ian On 2/2/06, GregoryN [EMAIL PROTECTED] wrote: Also, what code do you use to draw circles? Even

Re: [Flashcoders] Seeking a bit of drawing API inspiration..

2006-02-02 Thread Ian Thomas
Hi Hans, Thanks for that - unfortunately it doesn't work in my case. I'd already thought of it, but I'm actually drawing a mask layer - and line thickness has no effect on a mask. Cheers, Ian On 2/2/06, j.c.wichman [EMAIL PROTECTED] wrote: Hi, This probably isnt of any use to you, but for

Re: [Flashcoders] Seeking a bit of drawing API inspiration..

2006-02-02 Thread Ian Thomas
PROTECTED] On Behalf Of Ian Thomas Sent: 02 February 2006 13:16 To: Flashcoders mailing list Subject: Re: [Flashcoders] Seeking a bit of drawing API inspiration.. Hi Hans, Thanks for that - unfortunately it doesn't work in my case. I'd already thought of it, but I'm actually drawing a mask

Re: [Flashcoders] Seeking a bit of drawing API inspiration..

2006-02-02 Thread Ian Thomas
Oh, now that is extremely pretty. :-) I'm looking forward to getting my hands on version 8 - must get these projects finished first tho'... Thanks, Ian On 2/2/06, Cédric Muller [EMAIL PROTECTED] wrote: please. have a look here:

Re: [Flashcoders] Unconditional and operator

2006-02-02 Thread Ian Thomas
Hi Hans... Java's operator isn't intended as an unconditional and - it just sort of works, because '' means 'bitwise AND', so the operation ab has to combine the individual bits of the values a and b - so must work out the values of both. It doesn't return a boolean, it takes two integers and

Re: [Flashcoders] Unconditional and operator

2006-02-02 Thread Ian Thomas
Ignore the msg:String parameter - I did. Red herring. Ian On 2/2/06, Ian Thomas [EMAIL PROTECTED] wrote: function a(msg:String) { trace(A); return false; } function b(msg:String) { trace(B); return false

Re: [Flashcoders] Unconditional and operator

2006-02-02 Thread Ian Thomas
Hm! Well, you learn something new every day - thanks for that! Cheers, Ian On 2/2/06, j.c.wichman [EMAIL PROTECTED] wrote: Returns true if op1 and op2 are both boolean and both true; always evaluates op1 and op2; if both operands are numbers, performs bitwise AND operation

Re: [Flashcoders] Tell me more about _global--Back to the question

2006-02-02 Thread Ian Thomas
On 2/2/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote: Okay- let's meander back to the part where I learn from my question So If i create a class with a bunch of static methods from what I've read , I can use those methods without instantiating the class. This would effectively create

Re: [Flashcoders] Seeking a bit of drawing API inspiration..

2006-02-02 Thread Ian Thomas
Hi Gregory, Thanks for that - I've come up with an approximation based on very similar code. Not ideal, but it's close enough for the purpose I needed it for. That combined with a quick hash table to make sure I'm not plotting circles near other circles has given me the performance I need.

Re: [Flashcoders] Free Flex???

2006-02-01 Thread Ian Thomas
That's absolutely brilliant news. Ian On 2/1/06, David Rorex [EMAIL PROTECTED] wrote: yes, the command-line compiler framework will be free. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] interfaces and objects

2006-02-01 Thread Ian Thomas
Um... not quite sure what you're up to here - but it sounds like you're getting a bit confused between IWorldPart and WorldPart. What you need is: interface IWorldPart class SomeWorldPartSubclass implements IWorldPart then var myPart:IWorldPart = new SomeWorldPartSubclass(); should be fine.

Re: [Flashcoders] interfaces and objects

2006-02-01 Thread Ian Thomas
No, you can't instantiate an interface. But I don't think Hans was doing that. There's no problem with typing: interface IWorldPart {} class SomeWorldPartSubclass implements IWorldPart {} var myPart:IWorldPart = new SomeWorldPartSubclass(); /* Note INTERFACE-typed var, not concrete */

Re: [Flashcoders] interfaces and objects

2006-02-01 Thread Ian Thomas
Then as Steve says, sounds like a compiler bug. Ian On 2/1/06, j.c.wichman [EMAIL PROTECTED] wrote: Hi, No confusion here ;) except maybe for my fuzzy explanation ;). I did: interface IWorldPart class WorldPart implements IWorldPart class SomeWorldPartSubclass extends WorldPart then

Re: [Flashcoders] interfaces and objects

2006-02-01 Thread Ian Thomas
But it should. :-) Like I said, my quick test of var myPart:SomeInterface=new SomeConcreteImplementingSomeInterface(); trace(myPart instanceof Object); Traces 'true'. Which is what I'd expect. I really don't understand why you're getting an error with myCollection. I know you've solved your

Re: [Flashcoders] interfaces and objects

2006-02-01 Thread Ian Thomas
MX2004 Cheers, Ian On 2/1/06, j.c.wichman [EMAIL PROTECTED] wrote: Hi Ian, Which flash version are you using? I had other problems yesterday with extending CollectionImpl due to my flash version (mx 2004), which worked just fine in flash 8. Might be the same in this case. Are you

Re: [Flashcoders] interfaces and objects

2006-02-01 Thread Ian Thomas
'Fraid not. One to chalk down to experience, I guess. Oh well. I'm making the move to 8 shortly myself, once this latest crop of projects are out of the way... Ian On 2/1/06, j.c.wichman [EMAIL PROTECTED] wrote: Life is so unfair :) I had to switch to flash 8 to make it go away... My mind

[Flashcoders] Seeking a bit of drawing API inspiration...

2006-02-01 Thread Ian Thomas
Hi folks, I'm looking for a bit of inspiration to help me out with the drawing API. I've got a feature that's sort of like a painting tool - - User clicks the mouse - on mouse move, a filled circle is drawn on the canvas (using beginFill/curveTo/endFill) - User releases the mouse So essentially

Re: [Flashcoders] Flash Tree Not Clickable

2006-01-31 Thread Ian Thomas
Place another movieclip over the top of it, 100% alpha, with onRelease set to a dummy function? On 1/31/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have a tree and to Buttons to navigate to tree (up and down). Now I need to make the tree not clickable. A user may only navigate with the

Re: [Flashcoders] Flash Tree Not Clickable

2006-01-31 Thread Ian Thomas
Sorry, I meant 0% alpha, of course. :-) Ian On 1/31/06, Ian Thomas [EMAIL PROTECTED] wrote: Place another movieclip over the top of it, 100% alpha, with onRelease set to a dummy function? ___ Flashcoders mailing list Flashcoders

Re: [Flashcoders] Flash Tree Not Clickable

2006-01-31 Thread Ian Thomas
Why will they think there's something to be clicked? Set .useHandCursor to false on the blocking clip? Cheers, Ian On 1/31/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I know, but then users will still think there's something to be clicked... Isn't there a way to access the movieclips

Re: [Flashcoders] Flash Tree Not Clickable

2006-01-31 Thread Ian Thomas
Lieven, No problems. Masking things out with a clip might feel a bit like cheating, but I'm all for 'do the simplest thing that works...' Cheers, Ian On 1/31/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yep, Ian, I'v been programming Flash now for a year, and didn't know there was a

Re: [Flashcoders] ConvolutionFilter performance

2006-01-31 Thread Ian Thomas
I definitely get better performance out of Convo rather than Blur in both Firefox and IE on Win XP. Cheers, Ian On 1/31/06, franto [EMAIL PROTECTED] wrote: in your performance test in Firefox, all seems same for me, little bit blur has slower but CPU usage on blur: 38-40 % on convo: 34 -

Re: [Flashcoders] ConvolutionFilter performance

2006-01-31 Thread Ian Thomas
Hrm. I get: blur filter time : 11032 convolution 3x3: 10144 convolution 5x5: 37781 no filter : 7510 Win XP, 3GHz, 512MB RAM I wonder if it's a graphics card/hardware acceleration thing. (I have a rubbish graphics card.) Ian On 1/31/06, Mike Mountain [EMAIL PROTECTED] wrote: so, please

Re: [Flashcoders] com.ge package throws compile error?

2006-01-31 Thread Ian Thomas
Greater than or Equal to for Strings. http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary374.html Existed only in Flash 4. Cheers, Ian On 1/31/06, John Grden [EMAIL PROTECTED] wrote: **Error**

Re: [Flashcoders] Tell me more about _global

2006-01-31 Thread Ian Thomas
That is, of course, one way to do it. If you want to throw out all your type-checking and the like. Personally I like to make the compiler do as much of my error-checking as possible, rather than having to hunt through by hand - so prefer to be 'lame'. Particularly because I'm providing a

Re: [Flashcoders] Constructing XML

2006-01-29 Thread Ian Thomas
Hi Sam, Just run it through the PHP function stripslashes() before parsing it. Cheers, Ian On 1/29/06, Sam Wootton [EMAIL PROTECTED] wrote: Hi, Thanks in advance for any help. I am constructing an XML file in Actionscript, here is a little bit that cycles through an array, producing

Re: [Flashcoders] Gotcha: F8 Security Model

2006-01-27 Thread Ian Thomas
Clark, That's because www.fred.com need not point to the same server as fred.com. At all. They can be routed to totally different machines. Cheers, Ian On 1/27/06, clark slater [EMAIL PROTECTED] wrote: There's obviously no question about the value of the security sandbox and the

Re: [Flashcoders] checking combinations

2006-01-26 Thread Ian Thomas
Or even shorter: public function handleUpdate(a:Object,b:Object,c:Object,d:Object) { var handlerName:String = 'onUpdate'; if (a.selected){handlerName+= 'A'}; if (b.selected){handlerName+='B'}; // etc. if (this[handlerName]==undefined) { trace(We haven't

Re: [Flashcoders] Slice 9 Question

2006-01-26 Thread Ian Thomas
Create a container movieclip, stick the Slice9 object in as a background, put the other object in as a sibling to it? So instead of: Slice9 + MyImportantClip have Container + Slice9 | + MyImportantClip HTH, Ian On 1/26/06, Michael Byström [EMAIL PROTECTED] wrote:

Re: [Flashcoders] Fullscreen flash

2006-01-26 Thread Ian Thomas
Hi Mike, It's a Known Feature with Firefox. It's not strictly speaking a bug - the browser doesn't know how high the document is supposed to be, because there's no sized content in the document. Try sticking this in the head style body,html { margin:0px; padding:0px; height:100%; }

Re: [Flashcoders] Strange text scaling issue

2006-01-25 Thread Ian Thomas
Hi Danny, Don't know of any relevant scaling property - but are you using embedded fonts? If not, at a guess it could be rendering using device/system fonts and messing up the scaling? HTH, Ian On 1/25/06, Danny Kodicek [EMAIL PROTECTED] wrote: I'm getting something odd: When I rescale my

Re: [Flashcoders] getting the name of an object

2006-01-23 Thread Ian Thomas
Andreas, Just sight-reading the code rather than testing it - shouldn't there be a === or !== in there somewhere to make sure you're talking about _exactly_ the same object rather than one which just has the same value..? Cheers, Ian On 1/23/06, Andreas Weber [EMAIL PROTECTED] wrote: If

Re: [Flashcoders] Font Preview In ComboBox

2006-01-23 Thread Ian Thomas
Rishi, There is such a thing as 'unreasonable requirements', you know. :-D Could you break down the font list, and present it to the user in sections? For example, Handwriting Fonts, Electronic Fonts or something - or even A-D, E-F etc. Then at least you could load the previews in smaller

Re: [Flashcoders] getting the name of an object

2006-01-23 Thread Ian Thomas
Hm. Good point, and something I should go away and test. :-) I had it in my head somewhere that Flash did a low-level crude equality check on objects with == - are they both the same type and do the properties match? But I may well have misremembered that as a feature of a different language - I

Re: [Flashcoders] getting the name of an object

2006-01-23 Thread Ian Thomas
For the reasons given by Danny et al, you could never have a myObj.getString() such as you describe... other than possibly for debugging purposes, I'm at a loss to work out why it'd be useful? Ian On 1/23/06, Julius - XK [EMAIL PROTECTED] wrote: Is this what your looking for? It has it's

Re: [Flashcoders] Documenting my code

2006-01-22 Thread Ian Thomas
Looks good! Any chance of a command-line driven version so that I can achieve my goal of having server-side generated documentation on my SVN box..? Cheers, Ian On 1/22/06, Sam Wootton [EMAIL PROTECTED] wrote: Yes, its written in Java. Regards, Sam

Re: [Flashcoders] Documenting my code

2006-01-22 Thread Ian Thomas
Sorry, didn't understand that one... I have already tested as2api - and unfortunately it comes up with a bunch of errors on the Linux box and produces no output. Ian On 1/22/06, erixtekila [EMAIL PROTECTED] wrote: Any chance of a command-line driven version so that I can achieve my goal of

Re: [Flashcoders] Documenting my code

2006-01-20 Thread Ian Thomas
Looks good - but sadly doesn't support inheritance: http://www.senocular.com/projects/ZenDoc/doc/#manual_limitations Which is a real shame. The hunt for the perfect documentation tool goes on. :-) (At this rate I might be forced to write one. ;-) ) Ian On 1/20/06, Duncan Reid [EMAIL

Re: [Flashcoders] Documenting my code

2006-01-19 Thread Ian Thomas
As far as I can see from the front page (Roadmap panel) it doesn't yet support JavaDoc as a style, which is a shame... On 1/18/06, ryanm [EMAIL PROTECTED] wrote: Or, can anyone suggest an alternative software that takes the java-doc style comments and create documentation? Check out

Re: [Flashcoders] Documenting my code

2006-01-19 Thread Ian Thomas
The keywords @param, @see, @return all have special meaning to JavaDoc based tools (as well as a host of other @commands). In my limited tests of NaturalDocs it looks like it doesn't support those special meanings- which is why the front page of the NaturalDocs site says that JavaDoc is still to

Re: [Flashcoders] Documenting my code

2006-01-19 Thread Ian Thomas
Hi Martin, Rather like you - all I have is a script which runs once nightly as a cron job, does an update from SVN, then calls the doc tool and copies the generated docs into a folder hosted by the webserver. Nothing complicated. I'd be interested in seeing a decent AS2 config for Doxygen

Re: [Flashcoders] Re: Search engine indexable Flash content; anyone with insight please help!

2006-01-19 Thread Ian Thomas
Um. Why? And have you any concrete examples of that sort of ban? Just seems like an extremely odd decision by Google. Cheers, Ian On 1/19/06, Johannes Nel [EMAIL PROTECTED] wrote: a word of caution. google can ban you for using ripple. ___

Re: [Flashcoders] Documenting my code

2006-01-18 Thread Ian Thomas
We've jsut started using AS2API - http://www.badgers-in-foil.co.uk/projects/as2api/ - which works fine for us on Windows (but had issues on Linux, sadly, although I think that's because our Linux box needs a good cleanup). Cheers, Ian On 1/18/06, eric dolecki [EMAIL PROTECTED] wrote: BLDoc

Re: [Flashcoders] Documenting my code

2006-01-18 Thread Ian Thomas
want. Sorry I couldn't be of more help! Ian On 1/18/06, Alan MacDougall [EMAIL PROTECTED] wrote: Ian Thomas wrote: We've jsut started using AS2API - http://www.badgers-in-foil.co.uk/projects/as2api/ - which works fine for us on Windows (but had issues on Linux, sadly, although I think

Re: [Flashcoders] Fullscreen Flash issue

2006-01-16 Thread Ian Thomas
Mike, Where is this code? Just on the root timeline? Are you sure the repositioning you're getting isn't a result of the normal Flash resizing/scaling and that this code _is_ being called twice? Cheers, Ian On 1/16/06, Mike Boutin [EMAIL PROTECTED] wrote: I am working on a fullscreen flash

Re: [Flashcoders] [ANN] FlashDevelop beta8 release

2006-01-13 Thread Ian Thomas
I've been using FlashDevelop for about a week now; it's excellent stuff. Nice and lightweight and just seems to work. Cheers, Ian On 1/12/06, Philippe [EMAIL PROTECTED] wrote: The only thing I miss comparing to PrimalScript (that I've been using before I've got known FlashDevelop ) is

Re: [Flashcoders] SEO, flash site, url and text in this movie tags

2006-01-11 Thread Ian Thomas
This seems a pretty relevant link: http://www.webpronews.com/ebusiness/seo/wpn-4-20040907GoogleCanNowIndexFlashAnInterviewwithMichaelMarshall.html HTH, Ian On 1/11/06, Alan MacDougall [EMAIL PROTECTED] wrote: No way. Google is way too smart these days. White text on a white background,

Re: [Flashcoders] Classes being cached - deleting ASO does help (flash 8)

2006-01-07 Thread Ian Thomas
Is the movie you're having trouble with loaded into another containing movie? And has that other containing movie got references to a version of the class you're changing? In which case you need to recompile that containing movie, too. Flash always uses the first version of the class that it

Re: [Flashcoders] Files in directory?

2006-01-06 Thread Ian Thomas
Alternatively, if you're looking in a directory on a server, code up something in a server-side language - PHP or whatever - to do the file count, and have flash request the result. HTH, Ian On 1/6/06, Merrill, Jason [EMAIL PROTECTED] wrote: http://www.multidmedia.com/software/zinc/

Re: [Flashcoders] Combo troubles

2005-12-22 Thread Ian Thomas
You might also need to set the combobox._lockroot=true to cure other standard combobox woes... Ian On 12/22/05, Steven Sacks [EMAIL PROTECTED] wrote: Put a combobox component in the loading movie (the root movie). ___ Flashcoders mailing list

<    2   3   4   5   6   7   8   >